	.file	"extr_adf_drv.c_adf_cleanup_accel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adf_cleanup_accel, @function
adf_cleanup_accel:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR ADF_PCI_MAX_BARS[rip]
	test	eax, eax
	jg	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
	cmp	DWORD PTR ADF_PCI_MAX_BARS[rip], ebx
	jle	.L6
.L2:
	mov	rax, QWORD PTR 24[rbp]
	mov	rsi, QWORD PTR [rax+rbx*8]
	test	rsi, rsi
	je	.L5
	mov	rdi, QWORD PTR 16[rbp]
	add	rbx, 1
	call	pci_iounmap@PLT
	cmp	DWORD PTR ADF_PCI_MAX_BARS[rip], ebx
	jg	.L2
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L4
	mov	rax, QWORD PTR 16[rbp]
	cmp	DWORD PTR [rax], 128
	je	.L17
.L7:
	call	kfree@PLT
	mov	QWORD PTR 8[rbp], 0
.L4:
	mov	rdi, rbp
	call	adf_cfg_dev_remove@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	debugfs_remove@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	adf_devmgr_pci_to_accel_dev@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	rsi, rax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	adf_devmgr_rm_dev@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	call	adf_clean_hw_data_c3xxxiov@PLT
	mov	rdi, QWORD PTR 8[rbp]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	adf_cleanup_accel, .-adf_cleanup_accel
	.comm	ADF_PCI_MAX_BARS,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_adf_drv.c_adf_cleanup_accel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adf_cleanup_accel, %function
adf_cleanup_accel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L16
	mov	r5, r0
	ldr	r3, [r6]
	cmp	r3, #0
	movgt	r4, #0
	bgt	.L2
	b	.L6
.L5:
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L6
.L2:
	ldr	r3, [r5, #12]
	ldr	r1, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r1, #0
	beq	.L5
	ldr	r0, [r5, #8]
	bl	pci_iounmap
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L2
.L6:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	cmp	r3, #128
	beq	.L15
.L7:
	bl	kfree
	mov	r3, #0
	str	r3, [r5, #4]
.L4:
	mov	r0, r5
	bl	adf_cfg_dev_remove
	ldr	r0, [r5]
	bl	debugfs_remove
	ldr	r3, [r5, #8]
	ldr	r0, [r3, #4]
	bl	adf_devmgr_pci_to_accel_dev
	mov	r1, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	adf_devmgr_rm_dev
.L15:
	bl	adf_clean_hw_data_c3xxxiov
	ldr	r0, [r5, #4]
	b	.L7
.L17:
	.align	2
.L16:
	.word	ADF_PCI_MAX_BARS
	.size	adf_cleanup_accel, .-adf_cleanup_accel
	.comm	ADF_PCI_MAX_BARS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
