	.file	"7398.c"
	.intel_syntax noprefix
	.text
	.globl	op
	.bss
	.type	op, @object
	.size	op, 2
op:
	.zero	2
	.globl	arg1
	.type	arg1, @object
	.size	arg1, 5
arg1:
	.zero	5
	.globl	arg2
	.type	arg2, @object
	.size	arg2, 5
arg2:
	.zero	5
	.globl	result
	.type	result, @object
	.size	result, 5
result:
	.zero	5
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"output.txt"
.LC4:
	.string	"%s%s%s%s"
.LC5:
	.string	"+"
.LC6:
	.string	"\nMOV R0,%s"
.LC7:
	.string	"\nADD R0,%s"
.LC8:
	.string	"\nMOV %s,R0"
.LC9:
	.string	"*"
.LC10:
	.string	"\nMUL R0,%s"
.LC11:
	.string	"-"
.LC12:
	.string	"\nSUB R0,%s"
.LC13:
	.string	"/"
.LC14:
	.string	"\nDIV R0,%s"
.LC15:
	.string	"="
	.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, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -16[rbp]
	lea	r9, arg2[rip]
	lea	r8, op[rip]
	lea	rcx, arg1[rip]
	lea	rdx, result[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, op[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg1[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg2[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, result[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L3:
	lea	rsi, .LC9[rip]
	lea	rdi, op[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg1[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg2[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, result[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L4:
	lea	rsi, .LC11[rip]
	lea	rdi, op[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg1[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg2[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, result[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L5:
	lea	rsi, .LC13[rip]
	lea	rdi, op[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg1[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg2[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, result[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L6:
	lea	rsi, .LC15[rip]
	lea	rdi, op[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, arg1[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, result[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	call	getch@PLT
	nop
	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	"7398.c"
	.text
	.comm	op,2,4
	.comm	arg1,5,4
	.comm	arg2,5,4
	.comm	result,5,4
	.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	"%s%s%s%s\000"
	.align	2
.LC5:
	.ascii	"+\000"
	.align	2
.LC6:
	.ascii	"\012MOV R0,%s\000"
	.align	2
.LC7:
	.ascii	"\012ADD R0,%s\000"
	.align	2
.LC8:
	.ascii	"\012MOV %s,R0\000"
	.align	2
.LC9:
	.ascii	"*\000"
	.align	2
.LC10:
	.ascii	"\012MUL R0,%s\000"
	.align	2
.LC11:
	.ascii	"-\000"
	.align	2
.LC12:
	.ascii	"\012SUB R0,%s\000"
	.align	2
.LC13:
	.ascii	"/\000"
	.align	2
.LC14:
	.ascii	"\012DIV R0,%s\000"
	.align	2
.LC15:
	.ascii	"=\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L8
	ldr	r0, .L8+4
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r1, .L8+8
	ldr	r0, .L8+12
	bl	fopen
	str	r0, [fp, #-8]
	b	.L2
.L7:
	ldr	r3, .L8+16
	str	r3, [sp, #4]
	ldr	r3, .L8+20
	str	r3, [sp]
	ldr	r3, .L8+24
	ldr	r2, .L8+28
	ldr	r1, .L8+32
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	ldr	r1, .L8+36
	ldr	r0, .L8+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r2, .L8+24
	ldr	r1, .L8+40
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+16
	ldr	r1, .L8+44
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+28
	ldr	r1, .L8+48
	ldr	r0, [fp, #-8]
	bl	fprintf
.L3:
	ldr	r1, .L8+52
	ldr	r0, .L8+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r2, .L8+24
	ldr	r1, .L8+40
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+16
	ldr	r1, .L8+56
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+28
	ldr	r1, .L8+48
	ldr	r0, [fp, #-8]
	bl	fprintf
.L4:
	ldr	r1, .L8+60
	ldr	r0, .L8+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r2, .L8+24
	ldr	r1, .L8+40
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+16
	ldr	r1, .L8+64
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+28
	ldr	r1, .L8+48
	ldr	r0, [fp, #-8]
	bl	fprintf
.L5:
	ldr	r1, .L8+68
	ldr	r0, .L8+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r2, .L8+24
	ldr	r1, .L8+40
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+16
	ldr	r1, .L8+72
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+28
	ldr	r1, .L8+48
	ldr	r0, [fp, #-8]
	bl	fprintf
.L6:
	ldr	r1, .L8+76
	ldr	r0, .L8+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r2, .L8+24
	ldr	r1, .L8+40
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, .L8+28
	ldr	r1, .L8+48
	ldr	r0, [fp, #-8]
	bl	fprintf
.L2:
	ldr	r0, [fp, #-12]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-8]
	bl	fclose
	bl	getch
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	arg2
	.word	op
	.word	arg1
	.word	result
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
