	.file	"extr_cpci_hotplug_core.c_cpci_hp_unregister_controller.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cpci_hp_unregister_controller
	.type	cpci_hp_unregister_controller, @function
cpci_hp_unregister_controller:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR controller[rip]
	test	rax, rax
	je	.L2
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edx, DWORD PTR thread_finished[rip]
	test	edx, edx
	je	.L14
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	jne	.L15
.L4:
	mov	QWORD PTR controller[rip], 0
	xor	eax, eax
	call	cleanup_slots@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR [rax]
	call	free_irq@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
	call	cpci_stop_thread@PLT
	mov	rax, QWORD PTR controller[rip]
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L4
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_def_cfa_offset 8
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	cpci_hp_unregister_controller, .-cpci_hp_unregister_controller
	.comm	thread_finished,4,4
	.comm	controller,8,8
	.comm	ENODEV,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_cpci_hotplug_core.c_cpci_hp_unregister_controller.c"
	.text
	.align	2
	.global	cpci_hp_unregister_controller
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpci_hp_unregister_controller, %function
cpci_hp_unregister_controller:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L13
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	ldr	r2, .L13+4
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L11
	ldr	r0, [r3, #4]
	cmp	r0, #0
	bne	.L12
.L4:
	mov	r4, #0
	str	r4, [r5]
	bl	cleanup_slots
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r1, [r3]
	bl	free_irq
	b	.L4
.L11:
	bl	cpci_stop_thread
	ldr	r3, [r5]
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L4
	b	.L12
.L2:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	controller
	.word	thread_finished
	.word	ENODEV
	.size	cpci_hp_unregister_controller, .-cpci_hp_unregister_controller
	.comm	thread_finished,4,4
	.comm	controller,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
