	.file	"extr_fritz_tffs_nand_read.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERROR: Failed to open tffs device %s\n"
	.align 8
.LC1:
	.string	"ERROR: Parsing blocks from tffs device %s failed\n"
	.align 8
.LC2:
	.string	"       Is byte-swapping (-b) required?\n"
	.align 8
.LC3:
	.string	"ERROR: No name table found on tffs device %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR [rsi]
	mov	r13d, DWORD PTR EXIT_FAILURE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	basename@PLT
	mov	rsi, rbp
	mov	edi, r12d
	mov	DWORD PTR progname[rip], eax
	call	parse_options@PLT
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rdi, QWORD PTR mtddev[rip]
	call	open@PLT
	mov	QWORD PTR mtdfd[rip], rax
	test	rax, rax
	js	.L16
	xor	eax, eax
	call	scan_mtd@PLT
	test	eax, eax
	je	.L17
	lea	rbp, 12[rsp]
	mov	edi, DWORD PTR TFFS_ID_TABLE_NAME[rip]
	mov	rsi, rbp
	call	find_entry@PLT
	test	eax, eax
	je	.L18
	lea	r12, 16[rsp]
	mov	rdi, rbp
	mov	rsi, r12
	call	parse_key_names@PLT
	cmp	DWORD PTR 16[rsp], 0
	jle	.L19
	cmp	QWORD PTR print_all_key_names[rip], 0
	mov	rdi, r12
	jne	.L20
	cmp	QWORD PTR show_all[rip], 0
	je	.L12
	call	show_all_key_value_pairs@PLT
	mov	r13d, eax
.L11:
	mov	edi, DWORD PTR 20[rsp]
	call	free@PLT
.L9:
	mov	edi, DWORD PTR 12[rsp]
	call	free@PLT
.L7:
	mov	edi, DWORD PTR sectors[rip]
	call	free@PLT
	jmp	.L5
.L17:
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, QWORD PTR mtddev[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	fprintf@PLT
.L5:
	mov	rdi, QWORD PTR mtdfd[rip]
	call	close@PLT
.L3:
	endbr64
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mov	rdx, QWORD PTR mtddev[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L1
.L20:
	call	show_all_key_names@PLT
	mov	r13d, DWORD PTR EXIT_SUCCESS[rip]
	jmp	.L11
.L18:
	mov	rdx, QWORD PTR mtddev[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	call	fprintf@PLT
	jmp	.L7
.L12:
	call	show_matching_key_value@PLT
	mov	r13d, eax
	jmp	.L11
.L19:
	mov	rdx, QWORD PTR mtddev[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L9
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	show_all,8,8
	.comm	sectors,4,4
	.comm	progname,4,4
	.comm	print_all_key_names,8,8
	.comm	mtdfd,8,8
	.comm	mtddev,8,8
	.comm	TFFS_ID_TABLE_NAME,4,4
	.comm	O_RDONLY,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,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_fritz_tffs_nand_read.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR: Failed to open tffs device %s\012\000"
	.align	2
.LC1:
	.ascii	"ERROR: Parsing blocks from tffs device %s failed\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"       Is byte-swapping (-b) required?\012\000"
	.align	2
.LC3:
	.ascii	"ERROR: No name table found on tffs device %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L22
	ldr	r2, .L22+4
	sub	sp, sp, #20
	mov	r5, r0
	ldr	r0, [r1]
	mov	r4, r1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r6, [r3]
	bl	basename
	mov	r2, r0
	ldr	r3, .L22+8
	mov	r1, r4
	mov	r0, r5
	str	r2, [r3]
	ldr	r5, .L22+12
	bl	parse_options
	ldr	r3, .L22+16
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	open
	ldr	r4, .L22+20
	cmp	r0, #0
	str	r0, [r4]
	blt	.L16
	bl	scan_mtd
	cmp	r0, #0
	beq	.L17
	ldr	r3, .L22+24
	mov	r1, sp
	ldr	r0, [r3]
	bl	find_entry
	cmp	r0, #0
	beq	.L18
	mov	r0, sp
	add	r1, sp, #4
	bl	parse_key_names
	ldr	r3, [sp, #4]
	cmp	r3, #0
	ble	.L19
	ldr	r3, .L22+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L22+32
	add	r0, sp, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	bl	show_all_key_value_pairs
	mov	r6, r0
.L11:
	ldr	r0, [sp, #8]
	bl	free
.L9:
	ldr	r0, [sp]
	bl	free
.L7:
	ldr	r3, .L22+36
	ldr	r0, [r3]
	bl	free
	b	.L5
.L17:
	ldr	r7, .L22+40
	ldr	r1, .L22+44
	ldr	r2, [r5]
	ldr	r0, [r7]
	bl	fprintf
	ldr	r0, [r7]
	ldr	r1, .L22+48
	bl	fprintf
.L5:
	ldr	r0, [r4]
	bl	close
.L3:
.L1:
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	ldr	r3, .L22+40
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, .L22+52
	bl	fprintf
	b	.L1
.L20:
	add	r0, sp, #4
	bl	show_all_key_names
	ldr	r3, .L22+56
	ldr	r6, [r3]
	b	.L11
.L18:
	ldr	r3, .L22+40
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, .L22+60
	bl	fprintf
	b	.L7
.L12:
	bl	show_matching_key_value
	mov	r6, r0
	b	.L11
.L19:
	ldr	r3, .L22+40
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, .L22+60
	bl	fprintf
	b	.L9
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	EXIT_FAILURE
	.word	.LC4
	.word	progname
	.word	mtddev
	.word	O_RDONLY
	.word	mtdfd
	.word	TFFS_ID_TABLE_NAME
	.word	print_all_key_names
	.word	show_all
	.word	sectors
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	EXIT_SUCCESS
	.word	.LC3
	.size	main, .-main
	.comm	stderr,4,4
	.comm	show_all,4,4
	.comm	sectors,4,4
	.comm	progname,4,4
	.comm	print_all_key_names,4,4
	.comm	mtdfd,4,4
	.comm	mtddev,4,4
	.comm	TFFS_ID_TABLE_NAME,4,4
	.comm	O_RDONLY,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
