// File: /workspace/github_cpp_makefile_star2_O1/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::populate_customer_db(char const*)
void TaxiAgency::populate_customer_db(const char* CUSTOMERS_FILE){
    ifstream File;
    File.open(CUSTOMERS_FILE);
    Customer customer;
    if(File.is_open()){
        string t, fields[Customer::CustomerDetailsCount];
        getline(File, t); // skip heading row
        while(getline(File, t)){
            populate_fields(t, fields, Customer::CustomerDetailsCount);
            customer = Customer(fields[0].substr(1, fields[0].length()-2),
                        fields[1].substr(1, fields[1].length()-2),
                        fields[2].substr(1, fields[2].length()-2),
                        stoi(fields[3]),
                        fields[4].substr(1, fields[4].length()-2) == "IDLE" ? IDLE : ONSHIFT);
            customer_db.push_back(customer);
        }
        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 $0x3d8, %rsp            # imm = 0x3D8
movq %rsi, %rbx
movq %rdi, -0x40(%rbp)
leaq -0x3f8(%rbp), %r14
movq %r14, %rdi
callq 0x4310
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x41c0
leaq -0x1f0(%rbp), %rdi
callq 0xf8ec
leaq -0x380(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x13540
movq %rsp, -0x68(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x10178(%rip), %r15d    # 0x232bc
movq %rsp, %r13
movq %r15, %rax
shlq $0x5, %rax
subq %rax, %r13
movq %r13, %rsp
testq %r15, %r15
je 0x13176
leaq 0x10(%r13), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0x1315d
movq -0x3f8(%rbp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
leaq -0x3f8(%rbp), %r14
leaq -0x60(%rbp), %rsi
movq %r14, %rdi
callq 0x44c0
leaq -0x110(%rbp), %r12
leaq 0x20(%r13), %rax
movq %rax, -0x80(%rbp)
leaq 0x40(%r13), %rax
movq %rax, -0x78(%rbp)
leaq 0x80(%r13), %rax
movq %rax, -0x70(%rbp)
addq $0x30, -0x40(%rbp)
leaq -0x120(%rbp), %rbx
movq %r13, -0x38(%rbp)
movq -0x3f8(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
movq %r14, %rdi
leaq -0x60(%rbp), %rsi
callq 0x44c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x13480
movq %r12, -0x120(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xf530
movl 0x1008d(%rip), %edx     # 0x232bc
movq %rbx, %rdi
movq %r13, %rsi
callq 0x125d6
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
je 0x1324b
callq 0x4280
movq 0x8(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0x100(%rbp), %rdi
movq %r13, %rsi
callq 0x42f0
movq 0x28(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0xe0(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x42f0
movq 0x48(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0xc0(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x42f0
movq 0x60(%r13), %r13
callq 0x4050
movq %rax, %r12
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%r12)
movq %r13, %rdi
leaq -0xa0(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %r13, -0xa0(%rbp)
je 0x13528
movq %rax, %r14
movslq %r14d, %rax
cmpq %r14, %rax
jne 0x13534
movl (%r12), %eax
cmpl $0x22, %eax
je 0x13534
testl %eax, %eax
movq %rbx, %r13
jne 0x13305
movl -0x2c(%rbp), %eax
movl %eax, (%r12)
movq -0x38(%rbp), %rax
movq 0x88(%rax), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0xa0(%rbp), %r12
movq %r12, %rdi
movq -0x70(%rbp), %rsi
callq 0x42f0
movq %r12, %rdi
leaq 0x88cf(%rip), %rsi      # 0x1bc05
callq 0x4100
xorl %r9d, %r9d
testl %eax, %eax
sete %r9b
leaq -0x188(%rbp), %rbx
movq %rbx, %rdi
leaq -0x100(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
movl %r14d, %r8d
callq 0x10200
leaq -0x110(%rbp), %r12
leaq -0x1f0(%rbp), %rdi
movq %rbx, %rsi
callq 0x4340
leaq -0x1d0(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x4340
leaq -0x1b0(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x4340
movq -0x148(%rbp), %rdi
movq -0x128(%rbp), %rax
movq %rax, -0x190(%rbp)
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
leaq -0x3f8(%rbp), %r14
je 0x133d4
callq 0x4280
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
movq %r13, %rbx
je 0x133ef
callq 0x4280
movq -0x188(%rbp), %rdi
leaq -0x178(%rbp), %rax
cmpq %rax, %rdi
movq -0x38(%rbp), %r13
je 0x1340b
callq 0x4280
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x13423
callq 0x4280
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x1343b
callq 0x4280
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x13453
callq 0x4280
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x1346b
callq 0x4280
movq -0x40(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x178b0
jmp 0x131d6
leaq -0x3f8(%rbp), %rdi
callq 0x40a0
testq %r15, %r15
je 0x134b8
shlq $0x5, %r15
leaq (%r15,%r13), %rbx
addq $-0x10, %rbx
negq %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x134ae
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r15
jne 0x134a0
movq -0x68(%rbp), %rsp
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x134ce
callq 0x4280
leaq -0x1a0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x134e3
callq 0x4280
leaq -0x1c0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x134f8
callq 0x4280
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1350d
callq 0x4280
leaq -0x3f8(%rbp), %rdi
callq 0x40e0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x86db(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x86cf(%rip), %rdi      # 0x1bc0a
callq 0x43b0
movl $0x10, %edi
callq 0x4170
movq %rax, %rbx
leaq 0x8251(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xfa85(%rip), %rsi      # 0x22fe8
movq 0xfa06(%rip), %rdx      # 0x22f70
movq %rbx, %rdi
callq 0x4440
movq %rax, %r14
jmp 0x1367b
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
jmp 0x1367b
jmp 0x1358c
movq %rax, %r14
jmp 0x13687
jmp 0x1363a
jmp 0x1363a
movq %rax, %r14
jmp 0x13608
movq %rax, %r14
jmp 0x135ec
movq %rax, %r14
jmp 0x13620
movq %rax, %r14
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x135ec
callq 0x4280
jmp 0x135ec
movq %rax, %r14
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
jne 0x13633
jmp 0x1363d
movq %rax, %r14
cmpl $0x0, (%r12)
jne 0x135ec
movl -0x2c(%rbp), %eax
movl %eax, (%r12)
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x13604
callq 0x4280
movq -0x38(%rbp), %r13
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x13620
callq 0x4280
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x1363d
callq 0x4280
jmp 0x1363d
movq %rax, %r14
testq %r15, %r15
je 0x13669
shlq $0x5, %r15
leaq (%r15,%r13), %rbx
addq $-0x10, %rbx
negq %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x1365f
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r15
jne 0x13651
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x1367b
callq 0x4280
leaq -0x1f0(%rbp), %rdi
callq 0x101b8
leaq -0x3f8(%rbp), %rdi
callq 0x40e0
movq %r14, %rdi
callq 0x4490
nop