	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	___pciehp_enable_slot
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ATTN_BUTTN
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INDICATOR_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pciehp_set_indicators
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	callq	_pm_runtime_put
	movq	%rbx, %rdi
	callq	_mutex_lock
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.5:
	movq	_ON_STATE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_OFF_STATE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_SLTCTL_PWR_IND_OFF,4,2 ## @PCI_EXP_SLTCTL_PWR_IND_OFF
	.comm	_INDICATOR_NOOP,4,2             ## @INDICATOR_NOOP
	.comm	_OFF_STATE,4,2                  ## @OFF_STATE
	.comm	_ON_STATE,4,2                   ## @ON_STATE
	.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	___pciehp_enable_slot
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ATTN_BUTTN
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _INDICATOR_NOOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDICATOR_NOOP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pciehp_set_indicators
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_pm_runtime_put
	mov	x0, x19
	bl	_mutex_lock
Lloh6:
	adrp	x8, _OFF_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OFF_STATE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ON_STATE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ON_STATE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_SLTCTL_PWR_IND_OFF,4,2 ; @PCI_EXP_SLTCTL_PWR_IND_OFF
	.comm	_INDICATOR_NOOP,4,2             ; @INDICATOR_NOOP
	.comm	_OFF_STATE,4,2                  ; @OFF_STATE
	.comm	_ON_STATE,4,2                   ; @ON_STATE
	.no_dead_strip	_pciehp_enable_slot
.subsections_via_symbols
