	.file	"790833.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"[+] Opening file '%s' with flags 0x%x and mode 0x%x\n"
.LC1:
	.string	"[-] Unable to open file"
.LC2:
	.string	"[+] open returned: %d\n"
	.text
	.globl	xopen
	.type	xopen, @function
xopen:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jg	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, __func__.1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	xopen, .-xopen
	.section	.rodata
	.align 8
.LC3:
	.string	"[+] Fopening file '%s' with mode '%s'\n"
.LC4:
	.string	"[-] Unable to fopen file"
	.text
	.globl	xfopen
	.type	xfopen, @function
xfopen:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, __func__.0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	xfopen, .-xfopen
	.section	.rodata
.LC5:
	.string	"test.bin"
.LC6:
	.string	"wb"
.LC7:
	.string	"[+] Writing records to file"
.LC8:
	.string	"rb"
.LC9:
	.string	"[+] Reading records from file"
.LC10:
	.string	"  - x: %d, y: %d, z: %d\n"
	.align 8
.LC11:
	.string	"[+] Seeking and reading records from file in reverse order"
	.align 8
.LC12:
	.string	"[+] Seeking to the end of file"
.LC13:
	.string	"[+] Rewinding file"
.LC14:
	.string	"[+] Stat file"
.LC15:
	.string	"Unable to stat file!"
.LC16:
	.string	"  - File Size: \t\t%d bytes\n"
.LC17:
	.string	"  - Number of Links: \t%d\n"
.LC18:
	.string	"  - File inode: \t\t%d\n"
.LC19:
	.string	"  - File Permissions: %s\n"
.LC20:
	.string	"  - fd is: %d\n"
.LC21:
	.string	"[+] Fstat file"
