	.file	"extr_ispstat.c_isp_stat_bufs_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: all buffers were freed.\n"
	.text
	.p2align 4
	.type	isp_stat_bufs_free, @function
isp_stat_bufs_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ISP_STAT_USES_DMAENGINE@PLT
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR 16[r12]
	mov	r13, QWORD PTR [rax]
.L2:
	mov	eax, DWORD PTR STAT_MAX_BUFS[rip]
	test	eax, eax
	je	.L3
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ebx, ebp
	sal	rbx, 5
	add	rbx, QWORD PTR 24[r12]
	cmp	QWORD PTR 8[rbx], 0
	je	.L4
	lea	rdi, 24[rbx]
	call	sg_free_table@PLT
	mov	rcx, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rdi, r13
	mov	esi, DWORD PTR 8[r12]
	call	dma_free_coherent@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	mov	DWORD PTR [rbx], 1
.L4:
	add	ebp, 1
	cmp	DWORD PTR STAT_MAX_BUFS[rip], ebp
	ja	.L5
.L3:
	mov	rax, QWORD PTR 16[r12]
	mov	edx, DWORD PTR 12[r12]
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR [rax]
	call	dev_dbg@PLT
	mov	QWORD PTR [r12], 0
	mov	DWORD PTR 8[r12], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	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	isp_stat_bufs_free, .-isp_stat_bufs_free
	.comm	STAT_MAX_BUFS,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_ispstat.c_isp_stat_bufs_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: all buffers were freed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isp_stat_bufs_free, %function
isp_stat_bufs_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	bl	ISP_STAT_USES_DMAENGINE
	cmp	r0, #0
	ldreq	r3, [r7, #12]
	ldr	r9, .L16
	ldreq	r10, [r3]
	ldr	r3, [r9]
	movne	r10, #0
	cmp	r3, #0
	beq	.L3
	mov	r5, #0
	mov	fp, #1
	mov	r8, r5
.L5:
	ldr	r6, [r7, #16]
	add	r4, r6, r5, lsl #4
	ldr	r3, [r4, #4]
	add	r0, r4, #12
	cmp	r3, #0
	beq	.L4
	bl	sg_free_table
	ldmib	r4, {r2, r3}
	mov	r0, r10
	ldr	r1, [r7, #4]
	bl	dma_free_coherent
	str	r8, [r4, #8]
	str	r8, [r4, #4]
	str	fp, [r6, r5, lsl #4]
.L4:
	ldr	r3, [r9]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L5
.L3:
	ldr	r3, [r7, #12]
	ldr	r2, [r7, #8]
	ldr	r0, [r3]
	ldr	r1, .L16+4
	bl	dev_dbg
	mov	r3, #0
	str	r3, [r7, #4]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	STAT_MAX_BUFS
	.word	.LC0
	.size	isp_stat_bufs_free, .-isp_stat_bufs_free
	.comm	STAT_MAX_BUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
