	.file	"532122.c"
	.intel_syntax noprefix
	.text
	.globl	angles
	.bss
	.align 32
	.type	angles, @object
	.size	angles, 96
angles:
	.zero	96
	.globl	shifts
	.align 32
	.type	shifts, @object
	.size	shifts, 96
shifts:
	.zero	96
	.globl	initial
	.align 32
	.type	initial, @object
	.size	initial, 16384
initial:
	.zero	16384
	.section	.rodata
	.align 8
.LC4:
	.string	"Starting CORDIC at lest %13.11f => %i shifts\n"
.LC8:
	.string	"angle[%i] = %i\n"
	.align 8
.LC12:
	.string	"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
	.align 8
.LC13:
	.string	"!! NOTE = All entries in 'angles' are the same, so a constant can be used     !!!"
	.align 8
.LC14:
	.string	"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
	.text
	.globl	setup
	.type	setup, @function
setup:
.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, 64
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	call	atan@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR .LC3[rip]
	movq	xmm0, rax
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	call	ceil@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -52[rbp], eax
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR -48[rbp], xmm0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, DWORD PTR -52[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	atan@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 2
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, angles[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -56[rbp]
	lea	ecx, 11[rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shifts[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movsd	xmm1, QWORD PTR -48[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, angles[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -56[rbp], 1
.L2:
	cmp	DWORD PTR -56[rbp], 23
	jle	.L3
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR .LC9[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L4
.L5:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -56[rbp]
	mulsd	xmm0, QWORD PTR -40[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	mulsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR .LC11[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, initial[rip]
	mov	QWORD PTR [rcx+rdx], rax
	add	DWORD PTR -56[rbp], 1
.L4:
	cmp	DWORD PTR -56[rbp], 2047
	jle	.L5
	mov	edx, DWORD PTR angles[rip]
	mov	eax, DWORD PTR angles[rip+92]
	cmp	edx, eax
	jne	.L7
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	setup, .-setup
	.section	.rodata
.LC15:
	.string	"      SIN        COS        Z"
.LC16:
	.string	"%10li, %10li, %10li\n"
	.text
	.globl	cordic_sine_cosine
	.type	cordic_sine_cosine, @function
cordic_sine_cosine:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	rax, QWORD PTR -56[rbp]
	sar	rax, 31
	and	eax, 1
	mov	BYTE PTR -40[rbp], al
	mov	rax, QWORD PTR -56[rbp]
	sar	rax, 30
	and	eax, 1
	mov	BYTE PTR -39[rbp], al
	mov	rax, QWORD PTR -56[rbp]
	sar	rax, 19
	and	eax, 2047
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 2
	and	eax, 2097148
	mov	QWORD PTR -56[rbp], rax
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR -38[rbp], al
	movzx	eax, BYTE PTR -40[rbp]
	xor	al, BYTE PTR -39[rbp]
	mov	BYTE PTR -37[rbp], al
	cmp	BYTE PTR -39[rbp], 0
	je	.L9
	mov	eax, 2097152
	sub	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -56[rbp], rax
.L9:
	sub	QWORD PTR -56[rbp], 1048576
	cmp	BYTE PTR -39[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, initial[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, 2047
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, initial[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L11
.L10:
	mov	eax, 2047
	sub	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, initial[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, initial[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
.L11:
	cmp	DWORD PTR -76[rbp], 0
	je	.L12
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	BYTE PTR -41[rbp], 0
	jmp	.L13
.L21:
	movsx	eax, BYTE PTR -41[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shifts[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, eax
	sar	rdx, cl
	mov	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	movsx	eax, BYTE PTR -41[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shifts[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, eax
	sar	rdx, cl
	mov	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jns	.L14
	mov	rax, QWORD PTR -8[rbp]
	neg	rax
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -8[rbp]
.L15:
	sub	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jns	.L16
	mov	rax, QWORD PTR -16[rbp]
	neg	rax
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -16[rbp]
.L17:
	add	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jns	.L18
	movsx	eax, BYTE PTR -41[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, angles[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	jmp	.L19
.L18:
	movsx	eax, BYTE PTR -41[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, angles[rip]
	mov	eax, DWORD PTR [rdx+rax]
	neg	eax
	cdqe
.L19:
	add	QWORD PTR -56[rbp], rax
	sal	QWORD PTR -56[rbp]
	cmp	DWORD PTR -76[rbp], 0
	je	.L20
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	movzx	eax, BYTE PTR -41[rbp]
	add	eax, 1
	mov	BYTE PTR -41[rbp], al
.L13:
	cmp	BYTE PTR -41[rbp], 23
	jle	.L21
	cmp	BYTE PTR -37[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -32[rbp]
	neg	rax
	sar	rax, 4
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -32[rbp]
	sar	rax, 4
.L23:
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rdx], rax
	cmp	BYTE PTR -38[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -24[rbp]
	neg	rax
	sar	rax, 4
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -24[rbp]
	sar	rax, 4
.L25:
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	cordic_sine_cosine, .-cordic_sine_cosine
	.section	.rodata
	.align 8
.LC18:
	.string	"!! INPUT_BITS is very large, so this may take a long time to prove all test cases"
	.align 8
.LC19:
	.string	"!! Please wait........................"
	.align 8
.LC24:
	.string	"%10li  => %10li, %10li  (error %10f, %10f)\n\n"
	.align 8
.LC26:
	.string	"Error is %13.11f per calcuation out of +/-%li\n"
	.align 8
.LC27:
	.string	"Max error is %13.11f, occured %li times\n"
	.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
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -72[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	call	setup
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	QWORD PTR -80[rbp], 0
	jmp	.L27
.L45:
	lea	rdx, -88[rbp]
	lea	rsi, -96[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	cordic_sine_cosine
	mov	rbx, QWORD PTR -96[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -80[rbp]
	movsd	xmm0, QWORD PTR .LC20[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sin@PLT
	movsd	xmm1, QWORD PTR .LC9[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC21[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	sub	rbx, rax
	mov	rdx, rbx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rbx, QWORD PTR -88[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -80[rbp]
	movsd	xmm0, QWORD PTR .LC20[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	cos@PLT
	movsd	xmm1, QWORD PTR .LC9[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC21[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	sub	rbx, rax
	mov	rdx, rbx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, QWORD PTR .LC22[rip]
	jnb	.L28
	movsd	xmm0, QWORD PTR .LC23[rip]
	comisd	xmm0, QWORD PTR -40[rbp]
	jnb	.L28
	movsd	xmm0, QWORD PTR -32[rbp]
	comisd	xmm0, QWORD PTR .LC22[rip]
	jnb	.L28
	movsd	xmm0, QWORD PTR .LC23[rip]
	comisd	xmm0, QWORD PTR -32[rbp]
	jb	.L29
.L28:
	add	QWORD PTR -48[rbp], 1
	lea	rdx, -88[rbp]
	lea	rsi, -96[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, 1
	mov	rdi, rax
	call	cordic_sine_cosine
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	movsd	xmm0, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -80[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rsi
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 2
	call	printf@PLT
.L29:
	movsd	xmm0, QWORD PTR -40[rbp]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jbe	.L54
	movsd	xmm0, QWORD PTR -64[rbp]
	addsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
	jmp	.L33
.L54:
	movsd	xmm0, QWORD PTR -64[rbp]
	subsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
.L33:
	movsd	xmm0, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jbe	.L55
	movsd	xmm0, QWORD PTR -64[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
	jmp	.L36
.L55:
	movsd	xmm0, QWORD PTR -64[rbp]
	subsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
.L36:
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, QWORD PTR -72[rbp]
	jbe	.L37
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
.L37:
	movsd	xmm0, QWORD PTR -40[rbp]
	movq	xmm1, QWORD PTR .LC25[rip]
	xorpd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -72[rbp]
	jbe	.L39
	movsd	xmm0, QWORD PTR -40[rbp]
	movq	xmm1, QWORD PTR .LC25[rip]
	xorpd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
.L39:
	movsd	xmm0, QWORD PTR -32[rbp]
	comisd	xmm0, QWORD PTR -72[rbp]
	jbe	.L41
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
.L41:
	movsd	xmm0, QWORD PTR -32[rbp]
	movq	xmm1, QWORD PTR .LC25[rip]
	xorpd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -72[rbp]
	jbe	.L43
	movsd	xmm0, QWORD PTR -32[rbp]
	movq	xmm1, QWORD PTR .LC25[rip]
	xorpd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
.L43:
	add	QWORD PTR -56[rbp], 1
	add	QWORD PTR -80[rbp], 1
.L27:
	mov	eax, 4294967295
	cmp	QWORD PTR -80[rbp], rax
	jle	.L45
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR -64[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	mov	esi, 2147483648
	movq	xmm0, rax
	lea	rdi, .LC26[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	movq	xmm0, rax
	lea	rdi, .LC27[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1719614413
	.long	1072079006
	.align 8
.LC1:
	.long	1413754136
	.long	1061757435
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	-17155601
	.long	1072049730
	.align 8
.LC5:
	.long	0
	.long	1072693248
	.align 8
.LC6:
	.long	0
	.long	1106247680
	.align 8
.LC7:
	.long	1413754136
	.long	1075388923
	.align 8
.LC9:
	.long	0
	.long	1105199104
	.align 8
.LC10:
	.long	0
	.long	1076887552
	.align 8
.LC11:
	.long	0
	.long	1075838976
	.align 8
.LC20:
	.long	1413754136
	.long	1041834491
	.align 8
.LC21:
	.long	0
	.long	1071644672
	.align 8
.LC22:
	.long	0
	.long	1074266112
	.align 8
.LC23:
	.long	0
	.long	-1073217536
	.align 16
.LC25:
	.long	0
	.long	-2147483648
	.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	"532122.c"
	.text
	.comm	angles,96,4
	.comm	shifts,96,4
	.comm	initial,16384,8
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Starting CORDIC at lest %13.11f => %i shifts\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_l2d
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"angle[%i] = %i\012\000"
	.global	__aeabi_dsub
	.global	__aeabi_d2lz
	.align	2
.LC2:
	.ascii	"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
	.ascii	"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\000"
	.align	2
.LC3:
	.ascii	"!! NOTE = All entries in 'angles' are the same, so "
	.ascii	"a constant can be used     !!!\000"
	.align	2
.LC4:
	.ascii	"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
	.ascii	"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\012\000"
	.text
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	ldr	r2, .L8
	ldr	r3, .L8+4
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r2, .L8+8
	ldr	r3, .L8+12
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #1073741824
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	atan
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	ldr	r2, .L8+16
	ldr	r3, .L8+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	str	r3, [sp]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+24
	bl	printf
	mov	r2, #0
	ldr	r3, .L8+28
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L2
.L3:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L8+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	atan
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	mov	r2, #0
	ldr	r3, .L8+32
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L8+8
	ldr	r3, .L8+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-76]
	add	r1, r3, #2
	mov	r2, #1
	mov	r3, #0
	sub	ip, r1, #32
	rsb	r0, r1, #32
	lsl	r5, r3, r1
	orr	r5, r5, r2, lsl ip
	orr	r5, r5, r2, lsr r0
	lsl	r4, r2, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+28
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r1, .L8+40
	ldr	r3, [fp, #-76]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-76]
	add	r2, r3, #11
	ldr	r1, .L8+44
	ldr	r3, [fp, #-76]
	str	r2, [r1, r3, lsl #2]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r2, .L8+40
	ldr	r3, [fp, #-76]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-76]
	ldr	r0, .L8+48
	bl	printf
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L2:
	ldr	r3, [fp, #-76]
	cmp	r3, #23
	ble	.L3
	mov	r2, #0
	ldr	r3, .L8+52
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+56
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L4
.L5:
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+60
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L8+64
	ldr	r1, [fp, #-76]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L4:
	ldr	r3, [fp, #-76]
	cmp	r3, #2048
	blt	.L5
	ldr	r3, .L8+40
	ldr	r2, [r3]
	ldr	r3, .L8+40
	ldr	r3, [r3, #92]
	cmp	r2, r3
	bne	.L7
	ldr	r0, .L8+68
	bl	puts
	ldr	r0, .L8+72
	bl	puts
	ldr	r0, .L8+76
	bl	puts
.L7:
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L9:
	.align	2
.L8:
	.word	1719614413
	.word	1072079006
	.word	1413754136
	.word	1061757435
	.word	-17155601
	.word	1072049730
	.word	.LC0
	.word	1072693248
	.word	1106247680
	.word	1075388923
	.word	angles
	.word	shifts
	.word	.LC1
	.word	1105199104
	.word	1076887552
	.word	1075838976
	.word	initial
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	setup, .-setup
	.section	.rodata
	.align	2
.LC5:
	.ascii	"      SIN        COS        Z\000"
	.align	2
.LC6:
	.ascii	"%10li, %10li, %10li\012\000"
	.text
	.align	2
	.global	cordic_sine_cosine
	.syntax unified
	.arm
	.fpu softvfp
	.type	cordic_sine_cosine, %function
cordic_sine_cosine:
	@ args = 4, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #128
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	mov	r0, #0
	mov	r1, #0
	lsr	r0, r2, #31
	orr	r0, r0, r3, lsl #1
	asr	r1, r3, #31
	lsl	r3, r0, #24
	asr	r3, r3, #24
	and	r3, r3, #1
	strb	r3, [fp, #-68]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	mov	r0, #0
	mov	r1, #0
	lsr	r0, r2, #30
	orr	r0, r0, r3, lsl #2
	asr	r1, r3, #30
	lsl	r3, r0, #24
	asr	r3, r3, #24
	and	r3, r3, #1
	strb	r3, [fp, #-67]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	mov	r0, #0
	mov	r1, #0
	lsr	r0, r2, #19
	orr	r0, r0, r3, lsl #13
	asr	r1, r3, #19
	mov	r3, r0
	lsl	r3, r3, #21
	lsr	r3, r3, #21
	str	r3, [fp, #-64]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	ldr	r2, .L30
	mov	r3, #0
	and	r8, r0, r2
	and	r9, r1, r3
	str	r8, [fp, #-84]
	str	r9, [fp, #-80]
	ldrb	r3, [fp, #-68]
	strb	r3, [fp, #-66]
	ldrb	r2, [fp, #-68]
	ldrb	r3, [fp, #-67]
	eor	r3, r3, r2
	strb	r3, [fp, #-65]
	ldrsb	r3, [fp, #-67]
	cmp	r3, #0
	beq	.L11
	mov	r0, #2097152
	mov	r1, #0
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	subs	ip, r0, r2
	str	ip, [fp, #-100]
	sbc	r3, r1, r3
	str	r3, [fp, #-96]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
.L11:
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	subs	r1, r2, #1048576
	str	r1, [fp, #-108]
	sbc	r3, r3, #0
	str	r3, [fp, #-104]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldrsb	r3, [fp, #-67]
	cmp	r3, #0
	beq	.L12
	ldr	r2, .L30+4
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	rsb	r3, r3, #2032
	add	r3, r3, #15
	ldr	r2, .L30+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L13
.L12:
	ldr	r3, [fp, #-64]
	rsb	r3, r3, #2032
	add	r3, r3, #15
	ldr	r2, .L30+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r2, .L30+4
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L13:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L30+8
	bl	puts
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L30+12
	bl	printf
.L14:
	mov	r3, #0
	strb	r3, [fp, #-69]
	b	.L15
.L25:
	ldrsb	r3, [fp, #-69]
	ldr	r2, .L30+16
	ldr	r1, [r2, r3, lsl #2]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	rsb	r0, r1, #32
	subs	ip, r1, #32
	lsr	r4, r2, r1
	orr	r4, r4, r3, lsl r0
	bmi	.L16
	orr	r4, r4, r3, asr ip
.L16:
	asr	r5, r3, r1
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	ldrsb	r3, [fp, #-69]
	ldr	r2, .L30+16
	ldr	r1, [r2, r3, lsl #2]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	rsb	r0, r1, #32
	subs	ip, r1, #32
	lsr	r6, r2, r1
	orr	r6, r6, r3, lsl r0
	bmi	.L17
	orr	r6, r6, r3, asr ip
.L17:
	asr	r7, r3, r1
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L18
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	rsbs	r0, r2, #0
	rsc	r1, r3, #0
	b	.L19
.L18:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
.L19:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	subs	ip, r2, r0
	str	ip, [fp, #-116]
	sbc	r3, r3, r1
	str	r3, [fp, #-112]
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L20
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	rsbs	r0, r2, #0
	rsc	r1, r3, #0
	b	.L21
.L20:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
.L21:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-124]
	adc	r3, r3, r1
	str	r3, [fp, #-120]
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L22
	ldrsb	r3, [fp, #-69]
	ldr	r2, .L30+20
	ldr	r3, [r2, r3, lsl #2]
	b	.L23
.L22:
	ldrsb	r3, [fp, #-69]
	ldr	r2, .L30+20
	ldr	r3, [r2, r3, lsl #2]
	rsb	r3, r3, #0
.L23:
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-132]
	adc	r3, r3, r1
	str	r3, [fp, #-128]
	sub	r3, fp, #132
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	adds	r1, r2, r2
	str	r1, [fp, #-140]
	adc	r3, r3, r3
	str	r3, [fp, #-136]
	sub	r3, fp, #140
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L30+12
	bl	printf
.L24:
	ldrsb	r3, [fp, #-69]
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-69]
.L15:
	ldrsb	r3, [fp, #-69]
	cmp	r3, #23
	ble	.L25
	ldrsb	r3, [fp, #-65]
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	rsbs	r0, r2, #0
	rsc	r1, r3, #0
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #4
	orr	r2, r2, r1, lsl #28
	asr	r3, r1, #4
	b	.L27
.L26:
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #4
	orr	r2, r2, r1, lsl #28
	asr	r3, r1, #4
.L27:
	ldr	r1, [fp, #-92]
	stm	r1, {r2-r3}
	ldrsb	r3, [fp, #-66]
	cmp	r3, #0
	beq	.L28
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	rsbs	r0, r2, #0
	rsc	r1, r3, #0
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #4
	orr	r2, r2, r1, lsl #28
	asr	r3, r1, #4
	b	.L29
.L28:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #4
	orr	r2, r2, r1, lsl #28
	asr	r3, r1, #4
.L29:
	ldr	r1, [fp, #-88]
	stm	r1, {r2-r3}
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L31:
	.align	2
.L30:
	.word	2097148
	.word	initial
	.word	.LC5
	.word	.LC6
	.word	shifts
	.word	angles
	.size	cordic_sine_cosine, .-cordic_sine_cosine
	.section	.rodata
	.align	2
.LC7:
	.ascii	"!! INPUT_BITS is very large, so this may take a lon"
	.ascii	"g time to prove all test cases\000"
	.align	2
.LC8:
	.ascii	"!! Please wait........................\000"
	.global	__aeabi_dcmpge
	.global	__aeabi_dcmple
	.align	2
.LC9:
	.ascii	"%10li  => %10li, %10li  (error %10f, %10f)\012\012\000"
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.align	2
.LC10:
	.ascii	"Error is %13.11f per calcuation out of +/-%li\012\000"
	.align	2
.LC11:
	.ascii	"Max error is %13.11f, occured %li times\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #176
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	bl	setup
	ldr	r0, .L62+4
	bl	puts
	ldr	r0, .L62+8
	bl	puts
	ldr	r0, .L62+12
	bl	puts
	ldr	r0, .L62+4
	bl	puts
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	b	.L33
.L51:
	sub	r1, fp, #100
	sub	r2, fp, #108
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r1
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	cordic_sine_cosine
	sub	r5, fp, #108
	ldmia	r5, {r4-r5}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	ldr	r2, .L62+16
	ldr	r3, .L62+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r2, #0
	ldr	r3, .L62+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L62+28
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	subs	r1, r4, r2
	str	r1, [fp, #-124]
	sbc	r3, r5, r3
	str	r3, [fp, #-120]
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r5, fp, #100
	ldmia	r5, {r4-r5}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	ldr	r2, .L62+16
	ldr	r3, .L62+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r2, #0
	ldr	r3, .L62+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L62+28
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	subs	r1, r4, r2
	str	r1, [fp, #-132]
	sbc	r3, r5, r3
	str	r3, [fp, #-128]
	sub	r1, fp, #132
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L62+32
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	mov	r2, #0
	ldr	r3, .L62+36
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	mov	r2, #0
	ldr	r3, .L62+32
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	mov	r2, #0
	ldr	r3, .L62+36
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
.L34:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-156]
	adc	r3, r3, #0
	str	r3, [fp, #-152]
	sub	r4, fp, #156
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
	sub	r1, fp, #100
	sub	r2, fp, #108
	mov	r3, #1
	str	r3, [sp]
	mov	r3, r1
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	cordic_sine_cosine
	sub	r5, fp, #108
	ldmia	r5, {r4-r5}
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r4-r5}
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r0, .L62+40
	bl	printf
.L35:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L39
.L60:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L39:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L42
.L61:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L42:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
.L43:
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-48]
	eor	r3, r3, #-2147483648
	str	r3, [fp, #-136]
	sub	r3, fp, #140
	ldmia	r3, {r2-r3}
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r8, [fp, #-52]
	ldr	r3, [fp, #-48]
	eor	r9, r3, #-2147483648
	str	r8, [fp, #-84]
	str	r9, [fp, #-80]
.L45:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
.L47:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-40]
	eor	r3, r3, #-2147483648
	str	r3, [fp, #-144]
	sub	r3, fp, #148
	ldmia	r3, {r2-r3}
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-40]
	eor	r3, r3, #-2147483648
	str	r3, [fp, #-160]
	sub	r4, fp, #164
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
.L49:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-172]
	adc	r3, r3, #0
	str	r3, [fp, #-168]
	sub	r4, fp, #172
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-68]
	str	r4, [fp, #-64]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-92]
	str	r7, [fp, #-88]
.L33:
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	mvn	r2, #0
	mov	r3, #0
	cmp	r2, r0
	sbcs	r3, r3, r1
	bge	.L51
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #-2147483648
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L62+44
	bl	printf
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	ldr	r0, .L62+48
	bl	printf
	mov	r3, #0
	ldr	r2, .L62
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC12
	.word	.LC2
	.word	.LC7
	.word	.LC8
	.word	1413754136
	.word	1041834491
	.word	1105199104
	.word	1071644672
	.word	1074266112
	.word	-1073217536
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
