	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logical_read_xlog_page
_logical_read_xlog_page:                ## @logical_read_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_XLogReadDetermineTimeline
	movq	(%rbx), %rax
	movq	_ThisTimeLineID@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movq	_sendTimeLineIsHistoric@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	movq	_sendTimeLine@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	12(%rbx), %eax
	movq	_sendTimeLineValidUpto@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	8(%rbx), %eax
	movq	_sendTimeLineNextTLI@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movslq	%r12d, %rbx
	addq	%r15, %rbx
	movq	%rbx, %rdi
	callq	_WalSndWaitForWal
	movl	$-1, %r12d
	cmpq	%rbx, %rax
	jl	LBB0_2
## %bb.1:
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, %rdx
	addq	%r15, %rdx
	movl	%eax, %r12d
	subl	%r15d, %r12d
	cmpq	%rax, %rdx
	cmovlel	%ecx, %r12d
	movq	_sendCxt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_XLogRead
LBB0_2:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ThisTimeLineID,8,3             ## @ThisTimeLineID
	.comm	_sendTimeLineIsHistoric,4,2     ## @sendTimeLineIsHistoric
	.comm	_sendTimeLine,8,3               ## @sendTimeLine
	.comm	_sendTimeLineValidUpto,4,2      ## @sendTimeLineValidUpto
	.comm	_sendTimeLineNextTLI,4,2        ## @sendTimeLineNextTLI
	.comm	_XLOG_BLCKSZ,4,2                ## @XLOG_BLCKSZ
	.comm	_sendCxt,4,2                    ## @sendCxt
	.no_dead_strip	_logical_read_xlog_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logical_read_xlog_page
_logical_read_xlog_page:                ; @logical_read_xlog_page
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x4
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_XLogReadDetermineTimeline
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _ThisTimeLineID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ThisTimeLineID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w9, ne
Lloh3:
	adrp	x10, _sendTimeLineIsHistoric@GOTPAGE
Lloh4:
	ldr	x10, [x10, _sendTimeLineIsHistoric@GOTPAGEOFF]
Lloh5:
	str	w9, [x10]
Lloh6:
	adrp	x9, _sendTimeLine@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sendTimeLine@GOTPAGEOFF]
Lloh8:
	str	x8, [x9]
Lloh9:
	adrp	x8, _sendTimeLineValidUpto@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sendTimeLineValidUpto@GOTPAGEOFF]
	ldp	w10, w9, [x22, #8]
Lloh11:
	str	w9, [x8]
Lloh12:
	adrp	x8, _sendTimeLineNextTLI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sendTimeLineNextTLI@GOTPAGEOFF]
Lloh14:
	str	w10, [x8]
	add	x21, x20, w21, sxtw
	mov	x0, x21
	bl	_WalSndWaitForWal
	cmp	x0, x21
	b.ge	LBB0_2
; %bb.1:
	mov	w21, #-1
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _XLOG_BLCKSZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XLOG_BLCKSZ@GOTPAGEOFF]
Lloh17:
	ldrsw	x3, [x8]
	sub	w8, w0, w20
	add	x9, x3, x20
	cmp	x9, x0
	csel	w21, w8, w3, gt
Lloh18:
	adrp	x8, _sendCxt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sendCxt@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_XLogRead
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ThisTimeLineID,8,3             ; @ThisTimeLineID
	.comm	_sendTimeLineIsHistoric,4,2     ; @sendTimeLineIsHistoric
	.comm	_sendTimeLine,8,3               ; @sendTimeLine
	.comm	_sendTimeLineValidUpto,4,2      ; @sendTimeLineValidUpto
	.comm	_sendTimeLineNextTLI,4,2        ; @sendTimeLineNextTLI
	.comm	_XLOG_BLCKSZ,4,2                ; @XLOG_BLCKSZ
	.comm	_sendCxt,4,2                    ; @sendCxt
	.no_dead_strip	_logical_read_xlog_page
.subsections_via_symbols
