	.file	"151687.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"failure opening input file"
.LC2:
	.string	"invalid jump %d\n"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%ld\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, 2384
	mov	DWORD PTR -2372[rbp], edi
	mov	QWORD PTR -2384[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -2328[rbp], rax
	mov	QWORD PTR -2344[rbp], 0
	mov	QWORD PTR -2336[rbp], 0
	mov	DWORD PTR -2364[rbp], 0
	mov	DWORD PTR -2360[rbp], 0
	mov	DWORD PTR -2356[rbp], 1
	cmp	DWORD PTR -2372[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -2384[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2328[rbp], rax
.L2:
	cmp	QWORD PTR -2328[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L22
.L3:
	mov	DWORD PTR -2368[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -2368[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	add	DWORD PTR -2368[rbp], 1
.L5:
	cmp	DWORD PTR -2368[rbp], 255
	jle	.L6
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -2344[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2348[rbp], eax
	mov	eax, DWORD PTR -2348[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 1
	mov	eax, DWORD PTR -2348[rbp]
	cmp	eax, DWORD PTR -2364[rbp]
	jle	.L7
	mov	eax, DWORD PTR -2348[rbp]
	mov	DWORD PTR -2364[rbp], eax
.L7:
	mov	rdx, QWORD PTR -2328[rbp]
	lea	rcx, -2336[rbp]
	lea	rax, -2344[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	test	rax, rax
	jg	.L8
	mov	rax, QWORD PTR -2344[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stdin[rip]
	cmp	QWORD PTR -2328[rbp], rax
	je	.L9
	mov	rax, QWORD PTR -2328[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	mov	DWORD PTR -2352[rbp], 0
	mov	DWORD PTR -2368[rbp], 0
	jmp	.L10
.L17:
	mov	eax, DWORD PTR -2368[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	test	al, al
	je	.L11
	cmp	DWORD PTR -2352[rbp], 3
	je	.L12
	cmp	DWORD PTR -2352[rbp], 3
	jg	.L13
	cmp	DWORD PTR -2352[rbp], 1
	je	.L14
	cmp	DWORD PTR -2352[rbp], 2
	je	.L24
	jmp	.L13
.L14:
	add	DWORD PTR -2360[rbp], 1
	jmp	.L16
.L12:
	add	DWORD PTR -2356[rbp], 1
	jmp	.L16
.L13:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2352[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L16
.L24:
	nop
.L16:
	mov	DWORD PTR -2352[rbp], 0
.L11:
	add	DWORD PTR -2352[rbp], 1
	add	DWORD PTR -2368[rbp], 1
.L10:
	mov	eax, DWORD PTR -2368[rbp]
	cmp	eax, DWORD PTR -2364[rbp]
	jle	.L17
	mov	eax, DWORD PTR -2364[rbp]
	add	eax, 3
	cdqe
	mov	QWORD PTR -2320[rbp+rax*8], 1
	mov	eax, DWORD PTR -2364[rbp]
	add	eax, 2
	cdqe
	mov	QWORD PTR -2320[rbp+rax*8], 0
	mov	eax, DWORD PTR -2364[rbp]
	add	eax, 1
	cdqe
	mov	QWORD PTR -2320[rbp+rax*8], 0
	mov	eax, DWORD PTR -2364[rbp]
	mov	DWORD PTR -2368[rbp], eax
	jmp	.L18
.L21:
	mov	eax, DWORD PTR -2368[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	test	al, al
	je	.L19
	mov	eax, DWORD PTR -2368[rbp]
	add	eax, 1
	cdqe
	mov	rdx, QWORD PTR -2320[rbp+rax*8]
	mov	eax, DWORD PTR -2368[rbp]
	add	eax, 2
	cdqe
	mov	rax, QWORD PTR -2320[rbp+rax*8]
	add	rdx, rax
	mov	eax, DWORD PTR -2368[rbp]
	add	eax, 3
	cdqe
	mov	rax, QWORD PTR -2320[rbp+rax*8]
	add	rdx, rax
	mov	eax, DWORD PTR -2368[rbp]
	cdqe
	mov	QWORD PTR -2320[rbp+rax*8], rdx
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -2368[rbp]
	cdqe
	mov	QWORD PTR -2320[rbp+rax*8], 0
.L20:
	sub	DWORD PTR -2368[rbp], 1
.L18:
	cmp	DWORD PTR -2368[rbp], 0
	jg	.L21
	mov	eax, DWORD PTR -2360[rbp]
	imul	eax, DWORD PTR -2356[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -2312[rbp]
	mov	rax, QWORD PTR -2304[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2296[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L22:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"151687.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"failure opening input file\000"
	.align	2
.LC2:
	.ascii	"invalid jump %d\012\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.ascii	"%ld\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1328
	str	r0, [fp, #-1328]
	str	r1, [fp, #-1332]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L25+4
	ldr	r3, [r3]
	str	r3, [fp, #-1316]
	mov	r3, #0
	str	r3, [fp, #-1324]
	mov	r3, #0
	str	r3, [fp, #-1320]
	mov	r3, #0
	str	r3, [fp, #-1308]
	mov	r3, #0
	str	r3, [fp, #-1304]
	mov	r3, #1
	str	r3, [fp, #-1300]
	ldr	r3, [fp, #-1328]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-1332]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L25+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1316]
.L2:
	ldr	r3, [fp, #-1316]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L25+12
	bl	perror
	mvn	r3, #0
	b	.L22
.L3:
	mov	r3, #0
	str	r3, [fp, #-1312]
	b	.L5
.L6:
	sub	r2, fp, #264
	ldr	r3, [fp, #-1312]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1312]
	add	r3, r3, #1
	str	r3, [fp, #-1312]
.L5:
	ldr	r3, [fp, #-1312]
	cmp	r3, #255
	ble	.L6
	b	.L7
.L8:
	ldr	r3, [fp, #-1324]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1292]
	sub	r2, fp, #264
	ldr	r3, [fp, #-1292]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r2, [fp, #-1292]
	ldr	r3, [fp, #-1308]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-1292]
	str	r3, [fp, #-1308]
.L7:
	sub	r1, fp, #1312
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1312
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1316]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-1324]
	mov	r0, r3
	bl	free
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1316]
	cmp	r2, r3
	beq	.L9
	ldr	r0, [fp, #-1316]
	bl	fclose
.L9:
	mov	r3, #0
	str	r3, [fp, #-1296]
	mov	r3, #0
	str	r3, [fp, #-1312]
	b	.L10
.L17:
	sub	r2, fp, #264
	ldr	r3, [fp, #-1312]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-1296]
	cmp	r3, #3
	beq	.L12
	ldr	r3, [fp, #-1296]
	cmp	r3, #3
	bgt	.L13
	ldr	r3, [fp, #-1296]
	cmp	r3, #1
	beq	.L14
	ldr	r3, [fp, #-1296]
	cmp	r3, #2
	beq	.L24
	b	.L13
.L14:
	ldr	r3, [fp, #-1304]
	add	r3, r3, #1
	str	r3, [fp, #-1304]
	b	.L16
.L12:
	ldr	r3, [fp, #-1300]
	add	r3, r3, #1
	str	r3, [fp, #-1300]
	b	.L16
.L13:
	ldr	r3, .L25+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-1296]
	ldr	r1, .L25+20
	mov	r0, r3
	bl	fprintf
	b	.L16
.L24:
	nop
.L16:
	mov	r3, #0
	str	r3, [fp, #-1296]
.L11:
	ldr	r3, [fp, #-1296]
	add	r3, r3, #1
	str	r3, [fp, #-1296]
	ldr	r3, [fp, #-1312]
	add	r3, r3, #1
	str	r3, [fp, #-1312]
.L10:
	ldr	r2, [fp, #-1312]
	ldr	r3, [fp, #-1308]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-1308]
	add	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-1284]
	ldr	r3, [fp, #-1308]
	add	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1284]
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1284]
	ldr	r3, [fp, #-1308]
	str	r3, [fp, #-1312]
	b	.L18
.L21:
	sub	r2, fp, #264
	ldr	r3, [fp, #-1312]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-1312]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1284]
	ldr	r3, [fp, #-1312]
	add	r3, r3, #2
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1284]
	add	r2, r2, r3
	ldr	r3, [fp, #-1312]
	add	r3, r3, #3
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1284]
	add	r2, r2, r3
	ldr	r3, [fp, #-1312]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1284]
	b	.L20
.L19:
	ldr	r3, [fp, #-1312]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1284]
.L20:
	ldr	r3, [fp, #-1312]
	sub	r3, r3, #1
	str	r3, [fp, #-1312]
.L18:
	ldr	r3, [fp, #-1312]
	cmp	r3, #0
	bgt	.L21
	ldr	r3, [fp, #-1304]
	ldr	r2, [fp, #-1300]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
	ldr	r2, [fp, #-1284]
	ldr	r3, [fp, #-1280]
	add	r2, r2, r3
	ldr	r3, [fp, #-1276]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L25+28
	bl	printf
	mov	r3, #0
.L22:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
