	.file	"250972.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"./input.txt"
.LC2:
	.string	"Debug: %c, %i, %i\n"
.LC3:
	.string	"Final value: %i\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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -60[rbp], 0
.L12:
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], 0
	add	DWORD PTR -56[rbp], 1
.L2:
	cmp	DWORD PTR -56[rbp], 19
	jle	.L3
.L7:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 10
	je	.L16
	cmp	DWORD PTR -52[rbp], -1
	jne	.L6
	mov	BYTE PTR -32[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], dl
	add	DWORD PTR -64[rbp], 1
	jmp	.L7
.L16:
	nop
.L5:
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR -40[rbp], al
	lea	rax, -32[rbp]
	add	rax, 1
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -36[rbp], eax
	movzx	eax, BYTE PTR -40[rbp]
	cmp	al, 43
	jne	.L8
	mov	eax, DWORD PTR -36[rbp]
	add	DWORD PTR -60[rbp], eax
	jmp	.L9
.L8:
	movzx	eax, BYTE PTR -40[rbp]
	cmp	al, 45
	jne	.L9
	mov	eax, DWORD PTR -36[rbp]
	sub	DWORD PTR -60[rbp], eax
.L9:
	mov	edx, DWORD PTR -36[rbp]
	movzx	eax, BYTE PTR -40[rbp]
	movzx	eax, al
	mov	ecx, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -52[rbp], -1
	je	.L17
	jmp	.L12
.L17:
	nop
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"250972.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"./input.txt\000"
	.align	2
.LC2:
	.ascii	"Debug: %c, %i, %i\012\000"
	.align	2
.LC3:
	.ascii	"Final value: %i\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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L18+4
	ldr	r0, .L18+8
	bl	fopen
	str	r0, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
.L12:
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L3:
	sub	r2, fp, #28
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L2:
	ldr	r3, [fp, #-48]
	cmp	r3, #19
	ble	.L3
.L7:
	ldr	r0, [fp, #-44]
	bl	fgetc
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #10
	beq	.L16
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L6
	mov	r3, #0
	strb	r3, [fp, #-28]
	b	.L5
.L6:
	ldr	r3, [fp, #-40]
	and	r1, r3, #255
	sub	r2, fp, #28
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	b	.L7
.L16:
	nop
.L5:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	strb	r3, [fp, #-36]
	sub	r3, fp, #28
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-32]
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L8
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	b	.L9
.L8:
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L9
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-52]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
.L9:
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-52]
	ldr	r0, .L18+12
	bl	printf
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	beq	.L17
	b	.L12
.L17:
	nop
	ldr	r1, [fp, #-52]
	ldr	r0, .L18+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
