	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecoverPreparedTransactions    ## -- Begin function RecoverPreparedTransactions
	.p2align	4, 0x90
_RecoverPreparedTransactions:           ## @RecoverPreparedTransactions
	.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
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_TwoPhaseState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_PostPrepare_Twophase
	movq	%r14, %rdi
	callq	_pfree
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_TwoPhaseState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %r12
	movl	12(%r12), %r15d
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	movl	%r15d, %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ProcessTwoPhaseBuffer
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	32(%r14), %edi
	movl	%r15d, %esi
	callq	_TransactionIdEquals
	movl	%eax, %edi
	callq	_Assert
	movl	$36, %edi
	callq	_MAXALIGN
	cltq
	addq	%r14, %rax
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_MAXALIGN
	movslq	%eax, %r13
	addq	%rbx, %r13
	movl	4(%r14), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movslq	%eax, %rbx
	addq	%r13, %rbx
	movl	8(%r14), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%eax, %r15
	addq	%rbx, %r15
	movl	12(%r14), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movl	16(%r14), %edi
	shll	$2, %edi
	callq	_MAXALIGN
	movslq	%eax, %r15
	addq	%rbx, %r15
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rbx
	movl	28(%r14), %ecx
	movl	20(%r14), %r9d
	movl	24(%r14), %r8d
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_MarkAsPreparingGuts
	movl	$0, (%r12)
	movl	4(%r14), %esi
	movq	%r12, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	callq	_GXactLoadSubxactData
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_MarkAsPrepared
	movl	(%rbx), %edi
	callq	_LWLockRelease
	movq	_twophase_recover_callbacks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_ProcessRecords
	movq	_InHotStandby@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %esi
	movl	%ebx, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_StandbyReleaseLockTree
	jmp	LBB0_5
LBB0_7:
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TwoPhaseStateLock,4,2          ## @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_TwoPhaseState,8,3              ## @TwoPhaseState
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recovering prepared transaction %u from shared memory"

	.comm	_twophase_recover_callbacks,4,2 ## @twophase_recover_callbacks
	.comm	_InHotStandby,8,3               ## @InHotStandby
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecoverPreparedTransactions    ; -- Begin function RecoverPreparedTransactions
	.p2align	2
_RecoverPreparedTransactions:           ; @RecoverPreparedTransactions
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x26, _TwoPhaseStateLock@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TwoPhaseStateLock@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x28, _TwoPhaseState@GOTPAGE
Lloh6:
	ldr	x28, [x28, _TwoPhaseState@GOTPAGEOFF]
	ldr	x8, [x28]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x27, #0
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_PostPrepare_Twophase
	mov	x0, x21
	bl	_pfree
	ldr	w0, [x26]
Lloh9:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_LWLockAcquire
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldr	x8, [x28]
	ldrsw	x9, [x8]
	cmp	x27, x9
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x22, [x8, x27, lsl #3]
	ldp	w1, w20, [x22, #8]
	ldr	w2, [x22, #4]
	mov	x0, x20
	mov	w3, #1
	mov	w4, #0
	bl	_ProcessTwoPhaseBuffer
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
Lloh12:
	adrp	x8, _LOG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	ldr	w0, [x21, #32]
	mov	x1, x20
	bl	_TransactionIdEquals
	bl	_Assert
	mov	w0, #36
	bl	_MAXALIGN
	add	x24, x21, w0, sxtw
	ldr	w0, [x21]
	bl	_MAXALIGN
	add	x23, x24, w0, sxtw
	ldr	w8, [x21, #4]
	lsl	w0, w8, #2
	bl	_MAXALIGN
	add	x25, x23, w0, sxtw
	ldr	w8, [x21, #8]
	lsl	w0, w8, #2
	bl	_MAXALIGN
	add	x25, x25, w0, sxtw
	ldr	w8, [x21, #12]
	lsl	w0, w8, #2
	bl	_MAXALIGN
	add	x25, x25, w0, sxtw
	ldr	w8, [x21, #16]
	lsl	w0, w8, #2
	bl	_MAXALIGN
	add	x25, x25, w0, sxtw
	ldp	w4, w3, [x21, #24]
	ldr	w5, [x21, #20]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x24
	bl	_MarkAsPreparingGuts
	str	wzr, [x22]
	ldr	w1, [x21, #4]
	mov	x0, x22
	mov	x2, x23
	bl	_GXactLoadSubxactData
	mov	x0, x22
	mov	w1, #1
	bl	_MarkAsPrepared
	ldr	w0, [x26]
	bl	_LWLockRelease
Lloh15:
	adrp	x8, _twophase_recover_callbacks@GOTPAGE
Lloh16:
	ldr	x8, [x8, _twophase_recover_callbacks@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x25
	mov	x1, x20
	bl	_ProcessRecords
Lloh18:
	adrp	x8, _InHotStandby@GOTPAGE
Lloh19:
	ldr	x8, [x8, _InHotStandby@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x20
	mov	x2, x23
	bl	_StandbyReleaseLockTree
	b	LBB0_2
LBB0_7:
	ldr	w0, [x26]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TwoPhaseStateLock,4,2          ; @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_TwoPhaseState,8,3              ; @TwoPhaseState
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recovering prepared transaction %u from shared memory"

	.comm	_twophase_recover_callbacks,4,2 ; @twophase_recover_callbacks
	.comm	_InHotStandby,8,3               ; @InHotStandby
.subsections_via_symbols
