	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_complete_commands
_pci_xhci_complete_commands:            ## @pci_xhci_complete_commands
	.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	_XHCI_CRCR_LO_CRR@GOTPCREL(%rip), %rax
	movl	(%rdi), %r12d
	orl	(%rax), %r12d
	movl	%r12d, (%rdi)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	_XHCI_CRCR_LO_RCS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	andl	$-16, %r12d
	movl	%r12d, -52(%rbp)
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_TYPE_GET
	movl	%eax, %r15d
	movq	_XHCI_TRB_3_CYCLE_BIT@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	xorl	%ebx, %eax
	testl	%eax, (%rcx)
	jne	LBB0_19
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r12
	movq	%r12, %rdi
	movq	%rcx, %rbx
	callq	_DPRINTF
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$0, -72(%rbp)
	andl	(%rbx), %r12d
	movq	_XHCI_TRB_EVENT_CMD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XHCI_TRB_3_TYPE_SET
	orl	%r12d, %eax
	movl	%eax, -80(%rbp)
	movl	$0, -44(%rbp)
	leal	-128(%r15), %eax
	cmpl	$15, %eax
	ja	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmpq	*%rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	callq	_DPRINTF
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_SLOT_GET
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_pci_xhci_cmd_reset_ep
	jmp	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rdi
	callq	_DPRINTF
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_SLOT_GET
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_pci_xhci_cmd_set_tr
	jmp	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_SLOT_GET
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_xhci_cmd_reset_device
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_XHCI_TRB_3_TC_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	_XHCI_CRCR_LO_RCS@GOTPCREL(%rip), %rax
	xorl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_SLOT_GET
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_pci_xhci_cmd_eval_ctx
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
	callq	_pci_xhci_cmd_enable_slot
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_SLOT_GET
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_xhci_cmd_disable_slot
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_SLOT_GET
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_pci_xhci_cmd_config_ep
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	callq	_XHCI_TRB_3_SLOT_GET
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_pci_xhci_cmd_address_device
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r13d
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %eax
	movl	%eax, -76(%rbp)
	movl	%r13d, %edi
	callq	_XHCI_TRB_2_ERROR_SET
	orl	%eax, -72(%rbp)
	movl	-44(%rbp), %edi
	callq	_XHCI_TRB_3_SLOT_SET
	orl	%eax, -80(%rbp)
	movslq	%r13d, %rdi
	callq	_DPRINTF
	movq	%r15, %rdi
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	callq	_pci_xhci_insert_event
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-52(%rbp), %rdx
	callq	_pci_xhci_trb_next
	movq	%rax, %r14
	movq	%rax, 8(%r15)
	movl	(%rax), %edi
	callq	_XHCI_TRB_3_TYPE_GET
	movl	%eax, %r15d
	movl	(%r14), %eax
	xorl	%ebx, %eax
	movq	_XHCI_TRB_3_CYCLE_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.18:
	movl	-52(%rbp), %r12d
LBB0_19:
	movq	_XHCI_CRCR_LO_CRR@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	_XHCI_CRCR_LO_CA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdx), %eax
	orl	%ebx, %eax
	orl	%r12d, %eax
	movl	%eax, (%rdx)
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rdx)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_7
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_XHCI_CRCR_LO_CRR,4,2           ## @XHCI_CRCR_LO_CRR
	.comm	_XHCI_CRCR_LO_RCS,4,2           ## @XHCI_CRCR_LO_RCS
	.comm	_XHCI_TRB_3_CYCLE_BIT,4,2       ## @XHCI_TRB_3_CYCLE_BIT
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ## @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_EVENT_CMD_COMPLETE,4,2 ## @XHCI_TRB_EVENT_CMD_COMPLETE
	.comm	_XHCI_TRB_3_TC_BIT,4,2          ## @XHCI_TRB_3_TC_BIT
	.comm	_XHCI_CRCR_LO_CA,4,2            ## @XHCI_CRCR_LO_CA
	.no_dead_strip	_pci_xhci_complete_commands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_xhci_complete_commands
