	.file	"111077268.c"
	.intel_syntax noprefix
	.text
	.globl	calc
	.type	calc, @function
calc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	cmp	eax, 47
	je	.L2
	cmp	eax, 47
	jg	.L3
	cmp	eax, 45
	je	.L4
	cmp	eax, 45
	jg	.L3
	cmp	eax, 42
	je	.L5
	cmp	eax, 43
	je	.L6
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -12[rbp]
	jmp	.L7
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	jmp	.L7
.L6:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	jmp	.L7
.L4:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -8[rbp]
	jmp	.L7
.L3:
	mov	eax, -1
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc, .-calc
	.section	.rodata
.LC0:
	.string	"%s %c %s\n"
	.text
	.globl	calc_recursive
	.type	calc_recursive, @function
calc_recursive:
.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, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 43
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 45
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 42
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	je	.L10
.L9:
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR -92[rbp], eax
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, 1[rax]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	BYTE PTR -80[rbp+rax], 0
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	lea	rcx, -48[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	calc_recursive
	mov	ebx, eax
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	calc_recursive
	mov	ecx, eax
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edx, ebx
	mov	esi, ecx
	mov	edi, eax
	call	calc
	jmp	.L12
.L10:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	atoi@PLT
.L12:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calc_recursive, .-calc_recursive
	.section	.rodata
.LC1:
	.string	"The answer is: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jle	.L15
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	calc_recursive
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L17
.L15:
	mov	eax, 0
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"111077268.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	calc
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc, %function
calc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L2
	.word	.L5
	.word	.L2
	.word	.L3
.L7:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	b	.L8
.L3:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	b	.L8
.L6:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	b	.L8
.L5:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	b	.L8
.L2:
	mvn	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calc, .-calc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s %c %s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	calc_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_recursive, %function
calc_recursive:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-72]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r1, #43
	ldr	r0, [fp, #-72]
	bl	strchr
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L10
	mov	r1, #45
	ldr	r0, [fp, #-72]
	bl	strchr
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L10
	mov	r1, #42
	ldr	r0, [fp, #-72]
	bl	strchr
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L10
	mov	r1, #47
	ldr	r0, [fp, #-72]
	bl	strchr
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L11
.L10:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	str	r3, [fp, #-60]
	sub	r3, fp, #56
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r2, fp, #56
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #36
	sub	r1, fp, #56
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldrb	r4, [r3]	@ zero_extendqisi2
	sub	r3, fp, #56
	mov	r0, r3
	bl	calc_recursive
	mov	r5, r0
	sub	r3, fp, #36
	mov	r0, r3
	bl	calc_recursive
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	calc
	mov	r3, r0
	b	.L13
.L11:
	ldr	r0, [fp, #-72]
	bl	atoi
	mov	r3, r0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC0
	.size	calc_recursive, .-calc_recursive
	.section	.rodata
	.align	2
.LC2:
	.ascii	"The answer is: %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L18
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	calc_recursive
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L21
	bl	printf
	mov	r3, #0
	b	.L20
.L18:
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
