// File: /workspace/github_cpp_makefile_star2_O3/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 0xf864
leaq -0x380(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x1344e
movq %rsp, -0x68(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x1026a(%rip), %r15d    # 0x232bc
movq %rsp, %r13
movq %r15, %rax
shlq $0x5, %rax
subq %rax, %r13
movq %r13, %rsp
testq %r15, %r15
je 0x13084
leaq 0x10(%r13), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0x1306b
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 0x1338e
movq %r12, -0x120(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xf492
movl 0x1017f(%rip), %edx     # 0x232bc
movq %rbx, %rdi
movq %r13, %rsi
callq 0x12514
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
je 0x13159
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 0x13436
movq %rax, %r14
movslq %r14d, %rax
cmpq %r14, %rax
jne 0x13442
movl (%r12), %eax
cmpl $0x22, %eax
je 0x13442
testl %eax, %eax
movq %rbx, %r13
jne 0x13213
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 0x89c1(%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 0x10188
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 0x132e2
callq 0x4280
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
movq %r13, %rbx
je 0x132fd
callq 0x4280
movq -0x188(%rbp), %rdi
leaq -0x178(%rbp), %rax
cmpq %rax, %rdi
movq -0x38(%rbp), %r13
je 0x13319
callq 0x4280
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x13331
callq 0x4280
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x13349
callq 0x4280
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x13361
callq 0x4280
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x13379
callq 0x4280
movq -0x40(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x176d6
jmp 0x130e4
leaq -0x3f8(%rbp), %rdi
callq 0x40a0
testq %r15, %r15
je 0x133c6
shlq $0x5, %r15
leaq (%r15,%r13), %rbx
addq $-0x10, %rbx
negq %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x133bc
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r15
jne 0x133ae
movq -0x68(%rbp), %rsp
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x133dc
callq 0x4280
leaq -0x1a0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x133f1
callq 0x4280
leaq -0x1c0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13406
callq 0x4280
leaq -0x1e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1341b
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 0x87cd(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x87c1(%rip), %rdi      # 0x1bc0a
callq 0x43b0
movl $0x10, %edi
callq 0x4170
movq %rax, %rbx
leaq 0x8343(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xfb77(%rip), %rsi      # 0x22fe8
movq 0xfaf8(%rip), %rdx      # 0x22f70
movq %rbx, %rdi
callq 0x4440
movq %rax, %r14
jmp 0x13589
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
jmp 0x13589
jmp 0x1349a
movq %rax, %r14
jmp 0x13595
jmp 0x13548
jmp 0x13548
movq %rax, %r14
jmp 0x13516
movq %rax, %r14
jmp 0x134fa
movq %rax, %r14
jmp 0x1352e
movq %rax, %r14
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x134fa
callq 0x4280
jmp 0x134fa
movq %rax, %r14
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
jne 0x13541
jmp 0x1354b
movq %rax, %r14
cmpl $0x0, (%r12)
jne 0x134fa
movl -0x2c(%rbp), %eax
movl %eax, (%r12)
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x13512
callq 0x4280
movq -0x38(%rbp), %r13
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x1352e
callq 0x4280
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x1354b
callq 0x4280
jmp 0x1354b
movq %rax, %r14
testq %r15, %r15
je 0x13577
shlq $0x5, %r15
leaq (%r15,%r13), %rbx
addq $-0x10, %rbx
negq %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x1356d
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r15
jne 0x1355f
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x13589
callq 0x4280
leaq -0x1f0(%rbp), %rdi
callq 0x10140
leaq -0x3f8(%rbp), %rdi
callq 0x40e0
movq %r14, %rdi
callq 0x4490
nop