	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_modem
_write_modem:                           ## @write_modem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movq	24(%rdi), %r14
	movq	_DEBUG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_gig_dbg
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	24(%r12), %esi
	movq	%rax, %rdi
	callq	_min
	movl	%eax, %ebx
	movq	(%r14), %rdi
	movl	12(%r12), %esi
	movl	%eax, %edx
	callq	_skb_copy_from_linear_data
	movq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_skb_pull
	movl	$1, (%r12)
	movq	_DEBUG_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ebx, %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_gig_dbg
	leaq	4(%r15), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movl	4(%r12), %esi
	movl	8(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %r13d
	andl	$15, %esi
	movl	%r13d, %edi
	callq	_usb_sndbulkpipe
	movl	12(%r12), %ecx
	movq	_gigaset_write_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r15, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%ebx, %r8d
	callq	_usb_fill_bulk_urb
	movl	8(%r12), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_1:
	callq	_dev_kfree_skb_any
	movq	$0, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movl	%ebx, %edx
	negl	%edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movl	$0, (%r12)
LBB0_7:
	movq	(%r14), %rsi
	cmpq	$0, (%rsi)
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_gigaset_skb_sent
	movq	_DEBUG_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_gig_dbg
	movq	(%r14), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, (%r14)
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_WRITE,4,2                ## @DEBUG_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"len: %d..."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DEBUG_OUTPUT,4,2               ## @DEBUG_OUTPUT
L_.str.1:                               ## @.str.1
	.asciz	"write_modem: send %d bytes"

	.comm	_gigaset_write_bulk_callback,4,2 ## @gigaset_write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"could not submit urb (error %d)\n"

	.comm	_DEBUG_INTR,4,2                 ## @DEBUG_INTR
L_.str.3:                               ## @.str.3
	.asciz	"kfree skb (Adr: %lx)!"

	.no_dead_strip	_write_modem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_modem
_write_modem:                           ; @write_modem
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldp	x25, x19, [x0, #16]
Lloh0:
	adrp	x8, _DEBUG_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gig_dbg
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x25, #24]
	bl	_min
	mov	x21, x0
	ldr	x0, [x19]
	ldr	w1, [x25, #12]
	mov	x2, x21
	bl	_skb_copy_from_linear_data
	ldr	x0, [x19]
	mov	x1, x21
	bl	_skb_pull
	mov	w8, #1
	str	w8, [x25]
Lloh5:
	adrp	x8, _DEBUG_OUTPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEBUG_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	sxtw	x2, w21
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_gig_dbg
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w23, [x25, #16]
	ldp	w8, w24, [x25, #4]
	and	w1, w8, #0xf
	mov	x0, x23
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	w3, [x25, #12]
Lloh10:
	adrp	x8, _gigaset_write_bulk_callback@GOTPAGE
Lloh11:
	ldr	x8, [x8, _gigaset_write_bulk_callback@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	x4, x21
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	w0, [x25, #8]
Lloh13:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x21, x0
	b	LBB0_5
LBB0_3:
	mov	x0, x8
	bl	_dev_kfree_skb_any
	str	xzr, [x19]
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_4:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_7
; %bb.6:
	ldr	w0, [x20]
	neg	w2, w21
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	str	wzr, [x25]
LBB0_7:
	ldr	x1, [x19]
	ldr	x8, [x1]
	cbnz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_gigaset_skb_sent
Lloh24:
	adrp	x8, _DEBUG_INTR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DEBUG_INTR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_gig_dbg
	ldr	x0, [x19]
	bl	_dev_kfree_skb_any
	str	xzr, [x19]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_WRITE,4,2                ; @DEBUG_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"len: %d..."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DEBUG_OUTPUT,4,2               ; @DEBUG_OUTPUT
l_.str.1:                               ; @.str.1
	.asciz	"write_modem: send %d bytes"

	.comm	_gigaset_write_bulk_callback,4,2 ; @gigaset_write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"could not submit urb (error %d)\n"

	.comm	_DEBUG_INTR,4,2                 ; @DEBUG_INTR
l_.str.3:                               ; @.str.3
	.asciz	"kfree skb (Adr: %lx)!"

	.no_dead_strip	_write_modem
.subsections_via_symbols
