	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildProcessChange         ## -- Begin function SnapBuildProcessChange
	.p2align	4, 0x90
_SnapBuildProcessChange:                ## @SnapBuildProcessChange
	.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), %rax
	movq	_SNAPBUILD_FULL_SNAPSHOT@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_SNAPBUILD_CONSISTENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_SnapBuildNextPhaseAt
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	jne	LBB0_7
LBB0_3:
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	callq	_ReorderBufferXidHasBaseSnapshot
	movl	$1, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_SnapBuildBuildSnapshot
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_SnapBuildSnapIncRefcount
	movq	8(%rbx), %rdi
LBB0_6:
	callq	_SnapBuildSnapIncRefcount
	movl	16(%rbx), %edi
	movq	8(%rbx), %rcx
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_ReorderBufferSetBaseSnapshot
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ## @SNAPBUILD_FULL_SNAPSHOT
	.comm	_SNAPBUILD_CONSISTENT,8,3       ## @SNAPBUILD_CONSISTENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SnapBuildProcessChange         ; -- Begin function SnapBuildProcessChange
	.p2align	2
_SnapBuildProcessChange:                ; @SnapBuildProcessChange
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNAPBUILD_FULL_SNAPSHOT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh3:
	adrp	x9, _SNAPBUILD_CONSISTENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNAPBUILD_CONSISTENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_SnapBuildNextPhaseAt
	mov	x1, x0
	mov	x0, x20
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	ldr	w0, [x21, #16]
	mov	x1, x20
	bl	_ReorderBufferXidHasBaseSnapshot
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x0, [x21, #8]
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_SnapBuildBuildSnapshot
	str	x0, [x21, #8]
	bl	_SnapBuildSnapIncRefcount
	ldr	x0, [x21, #8]
LBB0_7:
	bl	_SnapBuildSnapIncRefcount
	ldr	w0, [x21, #16]
	ldr	x3, [x21, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_ReorderBufferSetBaseSnapshot
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SNAPBUILD_FULL_SNAPSHOT,8,3    ; @SNAPBUILD_FULL_SNAPSHOT
	.comm	_SNAPBUILD_CONSISTENT,8,3       ; @SNAPBUILD_CONSISTENT
.subsections_via_symbols
