	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FindStreamingStart
_FindStreamingStart:                    ## @FindStreamingStart
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_basedir@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_get_destination_dir
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_32
## %bb.1:
	movq	%rax, %r14
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_WalSegSz@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_pg_log_warning
	movq	%r15, %rsp
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_33
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_IsXLogFileName
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %r15b
	xorl	%ebx, %ebx
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	callq	_IsPartialXLogFileName
	movl	$1, -64(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %al
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	callq	_IsCompressXLogFileName
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %bl
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %r15b
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	callq	_IsPartialCompressXLogFileName
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %bl
	xorl	%r15d, %r15d
	movb	$1, %al
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	movl	(%r12), %ecx
	leaq	-112(%rbp), %rsi
	leaq	-128(%rbp), %rdx
	callq	_XLogFromFileName
	testb	%bl, %bl
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsp, %r15
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%ebx, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	(%r13), %rcx
	movq	(%r14), %r8
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_39
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %edx
	movq	_WalSegSz@GOTPCREL(%rip), %r12
	cmpl	(%r12), %edx
	jne	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rsp
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	andb	%r15b, %bl
	cmpb	$1, %bl
	jne	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%ebx, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r13, %r15
	movq	(%r13), %rcx
	movq	(%r14), %r8
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	_PG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_40
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$-4, %esi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_41
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %edi
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_read
	cmpl	$4, %eax
	jne	LBB0_44
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %edi
	callq	_close
	movzbl	-53(%rbp), %eax
	shll	$24, %eax
	movsbl	-54(%rbp), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movsbl	-55(%rbp), %eax
	shll	$8, %eax
	movsbl	-56(%rbp), %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movq	_WalSegSz@GOTPCREL(%rip), %r12
	cmpl	(%r12), %edx
	jne	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	jle	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %rcx
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	jle	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, %rax
	jne	LBB0_3
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	setne	%cl
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	sete	%dl
	orb	%cl, %dl
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	orb	%dl, %cl
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_pg_log_warning
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	%r15, %r13
	jmp	LBB0_3
LBB0_32:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_33:
	movq	_errno@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	(%r13), %rsi
	jne	LBB0_47
## %bb.34:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_close_destination_dir
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	jle	LBB0_36
## %bb.35:
	cmpl	$1, -80(%rbp)                   ## 4-byte Folded Reload
	adcq	$0, %rdi
	movq	_WalSegSz@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_XLogSegNoOffsetToRecPtr
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
                                        ## implicit-def: $eax
	jmp	LBB0_37
LBB0_36:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_48
## %bb.38:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_42
LBB0_40:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_42
LBB0_41:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_42
LBB0_44:
	testl	%eax, %eax
	jns	LBB0_46
## %bb.45:
	leaq	L_.str.5(%rip), %rdi
LBB0_42:
	movq	%r12, %rsi
LBB0_43:
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
LBB0_46:
	leaq	L_.str.6(%rip), %rdi
	movl	$4, %ecx
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
LBB0_47:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_43
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_basedir,8,3                    ## @basedir
	.comm	_errno,4,2                      ## @errno
	.comm	_WalSegSz,4,2                   ## @WalSegSz
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

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

L_.str.2:                               ## @.str.2
	.asciz	"segment file \"%s\" has incorrect size %d, skipping"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
L_.str.3:                               ## @.str.3
	.asciz	"could not open compressed file \"%s\": %m"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
L_.str.4:                               ## @.str.4
	.asciz	"could not seek in compressed file \"%s\": %m"

L_.str.5:                               ## @.str.5
	.asciz	"could not read compressed file \"%s\": %m"

L_.str.6:                               ## @.str.6
	.asciz	"could not read compressed file \"%s\": read %d of %zu"

L_.str.7:                               ## @.str.7
	.asciz	"compressed segment file \"%s\" has incorrect uncompressed size %d, skipping"

L_.str.8:                               ## @.str.8
	.asciz	"could not read directory \"%s\": %m"

	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.no_dead_strip	_FindStreamingStart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FindStreamingStart
_FindStreamingStart:                    ; @FindStreamingStart
	.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, #64
	stur	x0, [x29, #-136]                ; 8-byte Folded Spill
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	x26, _basedir@GOTPAGE
Lloh4:
	ldr	x26, [x26, _basedir@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_get_destination_dir
	mov	x20, x0
Lloh5:
	adrp	x27, _errno@GOTPAGE
Lloh6:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	str	wzr, [x27]
	bl	_readdir
Lloh7:
	adrp	x28, _WalSegSz@GOTPAGE
Lloh8:
	ldr	x28, [x28, _WalSegSz@GOTPAGEOFF]
	cbz	x0, LBB0_33
; %bb.1:
	mov	x24, x0
	stur	xzr, [x29, #-120]               ; 8-byte Folded Spill
	mov	x19, #0
	mov	w21, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x24]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_log_warning
	mov	sp, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x27]
	mov	x0, x20
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_34
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	bl	_IsXLogFileName
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	mov	w23, #0
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #1
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24]
	bl	_IsPartialXLogFileName
	cbz	x0, LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	mov	w25, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24]
	ldr	w3, [x28]
	sub	x1, x29, #96
	sub	x2, x29, #104
	bl	_XLogFromFileName
	tbnz	w22, #0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w23, #0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, sp
