	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_cmd_config_ep
_pci_xhci_cmd_config_ep:                ## @pci_xhci_cmd_config_ep
	.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	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r14
	movq	%r14, %rdi
	callq	_DPRINTF
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_XHCI_SLOTDEV_PTR
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_XHCI_TRB_3_DCEP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_DPRINTF
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	24(%rbx), %edi
	callq	*%rax
LBB0_3:
	movq	_XHCI_ST_ADDRESSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	$0, 16(%rbx)
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pci_xhci_get_dev_ctx
	movq	%rax, %r14
	movq	16(%rax), %rdi
	movl	$1, %esi
	movl	$31, %edx
	movl	$27, %ecx
	callq	_FIELD_REPLACE
	movq	%rax, 16(%r14)
	movq	(%r14), %rdi
	movq	_XHCI_ST_SLCTX_ADDRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$31, %edx
	movl	$27, %ecx
	callq	_FIELD_REPLACE
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$14, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$15, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$18, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$19, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$22, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$23, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$25, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$26, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$27, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$28, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$29, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_pci_xhci_disable_ep
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	_pci_xhci_disable_ep
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_4:
	movq	(%rbx), %rdi
	movq	_XHCI_ST_ADDRESSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_6
## %bb.5:
	callq	_DPRINTF
	movq	_XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_6:
	movl	4(%r15), %esi
	andl	$-16, %esi
	movq	%r12, %rdi
	callq	_XHCI_GADDR
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	24(%r12), %rdi
	callq	_DPRINTF
	movl	$2, %ebx
	xorl	%r15d, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	addq	$24, %r15
	cmpq	$32, %rbx
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %r13
	movl	16(%r12), %r14d
	movl	%ebx, %edi
	callq	_XHCI_INCTX_0_DROP_MASK
	testl	%r14d, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_DPRINTF
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_pci_xhci_disable_ep
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	20(%r12), %r14d
	movl	%ebx, %edi
	callq	_XHCI_INCTX_1_ADD_MASK
	testl	%r14d, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r15,%r13), %rax
	addq	$48, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	leaq	(%rax,%r15), %r14
	addq	$48, %r14
	movslq	56(%rax,%r15), %rdi
	callq	_DPRINTF
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	$24, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_xhci_init_ep
	movq	48(%r13,%r15), %rdi
	movq	_XHCI_ST_EPCTX_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_FIELD_REPLACE
	movq	%rax, 48(%r13,%r15)
	jmp	LBB0_11
LBB0_12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	_XHCI_ST_SLCTX_CONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$31, %edx
	movl	$27, %ecx
	callq	_FIELD_REPLACE
	movq	%rax, (%rbx)
	movq	16(%rbx), %rdi
	movl	(%r12), %esi
	movl	$31, %edx
	movl	$27, %ecx
	callq	_FIELD_COPY
	movq	%rax, 16(%rbx)
	movq	_XHCI_ST_CONFIGURED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%rbx), %rdi
	callq	_DPRINTF
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ## @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_3_DCEP_BIT,4,2        ## @XHCI_TRB_3_DCEP_BIT
	.comm	_XHCI_ST_ADDRESSED,8,3          ## @XHCI_ST_ADDRESSED
	.comm	_XHCI_ST_SLCTX_ADDRESSED,4,2    ## @XHCI_ST_SLCTX_ADDRESSED
	.comm	_XHCI_TRB_ERROR_SLOT_NOT_ON,4,2 ## @XHCI_TRB_ERROR_SLOT_NOT_ON
	.comm	_XHCI_ST_EPCTX_RUNNING,4,2      ## @XHCI_ST_EPCTX_RUNNING
	.comm	_XHCI_ST_SLCTX_CONFIGURED,4,2   ## @XHCI_ST_SLCTX_CONFIGURED
	.comm	_XHCI_ST_CONFIGURED,8,3         ## @XHCI_ST_CONFIGURED
	.no_dead_strip	_pci_xhci_cmd_config_ep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_xhci_cmd_config_ep
_pci_xhci_cmd_config_ep:                ; @pci_xhci_cmd_config_ep
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
	ldr	w20, [x25]
	sxtw	x24, w22
	mov	x0, x24
	bl	_DPRINTF
	mov	x0, x21
	mov	x1, x22
	bl	_XHCI_SLOTDEV_PTR
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _XHCI_TRB_3_DCEP_BIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XHCI_TRB_3_DCEP_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x24
	bl	_DPRINTF
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #24]
	blr	x8
