// File: /workspace/github_cpp_makefile_star2_O3/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::import_current_shifts(char const*)
void TaxiAgency::import_current_shifts(const char* CURRENT_SHIFTS_FILE){
    ifstream File;
    File.open(CURRENT_SHIFTS_FILE);
    Shift shift;
    if(File.is_open()){
        string t, fields[Shift::ShiftAttributesCount];
        getline(File, t); // skip heading row
        while(getline(File, t)){
            populate_fields(t, fields, Shift::ShiftAttributesCount);
            shift = Shift(fields[0].substr(0, fields[0].length()-2),
                        fields[1].substr(1, fields[1].length()-2),
                        fields[2].substr(1, fields[2].length()-2),
                        stoi(fields[3]),
                        stoi(fields[4]));

            current_shifts.push_back(shift);
        }
        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 $0x428, %rsp            # imm = 0x428
movq %rsi, %rbx
movq %rdi, -0x48(%rbp)
leaq -0x450(%rbp), %r14
movq %r14, %rdi
callq 0x4310
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x41c0
leaq -0x1a8(%rbp), %rdi
callq 0x179e0
leaq -0x3d8(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x15954
movq %rsp, -0x70(%rbp)
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0xddc8(%rip), %r12d     # 0x232c4
movq %rsp, %r13
movq %r12, %rax
shlq $0x5, %rax
subq %rax, %r13
movq %r13, %rsp
testq %r12, %r12
je 0x1552e
leaq 0x10(%r13), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0x15515
movq -0x450(%rbp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
leaq -0x450(%rbp), %rbx
leaq -0x68(%rbp), %rsi
movq %rbx, %rdi
callq 0x44c0
leaq -0x98(%rbp), %r15
leaq 0x20(%r13), %rax
movq %rax, -0x88(%rbp)
leaq 0x40(%r13), %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
leaq 0x48(%rax), %r14
movq %r13, -0x30(%rbp)
movq %r14, -0x78(%rbp)
movq -0x450(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
movq %rbx, %rdi
leaq -0x68(%rbp), %rsi
callq 0x44c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x15870
movq %r15, -0xa8(%rbp)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0xf492
movl 0xdce1(%rip), %edx      # 0x232c4
leaq -0xa8(%rbp), %rdi
movq %r13, %rsi
callq 0x12514
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x15603
callq 0x4280
movq 0x8(%r13), %rcx
addq $-0x2, %rcx
leaq -0x108(%rbp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x42f0
movq 0x28(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0xe8(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x42f0
movq 0x48(%r13), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0xc8(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x42f0
movq 0x60(%r13), %r13
callq 0x4050
movq %rax, %r15
movl (%rax), %eax
movl %eax, -0x34(%rbp)
movl $0x0, (%r15)
movq %r13, %rdi
leaq -0x40(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %r13, -0x40(%rbp)
je 0x15930
movq %rax, %r14
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x1593c
movl (%r15), %ebx
cmpl $0x22, %ebx
je 0x1593c
testl %ebx, %ebx
movq -0x30(%rbp), %rax
jne 0x156c2
movl -0x34(%rbp), %ebx
movl %ebx, (%r15)
movq 0x80(%rax), %r13
movl $0x0, (%r15)
movq %r13, %rdi
leaq -0x40(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %r13, -0x40(%rbp)
je 0x15924
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x15948
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x15948
testl %ecx, %ecx
movq -0x30(%rbp), %r13
jne 0x1571c
movl %ebx, (%r15)
leaq -0x248(%rbp), %rbx
movq %rbx, %rdi
leaq -0x108(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
movl %r14d, %r8d
movl %eax, %r9d
callq 0x1044c
leaq -0x1a8(%rbp), %rdi
movq %rbx, %rsi
callq 0x4340
leaq -0x188(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0x4340
leaq -0x168(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0x4340
movq -0x1e8(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq -0x140(%rbp), %rdi
leaq -0x1e0(%rbp), %r14
movq %r14, %rsi
callq 0x4598
leaq -0x450(%rbp), %rbx
leaq -0x98(%rbp), %r15
movq %r14, %rdi
callq 0x10f92
movq -0x208(%rbp), %rdi
leaq -0x1f8(%rbp), %rax
cmpq %rax, %rdi
je 0x157cd
callq 0x4280
movq -0x228(%rbp), %rdi
leaq -0x218(%rbp), %rax
cmpq %rax, %rdi
movq -0x78(%rbp), %r14
je 0x157e9
callq 0x4280
movq -0x248(%rbp), %rdi
leaq -0x238(%rbp), %rax
cmpq %rax, %rdi
je 0x15801
callq 0x4280
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x15819
callq 0x4280
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x15831
callq 0x4280
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x15849
callq 0x4280
movq %r14, %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x19176
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
movq -0x48(%rbp), %rax
incq 0x58(%rax)
jmp 0x15586
leaq -0x450(%rbp), %rdi
callq 0x40a0
testq %r12, %r12
je 0x158a8
shlq $0x5, %r12
leaq (%r12,%r13), %rbx
addq $-0x10, %rbx
negq %r12
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x1589e
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r12
jne 0x15890
movq -0x70(%rbp), %rsp
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x158be
callq 0x4280
leaq -0x140(%rbp), %rdi
callq 0x10f92
leaq -0x158(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x158df
callq 0x4280
leaq -0x178(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x158f4
callq 0x4280
leaq -0x198(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15909
callq 0x4280
leaq -0x450(%rbp), %rdi
callq 0x40e0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x62df(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x62d3(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x62c7(%rip), %rdi      # 0x1bc0a
callq 0x43b0
leaq 0x62bb(%rip), %rdi      # 0x1bc0a
callq 0x43b0
movl $0x10, %edi
callq 0x4170
movq %rax, %rbx
leaq 0x5e3d(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xd671(%rip), %rsi      # 0x22fe8
movq 0xd5f2(%rip), %rdx      # 0x22f70
movq %rbx, %rdi
callq 0x4440
movq %rax, %r14
jmp 0x15a8f
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
jmp 0x15a8f
jmp 0x159a0
movq %rax, %r14
jmp 0x15a9b
jmp 0x15a4e
movq %rax, %r14
jmp 0x15a1c
movq %rax, %rdi
callq 0xf2ea
movq %rax, %r14
jmp 0x15a04
movq %rax, %r14
jmp 0x15a34
jmp 0x15a4e
movq %rax, %r14
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x159dd
callq 0x4280
movq -0x30(%rbp), %r13
jmp 0x15a51
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x15a00
movl -0x34(%rbp), %eax
movl %eax, (%r15)
jmp 0x15a00
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x15a00
movl %ebx, (%r15)
movq -0x30(%rbp), %r13
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x15a1c
callq 0x4280
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x15a34
callq 0x4280
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x15a51
callq 0x4280
jmp 0x15a51
movq %rax, %r14
testq %r12, %r12
je 0x15a7d
shlq $0x5, %r12
leaq (%r12,%r13), %rbx
addq $-0x10, %rbx
negq %r12
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x15a73
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r12
jne 0x15a65
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x15a8f
callq 0x4280
leaq -0x1a8(%rbp), %rdi
callq 0x17b96
leaq -0x450(%rbp), %rdi
callq 0x40e0
movq %r14, %rdi
callq 0x4490
nop