	.file	"extr_procarray.c_BackendXidGetPid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BackendXidGetPid
	.type	BackendXidGetPid, @function
BackendXidGetPid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	cmp	QWORD PTR InvalidTransactionId[rip], rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	je	.L1
	mov	rbp, QWORD PTR procArray[rip]
	mov	esi, DWORD PTR LW_SHARED[rip]
	mov	rbx, rdi
	mov	edi, DWORD PTR ProcArrayLock[rip]
	call	LWLockAcquire@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jle	.L3
	mov	rax, QWORD PTR 8[rbp]
	sub	edx, 1
	mov	rcx, QWORD PTR allPgXact[rip]
	lea	rsi, 4[rax+rdx*4]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rax, 4
	cmp	rsi, rax
	je	.L11
.L5:
	movsx	rdx, DWORD PTR [rax]
	cmp	QWORD PTR [rcx+rdx*8], rbx
	jne	.L4
	mov	rax, QWORD PTR allProcs[rip]
	mov	r12d, DWORD PTR [rax+rdx*4]
.L3:
	mov	edi, DWORD PTR ProcArrayLock[rip]
	call	LWLockRelease@PLT
.L1:
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR ProcArrayLock[rip]
	xor	r12d, r12d
	call	LWLockRelease@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	BackendXidGetPid, .-BackendXidGetPid
	.comm	procArray,8,8
	.comm	allProcs,8,8
	.comm	allPgXact,8,8
	.comm	ProcArrayLock,4,4
	.comm	LW_SHARED,4,4
	.comm	InvalidTransactionId,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_procarray.c_BackendXidGetPid.c"
	.text
	.align	2
	.global	BackendXidGetPid
	.syntax unified
	.arm
	.fpu softvfp
	.type	BackendXidGetPid, %function
BackendXidGetPid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	cmp	r3, r0
	moveq	r4, #0
	beq	.L1
	ldr	r2, .L11+4
	ldr	r3, .L11+8
	ldr	r5, .L11+12
	ldr	r6, [r2]
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	LWLockAcquire
	ldr	r0, [r6]
	cmp	r0, #0
	ble	.L7
	ldr	r3, .L11+16
	ldr	r1, [r6, #4]
	mov	r2, #0
	ldr	lr, [r3]
	sub	r1, r1, #4
	b	.L5
.L4:
	cmp	r2, r0
	beq	.L7
.L5:
	ldr	r3, [r1, #4]!
	add	r2, r2, #1
	ldr	ip, [lr, r3, lsl #2]
	lsl	r3, r3, #2
	cmp	ip, r4
	bne	.L4
	ldr	r2, .L11+20
	ldr	r2, [r2]
	ldr	r4, [r2, r3]
.L3:
	ldr	r0, [r5]
	bl	LWLockRelease
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	mov	r4, #0
	b	.L3
.L12:
	.align	2
.L11:
	.word	InvalidTransactionId
	.word	procArray
	.word	LW_SHARED
	.word	ProcArrayLock
	.word	allPgXact
	.word	allProcs
	.size	BackendXidGetPid, .-BackendXidGetPid
	.comm	procArray,4,4
	.comm	allProcs,4,4
	.comm	allPgXact,4,4
	.comm	ProcArrayLock,4,4
	.comm	LW_SHARED,4,4
	.comm	InvalidTransactionId,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
