// File: /workspace/github_cpp_makefile_star2_O3/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, -0x48(%rbp)
leaq -0x3b0(%rbp), %r15
movq %r15, %rdi
callq 0x4310
movq %r15, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x41c0
leaq -0x190(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x170(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x338(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x123aa
movq %rsp, -0x78(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x1140e(%rip), %r14d    # 0x232b8
movq %rsp, %r13
movq %r14, %rax
shlq $0x5, %rax
subq %rax, %r13
movq %r13, %rsp
testq %r14, %r14
je 0x11edc
leaq 0x10(%r13), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0x11ec3
movq -0x3b0(%rbp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
leaq -0x3b0(%rbp), %rbx
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x44c0
leaq 0x20(%r13), %rax
movq %rax, -0x88(%rbp)
leaq 0x40(%r13), %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
addq $0xa0, %rax
movq %rax, -0x50(%rbp)
leaq -0xb8(%rbp), %r12
movq %r13, -0x30(%rbp)
movq -0x3b0(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
movq %rbx, %rdi
leaq -0x70(%rbp), %rsi
callq 0x44c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x122c9
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xf492
movl 0x11322(%rip), %edx     # 0x232b8
movq %r12, %rdi
movq %r13, %rsi
callq 0x12514
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x11fb9
callq 0x4280
movq %r13, %rdi
leaq 0x97db(%rip), %rsi      # 0x1b79e
callq 0x4100
movl %eax, %ebx
movq 0x28(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0x150(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x42f0
movl %ebx, -0x3c(%rbp)
movq 0x48(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0x130(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x42f0
movq 0x60(%r13), %r12
callq 0x4050
movq %rax, %r15
movl (%rax), %ebx
movl $0x0, (%rax)
movq %r12, %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %r12, -0x38(%rbp)
je 0x12386
leaq -0x80000000(%rax), %rdx
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rdx
jb 0x12392
movl (%r15), %r13d
cmpl $0x22, %r13d
je 0x12392
movq %rax, -0x98(%rbp)
testl %r13d, %r13d
jne 0x12072
movl %ebx, (%r15)
movl %ebx, %r13d
movq -0x30(%rbp), %rax
movq 0x80(%rax), %rbx
movl $0x0, (%r15)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %rbx, -0x38(%rbp)
je 0x1236e
leaq -0x80000000(%rax), %rdx
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rdx
jb 0x1237a
movl (%r15), %r12d
cmpl $0x22, %r12d
je 0x1237a
movq %rax, -0x90(%rbp)
testl %r12d, %r12d
jne 0x120d8
movl %r13d, (%r15)
movl %r13d, %r12d
movq -0x30(%rbp), %r13
movq 0xa0(%r13), %rbx
movl $0x0, (%r15)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %rbx, -0x38(%rbp)
je 0x12362
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq -0x110(%rbp), %rdi
jb 0x1239e
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x1239e
testl %ecx, %ecx
jne 0x12139
movl %r12d, (%r15)
xorl %esi, %esi
cmpl $0x0, -0x3c(%rbp)
sete %sil
subq $0x8, %rsp
leaq -0x150(%rbp), %rdx
leaq -0x130(%rbp), %rcx
movq -0x98(%rbp), %r8
movq -0x90(%rbp), %r9
pushq %rax
callq 0x17570
addq $0x10, %rsp
movb -0x110(%rbp), %al
movb %al, -0x1a8(%rbp)
leaq -0x1a0(%rbp), %rbx
movq %rbx, %rdi
leaq -0x108(%rbp), %r15
movq %r15, %rsi
callq 0x4340
leaq -0x180(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x4340
movl 0x48(%r15), %eax
movl %eax, 0x48(%rbx)
movq 0x40(%r15), %rax
movq %rax, 0x40(%rbx)
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
leaq -0x100(%rbp), %r12
je 0x121d3
callq 0x4280
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x121eb
callq 0x4280
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x12203
callq 0x4280
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x1221b
callq 0x4280
movl -0x15c(%rbp), %ebx
movq %r12, -0x110(%rbp)
leaq -0x110(%rbp), %r15
movq %r15, %rdi
leaq 0x93f9(%rip), %rsi      # 0x1b632
leaq 0x93fe(%rip), %rdx      # 0x1b63e
callq 0xf2f8
movq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x1158a
addl %ebx, (%rax)
movq -0x110(%rbp), %rdi
cmpq %r12, %rdi
je 0x12264
callq 0x4280
movl -0x158(%rbp), %ebx
movq %r12, -0x110(%rbp)
movq %r15, %rdi
leaq 0x9395(%rip), %rsi      # 0x1b610
leaq 0x939f(%rip), %rdx      # 0x1b621
callq 0xf2f8
movq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x1158a
addl %ebx, (%rax)
movq -0x110(%rbp), %rdi
cmpq %r12, %rdi
je 0x122a6
callq 0x4280
movq -0x48(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x1769e
leaq -0x3b0(%rbp), %rbx
leaq -0xb8(%rbp), %r12
jmp 0x11f36
leaq -0x3b0(%rbp), %rdi
callq 0x40a0
testq %r14, %r14
je 0x12301
shlq $0x5, %r14
leaq (%r14,%r13), %rbx
addq $-0x10, %rbx
negq %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x122f7
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r14
jne 0x122e9
movq -0x78(%rbp), %rsp
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x12317
callq 0x4280
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x1232f
callq 0x4280
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0x12347
callq 0x4280
leaq -0x3b0(%rbp), %rdi
callq 0x40e0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x98a1(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x9895(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x9889(%rip), %rdi      # 0x1bc0a
callq 0x43b0
leaq 0x987d(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x9871(%rip), %rdi      # 0x1bc0a
callq 0x43b0
leaq 0x9865(%rip), %rdi      # 0x1bc0a
callq 0x43b0
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x93e7(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0x10c1b(%rip), %rsi     # 0x22fe8
movq 0x10b9c(%rip), %rdx     # 0x22f70
movq %r14, %rdi
callq 0x4440
movq %rax, %r15
jmp 0x124f4
movq %rax, %r15
movq %r14, %rdi
callq 0x4220
jmp 0x124f4
movq %rax, %r15
jmp 0x12500
jmp 0x124b3
movq %rax, %r15
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x124b6
jmp 0x124ac
jmp 0x12452
movq %rax, %r15
jmp 0x12499
movq %rax, %r15
movq -0x110(%rbp), %rdi
cmpq %r12, %rdi
je 0x12455
jmp 0x12447
movq %rax, %r15
movq -0x110(%rbp), %rdi
cmpq %r12, %rdi
je 0x12455
callq 0x4280
jmp 0x12455
jmp 0x1247e
jmp 0x124b3
movq %rax, %r15
movq -0x30(%rbp), %r13
jmp 0x124b6
cmpl $0x0, (%r15)
jne 0x1247a
movl %ebx, (%r15)
jmp 0x1247a
cmpl $0x0, (%r15)
jne 0x1247a
movl %r12d, (%r15)
jmp 0x1247a
cmpl $0x0, (%r15)
jne 0x1247a
movl %r13d, (%r15)
movq -0x30(%rbp), %r13
movq %rax, %r15
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x12499
callq 0x4280
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x124b6
callq 0x4280
jmp 0x124b6
movq %rax, %r15
testq %r14, %r14
je 0x124e2
shlq $0x5, %r14
leaq (%r14,%r13), %rbx
addq $-0x10, %rbx
negq %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x124d8
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r14
jne 0x124ca
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x124f4
callq 0x4280
leaq -0x1a8(%rbp), %rdi
callq 0x17668
leaq -0x3b0(%rbp), %rdi
callq 0x40e0
movq %r15, %rdi
callq 0x4490