// File: /workspace/github_cpp_makefile_star2_O1/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 0x16672
leaq 0x5631(%rip), %rsi      # 0x1baa9
leaq -0x230(%rbp), %rdi
movl $0x53, %edx
callq 0x4320
movq %r15, %r14
addq $0x60, %r14
leaq -0x230(%rbp), %r15
leaq 0x547f(%rip), %r12      # 0x1b91d
leaq 0x5479(%rip), %r13      # 0x1b91e
movq %r14, -0x30(%rbp)
movq (%r14), %r14
cmpq -0x30(%rbp), %r14
je 0x1661e
movl $0x1, %edx
movq %r15, %rdi
leaq 0x3cd8(%rip), %rsi      # 0x1a19d
callq 0x4320
leaq 0x10(%r14), %rbx
movq %rbx, %rdi
callq 0x10b40
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 0x3c99(%rip), %rsi      # 0x1a19d
callq 0x4320
movq %rbx, %rdi
callq 0x10b36
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 0x3c5e(%rip), %rsi      # 0x1a19d
callq 0x4320
movq %rbx, %rdi
callq 0x10b4a
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 0x10b54
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10b5e
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10b68
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10bf6
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x10c84
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5510(%rip), %rsi      # 0x1bb24
callq 0x4320
jmp 0x164a9
leaq -0x230(%rbp), %rdi
callq 0x43a0
movq 0xc927(%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 0x511f(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xc953(%rip), %rsi      # 0x22fe8
movq 0xc8d4(%rip), %rdx      # 0x22f70
movq %r14, %rdi
callq 0x4440
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x166b6
jmp 0x166b3
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x4490