_pci_xhci_complete_commands:            ; @pci_xhci_complete_commands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x23, _XHCI_CRCR_LO_CRR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XHCI_CRCR_LO_CRR@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh2:
	adrp	x9, _XHCI_CRCR_LO_RCS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XHCI_CRCR_LO_RCS@GOTPAGEOFF]
	ldr	x20, [x0, #8]
Lloh4:
	ldr	w9, [x9]
	and	w24, w9, w8
	and	w21, w8, #0xfffffff0
	str	w21, [sp, #12]
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_TYPE_GET
	ldr	w8, [x20]
Lloh5:
	adrp	x26, _XHCI_TRB_3_CYCLE_BIT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _XHCI_TRB_3_CYCLE_BIT@GOTPAGEOFF]
	ldr	w9, [x26]
	eor	w8, w8, w24
	tst	w8, w9
	b.ne	LBB0_19
; %bb.1:
	mov	x22, x0
Lloh7:
	adrp	x27, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh8:
	ldr	x27, [x27, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
Lloh9:
	adrp	x28, _XHCI_TRB_EVENT_CMD_COMPLETE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _XHCI_TRB_EVENT_CMD_COMPLETE@GOTPAGEOFF]
Lloh11:
	adrp	x25, lJTI0_0@PAGE
Lloh12:
	add	x25, x25, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x0, w24
	bl	_DPRINTF
	ldr	w21, [x27]
	str	wzr, [sp, #24]
	ldr	w8, [x26]
	and	w23, w8, w24
	ldr	w0, [x28]
	bl	_XHCI_TRB_3_TYPE_SET
	orr	w8, w0, w23
	str	w8, [sp, #16]
	str	wzr, [sp, #8]
	sub	w8, w22, #128
	cmp	w8, #15
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, #0
	bl	_DPRINTF
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_SLOT_GET
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_xhci_cmd_reset_ep
	b	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x0, w22
	bl	_DPRINTF
	b	LBB0_16
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_SLOT_GET
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_xhci_cmd_set_tr
	b	LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_SLOT_GET
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x19
	bl	_pci_xhci_cmd_reset_device
	b	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _XHCI_TRB_3_TC_BIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XHCI_TRB_3_TC_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh16:
	adrp	x8, _XHCI_CRCR_LO_RCS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XHCI_CRCR_LO_RCS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	eor	w24, w8, w24
	b	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_SLOT_GET
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_xhci_cmd_eval_ctx
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_pci_xhci_cmd_enable_slot
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_SLOT_GET
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x19
	bl	_pci_xhci_cmd_disable_slot
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_SLOT_GET
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_xhci_cmd_config_ep
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_XHCI_TRB_3_SLOT_GET
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_xhci_cmd_address_device
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [sp, #20]
	mov	x0, x21
	bl	_XHCI_TRB_2_ERROR_SET
	ldr	w8, [sp, #24]
	orr	w8, w8, w0
	str	w8, [sp, #24]
	ldr	w0, [sp, #8]
	bl	_XHCI_TRB_3_SLOT_SET
	ldr	w8, [sp, #16]
	orr	w8, w8, w0
	str	w8, [sp, #16]
	sxtw	x0, w21
	bl	_DPRINTF
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	bl	_pci_xhci_insert_event
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_pci_xhci_trb_next
	mov	x20, x0
	str	x0, [x19, #8]
	ldr	w0, [x0]
	bl	_XHCI_TRB_3_TYPE_GET
	mov	x22, x0
	ldr	w8, [x20]
	ldr	w9, [x26]
	eor	w8, w8, w24
	tst	w8, w9
	b.eq	LBB0_2
; %bb.18:
	ldr	w21, [sp, #12]
Lloh19:
	adrp	x23, _XHCI_CRCR_LO_CRR@GOTPAGE
Lloh20:
	ldr	x23, [x23, _XHCI_CRCR_LO_CRR@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _XHCI_CRCR_LO_CA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _XHCI_CRCR_LO_CA@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w9, w21, w24
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x23]
	bic	w8, w8, w9
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
                                        ; -- End function
	.comm	_XHCI_CRCR_LO_CRR,4,2           ; @XHCI_CRCR_LO_CRR
	.comm	_XHCI_CRCR_LO_RCS,4,2           ; @XHCI_CRCR_LO_RCS
	.comm	_XHCI_TRB_3_CYCLE_BIT,4,2       ; @XHCI_TRB_3_CYCLE_BIT
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ; @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_EVENT_CMD_COMPLETE,4,2 ; @XHCI_TRB_EVENT_CMD_COMPLETE
	.comm	_XHCI_TRB_3_TC_BIT,4,2          ; @XHCI_TRB_3_TC_BIT
	.comm	_XHCI_CRCR_LO_CA,4,2            ; @XHCI_CRCR_LO_CA
	.no_dead_strip	_pci_xhci_complete_commands
.subsections_via_symbols
