// File: /workspace/github_cpp_makefile_star2_O3/dtsaras[P]GCW/Locations.cpp
// Function: Locations::Locations(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Locations::Locations(const string file){
    if (file != ""){
        string line;
        ifstream fin(file);
        vector<int> *users_list;
        pair <double, double> coord;
        int id=0;
        double lat, lng;
        fin >> size;
        locations = new double *[size + 1];
        map< pair <double, double>, vector<int> > positions;
        for(int i = 0; i <= size; i++){
            locations[i] = new double[2];
        }
        
        while(fin >> id >> setprecision(12) >> lat >> setprecision(12) >> lng)
        { 
            locations[id][0] = lat;
            locations[id][1] = lng;
            coord = make_pair(lat, lng);
            users_list = &positions[coord];
            users_list->push_back(id);
        }
        fin.close();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x290, %rsp            # imm = 0x290
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movl $0x0, 0x18(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rcx, 0x38(%rdi)
leaq 0xa55e(%rip), %rsi      # 0x170f3
movq %r14, %rdi
callq 0x3100
testl %eax, %eax
je 0xcd50
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x88(%rsp), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x3530
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movl $0x0, 0xc(%rsp)
leaq 0x8(%rbx), %r14
leaq 0x88(%rsp), %rdi
movq %r14, %rsi
callq 0x31e0
movl (%r14), %r14d
leal 0x1(%r14), %ebp
movslq %ebp, %rax
shlq $0x3, %rax
cmpl $-0x1, %r14d
movq $-0x1, %rdi
cmovgeq %rax, %rdi
callq 0x3030
movq %rax, (%rbx)
leaq 0x60(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
testl %r14d, %r14d
js 0xccbf
movl %ebp, %r14d
xorl %r12d, %r12d
movl $0x10, %edi
callq 0x3030
movq (%rbx), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
cmpq %r12, %r14
jne 0xcc44
jmp 0xccbf
movsd 0x18(%rsp), %xmm0
movq (%rbx), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, (%rax)
movsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x8(%rax)
leaq 0x20(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
leaq 0x58(%rsp), %rdi
callq 0xced0
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0xccb2
movl 0xc(%rsp), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rax)
jmp 0xccbf
leaq 0xc(%rsp), %rdx
movq %rax, %rdi
callq 0xd306
leaq 0x88(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x8(%rax,%rcx)
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x3220
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x8(%rax,%rcx)
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x3220
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0xcc5f
leaq 0x88(%rsp), %rdi
callq 0x30b0
leaq 0x58(%rsp), %rdi
callq 0xcf76
leaq 0x88(%rsp), %rdi
callq 0x30d0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xcd50
callq 0x3340
addq $0x290, %rsp            # imm = 0x290
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xcd6e
movq %rax, %r14
jmp 0xcd88
movq %rax, %r14
jmp 0xcd7b
jmp 0xcd6e
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0xcf76
leaq 0x88(%rsp), %rdi
callq 0x30d0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xcd97
callq 0x3340
addq $0x10, %rbx
movq %rbx, %rdi
callq 0xcf76
movq %r14, %rdi
callq 0x35c0
nop