	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestSafeDecodingTransactionId ## -- Begin function GetOldestSafeDecodingTransactionId
	.p2align	4, 0x90
_GetOldestSafeDecodingTransactionId:    ## @GetOldestSafeDecodingTransactionId
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_procArray@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r13
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	movl	%eax, %r14d
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockHeldByMe
	movl	%eax, %edi
	callq	_Assert
	movq	_XidGenLock@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), %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	20(%rax), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movl	20(%rax), %edi
	movl	%r12d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movl	20(%rax), %r12d
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	movl	%r12d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	16(%rax), %r12d
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_14:
	movq	_XidGenLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	movq	_allPgXact@GOTPCREL(%rip), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movslq	(%rax,%rbx,4), %rax
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_UINT32_ACCESS_ONCE
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_XidGenLock,4,2                 ## @XidGenLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_allPgXact,8,3                  ## @allPgXact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestSafeDecodingTransactionId ; -- Begin function GetOldestSafeDecodingTransactionId
	.p2align	2
_GetOldestSafeDecodingTransactionId:    ; @GetOldestSafeDecodingTransactionId
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
Lloh0:
	adrp	x24, _procArray@GOTPAGE
Lloh1:
	ldr	x24, [x24, _procArray@GOTPAGEOFF]
	ldr	x22, [x24]
	bl	_RecoveryInProgress
	mov	x20, x0
Lloh2:
	adrp	x8, _ProcArrayLock@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ProcArrayLock@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_LWLockHeldByMe
	bl	_Assert
Lloh5:
	adrp	x23, _XidGenLock@GOTPAGE
Lloh6:
	ldr	x23, [x23, _XidGenLock@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh7:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh10:
	adrp	x8, _ShmemVariableCache@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ShmemVariableCache@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_XidFromFullTransactionId
	mov	x19, x0
	ldr	x8, [x24]
	ldr	w0, [x8, #20]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x24]
	ldr	w0, [x8, #20]
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x24]
	ldr	w19, [x8, #20]
LBB0_3:
	cbz	w21, LBB0_7
; %bb.4:
	ldr	x8, [x24]
	ldr	w0, [x8, #16]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x24]
	ldr	w0, [x8, #16]
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x24]
	ldr	w19, [x8, #16]
LBB0_7:
	cbz	w20, LBB0_9
LBB0_8:
	ldr	w0, [x23]
	bl	_LWLockRelease
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:
	mov	x21, #0
Lloh13:
	adrp	x24, _allPgXact@GOTPAGE
Lloh14:
	ldr	x24, [x24, _allPgXact@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8, x21, lsl #2]
	ldr	x9, [x24]
	ldr	w0, [x9, x8, lsl #2]
	bl	_UINT32_ACCESS_ONCE
	mov	x20, x0
	bl	_TransactionIdIsNormal
	cbz	w0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cmp	x0, #0
	csel	w19, w19, w20, eq
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_XidGenLock,4,2                 ; @XidGenLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_allPgXact,8,3                  ; @allPgXact
.subsections_via_symbols
