	.file	"extr_lock.c_GrantLockLocal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	GrantLockLocal, @function
GrantLockLocal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 4[rdi]
	cmp	DWORD PTR [rdi], eax
	mov	rbx, QWORD PTR 16[rdi]
	setl	dil
	movzx	edi, dil
	call	Assert@PLT
	mov	ecx, DWORD PTR [r12]
	add	DWORD PTR 8[r12], 1
	test	ecx, ecx
	jle	.L2
	mov	rax, rbx
	xor	edx, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	edx, 1
	add	rax, 16
	cmp	ecx, edx
	je	.L12
.L5:
	cmp	QWORD PTR 8[rax], rbp
	jne	.L3
	add	DWORD PTR [rax], 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movsx	rax, ecx
	sal	rax, 4
	add	rbx, rax
.L2:
	add	ecx, 1
	mov	QWORD PTR 8[rbx], rbp
	mov	DWORD PTR [rbx], 1
	mov	DWORD PTR [r12], ecx
	test	rbp, rbp
	je	.L1
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ResourceOwnerRememberLock@PLT
	.cfi_endproc
.LFE0:
	.size	GrantLockLocal, .-GrantLockLocal
	.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_GrantLockLocal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GrantLockLocal, %function
GrantLockLocal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	ldr	r3, [r5, #4]
	mov	r4, r1
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	ldr	r6, [r5, #12]
	bl	Assert
	ldr	r3, [r5, #8]
	ldr	r1, [r5]
	add	r3, r3, #1
	cmp	r1, #0
	str	r3, [r5, #8]
	ble	.L2
	mov	r3, r6
	mov	r2, #0
	b	.L5
.L3:
	cmp	r1, r2
	add	r3, r3, #8
	beq	.L12
.L5:
	ldr	ip, [r3, #4]
	add	r2, r2, #1
	cmp	ip, r4
	bne	.L3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	add	r6, r6, r1, lsl #3
.L2:
	mov	r3, #1
	cmp	r4, #0
	add	r1, r1, r3
	stm	r6, {r3, r4}
	str	r1, [r5]
	popeq	{r4, r5, r6, pc}
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ResourceOwnerRememberLock
	.size	GrantLockLocal, .-GrantLockLocal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
