// File: /workspace/github_cpp_makefile_star2_O1/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, -0x40(%rbp)
leaq -0x448(%rbp), %r14
movq %r14, %rdi
callq 0x4310
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x41c0
leaq -0x1a0(%rbp), %rdi
callq 0x17bba
leaq -0x3d0(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x15b26
movq %rsp, -0x68(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0xdbfc(%rip), %r15d     # 0x232c4
movq %rsp, %r12
movq %r15, %rax
shlq $0x5, %rax
subq %rax, %r12
movq %r12, %rsp
testq %r15, %r15
je 0x156fb
leaq 0x10(%r12), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0x156e2
movq -0x448(%rbp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
leaq -0x448(%rbp), %rbx
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
callq 0x44c0
leaq -0x90(%rbp), %r13
leaq 0x20(%r12), %rax
movq %rax, -0x80(%rbp)
leaq 0x40(%r12), %rax
movq %rax, -0x78(%rbp)
movq -0x40(%rbp), %rax
leaq 0x48(%rax), %r14
movq %r12, -0x30(%rbp)
movq %r14, -0x70(%rbp)
movq -0x448(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
movq %rbx, %rdi
leaq -0x60(%rbp), %rsi
callq 0x44c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x15a3f
movq %r13, -0xa0(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0xf530
movl 0xdb15(%rip), %edx      # 0x232c4
leaq -0xa0(%rbp), %rdi
movq %r12, %rsi
callq 0x125d6
movq -0xa0(%rbp), %rdi
cmpq %r13, %rdi
je 0x157cf
callq 0x4280
movq 0x8(%r12), %rcx
addq $-0x2, %rcx
leaq -0x100(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x42f0
movq 0x28(%r12), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0xe0(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x42f0
movq 0x48(%r12), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq -0xc0(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x42f0
movq 0x60(%r12), %r12
callq 0x4050
movq %rax, %r13
movl (%rax), %ebx
movl $0x0, (%rax)
movq %r12, %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %r12, -0x38(%rbp)
je 0x15b02
movq %rax, %r14
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x15b0e
movl (%r13), %eax
cmpl $0x22, %eax
je 0x15b0e
testl %eax, %eax
movq -0x30(%rbp), %rax
jne 0x1588a
movl %ebx, (%r13)
movq 0x80(%rax), %r12
movl (%r13), %ebx
movl $0x0, (%r13)
movq %r12, %rdi
leaq -0x38(%rbp), %rsi
movl $0xa, %edx
callq 0x4390
cmpq %r12, -0x38(%rbp)
je 0x15af6
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x15b1a
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x15b1a
testl %ecx, %ecx
movq -0x30(%rbp), %r12
jne 0x158eb
movl %ebx, (%r13)
leaq -0x240(%rbp), %rbx
movq %rbx, %rdi
leaq -0x100(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
movl %r14d, %r8d
movl %eax, %r9d
callq 0x104c4
leaq -0x1a0(%rbp), %rdi
movq %rbx, %rsi
callq 0x4340
leaq -0x180(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x4340
leaq -0x160(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0x4340
movq -0x1e0(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq -0x138(%rbp), %rdi
leaq -0x1d8(%rbp), %r14
movq %r14, %rsi
callq 0x4598
leaq -0x448(%rbp), %rbx
leaq -0x90(%rbp), %r13
movq %r14, %rdi
callq 0x1103c
movq -0x200(%rbp), %rdi
leaq -0x1f0(%rbp), %rax
cmpq %rax, %rdi
je 0x1599c
callq 0x4280
movq -0x220(%rbp), %rdi
leaq -0x210(%rbp), %rax
cmpq %rax, %rdi
movq -0x70(%rbp), %r14
je 0x159b8
callq 0x4280
movq -0x240(%rbp), %rdi
leaq -0x230(%rbp), %rax
cmpq %rax, %rdi
je 0x159d0
callq 0x4280
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x159e8
callq 0x4280
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x15a00
callq 0x4280
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x15a18
callq 0x4280
movq %r14, %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x1936a
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
movq -0x40(%rbp), %rax
incq 0x58(%rax)
jmp 0x15752
leaq -0x448(%rbp), %rdi
callq 0x40a0
testq %r15, %r15
je 0x15a77
shlq $0x5, %r15
leaq (%r15,%r12), %rbx
addq $-0x10, %rbx
negq %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x15a6d
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r15
jne 0x15a5f
movq -0x68(%rbp), %rsp
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x15a8d
callq 0x4280
leaq -0x138(%rbp), %rbx
movq %rbx, %rdi
callq 0x1103c
movq -0x28(%rbx), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x15ab1
callq 0x4280
leaq -0x170(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15ac6
callq 0x4280
leaq -0x190(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15adb
callq 0x4280
leaq -0x448(%rbp), %rdi
callq 0x40e0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x610d(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x6101(%rip), %rdi      # 0x1bc0a
callq 0x41b0
leaq 0x60f5(%rip), %rdi      # 0x1bc0a
callq 0x43b0
leaq 0x60e9(%rip), %rdi      # 0x1bc0a
callq 0x43b0
movl $0x10, %edi
callq 0x4170
movq %rax, %rbx
leaq 0x5c6b(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xd49f(%rip), %rsi      # 0x22fe8
movq 0xd420(%rip), %rdx      # 0x22f70
movq %rbx, %rdi
callq 0x4440
movq %rax, %r14
jmp 0x15c51
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
jmp 0x15c51
jmp 0x15b72
movq %rax, %r14
jmp 0x15c5d
jmp 0x15c10
movq %rax, %r14
jmp 0x15bde
movq %rax, %rdi
callq 0xf38c
movq %rax, %r14
jmp 0x15bc6
movq %rax, %r14
jmp 0x15bf6
jmp 0x15c10
movq %rax, %r14
movq -0xa0(%rbp), %rdi
cmpq %r13, %rdi
je 0x15bac
callq 0x4280
movq -0x30(%rbp), %r12
jmp 0x15c13
jmp 0x15bb4
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x15bc2
movl %ebx, (%r13)
movq -0x30(%rbp), %r12
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x15bde
callq 0x4280
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x15bf6
callq 0x4280
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x15c13
callq 0x4280
jmp 0x15c13
movq %rax, %r14
testq %r15, %r15
je 0x15c3f
shlq $0x5, %r15
leaq (%r15,%r12), %rbx
addq $-0x10, %rbx
negq %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x15c35
callq 0x4280
addq $-0x20, %rbx
addq $0x20, %r15
jne 0x15c27
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x15c51
callq 0x4280
leaq -0x1a0(%rbp), %rdi
callq 0x17d84
leaq -0x448(%rbp), %rdi
callq 0x40e0
movq %r14, %rdi
callq 0x4490
nop