	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pciehp_disable_slot
___pciehp_disable_slot:                 ## @__pciehp_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	callq	_POWER_CTRL
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pciehp_get_power_status
	cmpq	$0, -24(%rbp)
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_remove_board
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Slot(%s): Already disabled\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___pciehp_disable_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pciehp_disable_slot
___pciehp_disable_slot:                 ; @__pciehp_disable_slot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	bl	_POWER_CTRL
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pciehp_get_power_status
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_remove_board
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ctrl_info
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Slot(%s): Already disabled\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___pciehp_disable_slot
.subsections_via_symbols
