	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SnapBuildPurgeCommittedTxn
_SnapBuildPurgeCommittedTxn:            ## @SnapBuildPurgeCommittedTxn
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	20(%rdi), %edi
	callq	_TransactionIdIsNormal
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	(%r12), %esi
	movl	24(%r12), %edi
	shll	$2, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %r14
	cmpl	$0, (%r12)
	jle	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	20(%r12), %esi
	callq	_NormalTransactionIdPrecedes
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	movslq	%r15d, %rcx
	incl	%r15d
	movl	%eax, (%r14,%rcx,4)
	jmp	LBB0_6
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
LBB0_7:
	movq	8(%r12), %rdi
	leal	(,%r15,4), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	_DEBUG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r12), %r8d
	movl	(%r12), %edx
	movl	16(%r12), %r9d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_elog
	movl	%r15d, (%r12)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG3,4,2                     ## @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"purged committed transactions from %u to %u, xmin: %u, xmax: %u"

	.no_dead_strip	_SnapBuildPurgeCommittedTxn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SnapBuildPurgeCommittedTxn
_SnapBuildPurgeCommittedTxn:            ; @SnapBuildPurgeCommittedTxn
	.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	x19, x0
	ldr	w0, [x0, #20]
	bl	_TransactionIdIsNormal
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x19, #24]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	bl	_MemoryContextAlloc
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	mov	w21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x19, #20]
	bl	_NormalTransactionIdPrecedes
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x22, lsl #2]
	str	w8, [x20, w21, sxtw #2]
	add	w21, w21, #1
	b	LBB0_3
LBB0_6:
	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_7:
	mov	w21, #0
LBB0_8:
	ldr	x0, [x19, #8]
	lsl	w2, w21, #2
	mov	x1, x20
	bl	_memcpy
Lloh0:
	adrp	x8, _DEBUG3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG3@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19]
	ldp	w5, w4, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_elog
	str	w21, [x19]
	mov	x0, x20
	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	_pfree
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG3,4,2                     ; @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"purged committed transactions from %u to %u, xmin: %u, xmax: %u"

	.no_dead_strip	_SnapBuildPurgeCommittedTxn
.subsections_via_symbols
