	.file	"76099.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"error %d\n"
.LC1:
	.string	"r"
.LC2:
	.string	"err %s\n"
.LC3:
	.string	"w"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d %d\n"
.LC6:
	.string	"%s %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	cmp	DWORD PTR -68[rbp], 3
	je	.L2
	mov	esi, 10
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L3
.L5:
	mov	DWORD PTR -56[rbp], 8355840
	mov	eax, DWORD PTR -56[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L6
	mov	esi, 26
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L3
.L6:
	mov	DWORD PTR -52[rbp], 8294400
	mov	eax, DWORD PTR -52[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L7
	mov	esi, 32
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L3
.L7:
	mov	DWORD PTR -60[rbp], 0
.L11:
	mov	edx, DWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	cmp	QWORD PTR -16[rbp], rax
	je	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	esi, 38
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	eax, 0
	jmp	.L3
.L8:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 4147200
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 4177920[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4147200
	mov	edx, 2073600
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 6266880[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6220800
	mov	edx, 2073600
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	edx, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cmp	QWORD PTR -8[rbp], rax
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	edx, 52
	lea	rsi, __FUNCTION__.0[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L3
.L10:
	mov	edi, 46
	call	putchar@PLT
	add	DWORD PTR -60[rbp], 1
	jmp	.L11
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 5
__FUNCTION__.0:
	.string	"main"
	.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	"76099.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error %d\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"err %s\012\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"%d %d\012\000"
	.align	2
.LC6:
	.ascii	"%s %d %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	beq	.L2
	mov	r1, #10
	ldr	r0, .L12
	bl	printf
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+8
	bl	printf
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L12+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+8
	bl	printf
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r3, .L12+16
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	mov	r1, #26
	ldr	r0, .L12+20
	bl	printf
	mov	r3, #0
	b	.L3
.L6:
	ldr	r3, .L12+24
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L7
	mov	r1, #32
	ldr	r0, .L12+20
	bl	printf
	mov	r3, #0
	b	.L3
.L7:
	mov	r3, #0
	str	r3, [fp, #-40]
.L11:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fread
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r1, #38
	ldr	r0, .L12+28
	bl	printf
	nop
	mov	r3, #0
	b	.L3
.L8:
	ldr	r2, .L12+32
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	memcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #4145152
	add	r3, r3, #2048
	ldr	r2, [fp, #-24]
	add	r1, r2, #4177920
	ldr	r2, .L12+36
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #6160384
	add	r3, r3, #60416
	ldr	r2, [fp, #-24]
	add	r1, r2, #6225920
	add	r1, r1, #40960
	ldr	r2, .L12+36
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	fwrite
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L10
	ldr	r3, [fp, #-8]
	mov	r2, #52
	ldr	r1, .L12+40
	ldr	r0, .L12+44
	bl	printf
	mvn	r3, #0
	b	.L3
.L10:
	mov	r0, #46
	bl	putchar
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L11
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	8355840
	.word	.LC4
	.word	8294400
	.word	.LC5
	.word	4147200
	.word	2073600
	.word	__FUNCTION__.5333
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__FUNCTION__.5333, %object
	.size	__FUNCTION__.5333, 5
__FUNCTION__.5333:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
