// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
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 0xb3db(%rip), %rsi      # 0x180f3
movq %r14, %rdi
callq 0x3100
testl %eax, %eax
je 0xced9
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x80(%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 0x80(%rsp), %rdi
movq %r14, %rsi
callq 0x31e0
movslq (%r14), %r14
cmpq $-0x1, %r14
leaq 0x8(,%r14,8), %rax
movq $-0x1, %rdi
cmovgeq %rax, %rdi
callq 0x3030
movl %r14d, %r14d
movq %rax, (%rbx)
leaq 0x58(%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 0xce48
incq %r14
xorl %r12d, %r12d
movl $0x10, %edi
callq 0x3030
movq (%rbx), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
cmpq %r12, %r14
jne 0xcdc7
jmp 0xce48
movsd 0x10(%rsp), %xmm0
movq (%rbx), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, (%rax)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rax)
movsd 0x10(%rsp), %xmm1
leaq 0x20(%rsp), %rsi
movsd %xmm1, (%rsi)
movsd %xmm0, 0x8(%rsi)
leaq 0x50(%rsp), %rdi
callq 0xd058
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0xce3b
movl 0xc(%rsp), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rax)
jmp 0xce48
leaq 0xc(%rsp), %rdx
movq %rax, %rdi
callq 0xd4bc
leaq 0x80(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x31e0
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
movq $0xc, 0x8(%rax,%rcx)
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x3220
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0xcde2
leaq 0x80(%rsp), %rdi
callq 0x30b0
leaq 0x50(%rsp), %rdi
callq 0xd102
leaq 0x80(%rsp), %rdi
callq 0x30d0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xced9
callq 0x3340
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xcef6
movq %rax, %r14
jmp 0xcf10
movq %rax, %r14
jmp 0xcf03
jmp 0xcef6
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0xd102
leaq 0x80(%rsp), %rdi
callq 0x30d0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xcf1f
callq 0x3340
addq $0x10, %rbx
movq %rbx, %rdi
callq 0xd102
movq %r14, %rdi
callq 0x35c0
nop