	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _discoverArchiveFormat
__discoverArchiveFormat:                ## @_discoverArchiveFormat
	.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	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_pg_log_debug
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movl	$512, 8(%r12)                   ## imm = 0x200
	movl	$512, %edi                      ## imm = 0x200
	callq	_pg_malloc0
	movq	%rax, (%r12)
	movl	$0, 12(%r12)
	movq	$0, 48(%r12)
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.3:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_4
LBB0_10:
	movq	16(%r12), %rdi
	movq	_PG_BINARY_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	16(%r12), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_15
LBB0_13:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_15
LBB0_4:
	movl	-56(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rsp, %r13
	movq	_MAXPGPATH@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r15), %esi
	movq	16(%r12), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	cmpl	(%r15), %eax
	jl	LBB0_7
## %bb.6:
	movq	16(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_7:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movq	16(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fatal
	movq	%r13, %rsp
LBB0_15:
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	movl	$5, %edx
	movq	%r15, %rcx
	callq	_fread
	cmpq	$5, %rax
	je	LBB0_19
## %bb.16:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_19:
	movq	(%r12), %rdi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_memcpy
	movl	$5, 12(%r12)
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.40:
	movslq	12(%r12), %rdi
	movl	$512, %edx                      ## imm = 0x200
	subl	%edi, %edx
	addq	(%r12), %rdi
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fread
	movq	%rax, %rbx
	addl	12(%r12), %ebx
	movl	%ebx, 12(%r12)
	movq	_TEXT_DUMPALL_HEADER@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	jl	LBB0_44
## %bb.41:
	movq	(%r12), %r14
	movq	_TEXT_DUMP_HEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movq	(%r12), %r14
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_44
LBB0_43:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_44:
	cmpl	$512, 12(%r12)                  ## imm = 0x200
	je	LBB0_48
## %bb.45:
	movq	%r15, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_48
LBB0_20:
	movq	%r15, %rdi
	callq	_fgetc
	movl	%eax, %r13d
	movl	%eax, %r14d
	movq	_EOF@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_READ_ERROR_EXIT
LBB0_22:
	movq	%r15, %rdi
	callq	_fgetc
	cmpl	(%rbx), %eax
	jne	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	movl	%eax, %ebx
	callq	_READ_ERROR_EXIT
	movl	%ebx, %eax
LBB0_24:
	movq	(%r12), %rsi
	movslq	12(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 12(%r12)
	movl	%r14d, %ebx
	movb	%bl, (%rsi,%rcx)
	movq	(%r12), %rsi
	movslq	12(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 12(%r12)
	movb	%al, (%rsi,%rcx)
	shll	$24, %r13d
	cmpl	$16777216, %r13d                ## imm = 0x1000000
	jg	LBB0_27
## %bb.25:
	xorl	%r14d, %r14d
	cmpl	$16777216, %r13d                ## imm = 0x1000000
	jne	LBB0_30
## %bb.26:
	testb	%al, %al
	jle	LBB0_30
LBB0_27:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_fgetc
	movl	%eax, %r14d
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_29
## %bb.28:
	movq	%r15, %rdi
	callq	_READ_ERROR_EXIT
LBB0_29:
	movq	(%r12), %rax
	movslq	12(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 12(%r12)
	movb	%r14b, (%rax,%rcx)
	movl	%r13d, %eax
LBB0_30:
	movsbl	%bl, %edi
	movsbl	%al, %esi
	movsbl	%r14b, %edx
	callq	_MAKE_ARCHIVE_VERSION
	movl	%eax, 40(%r12)
	movq	%r15, %rdi
	callq	_fgetc
	movl	%eax, 28(%r12)
	movq	_EOF@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_32
## %bb.31:
	movq	%r15, %rdi
	callq	_READ_ERROR_EXIT
	movl	28(%r12), %eax
LBB0_32:
	movq	(%r12), %rcx
	movslq	12(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 12(%r12)
	movb	%al, (%rcx,%rdx)
	movl	40(%r12), %eax
	movq	_K_VERS_1_7@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_33
## %bb.36:
	movl	28(%r12), %eax
	movl	%eax, 32(%r12)
	jmp	LBB0_37
LBB0_33:
	movq	%r15, %rdi
	callq	_fgetc
	movl	%eax, 32(%r12)
	cmpl	(%r14), %eax
	jne	LBB0_35
## %bb.34:
	movq	%r15, %rdi
	callq	_READ_ERROR_EXIT
	movl	32(%r12), %eax
LBB0_35:
	movq	(%r12), %rcx
	movslq	12(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 12(%r12)
	movb	%al, (%rcx,%rdx)
LBB0_37:
	movq	%r15, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	cmpl	(%r14), %eax
	jne	LBB0_39
## %bb.38:
	movq	%r15, %rdi
	callq	_READ_ERROR_EXIT
LBB0_39:
	movl	%ebx, 24(%r12)
	movq	(%r12), %rax
	movslq	12(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 12(%r12)
	movb	%bl, (%rax,%rcx)
	jmp	LBB0_51
LBB0_47:
	movq	%r15, %rdi
	callq	_READ_ERROR_EXIT
LBB0_48:
	movq	(%r12), %rdi
	callq	_isValidTarHeader
	testl	%eax, %eax
	jne	LBB0_50
## %bb.49:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_50:
	movq	_archTar@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
LBB0_51:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseeko
	testq	%rax, %rax
	je	LBB0_53
## %bb.52:
	movl	$1, 36(%r12)
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_55
	jmp	LBB0_57
LBB0_53:
	movl	$0, 12(%r12)
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_57
LBB0_55:
	movq	%r15, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_57
## %bb.56:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_57:
	movl	24(%r12), %eax
LBB0_58:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_60
## %bb.59:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-56(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	_archDirectory@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r13, %rsp
	jmp	LBB0_58
LBB0_60:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting to ascertain archive format"

	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
L_.str.1:                               ## @.str.1
	.asciz	"%s/toc.dat"

L_.str.2:                               ## @.str.2
	.asciz	"directory name too long: \"%s\""

	.comm	_archDirectory,8,3              ## @archDirectory
L_.str.3:                               ## @.str.3
	.asciz	"directory \"%s\" does not appear to be a valid archive (\"toc.dat\" does not exist)"

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

	.comm	_stdin,8,3                      ## @stdin
L_.str.5:                               ## @.str.5
	.asciz	"could not open input file: %m"

L_.str.6:                               ## @.str.6
	.asciz	"could not read input file: %m"

L_.str.7:                               ## @.str.7
	.asciz	"input file is too short (read %lu, expected 5)"

L_.str.8:                               ## @.str.8
	.asciz	"PGDMP"

	.comm	_EOF,4,2                        ## @EOF
	.comm	_K_VERS_1_7,4,2                 ## @K_VERS_1_7
	.comm	_TEXT_DUMPALL_HEADER,8,3        ## @TEXT_DUMPALL_HEADER
	.comm	_TEXT_DUMP_HEADER,8,3           ## @TEXT_DUMP_HEADER
L_.str.9:                               ## @.str.9
	.asciz	"input file appears to be a text format dump. Please use psql."

L_.str.10:                              ## @.str.10
	.asciz	"input file does not appear to be a valid archive (too short?)"

L_.str.11:                              ## @.str.11
	.asciz	"input file does not appear to be a valid archive"

	.comm	_archTar,4,2                    ## @archTar
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.12:                              ## @.str.12
	.asciz	"could not close input file: %m"

	.no_dead_strip	__discoverArchiveFormat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _discoverArchiveFormat
__discoverArchiveFormat:                ; @_discoverArchiveFormat
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_log_debug
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
	mov	w8, #512
	str	w8, [x19, #8]
	mov	w0, #512
	bl	_pg_malloc0
	str	x0, [x19]
	str	wzr, [x19, #12]
	str	xzr, [x19, #48]
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_6
; %bb.3:
	sub	x1, x29, #80
	mov	x0, x20
	bl	_stat
	cbz	x0, LBB0_8
LBB0_4:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x8, _PG_BINARY_R@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PG_BINARY_R@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_fopen
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.5:
	ldr	x8, [x19, #16]
	str	x8, [sp, #-16]!
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal
	add	sp, sp, #16
	b	LBB0_13
LBB0_6:
Lloh10:
	adrp	x8, _stdin@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
	cbnz	x21, LBB0_13
; %bb.7:
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_fatal
	b	LBB0_13
LBB0_8:
	ldur	w0, [x29, #-80]
	bl	_S_ISDIR
	cbz	x0, LBB0_4
; %bb.9:
	mov	x22, sp
Lloh15:
	adrp	x23, _MAXPGPATH@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MAXPGPATH@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w1, [x23]
	ldr	x3, [x19, #16]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_snprintf
	ldr	w8, [x23]
	cmp	w0, w8
	b.lt	LBB0_11
; %bb.10:
	ldr	x8, [x19, #16]
	str	x8, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
	add	sp, sp, #16
LBB0_11:
	sub	x1, x29, #80
	mov	x0, x21
	bl	_stat
	cbz	x0, LBB0_57
LBB0_12:
	ldr	x8, [x19, #16]
	str	x8, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
	add	sp, sp, #16
	mov	sp, x22
	mov	x21, #0
LBB0_13:
	mov	w23, #5
	sub	x0, x29, #80
	mov	w1, #1
	mov	w2, #5
	mov	x3, x21
	bl	_fread
	cmp	x0, #5
	b.eq	LBB0_17
; %bb.14:
	mov	x22, x0
	mov	x0, x21
	bl	_ferror
	cbz	x0, LBB0_16
; %bb.15:
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal
	b	LBB0_17
LBB0_16:
	str	x22, [sp, #-16]!
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_fatal
	add	sp, sp, #16
LBB0_17:
	ldr	x0, [x19]
	sub	x1, x29, #80
	mov	w2, #5
	bl	_memcpy
	str	w23, [x19, #12]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	sub	x0, x29, #80
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_25
; %bb.18:
	ldr	x8, [x19]
	ldrsw	x9, [x19, #12]
	add	x0, x8, x9
	mov	w8, #512
	sub	w2, w8, w9
	mov	w1, #1
	mov	x3, x21
	bl	_fread
	ldr	w8, [x19, #12]
	add	w22, w8, w0
	str	w22, [x19, #12]
Lloh31:
	adrp	x24, _TEXT_DUMPALL_HEADER@GOTPAGE
Lloh32:
	ldr	x24, [x24, _TEXT_DUMPALL_HEADER@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_strlen
	cmp	w22, w0
	b.lt	LBB0_22
; %bb.19:
	ldr	x22, [x19]
Lloh33:
	adrp	x8, _TEXT_DUMP_HEADER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TEXT_DUMP_HEADER@GOTPAGEOFF]
Lloh35:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_strncmp
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x22, [x19]
	ldr	x23, [x24]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_strncmp
	cbnz	x0, LBB0_22
LBB0_21:
Lloh36:
	adrp	x0, l_.str.9@PAGE
Lloh37:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_fatal
LBB0_22:
	ldr	w8, [x19, #12]
	cmp	w8, #512
	b.eq	LBB0_46
; %bb.23:
	mov	x0, x21
	bl	_feof
	cbz	x0, LBB0_45
; %bb.24:
Lloh38:
	adrp	x0, l_.str.10@PAGE
Lloh39:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_fatal
	b	LBB0_46
LBB0_25:
	mov	x0, x21
	bl	_fgetc
	mov	x22, x0
Lloh40:
	adrp	x25, _EOF@GOTPAGE
Lloh41:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x21
	bl	_READ_ERROR_EXIT
LBB0_27:
	mov	x0, x21
	bl	_fgetc
	mov	x23, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x21
	bl	_READ_ERROR_EXIT
LBB0_29:
	ldr	x8, [x19]
	ldrsw	x9, [x19, #12]
	add	w10, w9, #1
	str	w10, [x19, #12]
	strb	w22, [x8, x9]
	ldr	x8, [x19]
	ldrsw	x9, [x19, #12]
	add	w10, w9, #1
	str	w10, [x19, #12]
	strb	w23, [x8, x9]
	lsl	w8, w22, #24
	mov	w9, #16777216
	cmp	w8, w9
	b.gt	LBB0_32
; %bb.30:
	mov	w24, #0
	cmp	w8, w9
	b.ne	LBB0_35
; %bb.31:
	lsl	w8, w23, #24
	cmp	w8, #1
	b.lt	LBB0_35
LBB0_32:
	mov	x0, x21
	bl	_fgetc
	mov	x24, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_34
; %bb.33:
	mov	x0, x21
	bl	_READ_ERROR_EXIT
LBB0_34:
	ldr	x8, [x19]
	ldrsw	x9, [x19, #12]
	add	w10, w9, #1
	str	w10, [x19, #12]
	strb	w24, [x8, x9]
LBB0_35:
	sxtb	w0, w22
	sxtb	w1, w23
	sxtb	w2, w24
	bl	_MAKE_ARCHIVE_VERSION
	str	w0, [x19, #40]
	mov	x0, x21
	bl	_fgetc
	str	w0, [x19, #28]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_37
; %bb.36:
	mov	x0, x21
	bl	_READ_ERROR_EXIT
	ldr	w0, [x19, #28]
LBB0_37:
	ldr	x8, [x19]
	ldrsw	x9, [x19, #12]
	add	w10, w9, #1
	str	w10, [x19, #12]
	strb	w0, [x8, x9]
	ldr	w8, [x19, #40]
Lloh42:
	adrp	x9, _K_VERS_1_7@GOTPAGE
Lloh43:
	ldr	x9, [x9, _K_VERS_1_7@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_39
; %bb.38:
	ldr	w8, [x19, #28]
	str	w8, [x19, #32]
	b	LBB0_42
LBB0_39:
	mov	x0, x21
	bl	_fgetc
	str	w0, [x19, #32]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_41
; %bb.40:
	mov	x0, x21
	bl	_READ_ERROR_EXIT
	ldr	w0, [x19, #32]
LBB0_41:
	ldr	x8, [x19]
	ldrsw	x9, [x19, #12]
	add	w10, w9, #1
	str	w10, [x19, #12]
	strb	w0, [x8, x9]
LBB0_42:
	mov	x0, x21
	bl	_fgetc
	mov	x22, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_44
; %bb.43:
	mov	x0, x21
	bl	_READ_ERROR_EXIT
LBB0_44:
	str	w22, [x19, #24]
	ldr	x8, [x19]
	ldrsw	x9, [x19, #12]
	add	w10, w9, #1
	str	w10, [x19, #12]
	strb	w22, [x8, x9]
	b	LBB0_49
LBB0_45:
	mov	x0, x21
	bl	_READ_ERROR_EXIT
LBB0_46:
	ldr	x0, [x19]
	bl	_isValidTarHeader
	cbnz	w0, LBB0_48
; %bb.47:
Lloh45:
	adrp	x0, l_.str.11@PAGE
Lloh46:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_fatal
LBB0_48:
Lloh47:
	adrp	x8, _archTar@GOTPAGE
Lloh48:
	ldr	x8, [x8, _archTar@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_49:
Lloh50:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_fseeko
	cbz	x0, LBB0_51
; %bb.50:
	mov	w8, #1
	str	w8, [x19, #36]
	cbnz	x20, LBB0_52
	b	LBB0_54
LBB0_51:
	str	wzr, [x19, #12]
	cbz	x20, LBB0_54
LBB0_52:
	mov	x0, x21
	bl	_fclose
	cbz	x0, LBB0_54
; %bb.53:
Lloh53:
	adrp	x0, l_.str.12@PAGE
Lloh54:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_fatal
LBB0_54:
	ldr	w0, [x19, #24]
LBB0_55:
	ldur	x8, [x29, #-72]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_59
; %bb.56:
	sub	sp, x29, #64
	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
LBB0_57:
	ldur	w0, [x29, #-80]
	bl	_S_ISREG
	cbz	x0, LBB0_12
; %bb.58:
Lloh58:
	adrp	x8, _archDirectory@GOTPAGE
Lloh59:
	ldr	x8, [x8, _archDirectory@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	str	w0, [x19, #24]
	mov	sp, x22
	b	LBB0_55
LBB0_59:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting to ascertain archive format"

	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
l_.str.1:                               ; @.str.1
	.asciz	"%s/toc.dat"

l_.str.2:                               ; @.str.2
	.asciz	"directory name too long: \"%s\""

	.comm	_archDirectory,8,3              ; @archDirectory
l_.str.3:                               ; @.str.3
	.asciz	"directory \"%s\" does not appear to be a valid archive (\"toc.dat\" does not exist)"

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

	.comm	_stdin,8,3                      ; @stdin
l_.str.5:                               ; @.str.5
	.asciz	"could not open input file: %m"

l_.str.6:                               ; @.str.6
	.asciz	"could not read input file: %m"

l_.str.7:                               ; @.str.7
	.asciz	"input file is too short (read %lu, expected 5)"

l_.str.8:                               ; @.str.8
	.asciz	"PGDMP"

	.comm	_EOF,4,2                        ; @EOF
	.comm	_K_VERS_1_7,4,2                 ; @K_VERS_1_7
	.comm	_TEXT_DUMPALL_HEADER,8,3        ; @TEXT_DUMPALL_HEADER
	.comm	_TEXT_DUMP_HEADER,8,3           ; @TEXT_DUMP_HEADER
l_.str.9:                               ; @.str.9
	.asciz	"input file appears to be a text format dump. Please use psql."

l_.str.10:                              ; @.str.10
	.asciz	"input file does not appear to be a valid archive (too short?)"

l_.str.11:                              ; @.str.11
	.asciz	"input file does not appear to be a valid archive"

	.comm	_archTar,4,2                    ; @archTar
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.12:                              ; @.str.12
	.asciz	"could not close input file: %m"

	.no_dead_strip	__discoverArchiveFormat
.subsections_via_symbols
