	.file	"878422.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %1[+-] %d"
.LC2:
	.string	"%d\n"
	.align 8
.LC3:
	.string	"Error. Unsupported operation.\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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	BYTE PTR -29[rbp], 0
	mov	WORD PTR -10[rbp], 0
	mov	DWORD PTR -16[rbp], 1
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	jne	.L2
.L17:
	lea	rdx, -24[rbp]
	lea	rax, -10[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	jne	.L3
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
	cmp	eax, 47
	je	.L4
	cmp	eax, 47
	jg	.L26
	cmp	eax, 45
	je	.L6
	cmp	eax, 45
	jg	.L26
	cmp	eax, 42
	je	.L7
	cmp	eax, 43
	jne	.L26
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L8
.L4:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jne	.L9
	mov	DWORD PTR -16[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L8
.L7:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L8
.L26:
	nop
.L8:
	cmp	DWORD PTR -16[rbp], 0
	je	.L27
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L12
.L14:
	nop
.L12:
	call	getchar@PLT
	mov	BYTE PTR -29[rbp], al
	cmp	BYTE PTR -29[rbp], -1
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -29[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	je	.L13
	cmp	BYTE PTR -29[rbp], 10
	jne	.L14
.L13:
	cmp	BYTE PTR -29[rbp], 10
	jne	.L15
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L15:
	mov	rdx, QWORD PTR stdin[rip]
	movsx	eax, BYTE PTR -29[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	jmp	.L17
.L3:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L18
.L2:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L18
.L27:
	nop
.L18:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L19
	jmp	.L20
.L22:
	nop
.L20:
	call	getchar@PLT
	mov	BYTE PTR -29[rbp], al
	cmp	BYTE PTR -29[rbp], 10
	je	.L21
	cmp	BYTE PTR -29[rbp], -1
	jne	.L22
.L21:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
.L19:
	call	getchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	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	"878422.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	" %1[+-] %d\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"Error. Unsupported operation.\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #1
	str	r3, [fp, #-16]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L29+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L2
.L19:
	sub	r2, fp, #24
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L29+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L3
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L27
.L6:
	.word	.L9
	.word	.L8
	.word	.L27
	.word	.L7
	.word	.L27
	.word	.L5
.L8:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L10
.L7:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L10
.L5:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L10
.L11:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-20]
	b	.L10
.L9:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L10
.L27:
	nop
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
	b	.L14
.L16:
	nop
.L14:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-29]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	beq	.L15
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L16
.L15:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L17
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	printf
	b	.L20
.L17:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, .L29+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	b	.L19
.L3:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L2:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L28:
	nop
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	b	.L22
.L23:
	nop
.L22:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L23
	ldr	r3, .L29+20
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L29+24
	bl	fwrite
.L21:
	bl	getchar
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdin
	.word	stderr
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