LBB0_3:
Lloh5:
	adrp	x8, _XHCI_ST_ADDRESSED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XHCI_ST_ADDRESSED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
	str	xzr, [x19, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_pci_xhci_get_dev_ctx
	mov	x20, x0
	ldr	x0, [x0, #16]
	mov	w1, #1
	mov	w2, #31
	mov	w3, #27
	bl	_FIELD_REPLACE
	str	x0, [x20, #16]
	ldr	x0, [x20]
Lloh8:
	adrp	x8, _XHCI_ST_SLCTX_ADDRESSED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XHCI_ST_SLCTX_ADDRESSED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #31
	mov	w3, #27
	bl	_FIELD_REPLACE
	str	x0, [x20]
	mov	x0, x19
	mov	w1, #2
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #3
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #4
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #5
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #6
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #7
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #8
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #9
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #10
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #11
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #12
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #13
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #14
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #15
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #16
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #17
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #18
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #19
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #20
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #21
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #22
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #23
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #24
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #25
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #26
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #27
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #28
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #29
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #30
	bl	_pci_xhci_disable_ep
	mov	x0, x19
	mov	w1, #31
	bl	_pci_xhci_disable_ep
	ldr	w20, [x25]
	b	LBB0_13
LBB0_4:
	ldr	x0, [x19]
Lloh11:
	adrp	x8, _XHCI_ST_ADDRESSED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XHCI_ST_ADDRESSED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:
	bl	_DPRINTF
Lloh14:
	adrp	x8, _XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_6:
	ldr	w8, [x23, #4]
	and	w1, w8, #0xfffffff0
	mov	x0, x21
	bl	_XHCI_GADDR
	mov	x21, x0
	ldr	x25, [x19, #8]
	ldrsw	x0, [x0, #24]
	bl	_DPRINTF
	mov	x26, #0
	mov	w22, #2
Lloh17:
	adrp	x27, _XHCI_ST_EPCTX_RUNNING@GOTPAGE
Lloh18:
	ldr	x27, [x27, _XHCI_ST_EPCTX_RUNNING@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	add	x26, x26, #24
	cmp	x22, #32
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x25, #24]
	ldr	w23, [x21, #16]
	mov	x0, x22
	bl	_XHCI_INCTX_0_DROP_MASK
	tst	w0, w23
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_DPRINTF
	mov	x0, x19
	mov	x1, x22
	bl	_pci_xhci_disable_ep
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w23, [x21, #20]
	mov	x0, x22
	bl	_XHCI_INCTX_1_ADD_MASK
	tst	w0, w23
	b.eq	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x28, x26
	add	x23, x8, #48
	ldr	x8, [x21, #8]
	add	x8, x8, x26
	add	x24, x8, #48
	ldrsw	x0, [x8, #56]
	bl	_DPRINTF
	mov	x0, x23
	mov	x1, x24
	mov	w2, #24
	bl	_memcpy
	mov	x0, x19
	mov	x1, x22
	bl	_pci_xhci_init_ep
	add	x23, x28, x26
	ldr	x0, [x23, #48]
	ldr	w1, [x27]
	mov	w2, #7
	mov	w3, #0
	bl	_FIELD_REPLACE
	str	x0, [x23, #48]
	b	LBB0_7
LBB0_12:
	ldr	x0, [x25]
Lloh19:
	adrp	x8, _XHCI_ST_SLCTX_CONFIGURED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XHCI_ST_SLCTX_CONFIGURED@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #31
	mov	w3, #27
	bl	_FIELD_REPLACE
	str	x0, [x25]
	ldr	x0, [x25, #16]
	ldr	w1, [x21]
	mov	w2, #31
	mov	w3, #27
	bl	_FIELD_COPY
	str	x0, [x25, #16]
Lloh22:
	adrp	x8, _XHCI_ST_CONFIGURED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XHCI_ST_CONFIGURED@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x0, [x25]
	bl	_DPRINTF
LBB0_13:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ; @XHCI_TRB_ERROR_SUCCESS
	.comm	_XHCI_TRB_3_DCEP_BIT,4,2        ; @XHCI_TRB_3_DCEP_BIT
	.comm	_XHCI_ST_ADDRESSED,8,3          ; @XHCI_ST_ADDRESSED
	.comm	_XHCI_ST_SLCTX_ADDRESSED,4,2    ; @XHCI_ST_SLCTX_ADDRESSED
	.comm	_XHCI_TRB_ERROR_SLOT_NOT_ON,4,2 ; @XHCI_TRB_ERROR_SLOT_NOT_ON
	.comm	_XHCI_ST_EPCTX_RUNNING,4,2      ; @XHCI_ST_EPCTX_RUNNING
	.comm	_XHCI_ST_SLCTX_CONFIGURED,4,2   ; @XHCI_ST_SLCTX_CONFIGURED
	.comm	_XHCI_ST_CONFIGURED,8,3         ; @XHCI_ST_CONFIGURED
	.no_dead_strip	_pci_xhci_cmd_config_ep
.subsections_via_symbols
