// File: /workspace/github_cpp_makefile_star2_O2/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, -0x38(%rbp)
leaq -0x390(%rbp), %r14
movq %r14, %rdi
callq 0x42e0
pushq $0x8
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41e0
leaq -0x188(%rbp), %rdi
callq 0xc190
leaq -0x318(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0xeea4
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rsp, -0x40(%rbp)
movb $0x0, (%rax)
movl 0xf62d(%rip), %r13d     # 0x1e294
movq %rsp, %r15
movq %r13, %rax
shlq $0x5, %rax
subq %rax, %r15
movq %r15, %rsp
testq %r13, %r13
je 0xec96
leaq 0x10(%r15), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0xec80
leaq -0x390(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x4080
leaq 0x20(%r15), %rax
movq %rax, -0x60(%rbp)
leaq 0x40(%r15), %rax
movq %rax, -0x58(%rbp)
leaq 0x60(%r15), %rax
movq %rax, -0x50(%rbp)
leaq 0x80(%r15), %rax
movq %rax, -0x48(%rbp)
addq $0x30, -0x38(%rbp)
pushq $0x1
popq %r14
movq %r15, -0x30(%rbp)
leaq -0x390(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x4080
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xee48
leaq -0x120(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x4360
movl 0xf586(%rip), %edx      # 0x1e294
leaq -0x120(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xe410
movq %r12, %rdi
callq 0x4170
movq 0x8(%r15), %rcx
addq $-0x2, %rcx
leaq -0xa0(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x42c0
leaq -0x100(%rbp), %rdi
leaq -0xe0(%rbp), %rbx
movq 0x28(%r15), %rcx
addq $-0x2, %rcx
movq -0x60(%rbp), %rsi
movq %r14, %rdx
callq 0x42c0
movq 0x48(%r15), %rcx
addq $-0x2, %rcx
movq %rbx, %rdi
movq -0x58(%rbp), %rsi
movq %r14, %rdx
callq 0x42c0
movq -0x50(%rbp), %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x11b99
movl %eax, %r12d
movq 0x88(%r15), %rcx
addq $-0x2, %rcx
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
movq %r14, %rdx
callq 0x42c0
movq %rbx, %rdi
leaq 0x6ece(%rip), %rsi      # 0x15c85
callq 0x11b89
movzbl %al, %r9d
leaq -0x3f8(%rbp), %rbx
movq %rbx, %rdi
leaq -0xa0(%rbp), %rsi
leaq -0x100(%rbp), %r14
movq %r14, %rdx
leaq -0xe0(%rbp), %r15
movq %r15, %rcx
movl %r12d, %r8d
callq 0xc804
leaq -0x188(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x11d96
movq %rbx, %rdi
callq 0xc7d8
leaq -0xc0(%rbp), %rdi
callq 0x4170
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
callq 0x4170
leaq -0xa0(%rbp), %rdi
callq 0x4170
movq -0x38(%rbp), %rdi
movq %r12, %rsi
movq -0x30(%rbp), %r15
callq 0x11db8
pushq $0x1
popq %r14
jmp 0xecd6
leaq -0x390(%rbp), %rdi
callq 0x40a0
testq %r13, %r13
je 0xee70
addq $-0x20, %r15
shlq $0x5, %r13
leaq (%r15,%r13), %rdi
callq 0x4170
addq $-0x20, %r13
jne 0xee61
movq -0x40(%rbp), %rsp
leaq -0x80(%rbp), %rdi
callq 0x4170
leaq -0x188(%rbp), %rdi
callq 0xc7d8
leaq -0x390(%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 0x696f(%rip), %rsi      # 0x15825
movq %rax, %rdi
callq 0x4130
movq 0xf123(%rip), %rsi      # 0x1dfe8
movq 0xf09c(%rip), %rdx      # 0x1df68
movq %rbx, %rdi
callq 0x4410
movq %rax, %r14
jmp 0xef78
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
jmp 0xef78
jmp 0xeeee
movq %rax, %r14
jmp 0xef84
jmp 0xef50
jmp 0xef01
jmp 0xef50
movq %rax, %r14
jmp 0xef2a
movq %rax, %r14
jmp 0xef1a
movq %rax, %r14
jmp 0xef36
movq %rax, %r14
leaq -0xc0(%rbp), %rdi
callq 0x4170
leaq -0xe0(%rbp), %rdi
callq 0x4170
movq -0x30(%rbp), %r15
leaq -0x100(%rbp), %rdi
callq 0x4170
leaq -0xa0(%rbp), %rdi
callq 0x4170
jmp 0xef53
movq %rax, %r14
leaq -0x120(%rbp), %rdi
jmp 0xef3d
movq %rax, %r14
testq %r13, %r13
je 0xef6f
addq $-0x20, %r15
shlq $0x5, %r13
leaq (%r15,%r13), %rdi
callq 0x4170
addq $-0x20, %r13
jne 0xef60
leaq -0x80(%rbp), %rdi
callq 0x4170
leaq -0x188(%rbp), %rdi
callq 0xc7d8
leaq -0x390(%rbp), %rdi
callq 0x40e0
movq %r14, %rdi
callq 0x4450