	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ReopenArchive
__ReopenArchive:                        ## @_ReopenArchive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	24(%rdi), %r14
	movq	_archModeWrite@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpl	$0, (%r14)
	je	LBB0_6
LBB0_7:
	movl	8(%rbx), %edi
	callq	_ftello
	movq	%rax, %r14
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_9:
	movl	8(%rbx), %edi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_11:
	movq	16(%rbx), %rdi
	movq	_PG_BINARY_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fopen
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	16(%rbx), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	movl	8(%rbx), %eax
LBB0_13:
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_fseeko
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	cmpl	$0, (%r14)
	jne	LBB0_7
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_7
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_archModeWrite,8,3              ## @archModeWrite
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can only reopen input archives"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"parallel restore from standard input is not supported"

L_.str.3:                               ## @.str.3
	.asciz	"parallel restore from non-seekable file is not supported"

L_.str.4:                               ## @.str.4
	.asciz	"could not determine seek position in archive file: %m"

L_.str.5:                               ## @.str.5
	.asciz	"could not close archive file: %m"

	.comm	_PG_BINARY_R,4,2                ## @PG_BINARY_R
L_.str.6:                               ## @.str.6
	.asciz	"could not open input file \"%s\": %m"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.7:                               ## @.str.7
	.asciz	"could not set seek position in archive file: %m"

	.no_dead_strip	__ReopenArchive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ReopenArchive
__ReopenArchive:                        ; @_ReopenArchive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _archModeWrite@GOTPAGE
Lloh1:
	ldr	x9, [x9, _archModeWrite@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.4:
	ldr	w8, [x20]
	cbz	w8, LBB0_14
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_ftello
	mov	x20, x0
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal
LBB0_7:
	ldr	w0, [x19, #8]
	bl	_fclose
	cbz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x0, l_.str.5@PAGE
Lloh10:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_fatal
LBB0_9:
	ldr	x0, [x19, #16]
Lloh11:
	adrp	x8, _PG_BINARY_R@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PG_BINARY_R@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_fopen
	str	w0, [x19, #8]
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal
	ldr	w0, [x19, #8]
LBB0_11:
Lloh16:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_fseeko
	cbz	x0, LBB0_15
; %bb.12:
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fatal
LBB0_13:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
LBB0_14:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
	b	LBB0_5
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_archModeWrite,8,3              ; @archModeWrite
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can only reopen input archives"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"parallel restore from standard input is not supported"

l_.str.3:                               ; @.str.3
	.asciz	"parallel restore from non-seekable file is not supported"

l_.str.4:                               ; @.str.4
	.asciz	"could not determine seek position in archive file: %m"

l_.str.5:                               ; @.str.5
	.asciz	"could not close archive file: %m"

	.comm	_PG_BINARY_R,4,2                ; @PG_BINARY_R
l_.str.6:                               ; @.str.6
	.asciz	"could not open input file \"%s\": %m"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.7:                               ; @.str.7
	.asciz	"could not set seek position in archive file: %m"

	.no_dead_strip	__ReopenArchive
.subsections_via_symbols
