	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XLogRead
_XLogRead:                              ## @XLogRead
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_wal_segment_size@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	sete	%dil
	callq	_Assert
	testq	%r14, %r14
	jle	LBB0_20
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, _XLogRead.sendOff(%rip)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	subl	%ebx, %eax
	movslq	%eax, %rbx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	cmpq	%rbx, %r14
	cmovlel	%r14d, %ebx
	movq	_WAIT_EVENT_WAL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	movl	_XLogRead.sendFile(%rip), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_read
	movq	%r12, %r15
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	testl	%r12d, %r12d
	jle	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, _XLogRead.sendOff(%rip)
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	addl	%r12d, %ecx
	movslq	%r12d, %rax
	addq	%rax, %r15
	subq	%rax, %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %r12
	movl	%ecx, %r15d
	jle	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_XLogSegmentOffset
	movl	%eax, %r14d
	cmpl	$0, _XLogRead.sendFile(%rip)
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_XLByteInSeg
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, _XLogRead.sendTLI(%rip)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	_XLogRead.sendOff(%rip), %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_XLogFilePath
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	_XLogRead.sendOff(%rip), %edx
	movslq	%ebx, %rcx
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	_XLogRead.sendFile(%rip), %ebx
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_close
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_XLByteToSeg
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_XLogFilePath
	movq	_PG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_BasicOpenFile
	movl	%eax, _XLogRead.sendFile(%rip)
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rbx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movq	%rbx, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, _XLogRead.sendOff(%rip)
	movq	%rbx, _XLogRead.sendTLI(%rip)
	xorl	%eax, %eax
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ebx
	cmpl	%r14d, %eax
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	_XLogRead.sendFile(%rip), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, %r13
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_XLogFilePath
	movl	%r12d, (%r15)
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r12d, %edi
	movq	%r13, %r12
	movl	%eax, %esi
	callq	_ereport
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_16
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @XLogRead.sendFile
_XLogRead.sendFile:
	.long	4294967295                      ## 0xffffffff

.zerofill __DATA,__bss,_XLogRead.sendTLI,8,3 ## @XLogRead.sendTLI
.zerofill __DATA,__bss,_XLogRead.sendOff,4,2 ## @XLogRead.sendOff
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested WAL segment %s has already been removed"

L_.str.1:                               ## @.str.1
	.asciz	"could not open file \"%s\": %m"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.2:                               ## @.str.2
	.asciz	"could not seek in log segment %s to offset %u: %m"

	.comm	_WAIT_EVENT_WAL_READ,4,2        ## @WAIT_EVENT_WAL_READ
L_.str.3:                               ## @.str.3
	.asciz	"could not read from log segment %s, offset %u, length %lu: %m"

	.no_dead_strip	_XLogRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XLogRead
_XLogRead:                              ; @XLogRead
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x20, x3
	mov	x28, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _wal_segment_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wal_segment_size@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, eq
	bl	_Assert
	cmp	x19, #1
	b.lt	LBB0_18
; %bb.1:
	adrp	x21, _XLogRead.sendFile@PAGE
	adrp	x24, _XLogRead.sendOff@PAGE
	stur	x28, [x29, #-96]                ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w26, [x24, _XLogRead.sendOff@PAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w22, w26
	cmp	x19, w8, sxtw
	csel	w27, w8, w19, gt
Lloh6:
	adrp	x8, _WAIT_EVENT_WAL_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WAIT_EVENT_WAL_READ@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_pgstat_report_wait_start
	ldr	w0, [x21, _XLogRead.sendFile@PAGEOFF]
	mov	x1, x23
	mov	x2, x27
	bl	_read
	mov	x26, x0
	bl	_pgstat_report_wait_end
	cmp	w26, #0
	b.le	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w26, w20
	ldr	w8, [x24, _XLogRead.sendOff@PAGEOFF]
	add	w8, w8, w26
	str	w8, [x24, _XLogRead.sendOff@PAGEOFF]
	sxtw	x8, w26
	sub	x19, x19, x8
	add	x23, x23, x8
	cmp	x19, #0
	b.le	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_XLogSegmentOffset
	mov	x26, x0
	ldr	w8, [x21, _XLogRead.sendFile@PAGEOFF]
	tbnz	w8, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_XLByteInSeg
	cbz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh9:
	adrp	x8, _XLogRead.sendTLI@PAGE
Lloh10:
	ldr	x8, [x8, _XLogRead.sendTLI@PAGEOFF]
	cmp	x8, x28
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24, _XLogRead.sendOff@PAGEOFF]
	cmp	w8, w26
	b.eq	LBB0_3
	b	LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, sp
