	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_restoreTwoPhaseData            ## -- Begin function restoreTwoPhaseData
	.p2align	4, 0x90
_restoreTwoPhaseData:                   ## @restoreTwoPhaseData
	.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
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_TWOPHASE_DIR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_AllocateDir
	movq	%rax, %r15
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_ReadDir
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %r14
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ReadDir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_strlen
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_strspn
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movl	(%r12), %esi
	movq	%rax, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ProcessTwoPhaseBuffer
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	movq	_InvalidRepOriginId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	movl	%edx, %esi
	callq	_PrepareRedoAdd
	jmp	LBB0_6
LBB0_7:
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FreeDir                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TwoPhaseStateLock,4,2          ## @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_TWOPHASE_DIR,4,2               ## @TWOPHASE_DIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789ABCDEF"

	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.comm	_InvalidRepOriginId,4,2         ## @InvalidRepOriginId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_restoreTwoPhaseData            ; -- Begin function restoreTwoPhaseData
	.p2align	2
_restoreTwoPhaseData:                   ; @restoreTwoPhaseData
	.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
Lloh0:
	adrp	x22, _TwoPhaseStateLock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TwoPhaseStateLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x23, _TWOPHASE_DIR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TWOPHASE_DIR@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_AllocateDir
	mov	x19, x0
	ldr	w1, [x23]
	bl	_ReadDir
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
Lloh9:
	adrp	x24, _InvalidXLogRecPtr@GOTPAGE
Lloh10:
	ldr	x24, [x24, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh11:
	adrp	x25, _InvalidRepOriginId@GOTPAGE
Lloh12:
	ldr	x25, [x25, _InvalidRepOriginId@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ReadDir
	mov	x21, x0
	cbz	x0, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_strlen
	cmp	w0, #8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	mov	x1, x20
	bl	_strspn
	cmp	w0, #8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	ldr	w1, [x24]
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_ProcessTwoPhaseBuffer
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	ldr	w3, [x25]
	mov	x2, x1
	bl	_PrepareRedoAdd
	b	LBB0_2
LBB0_7:
	ldr	w0, [x22]
	bl	_LWLockRelease
	mov	x0, x19
	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	_FreeDir
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TwoPhaseStateLock,4,2          ; @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_TWOPHASE_DIR,4,2               ; @TWOPHASE_DIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789ABCDEF"

	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.comm	_InvalidRepOriginId,4,2         ; @InvalidRepOriginId
.subsections_via_symbols
