	.file	"1205238.c"
	.intel_syntax noprefix
	.text
	.globl	calc
	.type	calc, @function
calc:
.LFB0:
	.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, 56
	.cfi_offset 3, -24
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	QWORD PTR -48[rbp], xmm1
	movsd	QWORD PTR -56[rbp], xmm2
	movsd	xmm0, QWORD PTR -40[rbp]
	ucomisd	xmm0, QWORD PTR -48[rbp]
	jp	.L9
	movsd	xmm0, QWORD PTR -40[rbp]
	ucomisd	xmm0, QWORD PTR -48[rbp]
	je	.L2
.L9:
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -40[rbp]
	jp	.L10
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -40[rbp]
	je	.L2
.L10:
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -56[rbp]
	jp	.L11
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -56[rbp]
	je	.L2
.L11:
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	pxor	xmm0, xmm0
	movq	xmm4, rax
	ucomisd	xmm4, xmm0
	jp	.L6
	pxor	xmm0, xmm0
	movq	xmm5, rax
	ucomisd	xmm5, xmm0
	jne	.L6
.L2:
	movsd	xmm0, QWORD PTR .LC1[rip]
	jmp	.L8
.L6:
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -40[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rbx, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, QWORD PTR -48[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	xmm1, rbx
	divsd	xmm1, xmm0
	movsd	xmm2, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm2, xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	divsd	xmm0, QWORD PTR -40[rbp]
	addsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movsd	QWORD PTR -64[rbp], xmm1
	mov	rax, QWORD PTR -48[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movq	rbx, xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movq	xmm3, rbx
	divsd	xmm3, xmm0
	movapd	xmm1, xmm3
	pxor	xmm0, xmm0
	addsd	xmm0, xmm1
	movq	xmm1, QWORD PTR .LC4[rip]
	andpd	xmm0, xmm1
	addsd	xmm0, QWORD PTR -64[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
.L8:
	movq	rax, xmm0
	movq	xmm0, rax
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	calc, .-calc
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	2146959360
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1074790400
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	"1205238.c"
	.text
	.global	__aeabi_dcmpeq
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
	.global	calc
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc, %function
calc:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r2, #0
	mov	r3, #0
	ldmib	fp, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	sin
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
.L2:
	mov	r2, #0
	ldr	r3, .L7
	b	.L5
.L6:
	mov	r2, #0
	ldr	r3, .L7+4
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	pow
	mov	r6, r0
	mov	r7, r1
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldmib	fp, {r2-r3}
	mov	r0, #0
	ldr	r1, .L7+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	mov	r2, #0
	ldr	r3, .L7+8
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r6, r0
	mov	r7, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	mov	r2, r4
	mov	r3, r5
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
.L5:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L8:
	.align	2
.L7:
	.word	2146959360
	.word	1072693248
	.word	1074790400
	.size	calc, .-calc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
