// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
andl $0x0, 0x18(%rdi)
andq $0x0, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rax, 0x30(%rdi)
andq $0x0, 0x38(%rdi)
leaq 0x87f3(%rip), %rsi      # 0x130c3
movq %r14, %rdi
callq 0x8a90
testb %al, %al
je 0xaa60
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x80(%rsp), %rdi
pushq $0x8
popq %rdx
movq %r14, %rsi
callq 0x3500
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andl $0x0, 0xc(%rsp)
leaq 0x8(%rbx), %r14
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
callq 0x31f0
movslq (%r14), %r15
cmpq $-0x1, %r15
leaq 0x8(,%r15,8), %rax
pushq $-0x1
popq %rdi
cmovgeq %rax, %rdi
callq 0x3030
movq %rax, (%rbx)
leaq 0x58(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
xorl %r12d, %r12d
pushq $0x10
popq %r14
cmpq %r15, %r12
jg 0xa97d
movq %r14, %rdi
callq 0x3030
movq (%rbx), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
jmp 0xa964
leaq 0xc(%rsp), %r15
leaq 0x28(%rsp), %r12
leaq 0x20(%rsp), %r13
leaq 0x50(%rsp), %rbp
leaq 0x10(%rsp), %r14
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x31f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x8(%rax,%rcx)
movq %rax, %rdi
movq %r12, %rsi
callq 0x3230
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x8(%rax,%rcx)
movq %rax, %rdi
movq %r13, %rsi
callq 0x3230
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xaa32
movsd 0x28(%rsp), %xmm0
movq (%rbx), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, (%rax)
movsd 0x20(%rsp), %xmm1
movsd %xmm1, 0x8(%rax)
movsd %xmm0, 0x10(%rsp)
movsd %xmm1, 0x18(%rsp)
movq %rbp, %rdi
movq %r14, %rsi
callq 0xabaa
movq %rax, %rdi
movq %r15, %rsi
callq 0xac10
jmp 0xa996
leaq 0x80(%rsp), %rdi
callq 0x30b0
leaq 0x50(%rsp), %rdi
callq 0xac2e
leaq 0x80(%rsp), %rdi
callq 0x30e0
leaq 0x30(%rsp), %rdi
callq 0x3160
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xaa85
movq %rax, %r14
jmp 0xaa9f
movq %rax, %r14
jmp 0xaa92
movq %rax, %r14
jmp 0xaaa9
jmp 0xaa85
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0xac2e
leaq 0x80(%rsp), %rdi
callq 0x30e0
leaq 0x30(%rsp), %rdi
callq 0x3160
addq $0x10, %rbx
movq %rbx, %rdi
callq 0xac2e
movq %r14, %rdi
callq 0x3590
nop