Lloh11:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x28, x9, x8
	mov	sp, x28
Lloh16:
	adrp	x25, _errno@GOTPAGE
Lloh17:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	x0, x28
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	mov	w2, #0
	mov	x3, x22
	bl	_XLogFilePath
	str	w24, [x25]
	adrp	x24, _XLogRead.sendOff@PAGE
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w25, [x8]
	bl	_errcode_for_file_access
	sxtw	x8, w27
	ldr	w9, [x24, _XLogRead.sendOff@PAGEOFF]
	stp	x9, x8, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x28
	ldur	x28, [x29, #-96]                ; 8-byte Folded Reload
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	mov	sp, x21
	adrp	x21, _XLogRead.sendFile@PAGE
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, sp
Lloh23:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	x9, x8
Lloh26:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh27:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, sp
	ldr	w0, [x21, _XLogRead.sendFile@PAGEOFF]
Lloh28:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	mov	x9, x8
Lloh31:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh32:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	tbnz	w0, #31, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_close
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_XLByteToSeg
	mov	x0, x27
	mov	x1, x28
	mov	w2, #0
	mov	x3, x22
	bl	_XLogFilePath
Lloh33:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x27
	bl	_BasicOpenFile
	str	w0, [x21, _XLogRead.sendFile@PAGEOFF]
	tbz	w0, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh39:
	adrp	x8, _errno@GOTPAGE
Lloh40:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh41:
	ldr	w24, [x8]
Lloh42:
	adrp	x8, _ENOENT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh44:
	ldr	w21, [x8]
Lloh45:
	adrp	x8, _ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w28, [x8]
	bl	_errcode_for_file_access
	cmp	w24, w21
	adrp	x24, _XLogRead.sendOff@PAGE
	adrp	x21, _XLogRead.sendFile@PAGE
Lloh48:
	adrp	x8, l_.str.1@PAGE
Lloh49:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh50:
	adrp	x9, l_.str@PAGE
Lloh51:
	add	x9, x9, l_.str@PAGEOFF
	csel	x0, x9, x8, eq
	mov	x1, x27
	bl	_errmsg
	mov	x1, x0
	mov	x0, x28
	ldur	x28, [x29, #-96]                ; 8-byte Folded Reload
	bl	_ereport
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x24, _XLogRead.sendOff@PAGEOFF]
	adrp	x8, _XLogRead.sendTLI@PAGE
	str	x28, [x8, _XLogRead.sendTLI@PAGEOFF]
	mov	sp, x25
	mov	w8, #0
	cmp	w8, w26
	b.eq	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, _XLogRead.sendFile@PAGEOFF]
Lloh52:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x1, x26
	bl	_lseek
	tbz	x0, #63, LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, sp
Lloh55:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	mov	x9, x8
Lloh58:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh59:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
Lloh60:
	adrp	x25, _errno@GOTPAGE
Lloh61:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	x0, x27
	mov	x1, x28
	mov	w2, #0
	mov	x3, x22
	bl	_XLogFilePath
	str	w24, [x25]
	adrp	x24, _XLogRead.sendOff@PAGE
Lloh62:
	adrp	x8, _ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w28, [x8]
	bl	_errcode_for_file_access
	str	x26, [sp, #-16]!
Lloh65:
	adrp	x0, l_.str.2@PAGE
Lloh66:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x27
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x28
	ldur	x28, [x29, #-96]                ; 8-byte Folded Reload
	bl	_ereport
	mov	sp, x21
	adrp	x21, _XLogRead.sendFile@PAGE
	b	LBB0_2
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	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
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @XLogRead.sendFile
_XLogRead.sendFile:
	.long	4294967295                      ; 0xffffffff

.zerofill __DATA,__bss,_XLogRead.sendTLI,8,3 ; @XLogRead.sendTLI
.zerofill __DATA,__bss,_XLogRead.sendOff,4,2 ; @XLogRead.sendOff
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested WAL segment %s has already been removed"

l_.str.1:                               ; @.str.1
	.asciz	"could not open file \"%s\": %m"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.2:                               ; @.str.2
	.asciz	"could not seek in log segment %s to offset %u: %m"

	.comm	_WAIT_EVENT_WAL_READ,4,2        ; @WAIT_EVENT_WAL_READ
l_.str.3:                               ; @.str.3
	.asciz	"could not read from log segment %s, offset %u, length %lu: %m"

	.no_dead_strip	_XLogRead
.subsections_via_symbols
