	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestActiveTransactionId   ## -- Begin function GetOldestActiveTransactionId
	.p2align	4, 0x90
_GetOldestActiveTransactionId:          ## @GetOldestActiveTransactionId
	.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
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_XidGenLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_LWLockAcquire
	movq	_ShmemVariableCache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_LWLockRelease
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_LWLockAcquire
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_allPgXact@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movslq	(%rax,%rbx,4), %rax
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_UINT32_ACCESS_ONCE
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %r14d
	jmp	LBB0_5
LBB0_6:
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_XidGenLock,4,2                 ## @XidGenLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_allPgXact,8,3                  ## @allPgXact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetOldestActiveTransactionId   ; -- Begin function GetOldestActiveTransactionId
	.p2align	2
_GetOldestActiveTransactionId:          ; @GetOldestActiveTransactionId
	.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
Lloh0:
	adrp	x8, _procArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_RecoveryInProgress
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x20, _XidGenLock@GOTPAGE
Lloh4:
	ldr	x20, [x20, _XidGenLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x23, _LW_SHARED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _LW_SHARED@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_LWLockAcquire
Lloh7:
	adrp	x8, _ShmemVariableCache@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ShmemVariableCache@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_XidFromFullTransactionId
	mov	x19, x0
	ldr	w0, [x20]
	bl	_LWLockRelease
Lloh10:
	adrp	x22, _ProcArrayLock@GOTPAGE
Lloh11:
	ldr	x22, [x22, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_LWLockAcquire
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
Lloh12:
	adrp	x24, _allPgXact@GOTPAGE
Lloh13:
	ldr	x24, [x24, _allPgXact@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldrsw	x8, [x8, x23, lsl #2]
	ldr	x9, [x24]
	ldr	w0, [x9, x8, lsl #2]
	bl	_UINT32_ACCESS_ONCE
	mov	x20, x0
	bl	_TransactionIdIsNormal
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_TransactionIdPrecedes
	cmp	x0, #0
	csel	w19, w19, w20, eq
	b	LBB0_2
LBB0_5:
	ldr	w0, [x22]
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_XidGenLock,4,2                 ; @XidGenLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_allPgXact,8,3                  ; @allPgXact
.subsections_via_symbols
