	.file	"extr_dm-raid1.c_free_context.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	free_context, @function
free_context:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	edx, edx
	je	.L2
	lea	ebx, -1[rdx]
	mov	rbp, rsi
	sal	rbx, 2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+rbx]
	sub	rbx, 4
	call	dm_put_device@PLT
	cmp	rbx, -4
	jne	.L3
.L2:
	mov	edi, DWORD PTR 4[r12]
	call	dm_io_client_destroy@PLT
	mov	edi, DWORD PTR [r12]
	call	dm_region_hash_destroy@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.cfi_endproc
.LFE0:
	.size	free_context, .-free_context
	.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_dm-raid1.c_free_context.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_context, %function
free_context:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	beq	.L2
	mov	r6, r1
	sub	r4, r2, #1
.L3:
	ldr	r3, [r5, #8]
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	sub	r4, r4, #1
	bl	dm_put_device
	cmn	r4, #1
	bne	.L3
.L2:
	ldr	r0, [r5, #4]
	bl	dm_io_client_destroy
	ldr	r0, [r5]
	bl	dm_region_hash_destroy
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	kfree
	.size	free_context, .-free_context
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
