	.file	"extr_dlmrecovery.c_dlm_add_lock_to_array.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dlm_add_lock_to_array, @function
dlm_add_lock_to_array:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rsi, DWORD PTR [rsi]
	mov	rbx, rdi
	lea	rcx, 0[0+rsi*8]
	mov	rax, rsi
	sub	rcx, rsi
	mov	rsi, QWORD PTR 8[r12]
	lea	rbp, [rsi+rcx*4]
	mov	ecx, DWORD PTR 16[rdi]
	mov	DWORD PTR 24[rbp], ecx
	mov	ecx, DWORD PTR 12[rdi]
	mov	DWORD PTR 20[rbp], ecx
	mov	ecx, DWORD PTR 8[rdi]
	mov	DWORD PTR 16[rbp], ecx
	mov	ecx, DWORD PTR 4[rdi]
	mov	DWORD PTR 0[rbp], edx
	mov	DWORD PTR 12[rbp], ecx
	mov	rcx, QWORD PTR 24[rdi]
	test	rcx, rcx
	je	.L2
	mov	eax, DWORD PTR [rcx]
	mov	rsi, r12
	mov	DWORD PTR 8[rbp], eax
	call	dlm_prepare_lvb_for_migration@PLT
	mov	eax, DWORD PTR [r12]
.L2:
	mov	edx, DWORD PTR [rbx]
	add	eax, 1
	cmp	DWORD PTR DLM_MAX_MIGRATABLE_LOCKS[rip], eax
	mov	DWORD PTR 4[rbp], edx
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	DWORD PTR [r12], eax
	sete	al
	pop	rbp
	.cfi_def_cfa_offset 16
	movzx	eax, al
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dlm_add_lock_to_array, .-dlm_add_lock_to_array
	.comm	DLM_MAX_MIGRATABLE_LOCKS,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_dlmrecovery.c_dlm_add_lock_to_array.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlm_add_lock_to_array, %function
dlm_add_lock_to_array:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r1, {r3, ip}
	ldr	r8, [r0, #16]
	rsb	lr, r3, r3, lsl #3
	add	r6, ip, lr, lsl #2
	ldr	r7, [r0, #20]
	str	r8, [r6, #24]
	ldr	r8, [r0, #8]
	ldr	r9, [r0, #12]
	str	r8, [r6, #16]
	ldr	r8, [r0, #4]
	cmp	r7, #0
	str	r9, [r6, #20]
	str	r8, [r6, #12]
	mov	r5, r1
	mov	r4, r0
	str	r2, [ip, lr, lsl #2]
	beq	.L2
	ldr	r3, [r7]
	str	r3, [r6, #8]
	bl	dlm_prepare_lvb_for_migration
	ldr	r3, [r5]
.L2:
	ldr	r1, .L8
	add	r3, r3, #1
	ldr	r0, [r1]
	ldr	r2, [r4]
	sub	r0, r0, r3
	clz	r0, r0
	str	r2, [r6, #4]
	lsr	r0, r0, #5
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	DLM_MAX_MIGRATABLE_LOCKS
	.size	dlm_add_lock_to_array, .-dlm_add_lock_to_array
	.comm	DLM_MAX_MIGRATABLE_LOCKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
