	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildCommitTxn             ## -- Begin function SnapBuildCommitTxn
	.p2align	4, 0x90
_SnapBuildCommitTxn:                    ## @SnapBuildCommitTxn
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_SNAPBUILD_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	%r8, %r13
	movl	%edx, %r15d
	movq	_SNAPBUILD_BUILDING_SNAPSHOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_SnapBuildNextPhaseAt
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	cmpq	%r14, 8(%rbx)
	jg	LBB0_27
## %bb.4:
	incq	%r14
	movq	%r14, 8(%rbx)
	jmp	LBB0_27
LBB0_5:
	movq	(%rbx), %rax
LBB0_6:
	movq	_SNAPBUILD_CONSISTENT@GOTPCREL(%rip), %rcx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	movl	$0, %edx
	cmpq	(%rcx), %rax
	jge	LBB0_10
## %bb.7:
	cmpq	%r14, 8(%rbx)
	jg	LBB0_9
## %bb.8:
	leaq	1(%r14), %rax
	movq	%rax, 8(%rbx)
LBB0_9:
	xorl	%edx, %edx
	cmpq	$0, 40(%rbx)
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	setne	%dl
LBB0_10:
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.11:
	movl	%r12d, %r14d
	xorl	%r15d, %r15d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r15,4), %r12d
	movl	24(%rbx), %edi
	movl	%r12d, %esi
	callq	_ReorderBufferXidHasCatalogChanges
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_elog
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_SnapBuildAddCommittedTxn
	movl	%r12d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_NormalTransactionIdFollows
	testq	%rax, %rax
	je	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_12
LBB0_18:
	movl	24(%rbx), %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_ReorderBufferXidHasCatalogChanges
	testq	%rax, %rax
	je	LBB0_28
## %bb.19:
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_elog
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_SnapBuildAddCommittedTxn
	movl	$1, %r12d
LBB0_20:
	movb	$1, %r14b
LBB0_21:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testl	%r12d, %r12d
	sete	%al
	orb	%r14b, %al
	movzbl	%al, %edi
	callq	_Assert
	testb	%r14b, %r14b
	je	LBB0_25
## %bb.22:
	movl	28(%rbx), %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	28(%rbx), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_TransactionIdFollowsOrEquals
	testq	%rax, %rax
	je	LBB0_25
LBB0_24:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, 28(%rbx)
	callq	_TransactionIdAdvance
LBB0_25:
	testl	%r12d, %r12d
	je	LBB0_27
## %bb.26:
	movq	(%rbx), %rax
	movq	_SNAPBUILD_FULL_SNAPSHOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_30
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	je	LBB0_35
## %bb.29:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_SnapBuildAddCommittedTxn
	movb	$1, %r14b
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_21
	jmp	LBB0_36
LBB0_30:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	callq	_SnapBuildSnapDecRefcount
LBB0_32:
	movq	%rbx, %rdi
	callq	_SnapBuildBuildSnapshot
	movq	%rax, 16(%rbx)
	movl	24(%rbx), %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_ReorderBufferXidHasBaseSnapshot
	testl	%eax, %eax
	jne	LBB0_34
