// File: /workspace/github_cpp_makefile_star2_O3/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::export_shift_history(char const*)
void TaxiAgency::export_shift_history(const char* SHIFT_HISTORY_FILE){
    ofstream File;
    File.open(SHIFT_HISTORY_FILE);
    if(File.is_open()){
        File << "\"customer_uuid\",\"driver_uuid\",\"taxi_id\",\"running_kms\",\"waiting_hours\",\"total_cost\"\n";
        for(list<Shift>::iterator shift = shift_history.begin(); shift != shift_history.end(); ++shift){
            File << "\"" << shift->getCustomerUUID() << "\",";
            File << "\"" << shift->getDriverUUID() << "\",";
            File << "\"" << shift->getCarID() << "\",";
            File << shift->getFareAmount() << ",";
            File << shift->getWaitingCharges() << ",";
            File << shift->getRunningKms() << ",";
            File << shift->getWaitingHours() << ",";
            File << shift->getTotalCost() << "\n";
        }
        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 $0x208, %rsp            # imm = 0x208
movq %rsi, %rbx
movq %rdi, %r15
leaq -0x230(%rbp), %r14
movq %r14, %rdi
callq 0x4430
movq %r14, %rdi
movq %rbx, %rsi
movl $0x10, %edx
callq 0x4060
leaq -0x1c0(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x164e0
leaq 0x57c3(%rip), %rsi      # 0x1baa9
leaq -0x230(%rbp), %rdi
movl $0x53, %edx
callq 0x4320
movq %r15, %r14
addq $0x60, %r14
leaq -0x230(%rbp), %r15
leaq 0x5611(%rip), %r12      # 0x1b91d
leaq 0x560b(%rip), %r13      # 0x1b91e
movq %r14, -0x30(%rbp)
movq (%r14), %r14
cmpq -0x30(%rbp), %r14
je 0x1648c
movl $0x1, %edx
movq %r15, %rdi
leaq 0x3e6a(%rip), %rsi      # 0x1a19d
callq 0x4320
leaq 0x10(%r14), %rbx
movq %rbx, %rdi
callq 0x10a96
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4320
movl $0x1, %edx
movq %r15, %rdi
leaq 0x3e2b(%rip), %rsi      # 0x1a19d
callq 0x4320
movq %rbx, %rdi
callq 0x10a8c
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4320
movl $0x1, %edx
movq %r15, %rdi
leaq 0x3df0(%rip), %rsi      # 0x1a19d
callq 0x4320
movq %rbx, %rdi
callq 0x10aa0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10aaa
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10ab4
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10abe
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10b4c
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10bda
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x56a2(%rip), %rsi      # 0x1bb24
callq 0x4320
jmp 0x16317
leaq -0x230(%rbp), %rdi
callq 0x43a0
movq 0xcab9(%rip), %rax      # 0x22f58
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x228(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x230(%rbp,%rcx)
callq 0x4250
leaq -0x138(%rbp), %rdi
callq 0x4110
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x52b1(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xcae5(%rip), %rsi      # 0x22fe8
movq 0xca66(%rip), %rdx      # 0x22f70
movq %r14, %rdi
callq 0x4440
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x16524
jmp 0x16521
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x4490