	.file	"163496.c"
	.intel_syntax noprefix
	.text
	.globl	stack
	.bss
	.align 32
	.type	stack, @object
	.size	stack, 72
stack:
	.zero	72
	.globl	stacksize
	.align 4
	.type	stacksize, @object
	.size	stacksize, 4
stacksize:
	.zero	4
	.section	.rodata
.LC0:
	.string	"    %g\n"
	.text
	.globl	display_stack
	.type	display_stack, @function
display_stack:
.LFB0:
	.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
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movq	xmm0, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR stacksize[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	display_stack, .-display_stack
	.section	.rodata
.LC1:
	.string	"Unknow command"
.LC2:
	.string	"Stack too small"
	.text
	.globl	display_result
	.type	display_result, @function
display_result:
.LFB1:
	.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
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 3
	je	.L5
	cmp	DWORD PTR -4[rbp], 3
	jg	.L10
	cmp	DWORD PTR -4[rbp], 2
	je	.L7
	cmp	DWORD PTR -4[rbp], 2
	jg	.L10
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	cmp	DWORD PTR -4[rbp], 1
	je	.L9
	jmp	.L10
.L8:
	mov	eax, 0
	call	display_stack
	jmp	.L6
.L9:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L6
.L7:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	mov	edi, 10
	call	putchar@PLT
	nop
.L6:
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	display_result, .-display_result
	.section	.rodata
.LC3:
	.string	"For help, enter h"
.LC4:
	.string	"Enter command : "
.LC5:
	.string	"%s"
.LC6:
	.string	"q"
.LC7:
	.string	"help"
	.align 8
.LC8:
	.string	"\nCOMMAND\n'h' = help\n'q' = quit\n'+' = addition\n'*' = multiplication\n'chs' = change sign\n'inv' = inverse"
.LC9:
	.string	"+"
.LC10:
	.string	"*"
.LC11:
	.string	"chs"
.LC13:
	.string	"inv"
.LC15:
	.string	"%lg"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -284[rbp], 0
	lea	rax, -272[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L27
	lea	rax, -272[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L15
.L14:
	lea	rax, -272[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR stacksize[rip]
	cmp	eax, 1
	jg	.L17
	mov	DWORD PTR -284[rbp], 2
	jmp	.L15
.L17:
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 2
	addsd	xmm0, xmm1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	mov	DWORD PTR stacksize[rip], eax
	jmp	.L15
.L16:
	lea	rax, -272[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR stacksize[rip]
	cmp	eax, 1
	jg	.L19
	mov	DWORD PTR -284[rbp], 2
	jmp	.L15
.L19:
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 2
	mulsd	xmm0, xmm1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	mov	DWORD PTR stacksize[rip], eax
	jmp	.L15
.L18:
	lea	rax, -272[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	movq	xmm1, QWORD PTR .LC12[rip]
	xorpd	xmm0, xmm1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	jmp	.L15
.L20:
	lea	rax, -272[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR stacksize[rip]
	sub	eax, 1
	movsd	xmm0, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	jmp	.L15
.L21:
	movzx	eax, BYTE PTR -272[rbp]
	cmp	al, 47
	jle	.L22
	movzx	eax, BYTE PTR -272[rbp]
	cmp	al, 57
	jg	.L22
	lea	rdx, -280[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR stacksize[rip]
	movsd	xmm0, QWORD PTR -280[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR stacksize[rip]
	add	eax, 1
	mov	DWORD PTR stacksize[rip], eax
	jmp	.L15
.L22:
	mov	DWORD PTR -284[rbp], 1
.L15:
	mov	eax, DWORD PTR -284[rbp]
	mov	edi, eax
	call	display_result
	jmp	.L23
.L27:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC12:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.align 8
.LC14:
	.long	0
	.long	1072693248
	.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	"163496.c"
	.text
	.comm	stack,72,8
	.global	stacksize
	.bss
	.align	2
	.type	stacksize, %object
	.size	stacksize, 4
stacksize:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"    %g\012\000"
	.text
	.align	2
	.global	display_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_stack, %function
display_stack:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, .L4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L4+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L4+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stack
	.word	.LC0
	.word	stacksize
	.size	display_stack, .-display_stack
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Unknow command\000"
	.align	2
.LC2:
	.ascii	"Stack too small\000"
	.text
	.align	2
	.global	display_result
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_result, %function
display_result:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L9:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L12:
	bl	display_stack
	b	.L7
.L11:
	ldr	r0, .L14
	bl	puts
	b	.L7
.L10:
	ldr	r0, .L14+4
	bl	puts
	b	.L7
.L8:
	mov	r0, #10
	bl	putchar
	nop
.L7:
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC2
	.size	display_result, .-display_result
	.section	.rodata
	.align	2
.LC3:
	.ascii	"For help, enter h\000"
	.align	2
.LC4:
	.ascii	"Enter command : \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"q\000"
	.align	2
.LC7:
	.ascii	"help\000"
	.align	2
.LC8:
	.ascii	"\012COMMAND\012'h' = help\012'q' = quit\012'+' = ad"
	.ascii	"dition\012'*' = multiplication\012'chs' = change si"
	.ascii	"gn\012'inv' = inverse\000"
	.align	2
.LC9:
	.ascii	"+\000"
	.global	__aeabi_dadd
	.align	2
.LC10:
	.ascii	"*\000"
	.global	__aeabi_dmul
	.align	2
.LC11:
	.ascii	"chs\000"
	.align	2
.LC12:
	.ascii	"inv\000"
	.global	__aeabi_ddiv
	.align	2
.LC13:
	.ascii	"%lg\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #284
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L33+4
	bl	puts
	ldr	r0, .L33+8
	bl	printf
.L28:
	sub	r3, fp, #280
	mov	r1, r3
	ldr	r0, .L33+12
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-296]
	sub	r3, fp, #280
	ldr	r1, .L33+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	sub	r3, fp, #280
	ldr	r1, .L33+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L33+24
	bl	puts
	b	.L20
.L19:
	sub	r3, fp, #280
	ldr	r1, .L33+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L33+32
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L22
	mov	r3, #2
	str	r3, [fp, #-296]
	b	.L20
.L22:
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+36
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L33+36
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, .L33+32
	ldr	ip, [ip]
	sub	r6, ip, #2
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L33+36
	lsl	r1, r6, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+32
	str	r3, [r2]
	b	.L20
.L21:
	sub	r3, fp, #280
	ldr	r1, .L33+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L33+32
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L24
	mov	r3, #2
	str	r3, [fp, #-296]
	b	.L20
.L24:
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+36
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L33+36
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, .L33+32
	ldr	ip, [ip]
	sub	r6, ip, #2
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L33+36
	lsl	r1, r6, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+32
	str	r3, [r2]
	b	.L20
.L23:
	sub	r3, fp, #280
	ldr	r1, .L33+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+36
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, .L33+32
	ldr	r1, [r1]
	sub	r1, r1, #1
	mov	r4, r2
	eor	r5, r3, #-2147483648
	ldr	r2, .L33+36
	lsl	r3, r1, #3
	add	r3, r2, r3
	stm	r3, {r4-r5}
	b	.L20
.L25:
	sub	r3, fp, #280
	ldr	r1, .L33+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L33+32
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+36
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, .L33+32
	ldr	r1, [r1]
	sub	r6, r1, #1
	mov	r0, #0
	ldr	r1, .L33+52
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L33+36
	lsl	r1, r6, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	b	.L20
.L26:
	ldrb	r3, [fp, #-280]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L27
	ldrb	r3, [fp, #-280]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L27
	sub	r2, fp, #292
	sub	r3, fp, #280
	ldr	r1, .L33+56
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, .L33+32
	ldr	r1, [r3]
	sub	r3, fp, #292
	ldmia	r3, {r2-r3}
	ldr	r0, .L33+36
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, .L33+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+32
	str	r3, [r2]
	b	.L20
.L27:
	mov	r3, #1
	str	r3, [fp, #-296]
.L20:
	ldr	r0, [fp, #-296]
	bl	display_result
	b	.L28
.L32:
	nop
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC14
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stacksize
	.word	stack
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1072693248
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
