	.file	"904649.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"pause"
	.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
	movabs	rax, 8679613450712801648
	mov	edx, 116
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rax, -48[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	load_data
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	write_paper
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"r"
.LC2:
	.string	"no such this file."
	.text
	.globl	load_data
	.type	load_data, @function
load_data:
.LFB7:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 10
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	edi, 128
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	cal
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -52[rbp], 1
	jmp	.L5
.L10:
	nop
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	load_data, .-load_data
	.section	.rodata
.LC3:
	.string	"%d%c%d"
.LC4:
	.string	"%d%c%d=%d\n"
	.text
	.globl	cal
	.type	cal, @function
cal:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, -24[rbp]
	lea	rcx, -29[rbp]
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	movzx	eax, BYTE PTR -29[rbp]
	movsx	eax, al
	cmp	eax, 120
	je	.L12
	cmp	eax, 120
	jg	.L13
	cmp	eax, 47
	je	.L14
	cmp	eax, 47
	jg	.L13
	cmp	eax, 43
	je	.L15
	cmp	eax, 45
	je	.L16
	jmp	.L13
.L15:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L13
.L12:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -24[rbp]
	cdq
	idiv	esi
	mov	DWORD PTR -20[rbp], eax
	nop
.L13:
	mov	edi, 128
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	esi, DWORD PTR -24[rbp]
	movzx	eax, BYTE PTR -29[rbp]
	movsx	ecx, al
	mov	edx, DWORD PTR -28[rbp]
	mov	edi, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cal, .-cal
	.section	.rodata
.LC5:
	.string	"w+"
.LC6:
	.string	"authored."
.LC7:
	.string	"paper has done."
	.text
	.globl	write_paper
	.type	write_paper, @function
write_paper:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L20
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L21
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	QWORD PTR -16[rbp], 8
.L21:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	write_paper, .-write_paper
	.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	"904649.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pause\000"
	.align	2
.LC0:
	.ascii	"paper.txt\000"
	.space	22
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L4+4
	sub	r3, fp, #40
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #30
	mov	r2, #22
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #40
	mov	r1, #100
	mov	r0, r3
	bl	load_data
	str	r0, [fp, #-44]
	sub	r3, fp, #40
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	write_paper
	ldr	r0, .L4+8
	bl	system
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"no such this file.\000"
	.text
	.align	2
	.global	load_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_data, %function
load_data:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #9
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r0, #128
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r1, .L13
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L13+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L7:
	ldr	r2, [fp, #-16]
	mov	r1, #128
	ldr	r0, [fp, #-24]
	bl	fgets
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	ldr	r0, [fp, #-20]
	bl	cal
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L7
.L12:
	nop
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC4
	.size	load_data, .-load_data
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d%c%d\000"
	.global	__aeabi_idiv
	.align	2
.LC6:
	.ascii	"%d%c%d=%d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cal
	.syntax unified
	.arm
	.fpu softvfp
	.type	cal, %function
cal:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #25
	sub	r2, fp, #24
	sub	r3, fp, #20
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L23+4
	ldr	r0, [fp, #-32]
	bl	__isoc99_sscanf
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L16
	cmp	r3, #120
	bgt	.L17
	cmp	r3, #47
	beq	.L18
	cmp	r3, #47
	bgt	.L17
	cmp	r3, #43
	beq	.L19
	cmp	r3, #45
	beq	.L20
	b	.L17
.L19:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L17
.L20:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L17
.L16:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L17
.L18:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	nop
.L17:
	mov	r0, #128
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L23+8
	ldr	r0, [fp, #-12]
	bl	sprintf
	ldr	r3, [fp, #-12]
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.size	cal, .-cal
	.section	.rodata
	.align	2
.LC8:
	.ascii	"w+\000"
	.align	2
.LC9:
	.ascii	"authored.\000"
	.align	2
.LC10:
	.ascii	"paper has done.\000"
	.text
	.align	2
	.global	write_paper
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_paper, %function
write_paper:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L29
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L29+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L26:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	b	.L27
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, .L29+8
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	write_paper, .-write_paper
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
