	.file	"extr_lock.c_VirtualXactLock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"out of shared memory"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"You might need to increase max_locks_per_transaction."
	.text
	.p2align 4
	.globl	VirtualXactLock
	.type	VirtualXactLock, @function
VirtualXactLock:
.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, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	VirtualTransactionIdIsValid@PLT
	mov	edi, eax
	call	Assert@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	rsi, rbx
	mov	rdx, r12
	call	SET_LOCKTAG_VIRTUALTRANSACTION@PLT
	mov	rdi, rbx
	call	BackendIdGetProc@PLT
	mov	rbp, rax
	mov	eax, 1
	test	rbp, rbp
	je	.L1
	lea	r14, 20[rbp]
	mov	esi, DWORD PTR LW_EXCLUSIVE[rip]
	mov	rdi, r14
	call	LWLockAcquire@PLT
	cmp	QWORD PTR 0[rbp], rbx
	jne	.L3
	cmp	QWORD PTR 8[rbp], r12
	jne	.L3
	test	r13d, r13d
	je	.L14
	mov	eax, DWORD PTR 16[rbp]
	lea	r12, 4[rsp]
	test	eax, eax
	jne	.L15
.L6:
	mov	rdi, r14
	call	LWLockRelease@PLT
	mov	esi, DWORD PTR ShareLock[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, r12
	call	LockAcquire@PLT
	mov	esi, DWORD PTR ShareLock[rip]
	xor	edx, edx
	mov	rdi, r12
	call	LockRelease@PLT
	mov	eax, 1
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L3:
	.cfi_restore_state
	mov	rdi, r14
	call	LWLockRelease@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r12
	call	LockTagHashCode@PLT
	mov	edi, eax
	mov	r15d, eax
	call	LockHashPartitionLock@PLT
	mov	esi, DWORD PTR LW_EXCLUSIVE[rip]
	mov	rdi, rax
	mov	r13, rax
	call	LWLockAcquire@PLT
	mov	rdx, QWORD PTR DEFAULT_LOCKMETHOD[rip]
	mov	ecx, r15d
	mov	rsi, rbp
	mov	rax, QWORD PTR LockMethods[rip]
	mov	r8d, DWORD PTR ExclusiveLock[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	rdx, r12
	call	SetupLockInTable@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L17
.L7:
	mov	edx, DWORD PTR ExclusiveLock[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbx
	call	GrantLock@PLT
	mov	rdi, r13
	call	LWLockRelease@PLT
	mov	DWORD PTR 16[rbp], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r14
	call	LWLockRelease@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	call	LWLockRelease@PLT
	mov	rdi, r14
	call	LWLockRelease@PLT
	mov	edi, DWORD PTR ERRCODE_OUT_OF_MEMORY[rip]
	call	errcode@PLT
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	lea	rdi, .LC1[rip]
	call	errhint@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	VirtualXactLock, .-VirtualXactLock
	.comm	ShareLock,4,4
	.comm	LockMethods,8,8
	.comm	LW_EXCLUSIVE,4,4
	.comm	ExclusiveLock,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_OUT_OF_MEMORY,4,4
	.comm	DEFAULT_LOCKMETHOD,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_VirtualXactLock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of shared memory\000"
	.align	2
.LC1:
	.ascii	"You might need to increase max_locks_per_transactio"
	.ascii	"n.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	VirtualXactLock
	.syntax unified
	.arm
	.fpu softvfp
	.type	VirtualXactLock, %function
VirtualXactLock:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #24
	add	r4, sp, #8
	stm	r4, {r0, r1}
	ldm	r4, {r0, r1}
	mov	r5, r0
	ldr	r3, .L18
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	VirtualTransactionIdIsValid
	bl	Assert
	ldm	r4, {r1, r2}
	ldr	r0, [sp, #16]
	bl	SET_LOCKTAG_VIRTUALTRANSACTION
	mov	r0, r5
	bl	BackendIdGetProc
	subs	r4, r0, #0
	moveq	r0, #1
	beq	.L1
	ldr	r8, .L18+4
	add	r6, r4, #12
	mov	r0, r6
	ldr	r1, [r8]
	bl	LWLockAcquire
	ldr	r3, [r4]
	cmp	r3, r5
	bne	.L3
	ldr	r2, [r4, #4]
	ldr	r3, [sp, #12]
	cmp	r2, r3
	bne	.L3
	cmp	r7, #0
	beq	.L15
	ldr	r3, [r4, #8]
	add	r5, sp, #16
	cmp	r3, #0
	bne	.L12
.L6:
	mov	r0, r6
	bl	LWLockRelease
	mov	r3, #0
	ldr	r4, .L18+8
	mov	r2, r3
	ldr	r1, [r4]
	mov	r0, r5
	bl	LockAcquire
	mov	r0, r5
	mov	r2, #0
	ldr	r1, [r4]
	bl	LockRelease
	mov	r0, #1
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r6
	bl	LWLockRelease
	mov	r0, #1
	b	.L1
.L12:
	mov	r0, r5
	bl	LockTagHashCode
	mov	r7, r0
	bl	LockHashPartitionLock
	ldr	r1, [r8]
	mov	r8, r0
	bl	LWLockAcquire
	ldr	r2, .L18+12
	ldr	r3, .L18+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r9, .L18+20
	ldr	r0, [r3, r2, lsl #2]
	ldr	r2, [r9]
	mov	r3, r7
	str	r2, [sp]
	mov	r1, r4
	mov	r2, r5
	bl	SetupLockInTable
	subs	r7, r0, #0
	beq	.L17
.L7:
	mov	r1, r7
	ldr	r2, [r9]
	ldr	r0, [r7]
	bl	GrantLock
	mov	r0, r8
	bl	LWLockRelease
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L6
.L15:
	mov	r0, r6
	bl	LWLockRelease
	mov	r0, r7
	b	.L1
.L17:
	mov	r0, r8
	bl	LWLockRelease
	mov	r0, r6
	bl	LWLockRelease
	ldr	r2, .L18+24
	ldr	r3, .L18+28
	ldr	r0, [r2]
	ldr	r10, [r3]
	bl	errcode
	ldr	r0, .L18+32
	bl	errmsg
	ldr	r0, .L18+36
	bl	errhint
	mov	r1, r0
	mov	r0, r10
	bl	ereport
	b	.L7
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	LW_EXCLUSIVE
	.word	ShareLock
	.word	DEFAULT_LOCKMETHOD
	.word	LockMethods
	.word	ExclusiveLock
	.word	ERRCODE_OUT_OF_MEMORY
	.word	ERROR
	.word	.LC0
	.word	.LC1
	.size	VirtualXactLock, .-VirtualXactLock
	.comm	ShareLock,4,4
	.comm	LockMethods,4,4
	.comm	LW_EXCLUSIVE,4,4
	.comm	ExclusiveLock,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_OUT_OF_MEMORY,4,4
	.comm	DEFAULT_LOCKMETHOD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
