// File: /workspace/github_cpp_makefile_star2_O3/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 0x1670d
leaq 0x5571(%rip), %rsi      # 0x1bafd
leaq -0x228(%rbp), %rdi
movl $0x28, %edx
callq 0x4320
addq $0x48, %rbx
leaq 0x3bf5(%rip), %r14      # 0x1a19d
movq %rbx, %r12
movq (%rbx), %rbx
cmpq %r12, %rbx
je 0x166b9
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4320
leaq 0x10(%rbx), %r13
movq %r13, %rdi
callq 0x10a96
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
leaq 0x532c(%rip), %rsi      # 0x1b91d
callq 0x4320
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4320
movq %r13, %rdi
callq 0x10a8c
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
leaq 0x52f1(%rip), %rsi      # 0x1b91d
callq 0x4320
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4320
movq %r13, %rdi
callq 0x10aa0
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 0x10aaa
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5295(%rip), %rsi      # 0x1b91e
callq 0x4320
movq %r13, %rdi
callq 0x10ab4
movl (%rax), %esi
movq %r15, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5475(%rip), %rsi      # 0x1bb24
callq 0x4320
jmp 0x165ab
leaq -0x228(%rbp), %rdi
callq 0x43a0
movq 0xc88c(%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 0x5084(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xc8b8(%rip), %rsi      # 0x22fe8
movq 0xc839(%rip), %rdx      # 0x22f70
movq %r14, %rdi
callq 0x4440
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x16751
jmp 0x1674e
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x4490
nop