	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btusb_isoc_complete
_btusb_isoc_complete:                   ## @btusb_isoc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	32(%rdi), %r14
	movq	16(%r14), %r15
	movl	(%r14), %esi
	movl	24(%rdi), %ecx
	movl	28(%rdi), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rdx
	callq	_BT_DBG
	movq	_HCI_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r14), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpl	$0, 24(%r13)
	je	LBB0_2
LBB0_8:
	movq	_BTUSB_ISOC_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_usb_anchor_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.3:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	cmpq	$0, (%rax,%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-8(%rax,%rbx), %edx
	movl	-4(%rax,%rbx), %ecx
	addl	%ecx, 4(%r14)
	movq	_HCI_SCODATA_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	8(%r13), %rdx
	movq	%r14, %rdi
	callq	_hci_recv_fragment
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	incl	8(%r14)
	jmp	LBB0_7
LBB0_11:
	movl	(%r14), %esi
	negl	%eax
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_BT_ERR
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_unanchor_urb               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s urb %p status %d count %d"

	.comm	_HCI_RUNNING,4,2                ## @HCI_RUNNING
	.comm	_HCI_SCODATA_PKT,4,2            ## @HCI_SCODATA_PKT
L_.str.1:                               ## @.str.1
	.asciz	"%s corrupted SCO packet"

	.comm	_BTUSB_ISOC_RUNNING,4,2         ## @BTUSB_ISOC_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"%s urb %p failed to resubmit (%d)"

	.no_dead_strip	_btusb_isoc_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btusb_isoc_complete
_btusb_isoc_complete:                   ; @btusb_isoc_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x20, [x0, #32]
	ldr	x21, [x20, #16]
	ldr	w1, [x20]
	ldp	w3, w4, [x0, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_BT_DBG
Lloh2:
	adrp	x8, _HCI_RUNNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _BTUSB_ISOC_RUNNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BTUSB_ISOC_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x21, #4
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_usb_anchor_urb
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_11
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:
	mov	x23, #0
	mov	x24, #0
Lloh11:
	adrp	x25, _HCI_SCODATA_PKT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _HCI_SCODATA_PKT@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	w8, w3, [x8]
	ldr	w9, [x20, #4]
	add	w9, w9, w3
	str	w9, [x20, #4]
	ldr	w1, [x25]
	ldr	x9, [x19, #8]
	add	x2, x9, x8
	mov	x0, x20
	bl	_hci_recv_fragment
	tbz	x0, #63, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x20]
	mov	x0, x22
	bl	_BT_ERR
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_7
LBB0_11:
	ldr	w1, [x20]
	neg	w8, w0
	stp	x19, x8, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_usb_unanchor_urb
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s urb %p status %d count %d"

	.comm	_HCI_RUNNING,4,2                ; @HCI_RUNNING
	.comm	_HCI_SCODATA_PKT,4,2            ; @HCI_SCODATA_PKT
l_.str.1:                               ; @.str.1
	.asciz	"%s corrupted SCO packet"

	.comm	_BTUSB_ISOC_RUNNING,4,2         ; @BTUSB_ISOC_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"%s urb %p failed to resubmit (%d)"

	.no_dead_strip	_btusb_isoc_complete
.subsections_via_symbols
