	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dabusb_iso_complete
_dabusb_iso_complete:                   ## @dabusb_iso_complete
	.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, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movl	24(%rbx), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_12
## %bb.1:
	movq	8(%rbx), %rdi
	movq	__DABUSB_ISOPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_rcvisocpipe
	movl	%eax, %r14d
	movq	8(%rbx), %r15
	movl	%eax, %edi
	callq	_usb_pipeout
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_usb_maxpacket
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rbx)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.3:
	movl	$8, %r13d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%rbx), %rax
	addq	$12, %r13
	cmpq	%rax, %r12
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movl	(%rax,%r13), %edx
	testl	%edx, %edx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-8(%rax,%r13), %r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r15d, %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r15), %rdi
	movslq	-4(%rax,%r13), %rsi
	addq	%rcx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r14d, %r15d
	jmp	LBB0_9
LBB0_2:
	xorl	%r15d, %r15d
LBB0_10:
	movl	4(%rbx), %ecx
	cmpl	%ecx, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	leaq	20(%r12), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	cmpl	$0, 16(%r12)
	jne	LBB0_16
## %bb.14:
	movq	(%r12), %rax
	movq	__stopped@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	movl	8(%r12), %edx
	incl	%edx
	movl	%edx, 8(%r12)
	movq	8(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	addq	$12, %r12
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dabusb_iso_complete"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	__DABUSB_ISOPIPE,4,2            ## @_DABUSB_ISOPIPE
L_.str.1:                               ## @.str.1
	.asciz	"dabusb_iso_complete: invalid len %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"dabusb_iso_complete: corrupted packet status: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"dst!=purb->actual_length:%d!=%d\n"

	.comm	__stopped,8,3                   ## @_stopped
L_.str.4:                               ## @.str.4
	.asciz	"overrun (%d)\n"

	.no_dead_strip	_dabusb_iso_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dabusb_iso_complete
_dabusb_iso_complete:                   ; @dabusb_iso_complete
	.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	x19, x0
	ldp	x26, x8, [x0, #32]
	ldr	x25, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	ldr	w8, [x19, #24]
Lloh2:
	adrp	x9, _ENOENT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_12
; %bb.1:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, __DABUSB_ISOPIPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, __DABUSB_ISOPIPE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_usb_rcvisocpipe
	mov	x20, x0
	ldr	x21, [x19, #8]
	bl	_usb_pipeout
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_usb_maxpacket
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, x0
	mov	x27, #0
	mov	x28, #0
	mov	w20, #0
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x23
	bl	_dev_warn
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x19]
	add	x27, x27, #12
	cmp	x28, x8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x9, x8, x27
	ldr	w2, [x9, #8]
	cbnz	w2, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w24, [x8, x27]
	cmp	w24, w21
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x22
	mov	x2, x24
	bl	_dev_err
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x26, w20, sxtw
	add	x8, x8, x27
	ldrsw	x8, [x8, #4]
	add	x1, x26, x8
	mov	x2, x24
	bl	_memcpy
	add	w20, w24, w20
	b	LBB0_4
LBB0_9:
	mov	w20, #0
LBB0_10:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	x0, [x19, #8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_12:
	add	x0, x25, #20
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w8, [x25, #16]
	cbnz	w8, LBB0_16
; %bb.14:
	ldr	x8, [x25]
Lloh14:
	adrp	x9, __stopped@GOTPAGE
Lloh15:
	ldr	x9, [x9, __stopped@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x25, #8]
	add	w2, w8, #1
	str	w2, [x25, #8]
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
LBB0_16:
	add	x0, x25, #12
	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
	b	_wake_up
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dabusb_iso_complete"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	__DABUSB_ISOPIPE,4,2            ; @_DABUSB_ISOPIPE
l_.str.1:                               ; @.str.1
	.asciz	"dabusb_iso_complete: invalid len %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"dabusb_iso_complete: corrupted packet status: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"dst!=purb->actual_length:%d!=%d\n"

	.comm	__stopped,8,3                   ; @_stopped
l_.str.4:                               ; @.str.4
	.asciz	"overrun (%d)\n"

	.no_dead_strip	_dabusb_iso_complete
.subsections_via_symbols
