	.file	"extr_lock.c_dlm_user_deadlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dlm_user_deadlock
	.type	dlm_user_deadlock, @function
dlm_user_deadlock:
.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
	mov	r13d, esi
	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
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	dlm_lock_recovery@PLT
	mov	esi, r12d
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	call	find_lkb@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L2:
	mov	rdi, rbp
	call	dlm_unlock_recovery@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	lea	r15, 12[rsp]
	mov	edi, r13d
	mov	rdx, r15
	mov	rsi, QWORD PTR 16[rax]
	call	set_unlock_args@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR 16[rsp]
	mov	r14, QWORD PTR 8[rax]
	mov	rdi, r14
	call	hold_rsb@PLT
	mov	rdi, r14
	call	lock_rsb@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, r15
	call	validate_unlock_args@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L13
.L4:
	mov	rdi, r14
	call	unlock_rsb@PLT
	mov	rdi, r14
	call	put_rsb@PLT
	mov	eax, r13d
	add	eax, DWORD PTR DLM_ECANCEL[rip]
	mov	eax, 0
	cmove	r13d, eax
	mov	eax, r13d
	add	eax, DWORD PTR EBUSY[rip]
	cmovne	r12d, r13d
.L3:
	mov	rdi, QWORD PTR 16[rsp]
	call	dlm_put_lkb@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR DLM_IFL_DEADLOCK_CANCEL[rip]
	mov	rdi, r14
	or	DWORD PTR [rsi], eax
	call	_cancel_lock@PLT
	mov	r13d, eax
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dlm_user_deadlock, .-dlm_user_deadlock
	.comm	EBUSY,4,4
	.comm	DLM_IFL_DEADLOCK_CANCEL,4,4
	.comm	DLM_ECANCEL,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.c_dlm_user_deadlock.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dlm_user_deadlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlm_user_deadlock, %function
dlm_user_deadlock:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r2
	mov	r6, r0
	ldr	r3, .L13
	sub	sp, sp, #20
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	dlm_lock_recovery
	mov	r1, r4
	mov	r0, r6
	add	r2, sp, #4
	bl	find_lkb
	subs	r4, r0, #0
	beq	.L10
.L2:
	mov	r0, r6
	bl	dlm_unlock_recovery
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r3, [sp, #4]
	mov	r0, r5
	ldr	r1, [r3, #8]
	add	r2, sp, #8
	bl	set_unlock_args
	subs	r4, r0, #0
	bne	.L3
	ldr	r3, [sp, #4]
	ldr	r7, [r3, #4]
	mov	r0, r7
	bl	hold_rsb
	mov	r0, r7
	bl	lock_rsb
	ldr	r0, [sp, #4]
	add	r1, sp, #8
	bl	validate_unlock_args
	subs	r5, r0, #0
	beq	.L12
.L4:
	mov	r0, r7
	bl	unlock_rsb
	mov	r0, r7
	bl	put_rsb
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmn	r5, r2
	moveq	r5, #0
	cmn	r5, r3
	movne	r4, r5
.L3:
	ldr	r0, [sp, #4]
	bl	dlm_put_lkb
	b	.L2
.L12:
	ldr	r1, [sp, #4]
	ldr	r2, .L13+12
	ldr	r3, [r1]
	ldr	r2, [r2]
	mov	r0, r7
	orr	r3, r3, r2
	str	r3, [r1]
	bl	_cancel_lock
	mov	r5, r0
	b	.L4
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	DLM_ECANCEL
	.word	EBUSY
	.word	DLM_IFL_DEADLOCK_CANCEL
	.size	dlm_user_deadlock, .-dlm_user_deadlock
	.comm	EBUSY,4,4
	.comm	DLM_IFL_DEADLOCK_CANCEL,4,4
	.comm	DLM_ECANCEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
