	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestXmin                  ## -- Begin function GetOldestXmin
	.p2align	4, 0x90
_GetOldestXmin:                         ## @GetOldestXmin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	$1, %edi
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_3:
	callq	_Assert
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_ShmemVariableCache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_TransactionIdIsNormal
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_TransactionIdAdvance
	cmpl	$0, (%r13)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_17
## %bb.4:
	xorl	%r14d, %r14d
	movq	_allPgXact@GOTPCREL(%rip), %rsi
	movq	_PROCARRAY_PROC_FLAGS_MASK@GOTPCREL(%rip), %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	_allPgXact@GOTPCREL(%rip), %rsi
	movq	_PROCARRAY_PROC_FLAGS_MASK@GOTPCREL(%rip), %rdi
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movslq	(%rax,%r14,4), %rax
	movq	(%rsi), %r15
	leaq	(%rax,%rax,2), %r12
	movl	(%r15,%r12,4), %ecx
	andl	%edx, %ecx
	testl	%ecx, (%rdi)
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r15,%r12,4), %edi
	callq	_UINT32_ACCESS_ONCE
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r15,%r12,4), %edi
	callq	_UINT32_ACCESS_ONCE
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_allProcs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MyDatabaseId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
	jmp	LBB0_9
LBB0_17:
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %r15d
	movl	20(%rax), %r13d
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	xorl	%eax, %eax
	callq	_KnownAssignedXidsGetOldestXmin
	movl	%eax, %r14d
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movl	%r14d, %edi
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%r14d, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	cmovnel	%r14d, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_22
LBB0_20:
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_vacuum_defer_cleanup_age@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	subl	(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	_FirstNormalTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_22:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_PROCARRAY_SLOTS_XMIN@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_23
## %bb.26:
	testl	%eax, (%r14)
	jne	LBB0_31
	jmp	LBB0_27
LBB0_23:
	movl	%r13d, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	%r13d, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_NormalTransactionIdPrecedes
	testq	%rax, %rax
	cmovnel	%r13d, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_25:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r14)
	jne	LBB0_31
LBB0_27:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_RelationIsAccessibleInLogicalDecoding
	testq	%rax, %rax
	je	LBB0_31
LBB0_29:
	movl	%r15d, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movl	%r15d, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_NormalTransactionIdPrecedes
	testq	%rax, %rax
	cmovnel	%r15d, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_31:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_allProcs,8,3                   ## @allProcs
	.comm	_allPgXact,8,3                  ## @allPgXact
	.comm	_PROCARRAY_PROC_FLAGS_MASK,4,2  ## @PROCARRAY_PROC_FLAGS_MASK
	.comm	_MyDatabaseId,8,3               ## @MyDatabaseId
	.comm	_vacuum_defer_cleanup_age,8,3   ## @vacuum_defer_cleanup_age
	.comm	_FirstNormalTransactionId,4,2   ## @FirstNormalTransactionId
	.comm	_PROCARRAY_SLOTS_XMIN,4,2       ## @PROCARRAY_SLOTS_XMIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestXmin                  ; -- Begin function GetOldestXmin
	.p2align	2
_GetOldestXmin:                         ; @GetOldestXmin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
Lloh0:
	adrp	x8, _procArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	str	x0, [sp]                        ; 8-byte Folded Spill
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	bl	_RecoveryInProgress
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	cmp	x0, #0
	cset	w0, eq
LBB0_4:
	bl	_Assert
Lloh3:
	adrp	x8, _ProcArrayLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ProcArrayLock@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh9:
	adrp	x8, _ShmemVariableCache@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ShmemVariableCache@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w21, [x8]
	mov	x0, x21
	bl	_TransactionIdIsNormal
	bl	_Assert
	mov	x0, x21
	bl	_TransactionIdAdvance
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x27, #0
Lloh12:
	adrp	x23, _allPgXact@GOTPAGE
Lloh13:
	ldr	x23, [x23, _allPgXact@GOTPAGEOFF]
	mov	w26, #12
Lloh14:
	adrp	x19, _PROCARRAY_PROC_FLAGS_MASK@GOTPAGE
