	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_cmd_reset_device
_pci_xhci_cmd_reset_device:             ## @pci_xhci_cmd_reset_device
	.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
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movslq	%esi, %rbx
	movq	%rbx, %rdi
	callq	_DPRINTF
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_XHCI_SLOTDEV_PTR
	movq	_XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPCREL(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rax), %rcx
	movq	_XHCI_ST_DISABLED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.4:
	movq	_XHCI_ST_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	$0, 8(%rax)
	movq	%r15, %rdi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_pci_xhci_get_dev_ctx
	movq	%rax, %r13
	movq	16(%rax), %rdi
	movq	_XHCI_ST_SLCTX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$31, %edx
	movl	$27, %ecx
	callq	_FIELD_REPLACE
	movq	%rax, 16(%r13)
	movq	8(%r13), %rdi
	movl	$1, %esi
	movl	$31, %edx
	movl	$27, %ecx
	callq	_FIELD_REPLACE
	movq	%rax, 8(%r13)
	movl	$2, %ebx
	movq	_XHCI_ST_EPCTX_DISABLED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r12
	movq	(%r12,%rbx,8), %rdi
	movl	(%r14), %esi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_FIELD_REPLACE
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	$32, %rbx
	jne	LBB0_5
## %bb.6:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rsi
LBB0_7:
	movl	(%rsi), %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pci_xhci_reset_slot
	jmp	LBB0_8
LBB0_1:
	movq	_XHCI_TRB_ERROR_NO_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XHCI_TRB_ERROR_NO_SLOTS,4,2    ## @XHCI_TRB_ERROR_NO_SLOTS
	.comm	_XHCI_ST_DISABLED,8,3           ## @XHCI_ST_DISABLED
	.comm	_XHCI_TRB_ERROR_SLOT_NOT_ON,4,2 ## @XHCI_TRB_ERROR_SLOT_NOT_ON
	.comm	_XHCI_ST_DEFAULT,8,3            ## @XHCI_ST_DEFAULT
	.comm	_XHCI_ST_SLCTX_DEFAULT,4,2      ## @XHCI_ST_SLCTX_DEFAULT
	.comm	_XHCI_ST_EPCTX_DISABLED,4,2     ## @XHCI_ST_EPCTX_DISABLED
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ## @XHCI_TRB_ERROR_SUCCESS
	.no_dead_strip	_pci_xhci_cmd_reset_device
.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_reset_device
_pci_xhci_cmd_reset_device:             ; @pci_xhci_cmd_reset_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	sxtw	x0, w19
	bl	_DPRINTF
	mov	x0, x20
	mov	x1, x19
	bl	_XHCI_SLOTDEV_PTR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _XHCI_ST_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XHCI_ST_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
Lloh3:
	adrp	x22, _XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPAGE
Lloh4:
	ldr	x22, [x22, _XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _XHCI_TRB_ERROR_NO_SLOTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XHCI_TRB_ERROR_NO_SLOTS@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _XHCI_ST_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XHCI_ST_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	x8, xzr, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_pci_xhci_get_dev_ctx
	mov	x21, x0
	ldr	x0, [x0, #16]
Lloh11:
	adrp	x8, _XHCI_ST_SLCTX_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XHCI_ST_SLCTX_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #31
	mov	w3, #27
	bl	_FIELD_REPLACE
	str	x0, [x21, #16]
	ldr	x0, [x21, #8]
	mov	w1, #1
	mov	w2, #31
	mov	w3, #27
	bl	_FIELD_REPLACE
	str	x0, [x21, #8]
	mov	w23, #16
Lloh14:
	adrp	x24, _XHCI_ST_EPCTX_DISABLED@GOTPAGE
Lloh15:
	ldr	x24, [x24, _XHCI_ST_EPCTX_DISABLED@GOTPAGEOFF]
Lloh16:
	adrp	x22, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh17:
	ldr	x22, [x22, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x21]
	ldr	x0, [x25, x23]
	ldr	w1, [x24]
	mov	w2, #7
	mov	w3, #0
	bl	_FIELD_REPLACE
	str	x0, [x25, x23]
	add	x23, x23, #8
	cmp	x23, #256
	b.ne	LBB0_6
LBB0_7:
	ldr	w21, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_pci_xhci_reset_slot
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_XHCI_TRB_ERROR_NO_SLOTS,4,2    ; @XHCI_TRB_ERROR_NO_SLOTS
	.comm	_XHCI_ST_DISABLED,8,3           ; @XHCI_ST_DISABLED
	.comm	_XHCI_TRB_ERROR_SLOT_NOT_ON,4,2 ; @XHCI_TRB_ERROR_SLOT_NOT_ON
	.comm	_XHCI_ST_DEFAULT,8,3            ; @XHCI_ST_DEFAULT
	.comm	_XHCI_ST_SLCTX_DEFAULT,4,2      ; @XHCI_ST_SLCTX_DEFAULT
	.comm	_XHCI_ST_EPCTX_DISABLED,4,2     ; @XHCI_ST_EPCTX_DISABLED
	.comm	_XHCI_TRB_ERROR_SUCCESS,4,2     ; @XHCI_TRB_ERROR_SUCCESS
	.no_dead_strip	_pci_xhci_cmd_reset_device
.subsections_via_symbols