## %bb.33:
	movq	16(%rbx), %rdi
	callq	_SnapBuildSnapIncRefcount
	movl	24(%rbx), %edi
	movq	16(%rbx), %rcx
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_ReorderBufferSetBaseSnapshot
LBB0_34:
	movq	16(%rbx), %rdi
	callq	_SnapBuildSnapIncRefcount
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SnapBuildDistributeNewCatalogSnapshot ## TAILCALL
LBB0_35:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_37
LBB0_36:
	movl	$0, 32(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_37:
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_elog
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_SnapBuildAddCommittedTxn
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_SNAPBUILD_START,8,3            ## @SNAPBUILD_START
	.comm	_SNAPBUILD_BUILDING_SNAPSHOT,8,3 ## @SNAPBUILD_BUILDING_SNAPSHOT
	.comm	_SNAPBUILD_CONSISTENT,8,3       ## @SNAPBUILD_CONSISTENT
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found subtransaction %u:%u with catalog changes"

	.comm	_DEBUG2,4,2                     ## @DEBUG2
L_.str.1:                               ## @.str.1
	.asciz	"found top level transaction %u, with catalog changes"

L_.str.2:                               ## @.str.2
	.asciz	"forced transaction %u to do timetravel"

	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ## @SNAPBUILD_FULL_SNAPSHOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildCommitTxn             ; -- Begin function SnapBuildCommitTxn
	.p2align	2
_SnapBuildCommitTxn:                    ; @SnapBuildCommitTxn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SNAPBUILD_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNAPBUILD_START@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
Lloh3:
	adrp	x9, _SNAPBUILD_BUILDING_SNAPSHOT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNAPBUILD_BUILDING_SNAPSHOT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_SnapBuildNextPhaseAt
	mov	x1, x0
	mov	x0, x21
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.gt	LBB0_19
; %bb.4:
	add	x8, x19, #1
	str	x8, [x20, #8]
	b	LBB0_19
LBB0_5:
	ldr	x8, [x20]
LBB0_6:
Lloh6:
	adrp	x9, _SNAPBUILD_CONSISTENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNAPBUILD_CONSISTENT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	b.ge	LBB0_20
; %bb.7:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.gt	LBB0_9
; %bb.8:
	add	x8, x19, #1
	str	x8, [x20, #8]
LBB0_9:
	ldr	x8, [x20, #40]
	cmp	x8, #0
	cset	w28, eq
	cset	w8, ne
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	cmp	w22, #1
	b.ge	LBB0_21
LBB0_10:
	mov	w26, #0
	mov	x22, x21
LBB0_11:
	ldr	w0, [x20, #24]
	mov	x1, x21
	bl	_ReorderBufferXidHasCatalogChanges
	cbz	x0, LBB0_27
; %bb.12:
Lloh9:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_elog
	mov	x0, x20
	mov	x1, x21
	bl	_SnapBuildAddCommittedTxn
	mov	w19, #1
	mov	w26, #1
LBB0_13:
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	cmp	w26, #0
	cset	w8, eq
	orr	w0, w19, w8
	bl	_Assert
	cbz	w19, LBB0_17
; %bb.14:
	ldr	w0, [x20, #28]
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_16
; %bb.15:
	ldr	w1, [x20, #28]
	mov	x0, x22
	bl	_TransactionIdFollowsOrEquals
	cbz	x0, LBB0_17
LBB0_16:
	str	w22, [x20, #28]
	mov	x0, x22
	bl	_TransactionIdAdvance
LBB0_17:
	cbz	w26, LBB0_19
; %bb.18:
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_30
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	mov	w28, #1
	cmp	w22, #1
	b.lt	LBB0_10
LBB0_21:
	mov	w26, #0
	mov	w27, w22
Lloh17:
	adrp	x19, _DEBUG1@GOTPAGE
Lloh18:
	ldr	x19, [x19, _DEBUG1@GOTPAGEOFF]
	mov	x22, x21
Lloh19:
	adrp	x24, l_.str@PAGE
Lloh20:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x19]
	str	x25, [sp]
	mov	x1, x24
	mov	x2, x21
	bl	_elog
	mov	w26, #1
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_SnapBuildAddCommittedTxn
	mov	x0, x25
	mov	x1, x22
	bl	_NormalTransactionIdFollows
	cmp	x0, #0
	csel	w22, w22, w25, eq
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x23, x23, #4
	subs	x27, x27, #1
	b.eq	LBB0_11
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x23]
	ldr	w0, [x20, #24]
	mov	x1, x25
	bl	_ReorderBufferXidHasCatalogChanges
	cbnz	x0, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	tbz	w28, #0, LBB0_23
	b	LBB0_24
LBB0_27:
	cbz	w26, LBB0_35
; %bb.28:
	mov	x0, x20
	mov	x1, x21
	bl	_SnapBuildAddCommittedTxn
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_36
; %bb.29:
	mov	w19, #1
	b	LBB0_13
LBB0_30:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_32
; %bb.31:
	bl	_SnapBuildSnapDecRefcount
LBB0_32:
	mov	x0, x20
	bl	_SnapBuildBuildSnapshot
	str	x0, [x20, #16]
	ldr	w0, [x20, #24]
	mov	x1, x21
	bl	_ReorderBufferXidHasBaseSnapshot
	cbnz	w0, LBB0_34
; %bb.33:
	ldr	x0, [x20, #16]
	bl	_SnapBuildSnapIncRefcount
	ldr	w0, [x20, #24]
	ldr	x3, [x20, #16]
	mov	x1, x21
	mov	x2, x23
	bl	_ReorderBufferSetBaseSnapshot
LBB0_34:
	ldr	x0, [x20, #16]
	bl	_SnapBuildSnapIncRefcount
	mov	x0, x20
	mov	x1, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_SnapBuildDistributeNewCatalogSnapshot
LBB0_35:
	tbz	w28, #0, LBB0_37
LBB0_36:
	mov	w19, #0
	str	wzr, [x20, #32]
	b	LBB0_13
LBB0_37:
Lloh21:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_elog
	mov	x0, x20
	mov	x1, x21
	bl	_SnapBuildAddCommittedTxn
	mov	w19, #1
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SNAPBUILD_START,8,3            ; @SNAPBUILD_START
	.comm	_SNAPBUILD_BUILDING_SNAPSHOT,8,3 ; @SNAPBUILD_BUILDING_SNAPSHOT
	.comm	_SNAPBUILD_CONSISTENT,8,3       ; @SNAPBUILD_CONSISTENT
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found subtransaction %u:%u with catalog changes"

	.comm	_DEBUG2,4,2                     ; @DEBUG2
l_.str.1:                               ; @.str.1
	.asciz	"found top level transaction %u, with catalog changes"

l_.str.2:                               ; @.str.2
	.asciz	"forced transaction %u to do timetravel"

	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ; @SNAPBUILD_FULL_SNAPSHOT
.subsections_via_symbols
