	.file	"extr_procarray.c_GetOldestXmin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	GetOldestXmin
	.type	GetOldestXmin, @function
GetOldestXmin:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR procArray[rip]
	mov	QWORD PTR 8[rsp], rdi
	test	rdi, rdi
	je	.L16
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR 4[rsp], 1
	mov	edi, 1
	cmp	QWORD PTR [rax], 0
	je	.L46
.L2:
	call	Assert@PLT
	mov	esi, DWORD PTR LW_SHARED[rip]
	mov	edi, DWORD PTR ProcArrayLock[rip]
	call	LWLockAcquire@PLT
	mov	rax, QWORD PTR ShmemVariableCache[rip]
	mov	r12d, DWORD PTR [rax]
	mov	edi, r12d
	call	TransactionIdIsNormal@PLT
	mov	edi, eax
	call	Assert@PLT
	mov	edi, r12d
	call	TransactionIdAdvance@PLT
	mov	ecx, DWORD PTR [r14]
	test	ecx, ecx
	jle	.L3
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 4[r15]
	call	UINT32_ACCESS_ONCE@PLT
	mov	edi, eax
	mov	r15d, eax
	call	TransactionIdIsNormal@PLT
	test	eax, eax
	jne	.L47
.L4:
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jle	.L3
.L8:
	mov	rax, QWORD PTR 8[r14]
	mov	rdx, QWORD PTR allPgXact[rip]
	movsx	rax, DWORD PTR [rax+rbx*4]
	lea	rsi, [rax+rax*2]
	lea	r15, [rdx+rsi*4]
	mov	edx, DWORD PTR PROCARRAY_PROC_FLAGS_MASK[rip]
	and	edx, ebp
	test	DWORD PTR [r15], edx
	jne	.L4
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	jne	.L5
	mov	rdx, QWORD PTR allProcs[rip]
	mov	rax, QWORD PTR [rdx+rax*8]
	cmp	QWORD PTR MyDatabaseId[rip], rax
	je	.L5
	test	rax, rax
	jne	.L4
.L5:
	mov	edi, DWORD PTR 8[r15]
	call	UINT32_ACCESS_ONCE@PLT
	mov	edi, eax
	mov	r13d, eax
	call	TransactionIdIsNormal@PLT
	test	eax, eax
	je	.L7
	mov	esi, r12d
	mov	edi, r13d
	call	TransactionIdPrecedes@PLT
	test	rax, rax
	cmovne	r12d, r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, r12d
	mov	edi, r15d
	call	TransactionIdPrecedes@PLT
	test	rax, rax
	cmovne	r12d, r15d
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR procArray[rip]
	mov	r13d, DWORD PTR 20[rax]
	mov	r15d, DWORD PTR 16[rax]
	xor	eax, eax
	call	RecoveryInProgress@PLT
	test	rax, rax
	je	.L9
	xor	eax, eax
	call	KnownAssignedXidsGetOldestXmin@PLT
	mov	edi, DWORD PTR ProcArrayLock[rip]
	mov	ebx, eax
	call	LWLockRelease@PLT
	mov	edi, ebx
	call	TransactionIdIsNormal@PLT
	test	eax, eax
	jne	.L48
.L10:
	test	DWORD PTR PROCARRAY_SLOTS_XMIN[rip], ebp
	je	.L49
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L46:
	.cfi_restore_state
	xor	eax, eax
	call	RecoveryInProgress@PLT
	xor	edi, edi
	mov	DWORD PTR 4[rsp], 0
	test	rax, rax
	sete	dil
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR ProcArrayLock[rip]
	call	LWLockRelease@PLT
	sub	r12d, DWORD PTR vacuum_defer_cleanup_age[rip]
	mov	edi, r12d
	call	TransactionIdIsNormal@PLT
	test	eax, eax
	cmove	r12d, DWORD PTR FirstNormalTransactionId[rip]
	test	DWORD PTR PROCARRAY_SLOTS_XMIN[rip], ebp
	jne	.L1
