	.file	"extr_dlmrecovery.c_dlm_get_next_mig_cookie.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dlm_get_next_mig_cookie, @function
dlm_get_next_mig_cookie:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, dlm_mig_cookie_lock[rip]
	call	spin_lock@PLT
	mov	r12, QWORD PTR dlm_mig_cookie[rip]
	mov	edx, 1
	lea	rdi, dlm_mig_cookie_lock[rip]
	cmp	r12, -1
	lea	rax, 1[r12]
	cmove	rax, rdx
	mov	QWORD PTR dlm_mig_cookie[rip], rax
	call	spin_unlock@PLT
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dlm_get_next_mig_cookie, .-dlm_get_next_mig_cookie
	.comm	dlm_mig_cookie_lock,4,4
	.comm	dlm_mig_cookie,8,8
	.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_get_next_mig_cookie.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlm_get_next_mig_cookie, %function
dlm_get_next_mig_cookie:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, .L6
	bl	spin_lock
	mvn	r1, #0
	mvn	r0, #0
	ldr	r3, .L6+4
	ldmia	r3, {r4-r5}
	cmp	r5, r1
	cmpeq	r4, r0
	beq	.L3
	adds	r1, r4, #1
	adc	r2, r5, #0
.L2:
	ldr	r0, .L6
	stm	r3, {r1, r2}
	bl	spin_unlock
	mov	r0, r4
	mov	r1, r5
	pop	{r4, r5, r6, pc}
.L3:
	mov	r1, #1
	mov	r2, #0
	b	.L2
.L7:
	.align	2
.L6:
	.word	dlm_mig_cookie_lock
	.word	dlm_mig_cookie
	.size	dlm_get_next_mig_cookie, .-dlm_get_next_mig_cookie
	.comm	dlm_mig_cookie_lock,4,4
	.comm	dlm_mig_cookie,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
