// File: /workspace/github_cpp_makefile_star2_O2/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::populate_taxies(char const*)
void TaxiAgency::populate_taxies(const char* TAXIES_FILE){
    ifstream File;
    File.open(TAXIES_FILE);
    Taxi taxi;
    if(File.is_open()){
        string t, fields[Taxi::TaxiAttributesCount];
        getline(File, t); // skip heading row
        while(getline(File, t)){
            populate_fields(t, fields, Taxi::TaxiAttributesCount);
            taxi = Taxi(fields[0] == "\"True\"" ? true : false,
                        fields[1].substr(1, fields[1].length()-2),
                        fields[2].substr(1, fields[2].length()-2),
                        stoi(fields[3]),
                        stoi(fields[4]),
                        stoi(fields[5]));

            stats["total_taxies"] += taxi.number;
            stats["total_idol_taxies"] += taxi.available_number;
            taxies.push_back(taxi);
        }
        File.close();
    }else{
        throw runtime_error("File couldn't be resolved");
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movq %rsi, %rbx
movq %rdi, -0x40(%rbp)
leaq -0x3b0(%rbp), %r14
movq %r14, %rdi
callq 0x42e0
pushq $0x8
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41e0
leaq -0x138(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq -0x118(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq -0x338(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0xe325
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rsp, -0x50(%rbp)
movb $0x0, (%rax)
movl 0x101fc(%rip), %r12d    # 0x1e290
movq %rsp, %rbx
movq %r12, %rax
shlq $0x5, %rax
subq %rax, %rbx
movq %rbx, %rsp
testq %r12, %r12
je 0xe0c3
leaq 0x10(%rbx), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0xe0ad
leaq -0x3b0(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x4080
leaq 0x20(%rbx), %rax
movq %rax, -0x78(%rbp)
leaq 0x40(%rbx), %rax
movq %rax, -0x70(%rbp)
leaq 0x60(%rbx), %rax
movq %rax, -0x68(%rbp)
leaq 0x80(%rbx), %rax
movq %rax, -0x60(%rbp)
movl $0xa0, %eax
leaq (%rbx,%rax), %rcx
movq %rcx, -0x58(%rbp)
addq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x1a8(%rbp), %r15
movq %rbx, -0x38(%rbp)
leaq -0x3b0(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x4080
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xe2c6
leaq -0xf8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x4360
movl 0x10139(%rip), %edx     # 0x1e290
leaq -0xf8(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe410
movq %r14, %rdi
callq 0x4170
movq %rbx, %rdi
leaq 0x76a3(%rip), %rsi      # 0x1581e
callq 0x11b89
movb %al, -0x29(%rbp)
movq 0x28(%rbx), %rcx
addq $-0x2, %rcx
leaq -0xd8(%rbp), %rdi
movq -0x78(%rbp), %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x42c0
movq %r15, %r13
movq 0x48(%rbx), %rcx
addq $-0x2, %rcx
leaq -0xb8(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %r14, %rdx
callq 0x42c0
movq -0x68(%rbp), %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x11b99
movl %eax, %r14d
movq -0x60(%rbp), %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x11b99
movl %eax, %r15d
movq -0x58(%rbp), %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x11b99
subq $0x8, %rsp
movzbl -0x29(%rbp), %esi
movq %r13, %rdi
leaq -0xd8(%rbp), %rdx
leaq -0xb8(%rbp), %rcx
movl %r14d, %r8d
movl %r15d, %r9d
pushq %rax
callq 0x11bba
popq %rax
popq %rcx
leaq -0x150(%rbp), %rdi
movq %r13, %r15
movq %r13, %rsi
callq 0x11c78
movq %r13, %rdi
callq 0x11cba
leaq -0xb8(%rbp), %rdi
callq 0x4170
leaq -0xd8(%rbp), %rdi
callq 0x4170
movl -0x104(%rbp), %r14d
movq %r13, %rdi
leaq 0x7458(%rip), %rsi      # 0x156b2
leaq -0x2a(%rbp), %r13
movq %r13, %rdx
callq 0x4140
movq -0x48(%rbp), %rdi
movq %r15, %rsi
movq -0x38(%rbp), %rbx
callq 0xd8f8
addl %r14d, (%rax)
movq %r15, %rdi
callq 0x4170
movl -0x100(%rbp), %r14d
movq %r15, %rdi
leaq 0x73fe(%rip), %rsi      # 0x15690
movq %r13, %rdx
callq 0x4140
movq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0xd8f8
addl %r14d, (%rax)
movq %r15, %rdi
callq 0x4170
movq -0x40(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x11cde
jmp 0xe119
leaq -0x3b0(%rbp), %rdi
callq 0x40a0
testq %r12, %r12
je 0xe2ee
addq $-0x20, %rbx
shlq $0x5, %r12
leaq (%rbx,%r12), %rdi
callq 0x4170
addq $-0x20, %r12
jne 0xe2df
movq -0x50(%rbp), %rsp
leaq -0x98(%rbp), %rdi
callq 0x4170
leaq -0x150(%rbp), %rdi
callq 0x11cba
leaq -0x3b0(%rbp), %rdi
callq 0x40e0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x4190
movq %rax, %rbx
leaq 0x74ee(%rip), %rsi      # 0x15825
movq %rax, %rdi
callq 0x4130
movq 0xfca2(%rip), %rsi      # 0x1dfe8
movq 0xfc1b(%rip), %rdx      # 0x1df68
movq %rbx, %rdi
callq 0x4410
movq %rax, %r14
jmp 0xe3f0
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
jmp 0xe3f0
movq %rax, %r14
jmp 0xe3fc
jmp 0xe3a4
jmp 0xe3a4
jmp 0xe3a4
movq %rax, %r14
leaq -0xf8(%rbp), %rdi
jmp 0xe398
movq %rax, %r14
jmp 0xe3c4
jmp 0xe38e
movq %rax, %r14
leaq -0x1a8(%rbp), %rdi
callq 0x4170
jmp 0xe3c8
movq %rax, %r14
jmp 0xe3b8
movq %rax, %r14
jmp 0xe3c8
movq %rax, %r14
leaq -0xb8(%rbp), %rdi
callq 0x4170
leaq -0xd8(%rbp), %rdi
callq 0x4170
movq -0x38(%rbp), %rbx
testq %r12, %r12
je 0xe3e4
addq $-0x20, %rbx
shlq $0x5, %r12
leaq (%rbx,%r12), %rdi
callq 0x4170
addq $-0x20, %r12
jne 0xe3d5
leaq -0x98(%rbp), %rdi
callq 0x4170
leaq -0x150(%rbp), %rdi
callq 0x11cba
leaq -0x3b0(%rbp), %rdi
callq 0x40e0
movq %r14, %rdi
callq 0x4450