	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildProcessRunningXacts   ## -- Begin function SnapBuildProcessRunningXacts
	.p2align	4, 0x90
_SnapBuildProcessRunningXacts:          ## @SnapBuildProcessRunningXacts
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_SNAPBUILD_CONSISTENT@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jge	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_SnapBuildFindSnapshot
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_SnapBuildSerialize
LBB0_3:
	movq	(%r15), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_SnapBuildPurgeCommittedTxn
	movq	24(%r12), %rdi
	callq	_ReorderBufferGetOldestXmin
	movq	%rax, %rbx
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movq	(%r15), %r8
	cmoveq	%r8, %rbx
	movq	_DEBUG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	movl	32(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %r9
	callq	_elog
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_LogicalIncreaseXminForSlot
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jl	LBB0_9
## %bb.4:
	movq	24(%r12), %rdi
	callq	_ReorderBufferGetOldestTXN
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rsi
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_9
	jmp	LBB0_6
LBB0_7:
	movq	24(%r12), %rcx
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	16(%r12), %rsi
	cmpq	%rax, %rsi
	jne	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LogicalIncreaseRestartDecodingForSlot ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNAPBUILD_CONSISTENT,8,3       ## @SNAPBUILD_CONSISTENT
	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_DEBUG3,4,2                     ## @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmin: %u, xmax: %u, oldest running: %u, oldest xmin: %u"

	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildProcessRunningXacts   ; -- Begin function SnapBuildProcessRunningXacts
	.p2align	2
_SnapBuildProcessRunningXacts:          ; @SnapBuildProcessRunningXacts
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _SNAPBUILD_CONSISTENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SNAPBUILD_CONSISTENT@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x2, x21
	bl	_SnapBuildFindSnapshot
	cbnz	w0, LBB0_3
	b	LBB0_8
LBB0_2:
	bl	_SnapBuildSerialize
LBB0_3:
	ldr	x8, [x21]
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_SnapBuildPurgeCommittedTxn
	ldr	x0, [x20, #24]
	bl	_ReorderBufferGetOldestXmin
Lloh2:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh3:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x4, [x21]
	cmp	x0, x8
	csel	x21, x4, x0, eq
Lloh5:
	adrp	x8, _DEBUG3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEBUG3@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x2, [x20, #8]
	ldr	w3, [x20, #32]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x5, x21
	bl	_elog
	mov	x0, x19
	mov	x1, x21
	bl	_LogicalIncreaseXminForSlot
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.4:
	ldr	x0, [x20, #24]
	bl	_ReorderBufferGetOldestTXN
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x1, [x0]
Lloh10:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_8
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20, #24]
	ldr	x9, [x8]
Lloh13:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.7:
	ldr	x1, [x20, #16]
	cmp	x1, x8
	b.ne	LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_LogicalIncreaseRestartDecodingForSlot
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SNAPBUILD_CONSISTENT,8,3       ; @SNAPBUILD_CONSISTENT
	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_DEBUG3,4,2                     ; @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmin: %u, xmax: %u, oldest running: %u, oldest xmin: %u"

	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
.subsections_via_symbols
