	.file	"34236.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"output.txt"
.LC4:
	.string	"1\n"
.LC5:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3968
	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 -8048[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8040[rbp], rax
	mov	DWORD PTR -8060[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -8052[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	mov	BYTE PTR -8032[rbp+rax], dl
	add	DWORD PTR -8060[rbp], 1
.L2:
	mov	rax, QWORD PTR -8048[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -8052[rbp], eax
	cmp	DWORD PTR -8052[rbp], 10
	je	.L3
	cmp	DWORD PTR -8052[rbp], -1
	jne	.L4
.L3:
	mov	eax, DWORD PTR -8060[rbp]
	cdqe
	mov	BYTE PTR -8032[rbp+rax], 0
	mov	DWORD PTR -8056[rbp], 0
	mov	DWORD PTR -8060[rbp], 2
	mov	rax, QWORD PTR -8040[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	BYTE PTR -4016[rbp], 0
	jmp	.L5
.L10:
	cmp	DWORD PTR -8052[rbp], 32
	je	.L6
	cmp	DWORD PTR -8052[rbp], 10
	je	.L6
	cmp	DWORD PTR -8052[rbp], 9
	je	.L6
	cmp	DWORD PTR -8052[rbp], 13
	jne	.L7
.L6:
	lea	rdx, -8032[rbp]
	lea	rax, -4016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	edx, DWORD PTR -8060[rbp]
	mov	rax, QWORD PTR -8040[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L8:
	mov	BYTE PTR -4016[rbp], 0
	mov	DWORD PTR -8056[rbp], 0
	cmp	DWORD PTR -8052[rbp], 10
	jne	.L5
	add	DWORD PTR -8060[rbp], 1
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -8052[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8056[rbp]
	cdqe
	mov	BYTE PTR -4016[rbp+rax], dl
	add	DWORD PTR -8056[rbp], 1
	mov	eax, DWORD PTR -8056[rbp]
	cdqe
	mov	BYTE PTR -4016[rbp+rax], 0
.L5:
	mov	rax, QWORD PTR -8048[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -8052[rbp], eax
	cmp	DWORD PTR -8052[rbp], -1
	jne	.L10
	mov	rax, QWORD PTR -8048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8040[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"34236.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input.txt\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"output.txt\000"
	.align	2
.LC4:
	.ascii	"1\012\000"
	.align	2
.LC5:
	.ascii	"%d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8000
	sub	sp, sp, #44
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [r4, #-3936]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	fopen
	str	r0, [r4, #-3932]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3944]
	b	.L2
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	and	r2, r3, #255
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3944]
	add	r3, r1, r3
	sub	r3, r3, #3920
	sub	r3, r3, #4
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3944]
	add	r3, r3, #1
	str	r3, [r2, #-3944]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3936]
	bl	fgetc
	str	r0, [r4, #-3928]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmp	r3, #10
	beq	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmn	r3, #1
	bne	.L4
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3944]
	add	r3, r2, r3
	sub	r3, r3, #3920
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3940]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-3944]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3932]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L13+20
	bl	fwrite
	mov	r3, #0
	strb	r3, [fp, #-4024]
	b	.L5
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmp	r3, #32
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmp	r3, #10
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmp	r3, #9
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmp	r3, #13
	bne	.L7
.L6:
	sub	r2, fp, #8000
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-3944]
	ldr	r1, .L13+24
	ldr	r0, [r3, #-3932]
	bl	fprintf
.L8:
	mov	r3, #0
	strb	r3, [fp, #-4024]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3940]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmp	r3, #10
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3944]
	add	r3, r3, #1
	str	r3, [r2, #-3944]
	b	.L5
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	and	r1, r3, #255
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3940]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3940]
	add	r3, r3, #1
	str	r3, [r2, #-3940]
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3940]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3936]
	bl	fgetc
	str	r0, [r4, #-3928]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	cmn	r3, #1
	bne	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3936]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3932]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
