	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_local_xlog_page           ## -- Begin function read_local_xlog_page
	.p2align	4, 0x90
_read_local_xlog_page:                  ## @read_local_xlog_page
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movslq	%edx, %rax
	movq	%rsi, %r15
	addq	%rsi, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ThisTimeLineID@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_GetXLogReplayRecPtr
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_GetFlushRecPtr
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_XLogReadDetermineTimeline
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_pg_usleep
	jmp	LBB0_1
LBB0_7:
	movq	8(%rbx), %r14
	movq	%rax, 16(%rbx)
LBB0_8:
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	movq	%r8, %rax
	addq	%r15, %rax
	movl	%r8d, %r12d
	cmpq	%r14, %rax
	jle	LBB0_11
## %bb.9:
	movl	$-1, %r12d
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_12
## %bb.10:
	subl	%r15d, %r14d
	movl	%r14d, %r12d
LBB0_11:
	movl	24(%rbx), %esi
	movq	16(%rbx), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_XLogRead
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ThisTimeLineID,8,3             ## @ThisTimeLineID
	.comm	_XLOG_BLCKSZ,4,2                ## @XLOG_BLCKSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_local_xlog_page           ; -- Begin function read_local_xlog_page
	.p2align	2
_read_local_xlog_page:                  ; @read_local_xlog_page
	.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	x20, x4
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	add	x25, x1, w2, sxtw
Lloh0:
	adrp	x23, _ThisTimeLineID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ThisTimeLineID@GOTPAGEOFF]
	bl	_RecoveryInProgress
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	bl	_GetXLogReplayRecPtr
	b	LBB0_3
LBB0_2:
	bl	_GetFlushRecPtr
LBB0_3:
	mov	x24, x0
	ldr	x8, [x23]
	str	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_XLogReadDetermineTimeline
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	cmp	x25, x24
	b.le	LBB0_7
; %bb.5:
	bl	_CHECK_FOR_INTERRUPTS
	mov	w0, #1000
	bl	_pg_usleep
	bl	_RecoveryInProgress
	cbnz	w0, LBB0_1
	b	LBB0_2
LBB0_6:
	ldr	x24, [x21, #8]
	str	x8, [x21, #16]
LBB0_7:
Lloh2:
	adrp	x8, _XLOG_BLCKSZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLOG_BLCKSZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x4, [x8]
	add	x8, x4, x19
	cmp	x8, x24
	mov	x22, x4
	b.le	LBB0_11
; %bb.8:
	cmp	x25, x24
	b.le	LBB0_10
; %bb.9:
	mov	w22, #-1
	b	LBB0_12
LBB0_10:
	sub	w22, w24, w19
LBB0_11:
	ldr	w1, [x21, #24]
	ldr	x2, [x21, #16]
	mov	x0, x20
	mov	x3, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_XLogRead
LBB0_12:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ThisTimeLineID,8,3             ; @ThisTimeLineID
	.comm	_XLOG_BLCKSZ,4,2                ; @XLOG_BLCKSZ
.subsections_via_symbols
