	.file	"extr_pciehp_ctrl.c_remove_board.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	remove_board, @function
remove_board:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	pciehp_unconfigure_device@PLT
	mov	rdi, rbp
	call	POWER_CTRL@PLT
	test	rax, rax
	jne	.L8
.L2:
	mov	edx, DWORD PTR INDICATOR_NOOP[rip]
	mov	esi, DWORD PTR PCI_EXP_SLTCTL_PWR_IND_OFF[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	pciehp_set_indicators@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	pciehp_power_off_slot@PLT
	mov	edi, 1000
	call	msleep@PLT
	mov	edi, DWORD PTR PCI_EXP_SLTSTA_DLLSC[rip]
	mov	rsi, rbp
	or	edi, DWORD PTR PCI_EXP_SLTSTA_PDC[rip]
	not	edi
	call	atomic_and@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	remove_board, .-remove_board
	.comm	PCI_EXP_SLTSTA_PDC,4,4
	.comm	PCI_EXP_SLTSTA_DLLSC,4,4
	.comm	PCI_EXP_SLTCTL_PWR_IND_OFF,4,4
	.comm	INDICATOR_NOOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pciehp_ctrl.c_remove_board.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_board, %function
remove_board:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	pciehp_unconfigure_device
	mov	r0, r4
	bl	POWER_CTRL
	cmp	r0, #0
	bne	.L8
.L2:
	ldr	r2, .L9
	ldr	r3, .L9+4
	mov	r0, r4
	pop	{r4, lr}
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	pciehp_set_indicators
.L8:
	mov	r0, r4
	bl	pciehp_power_off_slot
	mov	r0, #1000
	bl	msleep
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	mov	r1, r4
	orr	r0, r0, r3
	mvn	r0, r0
	bl	atomic_and
	b	.L2
.L10:
	.align	2
.L9:
	.word	INDICATOR_NOOP
	.word	PCI_EXP_SLTCTL_PWR_IND_OFF
	.word	PCI_EXP_SLTSTA_DLLSC
	.word	PCI_EXP_SLTSTA_PDC
	.size	remove_board, .-remove_board
	.comm	PCI_EXP_SLTSTA_PDC,4,4
	.comm	PCI_EXP_SLTSTA_DLLSC,4,4
	.comm	PCI_EXP_SLTCTL_PWR_IND_OFF,4,4
	.comm	INDICATOR_NOOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
