// File: /workspace/github_cpp_makefile_star2_O2/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::export_driver_db(char const*)
void TaxiAgency::export_driver_db(const char* DRIVERS_FILE){
    ofstream File;
    File.open(DRIVERS_FILE);
    if(File.is_open()){
        File << "\"firtsname\",\"lastname\",\"uuid\",\"dln\",\"status\"\n";
        for(auto driver : driver_db){
            File << "\"" << driver.getFirstname() << "\",";
            File << "\"" << driver.getLastname() << "\",";
            File << "\"" << driver.getUUID() << "\",";
            File << "\"" << driver.getDLN() << "\",";
            File << "\"" << (driver.getStatus() == IDLE ? "IDLE" : "ONSHIFT") << "\"\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 $0x2b8, %rsp            # imm = 0x2B8
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x2d8(%rbp), %r15
movq %r15, %rdi
callq 0x4400
pushq $0x10
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4050
leaq -0x268(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x1043b
leaq 0x5887(%rip), %rsi      # 0x15afb
leaq -0x2d8(%rbp), %rdi
callq 0x4290
movq 0x18(%r14), %rbx
movq 0x20(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0x3f0a(%rip), %r13      # 0x1419d
leaq -0x2d8(%rbp), %r14
leaq -0x50(%rbp), %r15
cmpq -0x30(%rbp), %rbx
je 0x10411
leaq -0xd8(%rbp), %rdi
movq %rbx, %rsi
callq 0x11f76
movq %r14, %rdi
movq %r13, %rsi
callq 0x4290
movq %rax, %r12
movq %r15, %rdi
leaq -0xd8(%rbp), %rsi
callq 0x4360
movq %r12, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x56b4(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
movq %r13, %rsi
callq 0x4290
movq %rax, %r12
movq %r15, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x4360
movq %r12, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x5675(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
movq %r13, %rsi
callq 0x4290
movq %rax, %r12
movq %r15, %rdi
leaq -0x98(%rbp), %rsi
callq 0x4360
movq %r12, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x5636(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
movq %r13, %rsi
callq 0x4290
movq %rax, %r12
movq %r15, %rdi
leaq -0xd8(%rbp), %rsi
callq 0xc7b0
movq %r12, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x55f7(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
movq %r13, %rsi
callq 0x4290
movq %rax, %r12
leaq -0xd8(%rbp), %rdi
callq 0xc7cc
cmpl $0x1, %eax
leaq 0x5666(%rip), %rsi      # 0x15a3d
leaq 0x58a7(%rip), %rax      # 0x15c85
cmoveq %rax, %rsi
movq %r12, %rdi
callq 0x4290
movq %rax, %rdi
leaq 0x57af(%rip), %rsi      # 0x15ba3
callq 0x4290
leaq -0xd8(%rbp), %rdi
callq 0x11f18
addq $0x88, %rbx
jmp 0x1029e
leaq -0x2d8(%rbp), %rdi
callq 0x4370
leaq -0x2d8(%rbp), %rdi
callq 0x43a0
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x4190
movq %rax, %r14
leaq 0x53d8(%rip), %rsi      # 0x15825
movq %rax, %rdi
callq 0x4130
movq 0xdb8c(%rip), %rsi      # 0x1dfe8
movq 0xdb05(%rip), %rdx      # 0x1df68
movq %r14, %rdi
callq 0x4410
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x104aa
jmp 0x10482
jmp 0x1049b
jmp 0x1049b
jmp 0x1049b
jmp 0x1049b
movq %rax, %rbx
jmp 0x104aa
jmp 0x1048d
jmp 0x1048d
jmp 0x1048d
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x4170
jmp 0x1049e
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x11f18
leaq -0x2d8(%rbp), %rdi
callq 0x43a0
movq %rbx, %rdi
callq 0x4450