	.file	"extr_lock.c_FastPathTransferRelationLocks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	FastPathTransferRelationLocks, @function
FastPathTransferRelationLocks:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], edi
	mov	rdi, rdx
	mov	QWORD PTR 16[rsp], rdx
	call	LockHashPartitionLock@PLT
	mov	rdx, QWORD PTR ProcGlobal[rip]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rdx], 0
	mov	QWORD PTR [rsp], rax
	je	.L2
	xor	ebx, ebx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	add	rbx, 1
	call	LWLockRelease@PLT
	mov	rdx, QWORD PTR ProcGlobal[rip]
	cmp	QWORD PTR [rdx], rbx
	jbe	.L2
.L16:
	mov	rdx, QWORD PTR 8[rdx]
	lea	rax, [rbx+rbx*2]
	mov	esi, DWORD PTR LW_EXCLUSIVE[rip]
	lea	r14, [rdx+rax*8]
	lea	r13, 16[r14]
	mov	rdi, r13
	call	LWLockAcquire@PLT
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [r14], rax
	jne	.L10
	xor	r15d, r15d
	cmp	QWORD PTR FP_LOCK_SLOTS_PER_BACKEND[rip], 0
	jne	.L6
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	add	r15, 1
	cmp	QWORD PTR FP_LOCK_SLOTS_PER_BACKEND[rip], r15
	jbe	.L10
.L6:
	mov	rax, QWORD PTR 8[r14]
	mov	rcx, QWORD PTR [rsp]
	cmp	QWORD PTR [rax+r15*8], rcx
	jne	.L8
	mov	rsi, r15
	mov	rdi, r14
	call	FAST_PATH_GET_BITS@PLT
	test	rax, rax
	je	.L8
	mov	esi, DWORD PTR LW_EXCLUSIVE[rip]
	mov	rdi, QWORD PTR 24[rsp]
	call	LWLockAcquire@PLT
	mov	r12, QWORD PTR FAST_PATH_LOCKNUMBER_OFFSET[rip]
	mov	rax, QWORD PTR FAST_PATH_BITS_PER_SLOT[rip]
	add	rax, r12
	cmp	r12, rax
	jnb	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r14
	call	FAST_PATH_CHECK_LOCKMODE@PLT
	test	eax, eax
	je	.L12
	mov	rcx, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 12[rsp]
	mov	r8, r12
	mov	rdx, rbp
	mov	rsi, r14
	call	SetupLockInTable@PLT
	test	rax, rax
	je	.L30
	mov	edi, DWORD PTR [rax]
	mov	rdx, r12
	mov	rsi, rax
	call	GrantLock@PLT
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r14
	call	FAST_PATH_CLEAR_LOCKMODE@PLT
.L12:
	mov	rax, QWORD PTR FAST_PATH_BITS_PER_SLOT[rip]
	add	r12, 1
	add	rax, QWORD PTR FAST_PATH_LOCKNUMBER_OFFSET[rip]
	cmp	rax, r12
	ja	.L15
.L11:
	mov	rdi, QWORD PTR 24[rsp]
	call	LWLockRelease@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR 24[rsp]
	call	LWLockRelease@PLT
	mov	rdi, r13
	call	LWLockRelease@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	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
.L2:
	.cfi_restore_state
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	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
	.cfi_endproc
.LFE0:
	.size	FastPathTransferRelationLocks, .-FastPathTransferRelationLocks
	.comm	ProcGlobal,8,8
	.comm	LW_EXCLUSIVE,4,4
	.comm	FP_LOCK_SLOTS_PER_BACKEND,8,8
	.comm	FAST_PATH_LOCKNUMBER_OFFSET,8,8
	.comm	FAST_PATH_BITS_PER_SLOT,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_lock.c_FastPathTransferRelationLocks.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	FastPathTransferRelationLocks, %function
FastPathTransferRelationLocks:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r1
	sub	sp, sp, #36
	mov	r0, r2
	str	r2, [sp, #28]
	str	r3, [sp, #12]
	bl	LockHashPartitionLock
	ldr	r3, .L33
	ldr	r2, [r10]
	ldr	r3, [r3]
	str	r2, [sp, #20]
	ldr	r2, [r3]
	str	r0, [sp, #16]
	cmp	r2, #0
	beq	.L2
	mov	fp, #0
	ldr	r9, .L33+4
	ldr	r8, .L33+8
	ldr	r7, .L33+12
	b	.L16
.L10:
	ldr	r0, [sp, #8]
	bl	LWLockRelease
	ldr	r3, .L33
	add	fp, fp, #1
	ldr	r3, [r3]
	ldr	r2, [r3]
	cmp	r2, fp
	bls	.L2
.L16:
	ldr	r4, [r3, #4]
	add	r5, fp, fp, lsl #1
	ldr	r2, .L33+16
	add	r6, r4, r5, lsl #2
	add	r3, r6, #8
	mov	r0, r3
	ldr	r1, [r2]
	str	r3, [sp, #8]
	bl	LWLockAcquire
	ldr	r2, [r4, r5, lsl #2]
	ldr	r3, [r10, #4]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [r9]
	cmp	r3, #0
	movne	r5, #0
	ldrne	r4, [sp, #20]
	bne	.L6
	b	.L10
.L8:
	ldr	r3, [r9]
	add	r5, r5, #1
	cmp	r3, r5
	bls	.L10
.L6:
	ldr	r3, [r6, #4]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, r4
	bne	.L8
	mov	r1, r5
	mov	r0, r6
	bl	FAST_PATH_GET_BITS
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L33+16
	ldr	r0, [sp, #16]
	ldr	r1, [r3]
	bl	LWLockAcquire
	ldr	r4, [r8]
	ldr	r3, [r7]
	add	r3, r4, r3
	cmp	r4, r3
	bcs	.L11
	str	fp, [sp, #24]
	ldr	fp, [sp, #28]
.L15:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	bl	FAST_PATH_CHECK_LOCKMODE
	cmp	r0, #0
	beq	.L12
	mov	r1, r6
	mov	r3, fp
	mov	r2, r10
	ldr	r0, [sp, #12]
	str	r4, [sp]
	bl	SetupLockInTable
	subs	r1, r0, #0
	beq	.L32
	mov	r2, r4
	ldr	r0, [r1]
	bl	GrantLock
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	bl	FAST_PATH_CLEAR_LOCKMODE
.L12:
	ldr	r3, [r8]
	ldr	r2, [r7]
	add	r4, r4, #1
	add	r3, r3, r2
	cmp	r3, r4
	bhi	.L15
	ldr	fp, [sp, #24]
.L11:
	ldr	r0, [sp, #16]
	bl	LWLockRelease
	b	.L10
.L32:
	ldr	r0, [sp, #16]
	str	r1, [sp, #12]
	bl	LWLockRelease
	ldr	r0, [sp, #8]
	bl	LWLockRelease
	ldr	r1, [sp, #12]
	mov	r0, r1
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #1
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	.align	2
.L33:
	.word	ProcGlobal
	.word	FP_LOCK_SLOTS_PER_BACKEND
	.word	FAST_PATH_LOCKNUMBER_OFFSET
	.word	FAST_PATH_BITS_PER_SLOT
	.word	LW_EXCLUSIVE
	.size	FastPathTransferRelationLocks, .-FastPathTransferRelationLocks
	.comm	ProcGlobal,4,4
	.comm	LW_EXCLUSIVE,4,4
	.comm	FP_LOCK_SLOTS_PER_BACKEND,4,4
	.comm	FAST_PATH_LOCKNUMBER_OFFSET,4,4
	.comm	FAST_PATH_BITS_PER_SLOT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