Lloh15:
	ldr	x19, [x19, _PROCARRAY_PROC_FLAGS_MASK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x24]
	cmp	x27, x8
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldrsw	x28, [x8, x27, lsl #2]
	ldr	x25, [x23]
	mul	x8, x28, x26
	ldr	w8, [x25, x8]
	ldr	w9, [x19]
	and	w8, w8, w20
	tst	w8, w9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh16:
	adrp	x8, _allProcs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _allProcs@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x8, [x8, x28, lsl #3]
Lloh19:
	adrp	x9, _MyDatabaseId@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MyDatabaseId@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	madd	x8, x28, x26, x25
	ldr	w0, [x8, #8]
	bl	_UINT32_ACCESS_ONCE
	mov	x22, x0
	bl	_TransactionIdIsNormal
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cmp	x0, #0
	csel	w21, w21, w22, eq
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	madd	x8, x28, x26, x25
	ldr	w0, [x8, #4]
	bl	_UINT32_ACCESS_ONCE
	mov	x22, x0
	bl	_TransactionIdIsNormal
	cbz	w0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cmp	x0, #0
	csel	w21, w21, w22, eq
	b	LBB0_6
LBB0_14:
Lloh22:
	adrp	x8, _procArray@GOTPAGE
Lloh23:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldp	w22, w23, [x8, #16]
	bl	_RecoveryInProgress
	cbz	x0, LBB0_17
; %bb.15:
	bl	_KnownAssignedXidsGetOldestXmin
	mov	x24, x0
Lloh25:
	adrp	x8, _ProcArrayLock@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ProcArrayLock@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_LWLockRelease
	mov	x0, x24
	bl	_TransactionIdIsNormal
	cbz	w0, LBB0_18
; %bb.16:
	mov	x0, x24
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cmp	x0, #0
	csel	w21, w21, w24, eq
	b	LBB0_18
LBB0_17:
Lloh28:
	adrp	x8, _ProcArrayLock@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ProcArrayLock@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_LWLockRelease
Lloh31:
	adrp	x8, _vacuum_defer_cleanup_age@GOTPAGE
Lloh32:
	ldr	x8, [x8, _vacuum_defer_cleanup_age@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	sub	w21, w21, w8
	mov	x0, x21
	bl	_TransactionIdIsNormal
Lloh34:
	adrp	x8, _FirstNormalTransactionId@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FirstNormalTransactionId@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w21, w8, w21, eq
LBB0_18:
Lloh37:
	adrp	x19, _PROCARRAY_SLOTS_XMIN@GOTPAGE
Lloh38:
	ldr	x19, [x19, _PROCARRAY_SLOTS_XMIN@GOTPAGEOFF]
	ldr	w8, [x19]
	tst	w8, w20
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x23
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x23
	mov	x1, x21
	bl	_NormalTransactionIdPrecedes
	cmp	x0, #0
	csel	w21, w21, w23, eq
LBB0_21:
	ldr	w8, [x19]
	tst	w8, w20
	b.ne	LBB0_26
; %bb.22:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	cbz	x0, LBB0_24
; %bb.23:
	bl	_RelationIsAccessibleInLogicalDecoding
	cbz	x0, LBB0_26
LBB0_24:
	mov	x0, x22
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_26
; %bb.25:
	mov	x0, x22
	mov	x1, x21
	bl	_NormalTransactionIdPrecedes
	cmp	x0, #0
	csel	w21, w21, w22, eq
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_allProcs,8,3                   ; @allProcs
	.comm	_allPgXact,8,3                  ; @allPgXact
	.comm	_PROCARRAY_PROC_FLAGS_MASK,4,2  ; @PROCARRAY_PROC_FLAGS_MASK
	.comm	_MyDatabaseId,8,3               ; @MyDatabaseId
	.comm	_vacuum_defer_cleanup_age,8,3   ; @vacuum_defer_cleanup_age
	.comm	_FirstNormalTransactionId,4,2   ; @FirstNormalTransactionId
	.comm	_PROCARRAY_SLOTS_XMIN,4,2       ; @PROCARRAY_SLOTS_XMIN
.subsections_via_symbols