Lloh11:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w1, w8, #1
	mov	x9, x1
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	ldr	x3, [x26]
	ldr	x4, [x24]
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	sub	x1, x29, #112
	mov	x0, x25
	bl	_stat
	cbnz	x0, LBB0_40
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	w2, [x29, #-112]
	ldr	w8, [x28]
	cmp	w2, w8
	b.ne	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	sp, x22
	b	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w22, w25
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	stur	w21, [x29, #-124]               ; 4-byte Folded Spill
	mov	x21, x20
	mov	x20, x19
	mov	x19, x27
	mov	x22, sp
Lloh18:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	w1, w8, #1
	mov	x9, x1
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	mov	x27, x26
	ldr	x3, [x26]
	ldr	x4, [x24]
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
Lloh25:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x25
	mov	w2, #0
	bl	_open
	tbnz	w0, #31, LBB0_41
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
Lloh31:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w1, #-4
	bl	_lseek
	tbnz	x0, #63, LBB0_42
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x29, #112
	mov	x0, x26
	mov	w2, #4
	bl	_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #4
	b.ne	LBB0_43
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_close
	ldurb	w8, [x29, #-109]
	ldursb	w9, [x29, #-110]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldursb	w9, [x29, #-111]
	orr	w8, w8, w9, lsl #8
	ldursb	w9, [x29, #-112]
	orr	w2, w8, w9
	ldr	w8, [x28]
	cmp	w2, w8
	b.ne	LBB0_30
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	sp, x22
	mov	x26, x27
	mov	x27, x19
	mov	x19, x20
	mov	x20, x21
	ldur	w21, [x29, #-124]               ; 4-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-104]
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	cmp	x8, x9
	b.le	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	x9, [x29, #-96]
	b	LBB0_27
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x9, [x29, #-96]
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, x19
	b.gt	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x10, [x29, #-120]               ; 8-byte Folded Reload
	cmp	x8, x10
	b.ne	LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, x19
	ccmp	w21, #0, #4, eq
	cset	w9, eq
	orr	w10, w23, w9
	mov	x9, x19
	tbnz	w10, #0, LBB0_3
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x23
	mov	x19, x9
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	b	LBB0_3
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24]
	bl	_IsCompressXLogFileName
	cbz	x0, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	mov	w22, #1
	b	LBB0_6
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x24]
Lloh34:
	adrp	x0, l_.str.7@PAGE
Lloh35:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pg_log_warning
	mov	sp, x22
	mov	x26, x27
	mov	x27, x19
	mov	x19, x20
	mov	x20, x21
	ldur	w21, [x29, #-124]               ; 4-byte Folded Reload
	b	LBB0_3
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24]
	bl	_IsPartialCompressXLogFileName
	cbz	x0, LBB0_3
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
	mov	w22, #1
	b	LBB0_9
LBB0_33:
	mov	w21, #0
	mov	x19, #0
	stur	xzr, [x29, #-120]               ; 8-byte Folded Spill
LBB0_34:
	ldr	w8, [x27]
	ldr	x1, [x26]
	cbnz	w8, LBB0_48
; %bb.35:
	mov	x0, x20
	bl	_close_destination_dir
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	cmp	x8, #1
	b.lt	LBB0_37
; %bb.36:
	cmp	w21, #0
	cinc	x0, x8, eq
	ldr	w2, [x28]
	mov	w1, #0
	bl	_XLogSegNoOffsetToRecPtr
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	str	x19, [x8]
                                        ; implicit-def: $w0
	b	LBB0_38
LBB0_37:
Lloh36:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
LBB0_38:
	ldur	x8, [x29, #-88]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.39:
	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_40:
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_45
LBB0_41:
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_45
LBB0_42:
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_45
LBB0_43:
	tbz	w0, #31, LBB0_47
; %bb.44:
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_45:
	mov	x1, x25
LBB0_46:
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit
LBB0_47:
	mov	w8, #4
	stp	x0, x8, [sp, #-16]!
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x25
	bl	_pg_log_error
	add	sp, sp, #16
	mov	w0, #1
	bl	_exit
LBB0_48:
Lloh52:
	adrp	x0, l_.str.8@PAGE
Lloh53:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_46
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_basedir,8,3                    ; @basedir
	.comm	_errno,4,2                      ; @errno
	.comm	_WalSegSz,4,2                   ; @WalSegSz
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

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

l_.str.2:                               ; @.str.2
	.asciz	"segment file \"%s\" has incorrect size %d, skipping"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
l_.str.3:                               ; @.str.3
	.asciz	"could not open compressed file \"%s\": %m"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
l_.str.4:                               ; @.str.4
	.asciz	"could not seek in compressed file \"%s\": %m"

l_.str.5:                               ; @.str.5
	.asciz	"could not read compressed file \"%s\": %m"

l_.str.6:                               ; @.str.6
	.asciz	"could not read compressed file \"%s\": read %d of %zu"

l_.str.7:                               ; @.str.7
	.asciz	"compressed segment file \"%s\" has incorrect uncompressed size %d, skipping"

l_.str.8:                               ; @.str.8
	.asciz	"could not read directory \"%s\": %m"

	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.no_dead_strip	_FindStreamingStart
.subsections_via_symbols
