	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pciehp_enable_slot
___pciehp_enable_slot:                  ## @__pciehp_enable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	callq	_MRL_SENS
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pciehp_get_latch_status
	cmpq	$0, -16(%rbp)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_POWER_CTRL
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pciehp_get_power_status
	cmpq	$0, -16(%rbp)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_board_added
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Slot(%s): Latch open\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Slot(%s): Already enabled\n"

	.no_dead_strip	___pciehp_enable_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pciehp_enable_slot
___pciehp_enable_slot:                  ; @__pciehp_enable_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	x19, x0
	str	xzr, [sp, #8]
	bl	_MRL_SENS
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pciehp_get_latch_status
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.2:
	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, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_POWER_CTRL
	cbz	x0, LBB0_6
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pciehp_get_power_status
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ctrl_info
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_board_added
LBB0_7:
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Slot(%s): Latch open\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Slot(%s): Already enabled\n"

	.no_dead_strip	___pciehp_enable_slot
.subsections_via_symbols
