	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RecordTransactionCommitPrepared
_RecordTransactionCommitPrepared:       ## @RecordTransactionCommitPrepared
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r15d
	movl	%edi, %r13d
	movq	16(%rbp), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	%rax, %rbx
	movq	_replorigin_session_origin@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_InvalidRepOriginId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_DoNotReplicateId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movq	_MyXactFlags@GOTPCREL(%rip), %rdx
	movq	_XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	%rbx, %rdi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	movq	%r13, %r15
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	pushq	%rax
	pushq	$0
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_XactLogCommitRecord
	addq	$48, %rsp
	movl	%eax, %r13d
	cmpq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_3
## %bb.1:
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	_replorigin_session_origin_lsn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XactLastRecEnd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_replorigin_session_advance
	movq	_replorigin_session_origin_timestamp@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_4
LBB0_3:
	movq	_replorigin_session_origin_timestamp@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	%rbx, %rcx
LBB0_4:
	movq	_replorigin_session_origin@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	%r15d, %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	callq	_TransactionTreeSetCommitTsData
	movl	%r13d, %edi
	callq	_XLogFlush
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_TransactionIdCommitTree
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	%r13d, %edi
	movl	$1, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SyncRepWaitForLSN              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_replorigin_session_origin,8,3  ## @replorigin_session_origin
	.comm	_InvalidRepOriginId,8,3         ## @InvalidRepOriginId
	.comm	_DoNotReplicateId,8,3           ## @DoNotReplicateId
	.comm	_MyPgXact,8,3                   ## @MyPgXact
	.comm	_MyXactFlags,4,2                ## @MyXactFlags
	.comm	_XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK,4,2 ## @XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK
	.comm	_replorigin_session_origin_lsn,4,2 ## @replorigin_session_origin_lsn
	.comm	_XactLastRecEnd,4,2             ## @XactLastRecEnd
	.comm	_replorigin_session_origin_timestamp,8,3 ## @replorigin_session_origin_timestamp
	.no_dead_strip	_RecordTransactionCommitPrepared
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RecordTransactionCommitPrepared
_RecordTransactionCommitPrepared:       ; @RecordTransactionCommitPrepared
	.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	w7, [sp, #44]                   ; 4-byte Folded Spill
	str	x6, [sp, #32]                   ; 8-byte Folded Spill
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	mov	x23, x4
	mov	x27, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x28, [x29, #16]
	bl	_GetCurrentTimestamp
	mov	x22, x0
Lloh0:
	adrp	x8, _replorigin_session_origin@GOTPAGE
Lloh1:
	ldr	x8, [x8, _replorigin_session_origin@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _InvalidRepOriginId@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidRepOriginId@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
Lloh6:
	adrp	x8, _DoNotReplicateId@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DoNotReplicateId@GOTPAGEOFF]
Lloh8:
	ldr	x26, [x8]
	bl	_START_CRIT_SECTION
Lloh9:
	adrp	x8, _MyPgXact@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MyPgXact@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #1
Lloh12:
	adrp	x10, _MyXactFlags@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MyXactFlags@GOTPAGEOFF]
	str	w9, [x8]
Lloh14:
	ldr	w8, [x10]
Lloh15:
	adrp	x9, _XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	x28, [sp, #16]
	stp	w8, w21, [sp, #4]
	str	wzr, [sp]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x27
	mov	x4, x23
	ldr	w5, [sp, #28]                   ; 4-byte Folded Reload
	ldr	x6, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w7, [sp, #44]                   ; 4-byte Folded Reload
	bl	_XactLogCommitRecord
	mov	x23, x0
	cmp	x24, x25
	ccmp	x24, x26, #4, ne
Lloh18:
	adrp	x24, _replorigin_session_origin_timestamp@GOTPAGE
Lloh19:
	ldr	x24, [x24, _replorigin_session_origin_timestamp@GOTPAGEOFF]
	b.eq	LBB0_2
; %bb.1:
Lloh20:
	adrp	x8, _replorigin_session_origin_lsn@GOTPAGE
Lloh21:
	ldr	x8, [x8, _replorigin_session_origin_lsn@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _XactLastRecEnd@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XactLastRecEnd@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_replorigin_session_advance
	ldr	x3, [x24]
	cbnz	x3, LBB0_3
LBB0_2:
	str	x22, [x24]
	mov	x3, x22
LBB0_3:
Lloh26:
	adrp	x8, _replorigin_session_origin@GOTPAGE
Lloh27:
	ldr	x8, [x8, _replorigin_session_origin@GOTPAGEOFF]
Lloh28:
	ldr	x4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w5, #0
	bl	_TransactionTreeSetCommitTsData
	mov	x0, x23
	bl	_XLogFlush
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_TransactionIdCommitTree
Lloh29:
	adrp	x8, _MyPgXact@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MyPgXact@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	wzr, [x8]
	bl	_END_CRIT_SECTION
	mov	x0, x23
	mov	w1, #1
	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
	b	_SyncRepWaitForLSN
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_replorigin_session_origin,8,3  ; @replorigin_session_origin
	.comm	_InvalidRepOriginId,8,3         ; @InvalidRepOriginId
	.comm	_DoNotReplicateId,8,3           ; @DoNotReplicateId
	.comm	_MyPgXact,8,3                   ; @MyPgXact
	.comm	_MyXactFlags,4,2                ; @MyXactFlags
	.comm	_XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK,4,2 ; @XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK
	.comm	_replorigin_session_origin_lsn,4,2 ; @replorigin_session_origin_lsn
	.comm	_XactLastRecEnd,4,2             ; @XactLastRecEnd
	.comm	_replorigin_session_origin_timestamp,8,3 ; @replorigin_session_origin_timestamp
	.no_dead_strip	_RecordTransactionCommitPrepared
.subsections_via_symbols
