// File: 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:
subq $0x358, %rsp            # imm = 0x358
movq %rsi, 0x80(%rsp)
movq %rdi, 0x350(%rsp)
movq %rsi, 0x348(%rsp)
movq 0x350(%rsp), %rdi
movq %rdi, 0x70(%rsp)
addq $0x10, %rdi
movq %rdi, 0x78(%rsp)
callq 0x1b050
movq 0x80(%rsp), %rdi
leaq 0x1763e(%rip), %rsi     # 0x32087
callq 0xfb10
movb %al, 0x8f(%rsp)
jmp 0x1aa57
movb 0x8f(%rsp), %al
testb $0x1, %al
jne 0x1aa67
jmp 0x1ade2
leaq 0x318(%rsp), %rdi
callq 0x4510
movq 0x80(%rsp), %rsi
leaq 0x110(%rsp), %rdi
movl $0x8, %edx
callq 0x45d0
jmp 0x1aa90
leaq 0xf8(%rsp), %rdi
callq 0x1b060
jmp 0x1aa9f
movq 0x70(%rsp), %rsi
movl $0x0, 0xf4(%rsp)
addq $0x8, %rsi
leaq 0x110(%rsp), %rdi
callq 0x4250
jmp 0x1aac2
movq 0x70(%rsp), %rax
movl 0x8(%rax), %eax
incl %eax
cltq
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x4030
movq %rax, 0x68(%rsp)
jmp 0x1aaf0
movq 0x70(%rsp), %rax
movq 0x68(%rsp), %rcx
movq %rcx, (%rax)
leaq 0xb0(%rsp), %rdi
callq 0x1b050
movl $0x0, 0xac(%rsp)
movq 0x70(%rsp), %rcx
movl 0xac(%rsp), %eax
cmpl 0x8(%rcx), %eax
jg 0x1abd8
movl $0x10, %edi
callq 0x4030
movq %rax, 0x60(%rsp)
jmp 0x1ab3b
movq 0x60(%rsp), %rdx
movq 0x70(%rsp), %rax
movq (%rax), %rax
movslq 0xac(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0xac(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xac(%rsp)
jmp 0x1ab15
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
jmp 0x1adea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
jmp 0x1add3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
jmp 0x1adc6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x1b250
jmp 0x1adc6
jmp 0x1abda
leaq 0x110(%rsp), %rdi
leaq 0xf4(%rsp), %rsi
callq 0x4250
movq %rax, 0x58(%rsp)
jmp 0x1abf6
movl $0xc, %edi
callq 0xfc00
movl %eax, 0x54(%rsp)
jmp 0x1ac06
movq 0x58(%rsp), %rdi
movl 0x54(%rsp), %eax
movl %eax, 0xa8(%rsp)
movl 0xa8(%rsp), %esi
callq 0x46b0
movq %rax, 0x48(%rsp)
jmp 0x1ac29
movq 0x48(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x4350
movq %rax, 0x40(%rsp)
jmp 0x1ac42
movl $0xc, %edi
callq 0xfc00
movl %eax, 0x3c(%rsp)
jmp 0x1ac52
movq 0x40(%rsp), %rdi
movl 0x3c(%rsp), %eax
movl %eax, 0xa4(%rsp)
movl 0xa4(%rsp), %esi
callq 0x46b0
movq %rax, 0x30(%rsp)
jmp 0x1ac75
movq 0x30(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x4350
movq %rax, 0x28(%rsp)
jmp 0x1ac8e
movq 0x28(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x4490
movb %al, 0x27(%rsp)
jmp 0x1aca8
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x1acb5
jmp 0x1ad8e
movq 0x70(%rsp), %rax
movsd 0xe8(%rsp), %xmm0
movq (%rax), %rcx
movslq 0xf4(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movsd %xmm0, (%rcx)
movsd 0xe0(%rsp), %xmm0
movq (%rax), %rax
movslq 0xf4(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, 0x8(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x1b080
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x18(%rsp)
jmp 0x1ad16
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd %xmm1, 0x90(%rsp)
movsd %xmm0, 0x98(%rsp)
leaq 0xf8(%rsp), %rdi
movq %rdi, (%rsp)
leaq 0x90(%rsp), %rsi
callq 0x1b0c0
movq (%rsp), %rsi
leaq 0xb0(%rsp), %rdi
callq 0x1b0f0
movq %rax, 0x8(%rsp)
jmp 0x1ad65
movq 0x8(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rdi
leaq 0xf4(%rsp), %rsi
callq 0x1b1e0
jmp 0x1ad89
jmp 0x1abda
leaq 0x110(%rsp), %rdi
callq 0x40d0
jmp 0x1ad9d
leaq 0xb0(%rsp), %rdi
callq 0x1b250
leaq 0x110(%rsp), %rdi
callq 0x4100
leaq 0x318(%rsp), %rdi
callq 0x4260
jmp 0x1ade2
leaq 0x110(%rsp), %rdi
callq 0x4100
leaq 0x318(%rsp), %rdi
callq 0x4260
jmp 0x1adea
addq $0x358, %rsp            # imm = 0x358
retq
movq 0x78(%rsp), %rdi
callq 0x1b250
movq 0x340(%rsp), %rdi
callq 0x4690
nopw %cs:(%rax,%rax)