	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_cb
_send_cb:                               ## @send_cb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	56(%rdi), %r15
	leaq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rdi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:
	movq	%r13, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	movl	24(%r12), %edx
	movl	48(%r12), %ecx
	subl	%edx, %ecx
	movl	%ecx, 48(%r12)
	movq	_DEBUG_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_gig_dbg
	movq	40(%r13), %r14
	movq	%r14, 40(%r12)
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	$0, 32(%r14)
	movq	(%r14), %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:
	movq	$0, 32(%r12)
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, 24(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_tasklet_schedule
LBB0_8:
	movq	%r13, %rdi
	callq	_kfree
	testq	%r14, %r14
	je	LBB0_15
## %bb.9:
	movq	(%r14), %rdi
LBB0_10:
	movl	16(%r15), %esi
	callq	_min
	movl	%eax, %r13d
	movq	_DEBUG_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_gig_dbg
	movl	(%r15), %esi
	movl	8(%r15), %r12d
	movl	12(%r15), %ebx
	andl	$15, %esi
	movl	%ebx, %edi
	callq	_usb_sndbulkpipe
	movq	8(%r14), %rcx
	addq	16(%r14), %rcx
	movq	_gigaset_write_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rsp)
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%rdx, %r12
	movl	%eax, %edx
	movl	%r13d, %r8d
	callq	_usb_fill_bulk_urb
	movslq	%r13d, %rax
	addq	%rax, 8(%r14)
	subq	%rax, (%r14)
	movl	$1, 4(%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.11:
	movl	8(%r15), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:
	xorl	%ebx, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.16:
	movl	$0, 4(%r15)
	movl	(%r12), %edi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	negl	%ebx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	$0, (%r14)
	xorl	%edi, %edi
	movq	%r14, %r13
	testq	%rdi, %rdi
	jne	LBB0_2
	jmp	LBB0_3
LBB0_14:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_15:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_DEBUG_OUTPUT,4,2               ## @DEBUG_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_cb: sent %u bytes, %u left"

L_.str.1:                               ## @.str.1
	.asciz	"send_cb: 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"

	.no_dead_strip	_send_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_cb
_send_cb:                               ; @send_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w25, w8
	ldr	x28, [x0, #56]
	add	x20, x0, #16
	add	x21, x0, #4
Lloh3:
	adrp	x22, _DEBUG_OUTPUT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DEBUG_OUTPUT@GOTPAGEOFF]
	ldr	x0, [x1]
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	cbz	x0, LBB0_2
LBB0_1:
	mov	x26, x27
	b	LBB0_9
LBB0_2:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w2, [x19, #24]
	ldr	w8, [x19, #48]
	sub	w8, w8, w2
	str	w8, [x19, #48]
	ldr	w0, [x22]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gig_dbg
	ldr	x26, [x27, #40]
	str	x26, [x19, #40]
	cbz	x26, LBB0_4
; %bb.3:
	str	xzr, [x26, #32]
	ldr	x8, [x26]
	b	LBB0_5
LBB0_4:
	mov	x8, #0
	str	xzr, [x19, #32]
LBB0_5:
	str	x8, [x19, #24]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x0, [x27, #24]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_tasklet_schedule
LBB0_7:
	mov	x0, x27
	bl	_kfree
	cbz	x26, LBB0_14
; %bb.8:
	ldr	x0, [x26]
LBB0_9:
	ldr	w1, [x28, #16]
	bl	_min
	mov	x25, x0
	ldr	w0, [x22]
	mov	x1, x23
	mov	x2, x25
	bl	_gig_dbg
	ldp	w24, w27, [x28, #8]
	ldr	w8, [x28]
	and	w1, w8, #0xf
	mov	x0, x27
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldp	x9, x8, [x26, #8]
	add	x3, x9, x8
Lloh9:
	adrp	x8, _gigaset_write_bulk_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gigaset_write_bulk_callback@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x27
	mov	x4, x25
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	sxtw	x8, w25
	ldp	x10, x9, [x26]
	add	x9, x9, x8
	sub	x8, x10, x8
	stp	x8, x9, [x26]
	mov	w8, #1
	str	w8, [x28, #4]
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x28, #8]
Lloh12:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x25, x0
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_12:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w25, LBB0_14
; %bb.13:
	str	wzr, [x28, #4]
	ldr	w0, [x19]
	neg	w2, w25
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, #0
	str	xzr, [x26]
	mov	x27, x26
	cbnz	x0, LBB0_1
	b	LBB0_2
LBB0_14:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_DEBUG_OUTPUT,4,2               ; @DEBUG_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_cb: sent %u bytes, %u left"

l_.str.1:                               ; @.str.1
	.asciz	"send_cb: 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"

	.no_dead_strip	_send_cb
.subsections_via_symbols