.L49:
	mov	edi, r13d
	call	TransactionIdIsValid@PLT
	test	rax, rax
	jne	.L50
.L12:
	test	DWORD PTR PROCARRAY_SLOTS_XMIN[rip], ebp
	jne	.L1
	cmp	QWORD PTR 8[rsp], 0
	je	.L15
	mov	rdi, QWORD PTR 8[rsp]
	call	RelationIsAccessibleInLogicalDecoding@PLT
	test	rax, rax
	je	.L1
.L15:
	mov	edi, r15d
	call	TransactionIdIsValid@PLT
	test	rax, rax
	je	.L1
	mov	esi, r12d
	mov	edi, r15d
	call	NormalTransactionIdPrecedes@PLT
	test	rax, rax
	cmovne	r12d, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	DWORD PTR 4[rsp], 1
	mov	edi, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L48:
	mov	esi, r12d
	mov	edi, ebx
	call	TransactionIdPrecedes@PLT
	test	rax, rax
	cmovne	r12d, ebx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L50:
	mov	esi, r12d
	mov	edi, r13d
	call	NormalTransactionIdPrecedes@PLT
	test	rax, rax
	cmovne	r12d, r13d
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	GetOldestXmin, .-GetOldestXmin
	.comm	vacuum_defer_cleanup_age,8,8
	.comm	procArray,8,8
	.comm	allProcs,8,8
	.comm	allPgXact,8,8
	.comm	ShmemVariableCache,8,8
	.comm	ProcArrayLock,4,4
	.comm	PROCARRAY_SLOTS_XMIN,4,4
	.comm	PROCARRAY_PROC_FLAGS_MASK,4,4
	.comm	MyDatabaseId,8,8
	.comm	LW_SHARED,4,4
	.comm	InvalidTransactionId,4,4
	.comm	FirstNormalTransactionId,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_procarray.c_GetOldestXmin.c"
	.text
	.align	2
	.global	GetOldestXmin
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetOldestXmin, %function
GetOldestXmin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L51
	sub	sp, sp, #12
	subs	r3, r0, #0
	mov	r7, r1
	ldr	r5, [r2]
	str	r3, [sp, #4]
	beq	.L16
	ldr	r3, [r3]
	ldr	r10, [r3]
	cmp	r10, #0
	beq	.L47
.L16:
	mov	r10, #1
	mov	r0, r10
.L2:
	bl	Assert
	ldr	r2, .L51+4
	ldr	r3, .L51+8
	ldr	r0, [r2]
	ldr	r1, [r3]
	bl	LWLockAcquire
	ldr	r3, .L51+12
	ldr	r3, [r3]
	ldr	r6, [r3]
	mov	r0, r6
	bl	TransactionIdIsNormal
	bl	Assert
	mov	r0, r6
	bl	TransactionIdAdvance
	ldr	ip, [r5]
	cmp	ip, #0
	ble	.L3
	mov	fp, #0
	ldr	r9, .L51+16
	ldr	r8, .L51+20
	str	r10, [sp]
	b	.L7
.L6:
	ldr	r0, [r10, #4]
	bl	UINT32_ACCESS_ONCE
	mov	r4, r0
	bl	TransactionIdIsNormal
	cmp	r0, #0
	bne	.L42
.L45:
	ldr	ip, [r5]
.L4:
	add	fp, fp, #1
	cmp	ip, fp
	ble	.L3
.L7:
	ldr	r3, [r5, #4]
	ldr	r1, [r9]
	ldr	r2, [r3, fp, lsl #2]
	ldr	r3, [r8]
	add	r0, r2, r2, lsl #1
	ldr	lr, [r1, r0, lsl #2]
	and	r3, r3, r7
	tst	r3, lr
	add	r10, r1, r0, lsl #2
	bne	.L4
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L51+24
	ldr	r0, [r3]
	ldr	r3, .L51+28
	ldr	r2, [r0, r2, lsl #2]
	ldr	r1, [r3]
	cmp	r2, #0
	cmpne	r1, r2
	bne	.L4
.L5:
	ldr	r0, [r10, #8]
	bl	UINT32_ACCESS_ONCE
	mov	r4, r0
	bl	TransactionIdIsNormal
	cmp	r0, #0
	beq	.L6
	mov	r1, r6
	mov	r0, r4
	bl	TransactionIdPrecedes
	cmp	r0, #0
	movne	r6, r4
	b	.L6
.L42:
	mov	r1, r6
	mov	r0, r4
	bl	TransactionIdPrecedes
	cmp	r0, #0
	movne	r6, r4
	b	.L45
.L3:
	ldr	r3, .L51
	ldr	r3, [r3]
	ldr	r5, [r3, #12]
	ldr	r8, [r3, #8]
	bl	RecoveryInProgress
	cmp	r0, #0
	beq	.L8
	bl	KnownAssignedXidsGetOldestXmin
	mov	r4, r0
	ldr	r3, .L51+4
	ldr	r0, [r3]
	bl	LWLockRelease
	mov	r0, r4
	bl	TransactionIdIsNormal
	cmp	r0, #0
	bne	.L48
.L9:
	ldr	r4, .L51+32
	ldr	r3, [r4]
	tst	r7, r3
	beq	.L49
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	bl	RecoveryInProgress
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L2
.L8:
	ldr	r3, .L51+4
	ldr	r4, .L51+32
	ldr	r0, [r3]
	bl	LWLockRelease
	ldr	r3, .L51+36
	ldr	r3, [r3]
	sub	r6, r6, r3
	mov	r0, r6
	bl	TransactionIdIsNormal
	cmp	r0, #0
	ldreq	r3, .L51+40
	ldreq	r6, [r3]
	ldr	r3, [r4]
	tst	r7, r3
	bne	.L1
.L49:
	mov	r0, r5
	bl	TransactionIdIsValid
	cmp	r0, #0
	bne	.L50
.L11:
	ldr	r3, [r4]
	tst	r7, r3
	bne	.L1
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L14
	ldr	r0, [sp, #4]
	bl	RelationIsAccessibleInLogicalDecoding
	cmp	r0, #0
	beq	.L1
.L14:
	mov	r0, r8
	bl	TransactionIdIsValid
	cmp	r0, #0
	beq	.L1
	mov	r1, r6
	mov	r0, r8
	bl	NormalTransactionIdPrecedes
	cmp	r0, #0
	movne	r6, r8
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L48:
	mov	r1, r6
	mov	r0, r4
	bl	TransactionIdPrecedes
	cmp	r0, #0
	movne	r6, r4
	b	.L9
.L50:
	mov	r1, r6
	mov	r0, r5
	bl	NormalTransactionIdPrecedes
	cmp	r0, #0
	movne	r6, r5
	b	.L11
.L52:
	.align	2
.L51:
	.word	procArray
	.word	ProcArrayLock
	.word	LW_SHARED
	.word	ShmemVariableCache
	.word	allPgXact
	.word	PROCARRAY_PROC_FLAGS_MASK
	.word	allProcs
	.word	MyDatabaseId
	.word	PROCARRAY_SLOTS_XMIN
	.word	vacuum_defer_cleanup_age
	.word	FirstNormalTransactionId
	.size	GetOldestXmin, .-GetOldestXmin
	.comm	vacuum_defer_cleanup_age,4,4
	.comm	procArray,4,4
	.comm	allProcs,4,4
	.comm	allPgXact,4,4
	.comm	ShmemVariableCache,4,4
	.comm	ProcArrayLock,4,4
	.comm	PROCARRAY_SLOTS_XMIN,4,4
	.comm	PROCARRAY_PROC_FLAGS_MASK,4,4
	.comm	MyDatabaseId,4,4
	.comm	LW_SHARED,4,4
	.comm	InvalidTransactionId,4,4
	.comm	FirstNormalTransactionId,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
