	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_board
_remove_board:                          ## @remove_board
	.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
	callq	_pciehp_unconfigure_device
	movq	%rbx, %rdi
	callq	_POWER_CTRL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pciehp_power_off_slot
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movq	_PCI_EXP_SLTSTA_DLLSC@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_SLTSTA_PDC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	notl	%edi
	movq	%rbx, %rsi
	callq	_atomic_and
LBB0_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
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pciehp_set_indicators          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_SLTSTA_DLLSC,4,2       ## @PCI_EXP_SLTSTA_DLLSC
	.comm	_PCI_EXP_SLTSTA_PDC,4,2         ## @PCI_EXP_SLTSTA_PDC
	.comm	_PCI_EXP_SLTCTL_PWR_IND_OFF,4,2 ## @PCI_EXP_SLTCTL_PWR_IND_OFF
	.comm	_INDICATOR_NOOP,4,2             ## @INDICATOR_NOOP
	.no_dead_strip	_remove_board
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_board
_remove_board:                          ; @remove_board
	.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
	bl	_pciehp_unconfigure_device
	mov	x0, x19
	bl	_POWER_CTRL
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pciehp_power_off_slot
	mov	w0, #1000
	bl	_msleep
Lloh0:
	adrp	x8, _PCI_EXP_SLTSTA_DLLSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_SLTSTA_DLLSC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PCI_EXP_SLTSTA_PDC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_EXP_SLTSTA_PDC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mvn	w0, w8
	mov	x1, x19
	bl	_atomic_and
LBB0_2:
Lloh6:
	adrp	x8, _PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EXP_SLTCTL_PWR_IND_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _INDICATOR_NOOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INDICATOR_NOOP@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pciehp_set_indicators
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_SLTSTA_DLLSC,4,2       ; @PCI_EXP_SLTSTA_DLLSC
	.comm	_PCI_EXP_SLTSTA_PDC,4,2         ; @PCI_EXP_SLTSTA_PDC
	.comm	_PCI_EXP_SLTCTL_PWR_IND_OFF,4,2 ; @PCI_EXP_SLTCTL_PWR_IND_OFF
	.comm	_INDICATOR_NOOP,4,2             ; @INDICATOR_NOOP
	.no_dead_strip	_remove_board
.subsections_via_symbols
