	.file	"1001492.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"unknown command "
	.text
	.globl	main
	.type	main, @function
main:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L13:
	cmp	DWORD PTR -124[rbp], 48
	jg	.L3
	cmp	DWORD PTR -124[rbp], 10
	jl	.L4
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 10
	cmp	eax, 38
	ja	.L4
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L11-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L3:
	cmp	DWORD PTR -124[rbp], 110
	je	.L12
	jmp	.L4
.L5:
	lea	rax, -112[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	atof@PLT
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, eax
	movq	rax, xmm5
	movq	xmm0, rax
	call	push@PLT
	jmp	.L2
.L12:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	mathfnc
	jmp	.L2
.L9:
	call	pop@PLT
	movsd	QWORD PTR -136[rbp], xmm0
	call	pop@PLT
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -136[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	call	push@PLT
	jmp	.L2
.L10:
	call	pop@PLT
	movsd	QWORD PTR -136[rbp], xmm0
	call	pop@PLT
	movapd	xmm2, xmm0
	mulsd	xmm2, QWORD PTR -136[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	push@PLT
	jmp	.L2
.L8:
	call	pop@PLT
	movq	rax, xmm0
	mov	QWORD PTR -120[rbp], rax
	call	pop@PLT
	movq	rax, xmm0
	movq	xmm3, rax
	subsd	xmm3, QWORD PTR -120[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	push@PLT
	jmp	.L2
.L7:
	call	pop@PLT
	movq	rax, xmm0
	mov	QWORD PTR -120[rbp], rax
	call	pop@PLT
	movq	rax, xmm0
	movq	xmm4, rax
	divsd	xmm4, QWORD PTR -120[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	call	push@PLT
	jmp	.L2
.L11:
	call	pop@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L2
.L4:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
.L2:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	getop@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], -1
	jne	.L13
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"sin"
.LC3:
	.string	"cos"
.LC4:
	.string	"pow"
.LC5:
	.string	"error %s not support"
	.text
	.globl	mathfnc
	.type	mathfnc, @function
mathfnc:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	call	pop@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	push@PLT
	jmp	.L21
.L17:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	call	pop@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	cos@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	push@PLT
	jmp	.L21
.L19:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	call	pop@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	call	pop@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	push@PLT
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mathfnc, .-mathfnc
	.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	"1001492.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"unknown command \000"
	.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 = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L2
.L13:
	ldr	r3, [fp, #-128]
	cmp	r3, #48
	bgt	.L3
	ldr	r3, [fp, #-128]
	cmp	r3, #10
	blt	.L4
	ldr	r3, [fp, #-128]
	sub	r3, r3, #10
	cmp	r3, #38
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L11
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L10
	.word	.L9
	.word	.L4
	.word	.L8
	.word	.L4
	.word	.L7
	.word	.L5
.L3:
	ldr	r3, [fp, #-128]
	cmp	r3, #110
	beq	.L12
	b	.L4
.L5:
	sub	r3, fp, #116
	mov	r0, r3
	bl	atof
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L12:
	sub	r3, fp, #116
	mov	r0, r3
	bl	mathfnc
	b	.L2
.L9:
	bl	pop
	mov	r4, r0
	mov	r5, r1
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L10:
	bl	pop
	mov	r4, r0
	mov	r5, r1
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L8:
	bl	pop
	str	r0, [fp, #-124]
	str	r1, [fp, #-120]
	bl	pop
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L7:
	bl	pop
	str	r0, [fp, #-124]
	str	r1, [fp, #-120]
	bl	pop
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L11:
	bl	pop
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+4
	bl	printf
	b	.L2
.L4:
	ldr	r0, .L16+8
	bl	puts
	nop
.L2:
	sub	r3, fp, #116
	mov	r0, r3
	bl	getop
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L13
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"sin\000"
	.align	2
.LC4:
	.ascii	"cos\000"
	.align	2
.LC5:
	.ascii	"pow\000"
	.align	2
.LC6:
	.ascii	"error %s not support\000"
	.text
	.align	2
	.global	mathfnc
	.syntax unified
	.arm
	.fpu softvfp
	.type	mathfnc, %function
mathfnc:
	@ 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]
	ldr	r1, .L24
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L23
.L19:
	ldr	r1, .L24+4
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L23
.L21:
	ldr	r1, .L24+8
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	bl	pop
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	bl	pop
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L23
.L22:
	ldr	r1, [fp, #-16]
	ldr	r0, .L24+12
	bl	printf
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	mathfnc, .-mathfnc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
