	.file	"extr_core.c_kp2000_pcie_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kp2000_pcie_remove, @function
kp2000_pcie_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	pci_get_drvdata@PLT
	test	rax, rax
	je	.L1
	lea	r13, 4[rax]
	mov	rbp, rax
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	kp2000_remove_cores@PLT
	mov	rdi, rbp
	call	PCARD_TO_DEV@PLT
	mov	edi, eax
	call	mfd_remove_devices@PLT
	mov	esi, DWORD PTR kp_attr_list[rip]
	mov	rdi, r12
	call	sysfs_remove_files@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	free_irq@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	pci_disable_msi@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L3
	call	iounmap@PLT
	mov	esi, DWORD PTR DMA_BAR[rip]
	mov	rdi, r12
	call	pci_release_region@PLT
	mov	QWORD PTR 24[rbp], 0
.L3:
	mov	rdi, QWORD PTR 16[rbp]
	test	rdi, rdi
	je	.L4
	call	iounmap@PLT
	mov	esi, DWORD PTR REG_BAR[rip]
	mov	rdi, r12
	call	pci_release_region@PLT
	mov	QWORD PTR 16[rbp], 0
.L4:
	mov	rdi, QWORD PTR 8[rbp]
	call	pci_disable_device@PLT
	xor	esi, esi
	mov	rdi, r12
	call	pci_set_drvdata@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, card_num_ida[rip]
	call	ida_simple_remove@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kp2000_pcie_remove, .-kp2000_pcie_remove
	.comm	kp_attr_list,4,4
	.comm	card_num_ida,4,4
	.comm	REG_BAR,4,4
	.comm	DMA_BAR,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_core.c_kp2000_pcie_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kp2000_pcie_remove, %function
kp2000_pcie_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	pci_get_drvdata
	subs	r4, r0, #0
	popeq	{r4, r5, r6, pc}
	add	r6, r4, #4
	mov	r0, r6
	bl	mutex_lock
	mov	r0, r4
	bl	kp2000_remove_cores
	mov	r0, r4
	bl	PCARD_TO_DEV
	bl	mfd_remove_devices
	ldr	r3, .L13
	mov	r0, r5
	ldr	r1, [r3]
	bl	sysfs_remove_files
	ldr	r3, [r4, #8]
	mov	r1, r4
	ldr	r0, [r3]
	bl	free_irq
	ldr	r0, [r4, #8]
	bl	pci_disable_msi
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L3
	bl	iounmap
	ldr	r3, .L13+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	pci_release_region
	mov	r3, #0
	str	r3, [r4, #16]
.L3:
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L4
	bl	iounmap
	ldr	r3, .L13+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	pci_release_region
	mov	r3, #0
	str	r3, [r4, #12]
.L4:
	ldr	r0, [r4, #8]
	bl	pci_disable_device
	mov	r1, #0
	mov	r0, r5
	bl	pci_set_drvdata
	mov	r0, r6
	bl	mutex_unlock
	ldr	r1, [r4]
	ldr	r0, .L13+12
	bl	ida_simple_remove
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	kfree
.L14:
	.align	2
.L13:
	.word	kp_attr_list
	.word	DMA_BAR
	.word	REG_BAR
	.word	card_num_ida
	.size	kp2000_pcie_remove, .-kp2000_pcie_remove
	.comm	kp_attr_list,4,4
	.comm	card_num_ida,4,4
	.comm	REG_BAR,4,4
	.comm	DMA_BAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
