// File: /workspace/github_cpp_makefile_star2_O2/mgronhol[P]Ullur/ullur.cpp
// Function: handle_get[abi:cxx11](double, double, double)
std::string handle_get( double x, double y, double r ){
	std::string out;

	std::vector< uint64_t > results_inter, /*results_final,*/ values;
	std::vector< std::pair< uint64_t, uint64_t > > areas;
	int N = -floor( log(r) / log(2) );
	uint64_t test_point_H = compute_hash( x, y );
	std::pair< double, double > test_point( x, y );
	char buffer[256];

/*	if( N < 4 ){
		// linear search is (probablyfaster
		for( std::set< uint64_t >::iterator it = hashes.begin() ; it != hashes.end() ; it++ ){}
		}
*/

	areas = get_near_indices( N, test_point_H );
	results_inter = extract_points( hashes, areas );

	double radius = r*r;
	std::pair< double, double > point;

	for( size_t i = 0 ; i < results_inter.size() ; ++i ){
		point = compute_position( results_inter[i] );

		if( get_squared_distance( point, test_point ) <= radius ){

			values = multiget( database, results_inter[i] );

			for( size_t j = 0 ; j < values.size() ; ++j ){
				memset( buffer, 0, 256 );
				sprintf( buffer, "%lu\n", values[j] );
				out += std::string( buffer );
				}
			}

		}

	return out + "\r\n";
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movsd %xmm1, 0x8(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movsd %xmm0, 0x10(%rsp)
movq %rdi, %r14
movb $0x0, (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
andq $0x0, 0x50(%rsp)
movaps %xmm0, 0x80(%rsp)
andq $0x0, 0x90(%rsp)
movsd %xmm2, 0x18(%rsp)
movaps %xmm2, %xmm0
callq 0x2200
movsd %xmm0, 0x78(%rsp)
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x48ec
movq %rax, %rbx
movsd 0x78(%rsp), %xmm0
divsd 0x371b(%rip), %xmm0     # 0x6020
callq 0x2390
xorpd 0x372e(%rip), %xmm0     # 0x6040
cvttsd2si %xmm0, %eax
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movslq %eax, %rsi
leaq 0xb0(%rsp), %rdi
movq %rbx, %rdx
callq 0x4a78
movq %r14, 0x10(%rsp)
leaq 0x80(%rsp), %rbx
leaq 0xb0(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41f2
movq %r14, %rdi
callq 0x41e4
leaq 0x68f2(%rip), %rsi      # 0x9268
leaq 0xb0(%rsp), %rdi
movq %rbx, %rdx
callq 0x4b84
leaq 0x20(%rsp), %rdi
leaq 0xb0(%rsp), %r14
movq %r14, %rsi
callq 0x4192
movq %r14, %rdi
callq 0x3b42
movsd 0x18(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0x18(%rsp)
xorpd %xmm0, %xmm0
leaq 0x60(%rsp), %rax
movapd %xmm0, (%rax)
leaq 0xf0(%rsp), %rbx
leaq 0x7(%rsp), %rbp
leaq 0xd0(%rsp), %r12
xorl %r15d, %r15d
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r15
jae 0x2aca
movq (%rax,%r15,8), %rdi
callq 0x4a05
movq %r15, 0x8(%rsp)
movsd %xmm0, 0x60(%rsp)
movsd %xmm1, 0x68(%rsp)
leaq 0x60(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x4b65
movsd 0x18(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x2a34
movq 0x8(%rsp), %r15
incq %r15
jmp 0x29d8
movq 0x20(%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq %r14, %rdi
leaq 0x684c(%rip), %rsi      # 0x9298
callq 0x263c
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x4192
movq %r14, %rdi
callq 0x3b42
xorl %r15d, %r15d
movq 0x40(%rsp), %r13
movq 0x48(%rsp), %rax
subq %r13, %rax
sarq $0x3, %rax
cmpq %rax, %r15
jae 0x2a2a
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
xorl %esi, %esi
callq 0x21a0
movq (%r13,%r15,8), %rdx
movq %rbx, %rdi
leaq 0x35c8(%rip), %rsi      # 0x6065
xorl %eax, %eax
callq 0x2060
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x2120
movq %r12, %rdi
movq %r14, %rsi
callq 0x23f0
movq %r14, %rdi
callq 0x2140
incq %r15
jmp 0x2a69
leaq 0x3591(%rip), %rdx      # 0x6062
leaq 0xd0(%rsp), %rsi
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x3952
leaq 0x80(%rsp), %rdi
callq 0x41e4
leaq 0x40(%rsp), %rdi
callq 0x3b42
leaq 0x20(%rsp), %rdi
callq 0x3b42
leaq 0xd0(%rsp), %rdi
callq 0x2140
movq %rbx, %rax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b37
jmp 0x2b37
jmp 0x2b37
jmp 0x2b37
jmp 0x2b37
jmp 0x2b37
jmp 0x2b37
movq %rax, %rbx
jmp 0x2b4c
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x2140
leaq 0x80(%rsp), %rdi
callq 0x41e4
leaq 0x40(%rsp), %rdi
callq 0x3b42
leaq 0x20(%rsp), %rdi
callq 0x3b42
leaq 0xd0(%rsp), %rdi
callq 0x2140
movq %rbx, %rdi
callq 0x23a0