// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
leaq -0x230(%rbp), %r14
movq %r14, %rdi
callq 0x4400
pushq $0x10
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4050
leaq -0x1c0(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x10dc3
leaq 0x4efb(%rip), %rsi      # 0x15b29
leaq -0x230(%rbp), %rdi
callq 0x4290
addq $0x60, %r12
leaq -0x230(%rbp), %r15
leaq 0x4d52(%rip), %r13      # 0x1599e
movq %r12, -0x30(%rbp)
movq (%r12), %r12
cmpq -0x30(%rbp), %r12
je 0x10d99
movq %r15, %rdi
leaq 0x3535(%rip), %rsi      # 0x1419d
callq 0x4290
movq %rax, %r14
leaq 0x10(%r12), %rbx
movq %rbx, %rdi
callq 0xce72
movq %r14, %rdi
movq %rax, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x4d0b(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
leaq 0x34fc(%rip), %rsi      # 0x1419d
callq 0x4290
movq %rax, %r14
movq %rbx, %rdi
callq 0xce68
movq %r14, %rdi
movq %rax, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x4cd7(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
leaq 0x34c8(%rip), %rsi      # 0x1419d
callq 0x4290
movq %rax, %r14
movq %rbx, %rdi
callq 0xce7c
movq %r14, %rdi
movq %rax, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x4ca3(%rip), %rsi      # 0x1599d
callq 0x4290
movq %rbx, %rdi
callq 0xce86
movl (%rax), %esi
movq %r15, %rdi
callq 0x4430
movq %rax, %rdi
movq %r13, %rsi
callq 0x4290
movq %rbx, %rdi
callq 0xce90
movl (%rax), %esi
movq %r15, %rdi
callq 0x4430
movq %rax, %rdi
movq %r13, %rsi
callq 0x4290
movq %rbx, %rdi
callq 0xce9a
movl (%rax), %esi
movq %r15, %rdi
callq 0x4430
movq %rax, %rdi
movq %r13, %rsi
callq 0x4290
movq %rbx, %rdi
callq 0xcefa
movl (%rax), %esi
movq %r15, %rdi
callq 0x4430
movq %rax, %rdi
movq %r13, %rsi
callq 0x4290
movq %rbx, %rdi
callq 0xcf5a
movl (%rax), %esi
movq %r15, %rdi
callq 0x4430
movq %rax, %rdi
leaq 0x4e15(%rip), %rsi      # 0x15ba4
callq 0x4290
jmp 0x10c50
leaq -0x230(%rbp), %rdi
callq 0x4370
leaq -0x230(%rbp), %rdi
callq 0x43a0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x4190
movq %rax, %r14
leaq 0x4a50(%rip), %rsi      # 0x15825
movq %rax, %rdi
callq 0x4130
movq 0xd204(%rip), %rsi      # 0x1dfe8
movq 0xd17d(%rip), %rdx      # 0x1df68
movq %r14, %rdi
callq 0x4410
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x10e05
jmp 0x10e02
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x43a0
movq %rbx, %rdi
callq 0x4450
nop