// File: /workspace/github_cpp_makefile_star2_O1/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::export_ongoing_shifts(char const*)
void TaxiAgency::export_ongoing_shifts(const char* CURRENT_SHIFTS_FILE){
    ofstream File;
    File.open(CURRENT_SHIFTS_FILE);
    if(File.is_open()){
        File << "\"customer_uuid\",\"driver_uuid\",\"taxi_id\"\n";
        for(list<Shift>::iterator shift = current_shifts.begin(); shift != current_shifts.end(); ++shift){
            File << "\"" << shift->getCustomerUUID() << "\",";
            File << "\"" << shift->getDriverUUID() << "\",";
            File << "\"" << shift->getCarID() << "\"";
            File << shift->getFareAmount() << ",";
            File << shift->getWaitingCharges() << "\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, %r14
movq %rdi, %rbx
leaq -0x228(%rbp), %r15
movq %r15, %rdi
callq 0x4430
movq %r15, %rdi
movq %r14, %rsi
movl $0x10, %edx
callq 0x4060
leaq -0x1b8(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x1689f
leaq 0x53df(%rip), %rsi      # 0x1bafd
leaq -0x228(%rbp), %rdi
movl $0x28, %edx
callq 0x4320
addq $0x48, %rbx
leaq 0x3a63(%rip), %r14      # 0x1a19d
movq %rbx, %r12
movq (%rbx), %rbx
cmpq %r12, %rbx
je 0x1684b
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4320
leaq 0x10(%rbx), %r13
movq %r13, %rdi
callq 0x10b40
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
leaq 0x519a(%rip), %rsi      # 0x1b91d
callq 0x4320
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4320
movq %r13, %rdi
callq 0x10b36
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
leaq 0x515f(%rip), %rsi      # 0x1b91d
callq 0x4320
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4320
movq %r13, %rdi
callq 0x10b4a
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x4320
movq %r13, %rdi
callq 0x10b54
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5103(%rip), %rsi      # 0x1b91e
callq 0x4320
movq %r13, %rdi
callq 0x10b5e
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x52e3(%rip), %rsi      # 0x1bb24
callq 0x4320
jmp 0x1673d
leaq -0x228(%rbp), %rdi
callq 0x43a0
movq 0xc6fa(%rip), %rax      # 0x22f58
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x220(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x228(%rbp,%rcx)
callq 0x4250
leaq -0x130(%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 0x4ef2(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xc726(%rip), %rsi      # 0x22fe8
movq 0xc6a7(%rip), %rdx      # 0x22f70
movq %r14, %rdi
callq 0x4440
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x168e3
jmp 0x168e0
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x4490
nop