	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FinishPreparedTransaction      ## -- Begin function FinishPreparedTransaction
	.p2align	4, 0x90
_FinishPreparedTransaction:             ## @FinishPreparedTransaction
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_LockGXact
	movq	_ProcGlobal@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	(%rax), %rcx
	movq	(%rsi), %rdx
	movl	(%rdx,%rcx,4), %ebx
	leaq	(,%rcx,4), %rcx
	addq	8(%rsi), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%rax)
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_ReadTwoPhaseFile
	movq	%rax, %r12
	movq	%rax, -56(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	24(%rax), %edi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_XlogReadTwoPhaseData
	movq	-56(%rbp), %r12
LBB0_3:
	movl	32(%r12), %edi
	movl	%ebx, %esi
	callq	_TransactionIdEquals
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r14
	movl	$40, %edi
	callq	_MAXALIGN
	movslq	%eax, %rbx
	addq	%r14, %rbx
	movl	(%r12), %edi
	callq	_MAXALIGN
	movslq	%eax, %r15
	addq	%rbx, %r15
	movl	4(%r12), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movl	8(%r12), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movslq	%eax, %r13
	addq	%rbx, %r13
	movl	12(%r12), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movslq	%eax, %r14
	addq	%r13, %r14
	movl	16(%r12), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_TransactionIdLatest
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_HOLD_INTERRUPTS
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	leaq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	movl	16(%r12), %r9d
	subq	$8, %rsp
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %r8
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	24(%r12)
	pushq	%r14
	callq	_RecordTransactionCommitPrepared
	addq	$32, %rsp
	jmp	LBB0_6
LBB0_5:
	leaq	12(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %esi
	movl	12(%r12), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rdx
	movq	%r13, %r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_RecordTransactionAbortPrepared
	movq	%r13, %rbx
LBB0_6:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_ProcArrayRemove
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	$0, 8(%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_DropRelationFiles
	cmpq	$0, 24(%r12)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_RelationCacheInitFilePreInvalidate
LBB0_8:
	movslq	-64(%rbp), %r15                 ## 4-byte Folded Reload
	movl	16(%r12), %esi
	movq	%r14, %rdi
	callq	_SendSharedInvalidMessages
	cmpq	$0, 24(%r12)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_RelationCacheInitFilePostInvalidate
LBB0_10:
	addq	%r15, %r14
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.12:
	movq	_twophase_postabort_callbacks@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_twophase_postcommit_callbacks@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_ProcessRecords
	movl	%r14d, %edi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PredicateLockTwoPhaseFinish
	movq	%r13, %rdi
	callq	_RemoveGXact
	movl	(%r15), %edi
	callq	_LWLockRelease
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_AtEOXact_PgStat
	cmpq	$0, 16(%r13)
	je	LBB0_15
## %bb.14:
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_RemoveTwoPhaseFile
LBB0_15:
	movq	_MyLockedGxact@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_RESUME_INTERRUPTS
	movq	-56(%rbp), %rdi
	callq	_pfree
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcGlobal,8,3                 ## @ProcGlobal
	.comm	_TwoPhaseStateLock,4,2          ## @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_twophase_postcommit_callbacks,4,2 ## @twophase_postcommit_callbacks
	.comm	_twophase_postabort_callbacks,4,2 ## @twophase_postabort_callbacks
	.comm	_MyLockedGxact,8,3              ## @MyLockedGxact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FinishPreparedTransaction      ; -- Begin function FinishPreparedTransaction
	.p2align	2
_FinishPreparedTransaction:             ; @FinishPreparedTransaction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	w1, [sp, #36]                   ; 4-byte Folded Spill
	mov	x19, x0
	bl	_GetUserId
	mov	x1, x0
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x19
	bl	_LockGXact
	mov	x20, x0
Lloh0:
	adrp	x8, _ProcGlobal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ProcGlobal@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	lsl	x9, x9, #2
	ldp	x8, x10, [x8]
	add	x10, x10, x9
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w21, [x8, x9]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	bl	_ReadTwoPhaseFile
	mov	x22, x0
	str	x0, [sp, #40]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20, #24]
	add	x1, sp, #40
	mov	x2, #0
	bl	_XlogReadTwoPhaseData
	ldr	x22, [sp, #40]
LBB0_3:
	ldr	w0, [x22, #32]
	mov	x1, x21
	bl	_TransactionIdEquals
	bl	_Assert
	ldr	x19, [sp, #40]
	mov	w0, #40
	bl	_MAXALIGN
	add	x19, x19, w0, sxtw
	ldr	w0, [x22]
	bl	_MAXALIGN
	add	x27, x19, w0, sxtw
	ldr	w8, [x22, #4]
	lsl	w0, w8, #2
	bl	_MAXALIGN
	add	x26, x27, w0, sxtw
	mov	x28, x22
	ldr	w8, [x28, #8]!
	lsl	w0, w8, #2
	bl	_MAXALIGN
	add	x24, x26, w0, sxtw
	mov	x19, x22
	ldr	w8, [x19, #12]!
	lsl	w0, w8, #2
	bl	_MAXALIGN
	add	x25, x24, w0, sxtw
	ldr	w8, [x19, #4]
	lsl	w0, w8, #2
	bl	_MAXALIGN
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w1, [x22, #4]
	mov	x0, x21
	mov	x2, x27
	bl	_TransactionIdLatest
	mov	x23, x0
	bl	_HOLD_INTERRUPTS
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_5
; %bb.4:
	ldp	w1, w3, [x22, #4]
	ldr	w5, [x22, #16]
	ldr	x7, [x22, #24]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x21
	mov	x2, x27
	mov	x4, x26
	mov	x6, x25
	bl	_RecordTransactionCommitPrepared
	b	LBB0_6
LBB0_5:
	ldr	w1, [x22, #4]
	ldr	w3, [x22, #12]
	mov	x0, x21
	mov	x2, x27
	mov	x4, x24
	ldr	x5, [sp, #16]                   ; 8-byte Folded Reload
	bl	_RecordTransactionAbortPrepared
	mov	x28, x19
	mov	x26, x24
LBB0_6:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	x24, x25, w8, sxtw
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x23
	bl	_ProcArrayRemove
	str	wzr, [x20, #8]
	ldr	w1, [x28]
	mov	x0, x26
	mov	w2, #0
	bl	_DropRelationFiles
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_RelationCacheInitFilePreInvalidate
LBB0_8:
	ldr	w1, [x22, #16]
	mov	x0, x25
	bl	_SendSharedInvalidMessages
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_10
; %bb.9:
	bl	_RelationCacheInitFilePostInvalidate
LBB0_10:
Lloh3:
	adrp	x19, _TwoPhaseStateLock@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TwoPhaseStateLock@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh8:
	adrp	x8, _twophase_postabort_callbacks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _twophase_postabort_callbacks@GOTPAGEOFF]
Lloh10:
	adrp	x9, _twophase_postcommit_callbacks@GOTPAGE
Lloh11:
	ldr	x9, [x9, _twophase_postcommit_callbacks@GOTPAGEOFF]
	ldr	w22, [sp, #36]                  ; 4-byte Folded Reload
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x21
	bl	_ProcessRecords
	mov	x0, x21
	mov	x1, x22
	bl	_PredicateLockTwoPhaseFinish
	mov	x0, x20
	bl	_RemoveGXact
	ldr	w0, [x19]
	bl	_LWLockRelease
	mov	x0, x22
	mov	w1, #0
	bl	_AtEOXact_PgStat
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	w1, #1
	bl	_RemoveTwoPhaseFile
LBB0_12:
Lloh12:
	adrp	x8, _MyLockedGxact@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MyLockedGxact@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
	bl	_RESUME_INTERRUPTS
	ldr	x0, [sp, #40]
	bl	_pfree
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcGlobal,8,3                 ; @ProcGlobal
	.comm	_TwoPhaseStateLock,4,2          ; @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_twophase_postcommit_callbacks,4,2 ; @twophase_postcommit_callbacks
	.comm	_twophase_postabort_callbacks,4,2 ; @twophase_postabort_callbacks
	.comm	_MyLockedGxact,8,3              ; @MyLockedGxact
.subsections_via_symbols
