	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_xhci_cmd_disable_slot
_pci_xhci_cmd_disable_slot:             ## @pci_xhci_cmd_disable_slot
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_DPRINTF
	movq	_XHCI_TRB_ERROR_NO_SLOTS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.1:
	cmpq	%r15, (%rbx)
	jl	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_XHCI_SLOTDEV_PTR
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_XHCI_ST_DISABLED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_5
LBB0_2:
	movq	_XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%rcx, (%rax)
	movq	_XHCI_TRB_ERROR_SUCCESS@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %r14
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XHCI_TRB_ERROR_NO_SLOTS,8,3    ## @XHCI_TRB_ERROR_NO_SLOTS
	.comm	_XHCI_TRB_ERROR_SLOT_NOT_ON,8,3 ## @XHCI_TRB_ERROR_SLOT_NOT_ON
	.comm	_XHCI_ST_DISABLED,8,3           ## @XHCI_ST_DISABLED
	.comm	_XHCI_TRB_ERROR_SUCCESS,8,3     ## @XHCI_TRB_ERROR_SUCCESS
	.no_dead_strip	_pci_xhci_cmd_disable_slot
.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_disable_slot
_pci_xhci_cmd_disable_slot:             ; @pci_xhci_cmd_disable_slot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_DPRINTF
Lloh0:
	adrp	x8, _XHCI_TRB_ERROR_NO_SLOTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XHCI_TRB_ERROR_NO_SLOTS@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, x20
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_XHCI_SLOTDEV_PTR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x9, [x0]
Lloh3:
	adrp	x8, _XHCI_ST_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XHCI_ST_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XHCI_TRB_ERROR_SLOT_NOT_ON@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	str	x8, [x0]
Lloh8:
	adrp	x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XHCI_TRB_ERROR_SUCCESS@GOTPAGEOFF]
LBB0_6:
	ldr	x19, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XHCI_TRB_ERROR_NO_SLOTS,8,3    ; @XHCI_TRB_ERROR_NO_SLOTS
	.comm	_XHCI_TRB_ERROR_SLOT_NOT_ON,8,3 ; @XHCI_TRB_ERROR_SLOT_NOT_ON
	.comm	_XHCI_ST_DISABLED,8,3           ; @XHCI_ST_DISABLED
	.comm	_XHCI_TRB_ERROR_SUCCESS,8,3     ; @XHCI_TRB_ERROR_SUCCESS
	.no_dead_strip	_pci_xhci_cmd_disable_slot
.subsections_via_symbols
