// File: /workspace/github_cpp_makefile_star2_O1/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 -0x3a8(%rbp), %r15
movq %r15, %rdi
callq 0x4310
movq %r15, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x41c0
leaq -0x188(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x168(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x330(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x12469
movq %rsp, -0x78(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x11342(%rip), %r14d    # 0x232b8
movq %rsp, %r13
movq %r14, %rax
shlq $0x5, %rax
subq %rax, %r13
movq %r13, %rsp
testq %r14, %r14
je 0x11fa8
leaq 0x10(%r13), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0x11f8f
movq -0x3a8(%rbp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
leaq -0x3a8(%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 -0xb0(%rbp), %r12
movq %r13, -0x30(%rbp)
movq -0x3a8(%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 0x12388
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xf530
movl 0x11256(%rip), %edx     # 0x232b8
movq %r12, %rdi
movq %r13, %rsi
callq 0x125d6
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x12085
callq 0x4280
movq %r13, %rdi
leaq 0x970f(%rip), %rsi      # 0x1b79e
callq 0x4100
movl %eax, %ebx
movq 0x28(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0x148(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x42f0
movl %ebx, -0x3c(%rbp)
movq 0x48(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0x128(%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 0x12445
leaq -0x80000000(%rax), %rdx
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rdx
jb 0x12451
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x12451
movq %rax, -0x90(%rbp)
testl %ecx, %ecx
jne 0x12139
movl %ebx, (%r15)
movq 0x80(%r13), %rbx
movl (%r15), %r13d
movl $0x0, (%r15)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %rbx, -0x38(%rbp)
je 0x1242d
movq %rax, %r12
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x12439
movl (%r15), %eax
cmpl $0x22, %eax
je 0x12439
testl %eax, %eax
jne 0x12194
movl %r13d, (%r15)
movq -0x30(%rbp), %rax
movq 0xa0(%rax), %rbx
movl (%r15), %r13d
movl $0x0, (%r15)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %rbx, -0x38(%rbp)
je 0x12421
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq -0x108(%rbp), %rdi
jb 0x1245d
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x1245d
testl %ecx, %ecx
jne 0x121f8
movl %r13d, (%r15)
xorl %esi, %esi
cmpl $0x0, -0x3c(%rbp)
sete %sil
subq $0x8, %rsp
leaq -0x148(%rbp), %rdx
leaq -0x128(%rbp), %rcx
movq -0x90(%rbp), %r8
movl %r12d, %r9d
pushq %rax
callq 0x1774a
addq $0x10, %rsp
movb -0x108(%rbp), %al
movb %al, -0x1a0(%rbp)
leaq -0x198(%rbp), %rbx
movq %rbx, %rdi
leaq -0x100(%rbp), %r15
movq %r15, %rsi
callq 0x4340
leaq -0x178(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x4340
movl 0x48(%r15), %eax
movl %eax, 0x48(%rbx)
movq 0x40(%r15), %rax
movq %rax, 0x40(%rbx)
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
movq -0x30(%rbp), %r13
leaq -0xf8(%rbp), %r12
je 0x12292
callq 0x4280
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x122aa
callq 0x4280
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x122c2
callq 0x4280
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x122da
callq 0x4280
movl -0x154(%rbp), %ebx
movq %r12, -0x108(%rbp)
leaq -0x108(%rbp), %r15
movq %r15, %rdi
leaq 0x933a(%rip), %rsi      # 0x1b632
leaq 0x933f(%rip), %rdx      # 0x1b63e
callq 0xf39a
movq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x11638
addl %ebx, (%rax)
movq -0x108(%rbp), %rdi
cmpq %r12, %rdi
je 0x12323
callq 0x4280
movl -0x150(%rbp), %ebx
movq %r12, -0x108(%rbp)
movq %r15, %rdi
leaq 0x92d6(%rip), %rsi      # 0x1b610
leaq 0x92e0(%rip), %rdx      # 0x1b621
callq 0xf39a
movq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x11638
addl %ebx, (%rax)
movq -0x108(%rbp), %rdi
cmpq %r12, %rdi
je 0x12365
callq 0x4280
movq -0x48(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x17878
leaq -0x3a8(%rbp), %rbx
leaq -0xb0(%rbp), %r12
jmp 0x12002
leaq -0x3a8(%rbp), %rdi
callq 0x40a0
testq %r14, %r14
je 0x123c0
shlq $0x5, %r14
leaq (%r14,%r13), %rbx
addq $-0x10, %rbx
negq %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x123b6
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r14
jne 0x123a8
movq -0x78(%rbp), %rsp
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x123d6
callq 0x4280
movq -0x178(%rbp), %rdi
leaq -0x168(%rbp), %rax
cmpq %rax, %rdi
je 0x123ee
callq 0x4280
movq -0x198(%rbp), %rdi
leaq -0x188(%rbp), %rax
cmpq %rax, %rdi
je 0x12406
callq 0x4280
leaq -0x3a8(%rbp), %rdi
callq 0x40e0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x97e2(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x97d6(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x97ca(%rip), %rdi      # 0x1bc0a
callq 0x43b0
leaq 0x97be(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x97b2(%rip), %rdi      # 0x1bc0a
callq 0x43b0
leaq 0x97a6(%rip), %rdi      # 0x1bc0a
callq 0x43b0
movl $0x10, %edi
callq 0x4170
movq %rax, %rbx
leaq 0x9328(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0x10b5c(%rip), %rsi     # 0x22fe8
movq 0x10add(%rip), %rdx     # 0x22f70
movq %rbx, %rdi
callq 0x4440
movq %rax, %r12
jmp 0x125b6
movq %rax, %r12
movq %rbx, %rdi
callq 0x4220
jmp 0x125b6
movq %rax, %r12
jmp 0x125c2
jmp 0x12575
movq %rax, %r12
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x12578
jmp 0x1256e
jmp 0x1251a
movq %rax, %r12
jmp 0x1255b
movq %r12, %rcx
movq %rax, %r12
movq -0x108(%rbp), %rdi
cmpq %rcx, %rdi
je 0x1251d
jmp 0x1250c
movq %r12, %rcx
movq %rax, %r12
movq -0x108(%rbp), %rdi
cmpq %rcx, %rdi
je 0x1251d
callq 0x4280
jmp 0x1251d
movq %rax, %r12
jmp 0x1253f
jmp 0x12575
movq %rax, %r12
movq -0x30(%rbp), %r13
jmp 0x12578
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0x12543
movl %ebx, (%r15)
jmp 0x12543
jmp 0x12533
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0x1253f
movl %r13d, (%r15)
movq -0x30(%rbp), %r13
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x1255b
callq 0x4280
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x12578
callq 0x4280
jmp 0x12578
movq %rax, %r12
testq %r14, %r14
je 0x125a4
shlq $0x5, %r14
leaq (%r14,%r13), %rbx
addq $-0x10, %rbx
negq %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x1259a
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r14
jne 0x1258c
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x125b6
callq 0x4280
leaq -0x1a0(%rbp), %rdi
callq 0x17842
leaq -0x3a8(%rbp), %rdi
callq 0x40e0
movq %r12, %rdi
callq 0x4490