	.file	"635092.c"
	.intel_syntax noprefix
	.text
	.globl	shades
	.section	.rodata
	.align 8
	.type	shades, @object
	.size	shades, 11
shades:
	.string	"@%#&eo*!:."
	.globl	shade_length
	.align 4
	.type	shade_length, @object
	.size	shade_length, 4
shade_length:
	.long	10
.LC2:
	.string	"cls"
	.align 8
.LC3:
	.string	"Current Light pos : %.0f, %.0f, %.0f\n"
	.align 8
.LC4:
	.string	"Current Light dir : %.4f, %.4f, %.4f\n"
.LC5:
	.string	"Current Sphere radius : %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -48[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -68[rbp], 10
.L12:
	lea	rdi, .LC2[rip]
	call	system@PLT
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	normalize
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	draw_hemisphere
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 3
	call	printf@PLT
	movsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	BYTE PTR -69[rbp], al
	call	getchar@PLT
	cmp	BYTE PTR -69[rbp], 116
	jne	.L2
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	testsphere
.L2:
	cmp	BYTE PTR -69[rbp], 81
	je	.L3
	cmp	BYTE PTR -69[rbp], 113
	je	.L3
	movsx	eax, BYTE PTR -69[rbp]
	sub	eax, 43
	cmp	eax, 76
	ja	.L12
	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	.L12-.L6
	.long	.L10-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L9-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L8-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L7-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L5-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L9-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L8-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L7-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L12-.L6
	.long	.L5-.L6
	.text
