	.file	"extr_pg_backup_archiver.c__discoverArchiveFormat.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"attempting to ascertain archive format"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s/toc.dat"
.LC2:
	.string	"directory name too long: \"%s\""
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"directory \"%s\" does not appear to be a valid archive (\"toc.dat\" does not exist)"
	.align 8
.LC4:
	.string	"could not open input file \"%s\": %m"
	.section	.rodata.str1.1
.LC5:
	.string	"could not open input file: %m"
.LC6:
	.string	"could not read input file: %m"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"input file is too short (read %lu, expected 5)"
	.section	.rodata.str1.1
.LC8:
	.string	"PGDMP"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"input file appears to be a text format dump. Please use psql."
	.align 8
.LC10:
	.string	"input file does not appear to be a valid archive (too short?)"
	.align 8
.LC11:
	.string	"input file does not appear to be a valid archive"
	.align 8
.LC12:
	.string	"could not close input file: %m"
	.text
	.p2align 4
	.type	_discoverArchiveFormat, @function
_discoverArchiveFormat:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	pg_log_debug@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L2
	call	free@PLT
.L2:
	mov	DWORD PTR 8[rbx], 512
	mov	edi, 512
	call	pg_malloc0@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	DWORD PTR 12[rbx], 0
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 48[rbx], 0
	test	rdi, rdi
	je	.L3
	lea	r12, -68[rbp]
	mov	rsi, r12
	call	stat@PLT
	test	rax, rax
	je	.L72
.L4:
	mov	rdi, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR PG_BINARY_R[rip]
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L73
.L11:
	mov	r14d, 1
.L12:
	lea	r15, -62[rbp]
	mov	rcx, r12
	mov	edx, 5
	mov	esi, 1
	mov	rdi, r15
	call	fread@PLT
	mov	r13, rax
	cmp	rax, 5
	je	.L13
	mov	rdi, r12
	call	ferror@PLT
	test	rax, rax
	je	.L14
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	fatal@PLT
.L13:
	mov	rdi, QWORD PTR [rbx]
	mov	edx, 5
	mov	rsi, r15
	call	memcpy@PLT
	mov	DWORD PTR 12[rbx], 5
	mov	edx, 5
	mov	rdi, r15
	lea	rsi, .LC8[rip]
	call	strncmp@PLT
	test	rax, rax
	jne	.L15
	mov	rdi, r12
	call	fgetc@PLT
	cmp	DWORD PTR EOF[rip], eax
	mov	r13d, eax
	je	.L74
.L16:
	mov	rdi, r12
	call	fgetc@PLT
	cmp	DWORD PTR EOF[rip], eax
	mov	r15d, eax
	je	.L75
.L17:
	movsx	rax, DWORD PTR 12[rbx]
	mov	rdx, QWORD PTR [rbx]
	lea	ecx, 1[rax]
	mov	DWORD PTR 12[rbx], ecx
	mov	BYTE PTR [rdx+rax], r13b
	movsx	rax, DWORD PTR 12[rbx]
	mov	rdx, QWORD PTR [rbx]
	lea	ecx, 1[rax]
	mov	DWORD PTR 12[rbx], ecx
	mov	BYTE PTR [rdx+rax], r15b
	cmp	r13b, 1
	jg	.L18
	jne	.L42
	test	r15b, r15b
	jle	.L42
.L18:
	mov	rdi, r12
	call	fgetc@PLT
	cmp	DWORD PTR EOF[rip], eax
	mov	edx, eax
	je	.L76
.L20:
	movsx	rax, DWORD PTR 12[rbx]
	mov	rcx, QWORD PTR [rbx]
	lea	esi, 1[rax]
	mov	DWORD PTR 12[rbx], esi
	mov	BYTE PTR [rcx+rax], dl
	movsx	edx, dl
.L19:
	movsx	esi, r15b
	movsx	edi, r13b
	call	MAKE_ARCHIVE_VERSION@PLT
	mov	rdi, r12
	mov	DWORD PTR 40[rbx], eax
	call	fgetc@PLT
	cmp	eax, DWORD PTR EOF[rip]
	mov	DWORD PTR 28[rbx], eax
	je	.L77
