	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xact_redo_commit
_xact_redo_commit:                      ## @xact_redo_commit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movl	%r12d, %edi
	callq	_TransactionIdLatest
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_AdvanceNextFullTransactionIdPastXid
	movq	_XACT_XINFO_HAS_ORIGIN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	andl	(%rbx), %eax
	setne	%al
	movq	_InvalidRepOriginId@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	sete	%cl
	xorb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	movl	(%r14), %eax
	xorl	%ecx, %ecx
	andl	(%rbx), %eax
	setne	%cl
	movl	48(%rbx,%rcx,4), %ecx
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movl	%r12d, %edi
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_TransactionTreeSetCommitTsData
	movq	_standbyState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_STANDBY_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movl	%r12d, %edi
	callq	_TransactionIdCommitTree
	movq	_XACT_XINFO_HAS_ORIGIN@GOTPCREL(%rip), %r13
	jmp	LBB0_4
LBB0_2:
	movl	%r13d, %edi
	callq	_RecordKnownAssignedTransactionIds
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movl	%r12d, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_TransactionIdAsyncCommitTree
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movl	%r12d, %edi
	movl	%r13d, %ecx
	callq	_ExpireTreeKnownAssignedTransactionIds
	movl	44(%rbx), %r13d
	movl	(%rbx), %edi
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	40(%rbx), %r14d
	callq	_XactCompletionRelcacheInitFileInval
	movl	32(%rbx), %r8d
	movl	36(%rbx), %ecx
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%eax, %edx
	callq	_ProcessCommittedInvalidationMessages
	movq	_XACT_XINFO_HAS_AE_LOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movq	_XACT_XINFO_HAS_ORIGIN@GOTPCREL(%rip), %r13
	je	LBB0_4
## %bb.3:
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movl	%r12d, %edi
	callq	_StandbyReleaseLockTree
LBB0_4:
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	20(%rbx), %esi
	movl	%r15d, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_replorigin_advance
LBB0_6:
	cmpq	$0, 8(%rbx)
	jle	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_XLogFlush
	movl	16(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	$1, %edx
	callq	_DropRelationFiles
LBB0_8:
	movl	(%rbx), %edi
	callq	_XactCompletionForceSyncCommit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_XLogFlush
LBB0_10:
	movl	(%rbx), %edi
	callq	_XactCompletionApplyFeedback
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XLogRequestWalReceiverReply    ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XACT_XINFO_HAS_ORIGIN,4,2      ## @XACT_XINFO_HAS_ORIGIN
	.comm	_InvalidRepOriginId,4,2         ## @InvalidRepOriginId
	.comm	_standbyState,8,3               ## @standbyState
	.comm	_STANDBY_DISABLED,8,3           ## @STANDBY_DISABLED
	.comm	_XACT_XINFO_HAS_AE_LOCKS,4,2    ## @XACT_XINFO_HAS_AE_LOCKS
	.no_dead_strip	_xact_redo_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xact_redo_commit
_xact_redo_commit:                      ; @xact_redo_commit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_TransactionIdIsValid
	bl	_Assert
	ldp	w2, w1, [x19, #24]
	mov	x0, x22
	bl	_TransactionIdLatest
	mov	x23, x0
	bl	_AdvanceNextFullTransactionIdPastXid
	ldr	w8, [x19]
Lloh0:
	adrp	x25, _XACT_XINFO_HAS_ORIGIN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _XACT_XINFO_HAS_ORIGIN@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	cset	w8, ne
Lloh2:
	adrp	x9, _InvalidRepOriginId@GOTPAGE
Lloh3:
	ldr	x9, [x9, _InvalidRepOriginId@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w21
	cset	w9, eq
	eor	w0, w8, w9
	bl	_Assert
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	mov	w8, #52
	mov	w9, #48
	csel	x8, x9, x8, eq
	ldr	w3, [x19, x8]
	ldp	w2, w1, [x19, #24]
	mov	x0, x22
	mov	x4, x21
	mov	w5, #0
	bl	_TransactionTreeSetCommitTsData
Lloh5:
	adrp	x8, _standbyState@GOTPAGE
Lloh6:
	ldr	x8, [x8, _standbyState@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _STANDBY_DISABLED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _STANDBY_DISABLED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w2, w1, [x19, #24]
	mov	x0, x22
	bl	_TransactionIdCommitTree
	b	LBB0_4
LBB0_2:
	mov	x0, x23
	bl	_RecordKnownAssignedTransactionIds
	ldp	w2, w1, [x19, #24]
	mov	x0, x22
	mov	x3, x20
	bl	_TransactionIdAsyncCommitTree
	ldp	w2, w1, [x19, #24]
	mov	x0, x22
	mov	x3, x23
	bl	_ExpireTreeKnownAssignedTransactionIds
	ldp	w24, w23, [x19, #40]
	ldr	w0, [x19]
	bl	_XactCompletionRelcacheInitFileInval
	mov	x2, x0
	ldp	w4, w3, [x19, #32]
	mov	x0, x23
	mov	x1, x24
	bl	_ProcessCommittedInvalidationMessages
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _XACT_XINFO_HAS_AE_LOCKS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XACT_XINFO_HAS_AE_LOCKS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldp	w2, w1, [x19, #24]
	mov	x0, x22
	bl	_StandbyReleaseLockTree
LBB0_4:
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x19, #20]
	mov	x0, x21
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	bl	_replorigin_advance
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_XLogFlush
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	mov	w2, #1
	bl	_DropRelationFiles
LBB0_8:
	ldr	w0, [x19]
	bl	_XactCompletionForceSyncCommit
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_XLogFlush
LBB0_10:
	ldr	w0, [x19]
	bl	_XactCompletionApplyFeedback
	cbz	x0, LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_XLogRequestWalReceiverReply
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_XACT_XINFO_HAS_ORIGIN,4,2      ; @XACT_XINFO_HAS_ORIGIN
	.comm	_InvalidRepOriginId,4,2         ; @InvalidRepOriginId
	.comm	_standbyState,8,3               ; @standbyState
	.comm	_STANDBY_DISABLED,8,3           ; @STANDBY_DISABLED
	.comm	_XACT_XINFO_HAS_AE_LOCKS,4,2    ; @XACT_XINFO_HAS_AE_LOCKS
	.no_dead_strip	_xact_redo_commit
.subsections_via_symbols