.LC22:
	.string	"Unable to fstat file!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 493
	mov	esi, 64
	lea	rdi, .LC5[rip]
	call	xopen
	mov	DWORD PTR -204[rbp], eax
	lea	rsi, .LC6[rip]
	lea	rdi, .LC5[rip]
	call	xfopen
	mov	QWORD PTR -200[rbp], rax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -208[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -208[rbp]
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -208[rbp]
	imul	eax, eax, 42
	mov	DWORD PTR -184[rbp], eax
	mov	DWORD PTR -180[rbp], 42
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -188[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -208[rbp], 1
.L8:
	cmp	DWORD PTR -208[rbp], 10
	jle	.L9
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, .LC5[rip]
	call	xfopen
	mov	QWORD PTR -200[rbp], rax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -208[rbp], 1
	jmp	.L10
.L11:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -188[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fread@PLT
	mov	ecx, DWORD PTR -180[rbp]
	mov	edx, DWORD PTR -184[rbp]
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -208[rbp], 1
.L10:
	cmp	DWORD PTR -208[rbp], 10
	jle	.L11
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, .LC5[rip]
	call	xfopen
	mov	QWORD PTR -200[rbp], rax
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -208[rbp], 9
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -208[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -188[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fread@PLT
	mov	ecx, DWORD PTR -180[rbp]
	mov	edx, DWORD PTR -184[rbp]
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -208[rbp], 1
.L12:
	cmp	DWORD PTR -208[rbp], 0
	jns	.L13
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, .LC5[rip]
	call	xfopen
	mov	QWORD PTR -200[rbp], rax
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 2
	mov	esi, 12
	mov	rdi, rax
	call	fseek@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	DWORD PTR -208[rbp], 1
	jmp	.L14
.L15:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -188[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fread@PLT
	mov	ecx, DWORD PTR -180[rbp]
	mov	edx, DWORD PTR -184[rbp]
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -208[rbp], 1
.L14:
	cmp	DWORD PTR -208[rbp], 10
	jle	.L15
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	stat@PLT
	test	eax, eax
	jns	.L16
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L59
.L16:
	mov	rax, QWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L18
	mov	eax, 100
	jmp	.L19
.L18:
	mov	eax, 45
.L19:
	mov	BYTE PTR -19[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 256
	test	eax, eax
	je	.L20
	mov	eax, 114
	jmp	.L21
.L20:
	mov	eax, 45
.L21:
	mov	BYTE PTR -18[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 128
	test	eax, eax
	je	.L22
	mov	eax, 119
	jmp	.L23
.L22:
	mov	eax, 45
.L23:
	mov	BYTE PTR -17[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 64
	test	eax, eax
	je	.L24
	mov	eax, 120
	jmp	.L25
.L24:
	mov	eax, 45
.L25:
	mov	BYTE PTR -16[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 32
	test	eax, eax
	je	.L26
	mov	eax, 114
	jmp	.L27
.L26:
	mov	eax, 45
.L27:
	mov	BYTE PTR -15[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 16
	test	eax, eax
	je	.L28
	mov	eax, 119
	jmp	.L29
.L28:
	mov	eax, 45
.L29:
	mov	BYTE PTR -14[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 8
	test	eax, eax
	je	.L30
	mov	eax, 120
	jmp	.L31
.L30:
	mov	eax, 45
.L31:
	mov	BYTE PTR -13[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 4
	test	eax, eax
	je	.L32
	mov	eax, 114
	jmp	.L33
.L32:
	mov	eax, 45
.L33:
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 2
	test	eax, eax
	je	.L34
	mov	eax, 119
	jmp	.L35
.L34:
	mov	eax, 45
.L35:
	mov	BYTE PTR -11[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 1
	test	eax, eax
	je	.L36
	mov	eax, 120
	jmp	.L37
.L36:
	mov	eax, 45
.L37:
	mov	BYTE PTR -10[rbp], al
	mov	BYTE PTR -9[rbp], 0
	lea	rax, -19[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, .LC5[rip]
	call	xfopen
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -204[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	jns	.L38
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L59
.L38:
	mov	rax, QWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L39
	mov	eax, 100
	jmp	.L40
.L39:
	mov	eax, 45
.L40:
	mov	BYTE PTR -19[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 256
	test	eax, eax
	je	.L41
	mov	eax, 114
	jmp	.L42
.L41:
	mov	eax, 45
.L42:
	mov	BYTE PTR -18[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 128
	test	eax, eax
	je	.L43
	mov	eax, 119
	jmp	.L44
.L43:
	mov	eax, 45
.L44:
	mov	BYTE PTR -17[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 64
	test	eax, eax
	je	.L45
	mov	eax, 120
	jmp	.L46
.L45:
	mov	eax, 45
.L46:
	mov	BYTE PTR -16[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 32
	test	eax, eax
	je	.L47
	mov	eax, 114
	jmp	.L48
.L47:
	mov	eax, 45
.L48:
	mov	BYTE PTR -15[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 16
	test	eax, eax
	je	.L49
	mov	eax, 119
	jmp	.L50
.L49:
	mov	eax, 45
.L50:
	mov	BYTE PTR -14[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 8
	test	eax, eax
	je	.L51
	mov	eax, 120
	jmp	.L52
.L51:
	mov	eax, 45
.L52:
	mov	BYTE PTR -13[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 4
	test	eax, eax
	je	.L53
	mov	eax, 114
	jmp	.L54
.L53:
	mov	eax, 45
.L54:
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 2
	test	eax, eax
	je	.L55
	mov	eax, 119
	jmp	.L56
.L55:
	mov	eax, 45
.L56:
	mov	BYTE PTR -11[rbp], al
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 1
	test	eax, eax
	je	.L57
	mov	eax, 120
	jmp	.L58
.L57:
	mov	eax, 45
.L58:
	mov	BYTE PTR -10[rbp], al
	mov	BYTE PTR -9[rbp], 0
	lea	rax, -19[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L59:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.type	__func__.1, @object
	.size	__func__.1, 6
__func__.1:
	.string	"xopen"
	.type	__func__.0, @object
	.size	__func__.0, 7
__func__.0:
	.string	"xfopen"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"790833.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[+] Opening file '%s' with flags 0x%x and mode 0x%x"
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"[-] Unable to open file\000"
	.align	2
.LC2:
	.ascii	"[+] open returned: %d\012\000"
	.text
	.align	2
	.global	xopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	xopen, %function
xopen:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L4
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L2
	ldr	r0, .L4+4
	bl	puts
	ldr	r0, .L4+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, [fp, #-8]
	ldr	r0, .L4+12
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	__func__.5867
	.word	.LC2
	.size	xopen, .-xopen
	.section	.rodata
	.align	2
.LC3:
	.ascii	"[+] Fopening file '%s' with mode '%s'\012\000"
	.align	2
.LC4:
	.ascii	"[-] Unable to fopen file\000"
	.text
	.align	2
	.global	xfopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfopen, %function
xfopen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L9
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L9+4
	bl	puts
	ldr	r0, .L9+8
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC4
	.word	__func__.5873
	.size	xfopen, .-xfopen
	.section	.rodata
	.align	2
.LC5:
	.ascii	"test.bin\000"
	.align	2
.LC6:
	.ascii	"wb\000"
	.align	2
.LC7:
	.ascii	"[+] Writing records to file\000"
	.align	2
.LC8:
	.ascii	"rb\000"
	.align	2
.LC9:
	.ascii	"[+] Reading records from file\000"
	.align	2
.LC10:
	.ascii	"  - x: %d, y: %d, z: %d\012\000"
	.align	2
.LC11:
	.ascii	"[+] Seeking and reading records from file in revers"
	.ascii	"e order\000"
	.align	2
.LC12:
	.ascii	"[+] Seeking to the end of file\000"
	.align	2
.LC13:
	.ascii	"[+] Rewinding file\000"
	.align	2
.LC14:
	.ascii	"[+] Stat file\000"
	.align	2
.LC15:
	.ascii	"Unable to stat file!\000"
	.align	2
.LC16:
	.ascii	"  - File Size: \011\011%d bytes\012\000"
	.align	2
.LC17:
	.ascii	"  - Number of Links: \011%d\012\000"
	.align	2
.LC18:
	.ascii	"  - File inode: \011\011%d\012\000"
	.align	2
.LC19:
	.ascii	"  - File Permissions: %s\012\000"
	.align	2
.LC20:
	.ascii	"  - fd is: %d\012\000"
	.align	2
.LC21:
	.ascii	"[+] Fstat file\000"
	.align	2
.LC22:
	.ascii	"Unable to fstat file!\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L65+4
	mov	r1, #64
	ldr	r0, .L65+8
	bl	xopen
	str	r0, [fp, #-128]
	ldr	r1, .L65+12
	ldr	r0, .L65+8
	bl	xfopen
	str	r0, [fp, #-124]
	ldr	r0, .L65+16
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L12
.L13:
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-120]
	ldr	r2, [fp, #-132]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	mov	r3, r2
	str	r3, [fp, #-116]
	mov	r3, #42
	str	r3, [fp, #-112]
	sub	r0, fp, #120
	ldr	r3, [fp, #-124]
	mov	r2, #1
	mov	r1, #12
	bl	fwrite
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L12:
	ldr	r3, [fp, #-132]
	cmp	r3, #10
	ble	.L13
	ldr	r0, [fp, #-124]
	bl	fclose
	ldr	r1, .L65+20
	ldr	r0, .L65+8
	bl	xfopen
	str	r0, [fp, #-124]
	ldr	r0, .L65+24
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L14
.L15:
	sub	r0, fp, #120
	ldr	r3, [fp, #-124]
	mov	r2, #1
	mov	r1, #12
	bl	fread
	ldr	r1, [fp, #-120]
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-112]
	ldr	r0, .L65+28
	bl	printf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L14:
	ldr	r3, [fp, #-132]
	cmp	r3, #10
	ble	.L15
	ldr	r0, [fp, #-124]
	bl	fclose
	ldr	r1, .L65+20
	ldr	r0, .L65+8
	bl	xfopen
	str	r0, [fp, #-124]
	ldr	r0, .L65+32
	bl	puts
	mov	r3, #9
	str	r3, [fp, #-132]
	b	.L16
.L17:
	ldr	r2, [fp, #-132]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	fseek
	sub	r0, fp, #120
	ldr	r3, [fp, #-124]
	mov	r2, #1
	mov	r1, #12
	bl	fread
	ldr	r1, [fp, #-120]
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-112]
	ldr	r0, .L65+28
	bl	printf
	ldr	r3, [fp, #-132]
	sub	r3, r3, #1
	str	r3, [fp, #-132]
.L16:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bge	.L17
	ldr	r0, [fp, #-124]
	bl	fclose
	ldr	r1, .L65+20
	ldr	r0, .L65+8
	bl	xfopen
	str	r0, [fp, #-124]
	ldr	r0, .L65+36
	bl	puts
	mov	r2, #2
	mov	r1, #12
	ldr	r0, [fp, #-124]
	bl	fseek
	ldr	r0, .L65+40
	bl	puts
	ldr	r0, [fp, #-124]
	bl	rewind
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L18
.L19:
	sub	r0, fp, #120
	ldr	r3, [fp, #-124]
	mov	r2, #1
	mov	r1, #12
	bl	fread
	ldr	r1, [fp, #-120]
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-112]
	ldr	r0, .L65+28
	bl	printf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L18:
	ldr	r3, [fp, #-132]
	cmp	r3, #10
	ble	.L19
	ldr	r0, [fp, #-124]
	bl	fclose
	ldr	r0, .L65+44
	bl	puts
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L65+8
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L65+48
	bl	puts
	mov	r3, #1
	b	.L63
.L20:
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L65+52
	bl	printf
	ldr	r3, [fp, #-88]
	mov	r1, r3
	ldr	r0, .L65+56
	bl	printf
	ldr	r3, [fp, #-96]
	mov	r1, r3
	ldr	r0, .L65+60
	bl	printf
	ldr	r3, [fp, #-92]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L22
	mov	r3, #100
	b	.L23
.L22:
	mov	r3, #45
.L23:
	strb	r3, [fp, #-20]
	ldr	r3, [fp, #-92]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L24
	mov	r3, #114
	b	.L25
.L24:
	mov	r3, #45
.L25:
	strb	r3, [fp, #-19]
	ldr	r3, [fp, #-92]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L26
	mov	r3, #119
	b	.L27
.L26:
	mov	r3, #45
.L27:
	strb	r3, [fp, #-18]
	ldr	r3, [fp, #-92]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L28
	mov	r3, #120
	b	.L29
.L28:
	mov	r3, #45
.L29:
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-92]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L30
	mov	r3, #114
	b	.L31
.L30:
	mov	r3, #45
.L31:
	strb	r3, [fp, #-16]
	ldr	r3, [fp, #-92]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L32
	mov	r3, #119
	b	.L33
.L32:
	mov	r3, #45
.L33:
	strb	r3, [fp, #-15]
	ldr	r3, [fp, #-92]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L34
	mov	r3, #120
	b	.L35
.L34:
	mov	r3, #45
.L35:
	strb	r3, [fp, #-14]
	ldr	r3, [fp, #-92]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L36
	mov	r3, #114
	b	.L37
.L36:
	mov	r3, #45
.L37:
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-92]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L38
	mov	r3, #119
	b	.L39
.L38:
	mov	r3, #45
.L39:
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-92]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L40
	mov	r3, #120
	b	.L41
.L40:
	mov	r3, #45
.L41:
	strb	r3, [fp, #-11]
	mov	r3, #0
	strb	r3, [fp, #-10]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L65+64
	bl	printf
	ldr	r1, .L65+20
	ldr	r0, .L65+8
	bl	xfopen
	str	r0, [fp, #-124]
	ldr	r0, [fp, #-124]
	bl	fileno
	str	r0, [fp, #-128]
	ldr	r1, [fp, #-128]
	ldr	r0, .L65+68
	bl	printf
	ldr	r0, .L65+72
	bl	puts
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L65+76
	bl	puts
	mov	r3, #1
	b	.L63
.L42:
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L65+52
	bl	printf
	ldr	r3, [fp, #-88]
	mov	r1, r3
	ldr	r0, .L65+56
	bl	printf
	ldr	r3, [fp, #-96]
	mov	r1, r3
	ldr	r0, .L65+60
	bl	printf
	ldr	r3, [fp, #-92]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L43
	mov	r3, #100
	b	.L44
.L43:
	mov	r3, #45
.L44:
	strb	r3, [fp, #-20]
	ldr	r3, [fp, #-92]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L45
	mov	r3, #114
	b	.L46
.L45:
	mov	r3, #45
.L46:
	strb	r3, [fp, #-19]
	ldr	r3, [fp, #-92]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L47
	mov	r3, #119
	b	.L48
.L47:
	mov	r3, #45
.L48:
	strb	r3, [fp, #-18]
	ldr	r3, [fp, #-92]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L49
	mov	r3, #120
	b	.L50
.L49:
	mov	r3, #45
.L50:
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-92]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L51
	mov	r3, #114
	b	.L52
.L51:
	mov	r3, #45
.L52:
	strb	r3, [fp, #-16]
	ldr	r3, [fp, #-92]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L53
	mov	r3, #119
	b	.L54
.L53:
	mov	r3, #45
.L54:
	strb	r3, [fp, #-15]
	ldr	r3, [fp, #-92]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L55
	mov	r3, #120
	b	.L56
.L55:
	mov	r3, #45
.L56:
	strb	r3, [fp, #-14]
	ldr	r3, [fp, #-92]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L57
	mov	r3, #114
	b	.L58
.L57:
	mov	r3, #45
.L58:
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-92]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L59
	mov	r3, #119
	b	.L60
.L59:
	mov	r3, #45
.L60:
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-92]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L61
	mov	r3, #120
	b	.L62
.L61:
	mov	r3, #45
.L62:
	strb	r3, [fp, #-11]
	mov	r3, #0
	strb	r3, [fp, #-10]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L65+64
	bl	printf
	ldr	r0, [fp, #-124]
	bl	fclose
	mov	r3, #0
.L63:
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC23
	.word	493
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.5867, %object
	.size	__func__.5867, 6
__func__.5867:
	.ascii	"xopen\000"
	.align	2
	.type	__func__.5873, %object
	.size	__func__.5873, 7
__func__.5873:
	.ascii	"xfopen\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
