	.file	"extr_lock_dlm.c_set_recover_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_recover_size, @function
set_recover_size:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 32[rdi], 0
	je	.L18
.L2:
	test	r12d, r12d
	jle	.L9
	lea	eax, -1[r12]
	mov	rsi, rbx
	xor	edx, edx
	lea	rcx, 4[rbx+rax*4]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR [rsi]
	sub	eax, 1
	cmp	edx, eax
	cmovl	edx, eax
	add	rsi, 4
	cmp	rsi, rcx
	jne	.L5
.L4:
	mov	r12d, DWORD PTR 0[rbp]
	cmp	r12d, edx
	jg	.L10
	mov	eax, DWORD PTR RECOVER_SIZE_INC[rip]
	mov	ebx, r12d
	.p2align 4,,10
	.p2align 3
.L6:
	add	ebx, eax
	cmp	edx, ebx
	jge	.L6
	xor	r15d, r15d
	cmp	r12d, ebx
	je	.L1
	mov	edx, DWORD PTR GFP_NOFS[rip]
	mov	esi, 4
	mov	edi, ebx
	call	kcalloc@PLT
	mov	edx, DWORD PTR GFP_NOFS[rip]
	mov	esi, 4
	mov	edi, ebx
	mov	r13, rax
	call	kcalloc@PLT
	mov	r14, rax
	test	r13, r13
	je	.L12
	test	rax, rax
	je	.L12
	lea	r8, 24[rbp]
	sal	r12d, 2
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	call	spin_lock@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, r12d
	mov	rdi, r13
	call	memcpy@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edx, r12d
	mov	rdi, r14
	call	memcpy@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	kfree@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rbp], r13
	mov	QWORD PTR 16[rbp], r14
	mov	DWORD PTR 0[rbp], ebx
	mov	rdi, r8
	call	spin_unlock@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, DWORD PTR GDLM_LVB_SIZE[rip]
	call	kzalloc@PLT
	mov	QWORD PTR 32[rbp], rax
	test	rax, rax
	jne	.L2
	mov	r15d, DWORD PTR ENOMEM[rip]
	neg	r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r13
	call	kfree@PLT
	mov	rdi, r14
	call	kfree@PLT
	mov	r15d, DWORD PTR ENOMEM[rip]
	neg	r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	edx, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r15d, r15d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	set_recover_size, .-set_recover_size
	.comm	RECOVER_SIZE_INC,8,8
	.comm	GFP_NOFS,4,4
	.comm	GDLM_LVB_SIZE,4,4
	.comm	ENOMEM,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_lock_dlm.c_set_recover_size.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_recover_size, %function
set_recover_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	mov	r5, r0
	mov	r4, r1
	mov	r6, r2
	beq	.L16
.L2:
	cmp	r6, #0
	mov	ip, #0
	ble	.L4
	sub	r1, r4, #4
	add	r2, r1, r6, lsl #2
.L5:
	ldr	r3, [r1, #4]!
	sub	r3, r3, #1
	cmp	ip, r3
	movlt	ip, r3
	cmp	r1, r2
	bne	.L5
.L4:
	ldr	r7, [r5]
	cmp	r7, ip
	bgt	.L10
	mov	r4, r7
	ldr	r3, .L18
	ldr	r3, [r3]
.L6:
	add	r4, r4, r3
	cmp	r4, ip
	ble	.L6
	cmp	r7, r4
	beq	.L10
	ldr	r6, .L18+4
	mov	r1, #4
	ldr	r2, [r6]
	mov	r0, r4
	bl	kcalloc
	ldr	r2, [r6]
	mov	r8, r0
	mov	r1, #4
	mov	r0, r4
	bl	kcalloc
	clz	r3, r0
	cmp	r8, #0
	lsr	r3, r3, #5
	movne	r6, r3
	moveq	r6, #1
	cmp	r6, #0
	mov	r9, r0
	bne	.L17
	add	r10, r5, #12
	lsl	r7, r7, #2
	mov	r0, r10
	bl	spin_lock
	mov	r2, r7
	ldr	r1, [r5, #4]
	mov	r0, r8
	bl	memcpy
	mov	r2, r7
	ldr	r1, [r5, #8]
	mov	r0, r9
	bl	memcpy
	ldr	r0, [r5, #4]
	bl	kfree
	ldr	r0, [r5, #8]
	bl	kfree
	mov	r0, r10
	stm	r5, {r4, r8, r9}
	bl	spin_unlock
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r2, .L18+4
	ldr	r3, .L18+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r5, #16]
	bne	.L2
.L14:
	ldr	r3, .L18+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r0, r8
	bl	kfree
	mov	r0, r9
	bl	kfree
	b	.L14
.L19:
	.align	2
.L18:
	.word	RECOVER_SIZE_INC
	.word	GFP_NOFS
	.word	GDLM_LVB_SIZE
	.word	ENOMEM
	.size	set_recover_size, .-set_recover_size
	.comm	RECOVER_SIZE_INC,4,4
	.comm	GFP_NOFS,4,4
	.comm	GDLM_LVB_SIZE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