.L21:
	movsx	rdx, DWORD PTR 12[rbx]
	mov	rcx, QWORD PTR [rbx]
	lea	esi, 1[rdx]
	mov	DWORD PTR 12[rbx], esi
	mov	BYTE PTR [rcx+rdx], al
	mov	eax, DWORD PTR K_VERS_1_7[rip]
	cmp	DWORD PTR 40[rbx], eax
	jge	.L78
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 32[rbx], eax
.L24:
	mov	rdi, r12
	call	fgetc@PLT
	cmp	DWORD PTR EOF[rip], eax
	mov	r13d, eax
	je	.L79
.L25:
	movsx	rax, DWORD PTR 12[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	DWORD PTR 24[rbx], r13d
	lea	ecx, 1[rax]
	mov	DWORD PTR 12[rbx], ecx
	mov	BYTE PTR [rdx+rax], r13b
.L26:
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	rdi, r12
	call	fseeko@PLT
	test	rax, rax
	je	.L35
	mov	DWORD PTR 36[rbx], 1
	test	r14d, r14d
	jne	.L80
.L38:
	mov	eax, DWORD PTR 24[rbx]
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L81
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L72:
	.cfi_restore_state
	mov	edi, DWORD PTR -68[rbp]
	call	S_ISDIR@PLT
	test	rax, rax
	je	.L4
	movsx	rax, DWORD PTR MAXPGPATH[rip]
	mov	rcx, rsp
	mov	r13, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L82:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L82
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L7
	or	QWORD PTR -8[rsp+rdx], 0
.L7:
	mov	rcx, QWORD PTR 16[rbx]
	lea	rdx, .LC1[rip]
	mov	rdi, rsp
	mov	r14, rsp
	call	snprintf@PLT
	cmp	eax, DWORD PTR MAXPGPATH[rip]
	jl	.L8
	mov	rsi, QWORD PTR 16[rbx]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	fatal@PLT
.L8:
	mov	rsi, r12
	mov	rdi, r14
	call	stat@PLT
	test	rax, rax
	jne	.L9
	mov	edi, DWORD PTR -68[rbp]
	call	S_ISREG@PLT
	test	rax, rax
	jne	.L83
.L9:
	mov	rsi, QWORD PTR 16[rbx]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	fatal@PLT
	mov	rsp, r13
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	movsx	rdi, DWORD PTR 12[rbx]
	mov	edx, 512
	mov	rcx, r12
	mov	esi, 1
	sub	edx, edi
	add	rdi, QWORD PTR [rbx]
	call	fread@PLT
	mov	r13d, DWORD PTR 12[rbx]
	mov	rdi, QWORD PTR TEXT_DUMPALL_HEADER[rip]
	add	r13d, eax
	mov	DWORD PTR 12[rbx], r13d
	call	strlen@PLT
	cmp	r13d, eax
	jge	.L84
.L28:
	cmp	DWORD PTR 12[rbx], 512
	je	.L32
	mov	rdi, r12
	call	feof@PLT
	test	rax, rax
	je	.L33
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	fatal@PLT
.L32:
	mov	rdi, QWORD PTR [rbx]
	call	isValidTarHeader@PLT
	test	eax, eax
	je	.L85
.L34:
	mov	eax, DWORD PTR archTar[rip]
	mov	DWORD PTR 24[rbx], eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L35:
	mov	DWORD PTR 12[rbx], 0
	test	r14d, r14d
	je	.L38
.L80:
	mov	rdi, r12
	call	fclose@PLT
	test	rax, rax
	je	.L38
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12, QWORD PTR stdin[rip]
	xor	r14d, r14d
	test	r12, r12
	jne	.L12
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, r13
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, r12
	call	READ_ERROR_EXIT@PLT
	mov	rdi, QWORD PTR [rbx]
	call	isValidTarHeader@PLT
	test	eax, eax
	jne	.L34
.L85:
	lea	rdi, .LC11[rip]
	call	fatal@PLT
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L42:
	xor	edx, edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L84:
	mov	rdi, QWORD PTR TEXT_DUMP_HEADER[rip]
	call	strlen@PLT
	mov	rsi, QWORD PTR TEXT_DUMP_HEADER[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	edx, eax
	call	strncmp@PLT
	test	rax, rax
	je	.L30
	mov	rdi, QWORD PTR TEXT_DUMPALL_HEADER[rip]
	call	strlen@PLT
	mov	rsi, QWORD PTR TEXT_DUMPALL_HEADER[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	edx, eax
	call	strncmp@PLT
	test	rax, rax
	jne	.L28
.L30:
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L78:
	mov	rdi, r12
	call	fgetc@PLT
	cmp	eax, DWORD PTR EOF[rip]
	mov	DWORD PTR 32[rbx], eax
	je	.L86
.L23:
	movsx	rdx, DWORD PTR 12[rbx]
	mov	rcx, QWORD PTR [rbx]
	lea	esi, 1[rdx]
	mov	DWORD PTR 12[rbx], esi
	mov	BYTE PTR [rcx+rdx], al
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L79:
	mov	rdi, r12
	call	READ_ERROR_EXIT@PLT
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L77:
	mov	rdi, r12
	call	READ_ERROR_EXIT@PLT
	mov	eax, DWORD PTR 28[rbx]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L75:
	mov	rdi, r12
	call	READ_ERROR_EXIT@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L74:
	mov	rdi, r12
	call	READ_ERROR_EXIT@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L73:
	mov	rsi, QWORD PTR 16[rbx]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L76:
	mov	rdi, r12
	mov	DWORD PTR -84[rbp], eax
	call	READ_ERROR_EXIT@PLT
	mov	edx, DWORD PTR -84[rbp]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L86:
	mov	rdi, r12
	call	READ_ERROR_EXIT@PLT
	mov	eax, DWORD PTR 32[rbx]
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L83:
	mov	rdx, QWORD PTR archDirectory[rip]
	mov	DWORD PTR 24[rbx], edx
	mov	eax, edx
	mov	rsp, r13
	jmp	.L1
.L81:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_discoverArchiveFormat, .-_discoverArchiveFormat
	.comm	stdin,8,8
	.comm	archTar,4,4
	.comm	archDirectory,8,8
	.comm	TEXT_DUMP_HEADER,8,8
	.comm	TEXT_DUMPALL_HEADER,8,8
	.comm	SEEK_SET,4,4
	.comm	PG_BINARY_R,4,4
	.comm	MAXPGPATH,4,4
	.comm	K_VERS_1_7,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pg_backup_archiver.c__discoverArchiveFormat.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"attempting to ascertain archive format\000"
	.align	2
.LC1:
	.ascii	"%s/toc.dat\000"
	.align	2
.LC2:
	.ascii	"directory name too long: \"%s\"\000"
	.align	2
.LC3:
	.ascii	"directory \"%s\" does not appear to be a valid arch"
	.ascii	"ive (\"toc.dat\" does not exist)\000"
	.align	2
.LC4:
	.ascii	"could not open input file \"%s\": %m\000"
	.align	2
.LC5:
	.ascii	"could not open input file: %m\000"
	.align	2
.LC6:
	.ascii	"could not read input file: %m\000"
	.align	2
.LC7:
	.ascii	"input file is too short (read %lu, expected 5)\000"
	.align	2
.LC8:
	.ascii	"PGDMP\000"
	.align	2
.LC9:
	.ascii	"input file appears to be a text format dump. Please"
	.ascii	" use psql.\000"
	.align	2
.LC10:
	.ascii	"input file does not appear to be a valid archive (t"
	.ascii	"oo short?)\000"
	.align	2
.LC11:
	.ascii	"input file does not appear to be a valid archive\000"
	.align	2
.LC12:
	.ascii	"could not close input file: %m\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_discoverArchiveFormat, %function
_discoverArchiveFormat:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r3, .L73
	ldr	r0, .L73+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	pg_log_debug
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L2
	bl	free
.L2:
	mov	r0, #512
	str	r0, [r4, #4]
	bl	pg_malloc0
	mov	r3, #0
	ldr	r7, [r4, #12]
	str	r0, [r4]
	cmp	r7, r3
	str	r3, [r4, #8]
	str	r3, [r4, #36]
	beq	.L3
	mov	r0, r7
	sub	r1, fp, #52
	bl	stat
	cmp	r0, #0
	beq	.L60
.L4:
	ldr	r3, .L73+8
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	bl	fopen
	subs	r5, r0, #0
	beq	.L61
.L8:
	mov	r7, #1
.L9:
	mov	r3, r5
	mov	r2, #5
	mov	r1, #1
	sub	r0, fp, #48
	bl	fread
	cmp	r0, #5
	mov	r6, r0
	beq	.L10
	mov	r0, r5
	bl	ferror
	cmp	r0, #0
	beq	.L11
	ldr	r0, .L73+12
	bl	fatal
.L10:
	mov	r6, #5
	sub	r1, fp, #48
	mov	r2, r6
	ldr	r0, [r4]
	bl	memcpy
	mov	r2, r6
	ldr	r1, .L73+16
	str	r6, [r4, #8]
	sub	r0, fp, #48
	bl	strncmp
	cmp	r0, #0
	bne	.L12
	mov	r0, r5
	bl	fgetc
	ldr	r8, .L73+20
	mov	r6, r0
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L62
.L13:
	mov	r0, r5
	bl	fgetc
	ldr	r3, [r8]
	mov	r10, r0
	cmp	r3, r0
	and	r9, r6, #255
	beq	.L63
.L14:
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	add	r1, r3, #1
	str	r1, [r4, #8]
	strb	r9, [r2, r3]
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	and	r10, r10, #255
	add	r1, r3, #1
	cmp	r9, #1
	str	r1, [r4, #8]
	strb	r10, [r2, r3]
	bhi	.L15
	cmp	r10, #0
	moveq	r2, #0
	andne	r2, r6, #1
	cmp	r2, #0
	bne	.L15
.L16:
	mov	r1, r10
	mov	r0, r9
	bl	MAKE_ARCHIVE_VERSION
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #32]
	bl	fgetc
	ldr	r3, [r8]
	str	r0, [r4, #20]
	cmp	r0, r3
	beq	.L64
.L18:
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	add	r1, r3, #1
	str	r1, [r4, #8]
	ldr	r1, .L73+24
	strb	r0, [r2, r3]
	ldr	r2, [r4, #32]
	ldr	r3, [r1]
	cmp	r2, r3
	bge	.L65
	ldr	r3, [r4, #20]
	str	r3, [r4, #24]
.L21:
	mov	r0, r5
	bl	fgetc
	ldr	r3, [r8]
	mov	r6, r0
	cmp	r3, r0
	beq	.L66
.L22:
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	add	r1, r3, #1
	str	r6, [r4, #16]
	str	r1, [r4, #8]
	strb	r6, [r2, r3]
.L23:
	ldr	r3, .L73+28
	mov	r1, #0
	ldr	r2, [r3]
	mov	r0, r5
	bl	fseeko
	cmp	r0, #0
	movne	r3, #1
	streq	r0, [r4, #8]
	strne	r3, [r4, #28]
	cmp	r7, #0
	bne	.L67
.L32:
	ldr	r0, [r4, #16]
.L1:
	ldr	r3, .L73
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L68
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L60:
	ldr	r0, [fp, #-52]
	bl	S_ISDIR
	cmp	r0, #0
	beq	.L4
	ldr	r5, .L73+32
	mov	r6, sp
	ldr	r1, [r5]
	ldr	r3, [r4, #12]
	add	r2, r1, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	mov	r0, sp
	ldr	r2, .L73+36
	bl	snprintf
	ldr	r3, [r5]
	mov	r5, sp
	cmp	r0, r3
	bge	.L69
.L5:
	mov	r0, r5
	sub	r1, fp, #52
	bl	stat
	cmp	r0, #0
	bne	.L6
	ldr	r0, [fp, #-52]
	bl	S_ISREG
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L73+40
	ldr	r0, [r3]
	str	r0, [r4, #16]
	mov	sp, r6
	b	.L1
.L15:
	mov	r0, r5
	bl	fgetc
	ldr	r3, [r8]
	mov	r6, r0
	cmp	r3, r0
	beq	.L70
.L17:
	ldr	r3, [r4, #8]
	ldr	r1, [r4]
	and	r2, r6, #255
	add	r0, r3, #1
	str	r0, [r4, #8]
	strb	r2, [r1, r3]
	b	.L16
.L12:
	ldr	r0, [r4]
	mov	r3, r5
	mov	r1, #1
	ldr	r2, .L73+44
	add	r0, r0, #5
	bl	fread
	ldr	r2, .L73+48
	ldr	r3, [r4, #8]
	ldr	r9, [r2]
	add	r6, r0, r3
	str	r6, [r4, #8]
	mov	r0, r9
	bl	strlen
	cmp	r6, r0
	mov	r8, r0
	blt	.L24
	ldr	r2, .L73+52
	ldr	r3, [r4]
	ldr	r10, [r2]
	str	r3, [fp, #-56]
	mov	r0, r10
	bl	strlen
	ldr	r3, [fp, #-56]
	mov	r2, r0
	mov	r1, r10
	mov	r0, r3
	bl	strncmp
	cmp	r0, #0
	beq	.L25
	ldr	r3, [fp, #-56]
	mov	r2, r8
	mov	r1, r9
	mov	r0, r3
	bl	strncmp
	cmp	r0, #0
	bne	.L24
.L25:
	ldr	r0, .L73+56
	bl	fatal
	ldr	r6, [r4, #8]
.L24:
	cmp	r6, #512
	beq	.L26
	mov	r0, r5
	bl	feof
	cmp	r0, #0
	beq	.L27
	ldr	r0, .L73+60
	bl	fatal
.L26:
	ldr	r0, [r4]
	bl	isValidTarHeader
	cmp	r0, #0
	beq	.L71
.L28:
	ldr	r3, .L73+64
	ldr	r3, [r3]
	str	r3, [r4, #16]
	b	.L23
.L3:
	ldr	r3, .L73+68
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L9
	ldr	r0, .L73+72
	bl	fatal
	mov	r7, r5
	b	.L9
.L67:
	mov	r0, r5
	bl	fclose
	cmp	r0, #0
	beq	.L32
	ldr	r0, .L73+76
	bl	fatal
	b	.L32
.L11:
	mov	r1, r6
	ldr	r0, .L73+80
	bl	fatal
	b	.L10
.L27:
	mov	r0, r5
	bl	READ_ERROR_EXIT
	ldr	r0, [r4]
	bl	isValidTarHeader
	cmp	r0, #0
	bne	.L28
.L71:
	ldr	r0, .L73+84
	bl	fatal
	b	.L28
.L6:
	ldr	r1, [r4, #12]
	ldr	r0, .L73+88
	bl	fatal
	mov	r5, #0
	mov	sp, r6
	b	.L8
.L65:
	mov	r0, r5
	bl	fgetc
	ldr	r3, [r8]
	str	r0, [r4, #24]
	cmp	r0, r3
	beq	.L72
.L20:
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	add	r1, r3, #1
	str	r1, [r4, #8]
	strb	r0, [r2, r3]
	b	.L21
.L66:
	mov	r0, r5
	bl	READ_ERROR_EXIT
	b	.L22
.L64:
	mov	r0, r5
	bl	READ_ERROR_EXIT
	ldr	r0, [r4, #20]
	b	.L18
.L63:
	mov	r0, r5
	bl	READ_ERROR_EXIT
	b	.L14
.L62:
	mov	r0, r5
	bl	READ_ERROR_EXIT
	b	.L13
.L61:
	ldr	r1, [r4, #12]
	ldr	r0, .L73+92
	bl	fatal
	b	.L8
.L70:
	mov	r0, r5
	bl	READ_ERROR_EXIT
	b	.L17
.L72:
	mov	r0, r5
	bl	READ_ERROR_EXIT
	ldr	r0, [r4, #24]
	b	.L20
.L69:
	ldr	r1, [r4, #12]
	ldr	r0, .L73+96
	bl	fatal
	b	.L5
.L68:
	bl	__stack_chk_fail
.L74:
	.align	2
.L73:
	.word	.LC13
	.word	.LC0
	.word	PG_BINARY_R
	.word	.LC6
	.word	.LC8
	.word	EOF
	.word	K_VERS_1_7
	.word	SEEK_SET
	.word	MAXPGPATH
	.word	.LC1
	.word	archDirectory
	.word	507
	.word	TEXT_DUMPALL_HEADER
	.word	TEXT_DUMP_HEADER
	.word	.LC9
	.word	.LC10
	.word	archTar
	.word	stdin
	.word	.LC5
	.word	.LC12
	.word	.LC7
	.word	.LC11
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.size	_discoverArchiveFormat, .-_discoverArchiveFormat
	.comm	stdin,4,4
	.comm	archTar,4,4
	.comm	archDirectory,4,4
	.comm	TEXT_DUMP_HEADER,4,4
	.comm	TEXT_DUMPALL_HEADER,4,4
	.comm	SEEK_SET,4,4
	.comm	PG_BINARY_R,4,4
	.comm	MAXPGPATH,4,4
	.comm	K_VERS_1_7,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
