	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ProcessTwoPhaseBuffer
_ProcessTwoPhaseBuffer:                 ## @ProcessTwoPhaseBuffer
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	_ShmemVariableCache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %r14d
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockHeldByMeInMode
	movl	%eax, %edi
	callq	_Assert
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r12, (%rax)
	setne	%dil
	callq	_Assert
LBB0_2:
	movl	%r13d, %edi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	callq	_TransactionIdDidAbort
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	movl	%r13d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_RemoveTwoPhaseFile
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	movl	%r13d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_PrepareRedoRemove
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_TransactionIdFollowsOrEquals
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.15:
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_ReadTwoPhaseFile
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	movl	8(%rax), %edi
	movl	%r13d, %esi
	callq	_TransactionIdEquals
	testl	%eax, %eax
	jne	LBB0_21
## %bb.16:
	leaq	L_.str.4(%rip), %r14
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_8
LBB0_18:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_XlogReadTwoPhaseData
	movq	-48(%rbp), %r12
	movl	8(%r12), %edi
	movl	%r13d, %esi
	callq	_TransactionIdEquals
	testl	%eax, %eax
	jne	LBB0_21
## %bb.19:
	leaq	L_.str.5(%rip), %r14
LBB0_20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_21:
	movq	-48(%rbp), %r14
	movl	$12, %edi
	callq	_MAXALIGN
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_MAXALIGN
	cmpl	$0, 4(%r12)
	jle	LBB0_28
## %bb.22:
	movslq	%ebx, %rcx
	cltq
	addq	%rcx, %rax
	addq	%rax, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_28
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %r15d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_TransactionIdFollows
	movl	%eax, %edi
	callq	_Assert
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%r15d, %edi
	callq	_AdvanceNextFullTransactionIdPastXid
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_SubTransSetParent
	jmp	LBB0_23
LBB0_28:
	movq	-48(%rbp), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_TwoPhaseStateLock,4,2          ## @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"removing stale two-phase state file for transaction %u"

L_.str.1:                               ## @.str.1
	.asciz	"removing stale two-phase state from memory for transaction %u"

L_.str.2:                               ## @.str.2
	.asciz	"removing future two-phase state file for transaction %u"

L_.str.3:                               ## @.str.3
	.asciz	"removing future two-phase state from memory for transaction %u"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ## @ERRCODE_DATA_CORRUPTED
L_.str.4:                               ## @.str.4
	.asciz	"corrupted two-phase state file for transaction %u"

L_.str.5:                               ## @.str.5
	.asciz	"corrupted two-phase state in memory for transaction %u"

	.no_dead_strip	_ProcessTwoPhaseBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ProcessTwoPhaseBuffer
_ProcessTwoPhaseBuffer:                 ; @ProcessTwoPhaseBuffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ShmemVariableCache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ShmemVariableCache@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_XidFromFullTransactionId
	mov	x24, x0
Lloh3:
	adrp	x8, _TwoPhaseStateLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TwoPhaseStateLock@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LWLockHeldByMeInMode
	bl	_Assert
	cbnz	w22, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x23
	cset	w0, ne
	bl	_Assert
LBB0_2:
	mov	x0, x19
	bl	_TransactionIdDidCommit
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_TransactionIdDidAbort
	cbz	x0, LBB0_11
LBB0_4:
Lloh12:
	adrp	x8, _WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	cbz	w22, LBB0_7
; %bb.5:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	x0, x19
	mov	w1, #1
	bl	_RemoveTwoPhaseFile
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	x0, x19
	mov	w1, #1
	bl	_PrepareRedoRemove
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x24
	bl	_TransactionIdFollowsOrEquals
	cbz	x0, LBB0_14
; %bb.12:
Lloh19:
	adrp	x8, _WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	cbz	w22, LBB0_17
; %bb.13:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_14:
	cbz	w22, LBB0_18
; %bb.15:
	mov	x0, x19
	mov	w1, #0
	bl	_ReadTwoPhaseFile
	mov	x22, x0
	str	x0, [sp, #8]
	ldr	w0, [x0, #8]
	mov	x1, x19
	bl	_TransactionIdEquals
	cbnz	w0, LBB0_21
; %bb.16:
Lloh24:
	adrp	x23, l_.str.4@PAGE
Lloh25:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_17:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_18:
	add	x1, sp, #8
	mov	x0, x23
	mov	x2, #0
	bl	_XlogReadTwoPhaseData
	ldr	x22, [sp, #8]
	ldr	w0, [x22, #8]
	mov	x1, x19
	bl	_TransactionIdEquals
	cbnz	w0, LBB0_21
; %bb.19:
Lloh28:
	adrp	x23, l_.str.5@PAGE
Lloh29:
	add	x23, x23, l_.str.5@PAGEOFF
LBB0_20:
Lloh30:
	adrp	x8, _ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w24, [x8]
Lloh33:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x23
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_21:
	ldr	x25, [sp, #8]
	mov	w0, #12
	bl	_MAXALIGN
	mov	x23, x0
	ldr	w0, [x22]
	bl	_MAXALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.22:
	mov	x24, #0
	sxtw	x8, w23
	sxtw	x9, w0
	add	x8, x8, x9
	add	x25, x25, x8
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22, #4]
	cmp	x24, x8
	b.ge	LBB0_28
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x25, x24, lsl #2]
	mov	x0, x23
	mov	x1, x19
	bl	_TransactionIdFollows
	bl	_Assert
	cbz	w20, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x23
	bl	_AdvanceNextFullTransactionIdPastXid
LBB0_26:                                ;   in Loop: Header=BB0_24 Depth=1
	cbz	w21, LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_SubTransSetParent
	b	LBB0_23
LBB0_28:
	ldr	x0, [sp, #8]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_TwoPhaseStateLock,4,2          ; @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"removing stale two-phase state file for transaction %u"

l_.str.1:                               ; @.str.1
	.asciz	"removing stale two-phase state from memory for transaction %u"

l_.str.2:                               ; @.str.2
	.asciz	"removing future two-phase state file for transaction %u"

l_.str.3:                               ; @.str.3
	.asciz	"removing future two-phase state from memory for transaction %u"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ; @ERRCODE_DATA_CORRUPTED
l_.str.4:                               ; @.str.4
	.asciz	"corrupted two-phase state file for transaction %u"

l_.str.5:                               ; @.str.5
	.asciz	"corrupted two-phase state in memory for transaction %u"

	.no_dead_strip	_ProcessTwoPhaseBuffer
.subsections_via_symbols
