	.file	"extr_cdev.c_get_exclusive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d users for volume %d"
	.text
	.p2align 4
	.type	get_exclusive, @function
get_exclusive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR 16[rbx]
	call	spin_lock@PLT
	mov	ebp, DWORD PTR 4[rbx]
	add	ebp, DWORD PTR [rbx]
	xor	edi, edi
	add	ebp, DWORD PTR 8[rbx]
	test	ebp, ebp
	setg	dil
	call	ubi_assert@PLT
	cmp	ebp, 1
	jg	.L6
	mov	QWORD PTR [rbx], 0
	mov	eax, DWORD PTR UBI_EXCLUSIVE[rip]
	mov	DWORD PTR 8[rbx], 1
	mov	r13d, DWORD PTR [r12]
	mov	DWORD PTR [r12], eax
.L3:
	mov	rdi, QWORD PTR 16[rbx]
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	call	dbg_err@PLT
	mov	r13d, DWORD PTR EBUSY[rip]
	neg	r13d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	get_exclusive, .-get_exclusive
	.comm	UBI_EXCLUSIVE,4,4
	.comm	EBUSY,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_cdev.c_get_exclusive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d users for volume %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_exclusive, %function
get_exclusive:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #4]
	mov	r6, r0
	ldr	r0, [r4, #12]
	bl	spin_lock
	ldr	r5, [r4]
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #8]
	add	r5, r5, r3
	add	r5, r5, r1
	cmp	r5, #0
	movle	r0, #0
	movgt	r0, #1
	bl	ubi_assert
	cmp	r5, #1
	bgt	.L6
	mov	r3, #0
	mov	r1, #1
	ldr	r2, .L7
	ldr	r5, [r6]
	ldr	r2, [r2]
	str	r3, [r4, #4]
	str	r3, [r4]
	str	r1, [r4, #8]
	str	r2, [r6]
.L3:
	ldr	r0, [r4, #12]
	bl	spin_unlock
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	mov	r1, r5
	ldr	r2, [r4, #16]
	ldr	r0, .L7+4
	bl	dbg_err
	ldr	r3, .L7+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L8:
	.align	2
.L7:
	.word	UBI_EXCLUSIVE
	.word	.LC0
	.word	EBUSY
	.size	get_exclusive, .-get_exclusive
	.comm	UBI_EXCLUSIVE,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