.L5:
	movsd	xmm0, QWORD PTR -64[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
	jmp	.L4
.L7:
	movsd	xmm1, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
	jmp	.L4
.L9:
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	jmp	.L4
.L8:
	movsd	xmm1, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	jmp	.L4
.L11:
	add	DWORD PTR -68[rbp], 1
	jmp	.L4
.L10:
	sub	DWORD PTR -68[rbp], 1
	nop
.L4:
	jmp	.L12
.L3:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	normalize
	.type	normalize, @function
normalize:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm2, xmm0
	addsd	xmm2, QWORD PTR -40[rbp]
	movsd	QWORD PTR -40[rbp], xmm2
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	addsd	xmm0, QWORD PTR -40[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR [rax]
	divsd	xmm0, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	movsd	xmm0, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	divsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	movsd	xmm0, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	divsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rax], xmm0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	normalize, .-normalize
	.globl	dot
	.type	dot, @function
dot:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	movsd	xmm2, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 16
	movsd	xmm2, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dot, .-dot
	.globl	make_hemisphere_points
	.type	make_hemisphere_points, @function
make_hemisphere_points:
.LFB9:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	DWORD PTR -32[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -36[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC8[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -32[rbp], 1
.L19:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	cmp	DWORD PTR -32[rbp], eax
	jle	.L20
	mov	DWORD PTR -28[rbp], 0
	jmp	.L21
.L22:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, 0
	sub	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC8[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -28[rbp], 1
.L21:
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 2
	cmp	DWORD PTR -28[rbp], eax
	jle	.L22
	mov	DWORD PTR -24[rbp], 0
	jmp	.L23
.L29:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L24
.L28:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -80[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm3, xmm0
	addsd	xmm3, QWORD PTR -80[rbp]
	movsd	QWORD PTR -80[rbp], xmm3
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, DWORD PTR -36[rbp]
	movq	rax, xmm5
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movq	xmm6, rax
	comisd	xmm6, QWORD PTR -80[rbp]
	jb	.L31
	pxor	xmm7, xmm7
	cvtsi2sd	xmm7, DWORD PTR -36[rbp]
	movq	rax, xmm7
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rbx, xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	xmm2, rbx
	subsd	xmm2, xmm0
	movsd	QWORD PTR -80[rbp], xmm2
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC7[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm2, QWORD PTR -80[rbp]
	subsd	xmm2, xmm0
	movq	rax, xmm2
	mov	edx, DWORD PTR -36[rbp]
	sal	edx, 2
	add	edx, 1
	mov	ecx, edx
	imul	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	jmp	.L27
.L31:
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 2
	add	eax, 1
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC9[rip]
	movsd	QWORD PTR [rax], xmm0
.L27:
	add	DWORD PTR -20[rbp], 1
.L24:
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 2
	cmp	DWORD PTR -20[rbp], eax
	jle	.L28
	add	DWORD PTR -24[rbp], 1
.L23:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	cmp	DWORD PTR -24[rbp], eax
	jle	.L29
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	make_hemisphere_points, .-make_hemisphere_points
	.globl	draw_hemisphere
	.type	draw_hemisphere, @function
draw_hemisphere:
.LFB10:
	.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, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, eax
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	add	eax, 1
	imul	eax, edx
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	add	eax, 1
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	lea	rdi, -140[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	rsi, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	make_hemisphere_points
	mov	DWORD PTR -136[rbp], 0
	jmp	.L33
.L36:
	mov	DWORD PTR -132[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -48[rbp], xmm0
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -40[rbp], xmm0
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	add	eax, 1
	imul	eax, DWORD PTR -136[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -32[rbp], xmm0
	lea	rdx, -80[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	normalize
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	add	eax, 1
	imul	eax, DWORD PTR -136[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	lea	rbx, [rdx+rax]
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dot
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -132[rbp], 1
.L34:
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	cmp	DWORD PTR -132[rbp], eax
	jle	.L35
	add	DWORD PTR -136[rbp], 1
.L33:
	mov	eax, DWORD PTR -148[rbp]
	add	eax, eax
	cmp	DWORD PTR -136[rbp], eax
	jle	.L36
	mov	DWORD PTR -128[rbp], 0
	jmp	.L37
.L43:
	mov	DWORD PTR -124[rbp], 0
	jmp	.L38
.L42:
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	add	eax, 1
	imul	eax, DWORD PTR -128[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jbe	.L46
	mov	edi, 32
	call	putchar@PLT
	jmp	.L41
.L46:
	mov	eax, 10
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	add	eax, 1
	imul	eax, DWORD PTR -128[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	cdqe
	lea	rdx, shades[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L41:
	add	DWORD PTR -124[rbp], 1
.L38:
	mov	eax, DWORD PTR -148[rbp]
	sal	eax, 2
	cmp	DWORD PTR -124[rbp], eax
	jle	.L42
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -128[rbp], 1
.L37:
	mov	eax, DWORD PTR -148[rbp]
	add	eax, eax
	cmp	DWORD PTR -128[rbp], eax
	jle	.L43
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	draw_hemisphere, .-draw_hemisphere
	.section	.rodata
.LC10:
	.string	"valid\n"
.LC11:
	.string	"Invalid\n"
.LC12:
	.string	"pause"
	.text
	.globl	testsphere
	.type	testsphere, @function
testsphere:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 1
	mov	eax, DWORD PTR -84[rbp]
	sal	eax, 2
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	imul	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	sal	eax, 2
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	imul	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	sal	eax, 2
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	imul	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, -68[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	make_hemisphere_points
	mov	DWORD PTR -60[rbp], 0
	jmp	.L48
.L51:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm0
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	comisd	xmm0, xmm1
	jb	.L49
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -32[rbp]
	mulsd	xmm0, xmm0
	subsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, xmm0
	subsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm2, rax
	ucomisd	xmm2, QWORD PTR -16[rbp]
	setnp	dl
	mov	ecx, 0
	movq	xmm3, rax
	ucomisd	xmm3, QWORD PTR -16[rbp]
	mov	eax, ecx
	cmove	eax, edx
	movzx	eax, al
	mov	edx, DWORD PTR -64[rbp]
	imul	eax, edx
	mov	DWORD PTR -64[rbp], eax
.L49:
	add	DWORD PTR -60[rbp], 1
.L48:
	mov	eax, DWORD PTR -68[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L51
	cmp	DWORD PTR -64[rbp], 0
	je	.L52
	lea	rax, .LC10[rip]
	jmp	.L53
.L52:
	lea	rax, .LC11[rip]
.L53:
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC12[rip]
	call	system@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	testsphere, .-testsphere
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.align 8
.LC6:
	.long	0
	.long	1072693248
	.align 8
.LC7:
	.long	0
	.long	1073741824
	.align 8
.LC8:
	.long	0
	.long	1071644672
	.align 8
.LC9:
	.long	0
	.long	-1074790400
	.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	"635092.c"
	.text
	.global	shades
	.section	.rodata
	.align	2
	.type	shades, %object
	.size	shades, 11
shades:
	.ascii	"@%#&eo*!:.\000"
	.global	shade_length
	.align	2
	.type	shade_length, %object
	.size	shade_length, 4
shade_length:
	.word	10
	.align	2
.LC0:
	.ascii	"cls\000"
	.align	2
.LC1:
	.ascii	"Current Light pos : %.0f, %.0f, %.0f\012\000"
	.align	2
.LC2:
	.ascii	"Current Light dir : %.4f, %.4f, %.4f\012\000"
	.align	2
.LC3:
	.ascii	"Current Sphere radius : %d\012\000"
	.global	__aeabi_dsub
	.global	__aeabi_dadd
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #80
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	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]
	mov	r2, #0
	ldr	r3, .L15+4
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #10
	str	r3, [fp, #-72]
.L12:
	ldr	r0, .L15+8
	bl	system
	sub	r2, fp, #44
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	normalize
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	draw_hemisphere
	sub	r5, fp, #68
	ldmia	r5, {r4-r5}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L15+12
	bl	printf
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L15+16
	bl	printf
	ldr	r1, [fp, #-72]
	ldr	r0, .L15+20
	bl	printf
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-73]
	bl	getchar
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L2
	ldr	r0, [fp, #-72]
	bl	testsphere
.L2:
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	cmp	r3, #81
	beq	.L3
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L3
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	sub	r3, r3, #43
	cmp	r3, #76
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L6:
	.word	.L11
	.word	.L12
	.word	.L10
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L9
	.word	.L12
	.word	.L12
	.word	.L8
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L7
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L5
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L9
	.word	.L12
	.word	.L12
	.word	.L8
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L7
	.word	.L12
	.word	.L12
	.word	.L12
	.word	.L5
.L5:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L15+24
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L4
.L7:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L15+24
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L4
.L9:
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L15+24
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L8:
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L15+24
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L11:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	b	.L4
.L10:
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	nop
.L4:
	b	.L12
.L3:
	mov	r3, #0
	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	.LC4
	.word	1076101120
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1072693248
	.size	main, .-main
	.global	__aeabi_ddiv
	.align	2
	.global	normalize
	.syntax unified
	.arm
	.fpu softvfp
	.type	normalize, %function
normalize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	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	sqrt
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-28]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	add	r4, r3, #8
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	add	r4, r3, #16
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	normalize, .-normalize
	.global	__aeabi_dmul
	.align	2
	.global	dot
	.syntax unified
	.arm
	.fpu softvfp
	.type	dot, %function
dot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-20]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	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
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	dot, .-dot
	.global	__aeabi_i2d
	.global	__aeabi_dcmple
	.align	2
	.global	make_hemisphere_points
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_hemisphere_points, %function
make_hemisphere_points:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L21
.L22:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r2, #0
	ldr	r3, .L34
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L21:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L22
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L23
.L24:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #31
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	mov	r2, #0
	ldr	r3, .L34
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L23:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L24
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L25
.L31:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L26
.L30:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	b	.L29
.L33:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r1, r2, r3
	mov	r2, #0
	ldr	r3, .L34+4
	stm	r1, {r2-r3}
.L29:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L26:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L30
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L25:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L31
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L35:
	.align	2
.L34:
	.word	1071644672
	.word	-1074790400
	.size	make_hemisphere_points, .-make_hemisphere_points
	.global	__aeabi_dcmplt
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_hemisphere
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_hemisphere, %function
draw_hemisphere:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, [fp, #-112]
	lsl	r2, r2, #2
	add	r2, r2, #1
	mul	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #1
	add	r3, r3, #1
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r3, #1
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	sub	r3, fp, #108
	str	r3, [sp]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-112]
	bl	make_hemisphere_points
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L37
.L40:
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L38
.L39:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r3, #1
	ldr	r2, [fp, #-104]
	mul	r2, r3, r2
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r2, fp, #68
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	normalize
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r3, #1
	ldr	r2, [fp, #-104]
	mul	r2, r3, r2
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-76]
	add	r4, r2, r3
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	dot
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L38:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	ble	.L39
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L37:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	ble	.L40
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L41
.L47:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L42
.L46:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r3, #1
	ldr	r2, [fp, #-96]
	mul	r2, r3, r2
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	mov	r0, #32
	bl	putchar
	b	.L45
.L50:
	mov	r3, #10
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r3, #1
	ldr	r2, [fp, #-96]
	mul	r2, r3, r2
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	ldr	r2, .L51+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L45:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L42:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	ble	.L46
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L41:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	ble	.L47
	ldr	r0, [fp, #-88]
	bl	free
	ldr	r0, [fp, #-84]
	bl	free
	ldr	r0, [fp, #-80]
	bl	free
	ldr	r0, [fp, #-76]
	bl	free
	ldr	r0, [fp, #-72]
	bl	free
	nop
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC5
	.word	shades
	.size	draw_hemisphere, .-draw_hemisphere
	.global	__aeabi_dcmpeq
	.section	.rodata
	.align	2
.LC6:
	.ascii	"valid\012\000"
	.align	2
.LC7:
	.ascii	"Invalid\012\000"
	.align	2
.LC8:
	.ascii	"pause\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testsphere
	.syntax unified
	.arm
	.fpu softvfp
	.type	testsphere, %function
testsphere:
	@ 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, #72
	str	r0, [fp, #-72]
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #1
	add	r3, r3, #1
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #1
	add	r3, r3, #1
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #1
	add	r3, r3, #1
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	sub	r3, fp, #68
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-72]
	bl	make_hemisphere_points
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L54
.L58:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-72]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-72]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r1, #1
	mov	r4, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	mov	r3, #0
	mov	r4, r3
.L57:
	and	r3, r4, #255
	mov	r2, r3
	ldr	r3, [fp, #-64]
	mul	r3, r2, r3
	str	r3, [fp, #-64]
.L55:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L54:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L58
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L63+4
	b	.L60
.L59:
	ldr	r3, .L63+8
.L60:
	mov	r0, r3
	bl	printf
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, .L63+12
	bl	system
	nop
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC9
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	testsphere, .-testsphere
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
