	.file	"140765391.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Can't open %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -564[rbp], 1
	jg	.L2
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	jmp	.L3
.L7:
	mov	DWORD PTR -560[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	cmp	al, 10
	jne	.L5
	jmp	.L3
.L5:
	add	DWORD PTR -560[rbp], 1
.L4:
	cmp	DWORD PTR -560[rbp], 511
	jle	.L6
.L3:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	jmp	.L8
.L2:
	mov	DWORD PTR -556[rbp], 1
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	jmp	.L12
.L13:
	mov	rcx, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L12:
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L13
	add	DWORD PTR -556[rbp], 1
.L9:
	mov	eax, DWORD PTR -556[rbp]
	cmp	eax, DWORD PTR -564[rbp]
	jl	.L14
.L8:
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-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	"140765391.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Can't open %s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-544]
	cmp	r3, #1
	bgt	.L2
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L3
.L7:
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L4
.L6:
	sub	r2, fp, #520
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	sub	r2, fp, #520
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	b	.L3
.L5:
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L4:
	ldr	r3, [fp, #-540]
	cmp	r3, #512
	blt	.L6
.L3:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	b	.L8
.L2:
	mov	r3, #1
	str	r3, [fp, #-536]
	b	.L9
.L14:
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-548]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-532]
	ldr	r1, .L16+8
	ldr	r0, [fp, #-532]
	bl	fopen
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L10
	ldr	r1, [fp, #-532]
	ldr	r0, .L16+12
	bl	printf
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L12
.L13:
	ldr	r3, .L16+16
	ldr	r3, [r3]
	sub	r0, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #1
	bl	fwrite
.L12:
	sub	r0, fp, #520
	ldr	r3, [fp, #-528]
	mov	r2, #512
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L9:
	ldr	r2, [fp, #-536]
	ldr	r3, [fp, #-544]
	cmp	r2, r3
	blt	.L14
.L8:
	mov	r3, #0
.L11:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
