	.file	"449329.c"
	.intel_syntax noprefix
	.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
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -216[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -216[rbp]
	lea	ebx, -1[rdx]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	movsx	rdx, ebx
	mov	DWORD PTR -208[rbp+rdx*4], eax
	add	DWORD PTR -216[rbp], 1
.L2:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jl	.L3
	jmp	.L4
.L7:
	mov	DWORD PTR -216[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	mov	edx, DWORD PTR -212[rbp]
	lea	rcx, -128[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	add	DWORD PTR -216[rbp], 1
.L5:
	mov	eax, DWORD PTR -228[rbp]
	sub	eax, 1
	cmp	DWORD PTR -216[rbp], eax
	jl	.L6
	mov	edx, DWORD PTR -212[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
.L4:
	lea	rax, -128[rbp]
	mov	edx, 100
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	jne	.L7
	mov	DWORD PTR -216[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	add	DWORD PTR -216[rbp], 1
.L8:
	mov	eax, DWORD PTR -228[rbp]
	sub	eax, 1
	cmp	DWORD PTR -216[rbp], eax
	jl	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	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	"449329.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #204
	str	r0, [fp, #-208]
	str	r1, [fp, #-212]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-204]
	b	.L2
.L3:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-212]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-204]
	sub	r4, r3, #1
	mov	r2, #420
	ldr	r1, .L12+4
	bl	open
	mov	r2, r0
	lsl	r3, r4, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-184]
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L2:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-208]
	cmp	r2, r3
	blt	.L3
	b	.L4
.L7:
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L5
.L6:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-184]
	sub	r1, fp, #116
	ldr	r2, [fp, #-200]
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L5:
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	ldr	r2, [fp, #-204]
	cmp	r2, r3
	blt	.L6
	sub	r3, fp, #116
	ldr	r2, [fp, #-200]
	mov	r1, r3
	mov	r0, #1
	bl	write
.L4:
	sub	r3, fp, #116
	mov	r2, #100
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L8
.L9:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-184]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L8:
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	ldr	r2, [fp, #-204]
	cmp	r2, r3
	blt	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	577
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
