	.file	"extr_raid10.c_r10buf_pool_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	r10buf_pool_free, @function
r10buf_pool_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	je	.L6
	lea	edx, -1[rax]
	movsx	r12, eax
	xor	ebp, ebp
	movsx	rbx, edx
	mov	edx, edx
	sub	r12, rdx
	sal	rbx, 4
	sal	r12, 4
	sub	r12, 32
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 0[r13]
	add	rax, rbx
	mov	r15, QWORD PTR 8[rax]
	test	r15, r15
	je	.L3
	mov	rdi, r15
	call	get_resync_pages@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	resync_free_pages@PLT
	mov	rdi, r15
	call	bio_put@PLT
	mov	rax, QWORD PTR 0[r13]
	add	rax, rbx
.L3:
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L4
	call	bio_put@PLT
.L4:
	sub	rbx, 16
	cmp	r12, rbx
	jne	.L5
.L2:
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r14
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	rbio_pool_free@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	ebp, ebp
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	r10buf_pool_free, .-r10buf_pool_free
	.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_raid10.c_r10buf_pool_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r10buf_pool_free, %function
r10buf_pool_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r1]
	mov	r7, r1
	cmp	r6, #0
	mov	r8, r0
	beq	.L2
	sub	r4, r6, #1
	mov	r6, #0
.L5:
	ldr	r3, [r8]
	lsl	r9, r4, #3
	add	r3, r3, r4, lsl #3
	ldr	r5, [r3, #4]
	sub	r4, r4, #1
	cmp	r5, #0
	beq	.L3
	mov	r0, r5
	bl	get_resync_pages
	mov	r6, r0
	bl	resync_free_pages
	mov	r0, r5
	bl	bio_put
	ldr	r3, [r8]
	add	r3, r3, r9
.L3:
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L4
	bl	bio_put
.L4:
	cmn	r4, #1
	bne	.L5
.L2:
	mov	r0, r6
	bl	kfree
	mov	r1, r7
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	rbio_pool_free
	.size	r10buf_pool_free, .-r10buf_pool_free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
