	.file	"590472.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Missing input file"
.LC1:
	.string	"r"
.LC2:
	.string	"Failed to open the input file"
.LC3:
	.string	"%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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L2:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L4:
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	jmp	.L5
.L18:
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -148[rbp], 0
	mov	DWORD PTR -144[rbp], 0
	jmp	.L6
.L17:
	mov	rdx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -153[rbp], al
	cmp	BYTE PTR -153[rbp], 10
	je	.L21
	cmp	BYTE PTR -153[rbp], 123
	je	.L9
	cmp	BYTE PTR -153[rbp], 40
	je	.L9
	cmp	BYTE PTR -153[rbp], 91
	je	.L9
	cmp	BYTE PTR -153[rbp], 60
	jne	.L10
.L9:
	mov	eax, DWORD PTR -148[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -148[rbp], edx
	cdqe
	movzx	edx, BYTE PTR -153[rbp]
	mov	BYTE PTR -112[rbp+rax], dl
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	jmp	.L11
.L10:
	mov	DWORD PTR -140[rbp], 0
	cmp	BYTE PTR -153[rbp], 125
	jne	.L12
	mov	BYTE PTR -154[rbp], 123
	mov	DWORD PTR -140[rbp], 1197
.L12:
	cmp	BYTE PTR -153[rbp], 41
	jne	.L13
	mov	BYTE PTR -154[rbp], 40
	mov	DWORD PTR -140[rbp], 3
.L13:
	cmp	BYTE PTR -153[rbp], 93
	jne	.L14
	mov	BYTE PTR -154[rbp], 91
	mov	DWORD PTR -140[rbp], 57
.L14:
	cmp	BYTE PTR -153[rbp], 62
	jne	.L15
	mov	BYTE PTR -154[rbp], 60
	mov	DWORD PTR -140[rbp], 25137
.L15:
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	BYTE PTR -154[rbp], al
	je	.L16
	mov	eax, DWORD PTR -140[rbp]
	add	DWORD PTR -152[rbp], eax
	jmp	.L5
.L16:
	sub	DWORD PTR -148[rbp], 1
.L11:
	add	DWORD PTR -144[rbp], 1
.L6:
	cmp	DWORD PTR -144[rbp], 99
	jle	.L17
	jmp	.L5
.L21:
	nop
.L5:
	mov	rdx, QWORD PTR -120[rbp]
	lea	rcx, -128[rbp]
	lea	rax, -136[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L18
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"590472.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Missing input file\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Failed to open the input file\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L22+4
	bl	printf
	mov	r3, #1
	b	.L19
.L2:
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L22+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L22+12
	bl	printf
	mov	r3, #1
	b	.L19
.L4:
	mov	r3, #0
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L5
.L18:
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L6
.L17:
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-137]
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L21
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #123
	beq	.L9
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #40
	beq	.L9
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L9
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L10
.L9:
	ldr	r3, [fp, #-124]
	add	r2, r3, #1
	str	r2, [fp, #-124]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-137]
	strb	r2, [r3, #-104]
	sub	r2, fp, #108
	ldr	r3, [fp, #-124]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L11
.L10:
	mov	r3, #0
	str	r3, [fp, #-116]
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #125
	bne	.L12
	mov	r3, #123
	strb	r3, [fp, #-138]
	ldr	r3, .L22+16
	str	r3, [fp, #-116]
.L12:
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L13
	mov	r3, #40
	strb	r3, [fp, #-138]
	mov	r3, #3
	str	r3, [fp, #-116]
.L13:
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L14
	mov	r3, #91
	strb	r3, [fp, #-138]
	mov	r3, #57
	str	r3, [fp, #-116]
.L14:
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L15
	mov	r3, #60
	strb	r3, [fp, #-138]
	ldr	r3, .L22+20
	str	r3, [fp, #-116]
.L15:
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-104]	@ zero_extendqisi2
	ldrb	r2, [fp, #-138]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L16
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	str	r3, [fp, #-128]
	b	.L5
.L16:
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	str	r3, [fp, #-124]
.L11:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L6:
	ldr	r3, [fp, #-120]
	cmp	r3, #99
	ble	.L17
	b	.L5
.L21:
	nop
.L5:
	sub	r1, fp, #132
	sub	r3, fp, #136
	ldr	r2, [fp, #-112]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-136]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-112]
	bl	fclose
	ldr	r1, [fp, #-128]
	ldr	r0, .L22+24
	bl	printf
	mov	r3, #0
.L19:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1197
	.word	25137
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
