// File: /workspace/github_cpp_makefile_star2_O2/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::export_customer_db(char const*)
void TaxiAgency::export_customer_db(const char* CUSTOMERS_FILE){
    srand(time(NULL));
    ofstream File;
    File.open(CUSTOMERS_FILE);
    if(File.is_open()){
        File << "\"firtsname\",\"lastname\",\"uuid\",\"balance\",\"status\"\n";
        for(auto customer : customer_db){
            File << "\"" << customer.getFirstname() << "\",";
            File << "\"" << customer.getLastname() << "\",";
            File << "\"" << customer.getUUID() << "\",";
            File << customer.getBalance() << ",";
            File << "\"" << (customer.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 $0x298, %rsp            # imm = 0x298
movq %rsi, %rbx
movq %rdi, %r14
xorl %edi, %edi
callq 0x4260
movl %eax, %edi
callq 0x4280
leaq -0x2b8(%rbp), %r15
movq %r15, %rdi
callq 0x4400
pushq $0x10
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4050
leaq -0x248(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0xf741
leaq 0x64a7(%rip), %rsi      # 0x15a45
leaq -0x2b8(%rbp), %rdi
callq 0x4290
movq 0x30(%r14), %rbx
movq 0x38(%r14), %rax
movq %rax, -0x30(%rbp)
leaq -0xb8(%rbp), %r12
leaq -0x2b8(%rbp), %r14
leaq -0x50(%rbp), %r15
cmpq -0x30(%rbp), %rbx
je 0xf717
movq %r12, %rdi
movq %rbx, %rsi
callq 0x11df4
movq %r14, %rdi
leaq 0x4bb6(%rip), %rsi      # 0x1419d
callq 0x4290
movq %rax, %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x4360
movq %r13, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x638e(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
leaq 0x4b77(%rip), %rsi      # 0x1419d
callq 0x4290
movq %rax, %r13
movq %r15, %rdi
leaq -0x98(%rbp), %rsi
callq 0x4360
movq %r13, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x634b(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
leaq 0x4b34(%rip), %rsi      # 0x1419d
callq 0x4290
movq %rax, %r13
movq %r15, %rdi
leaq -0x78(%rbp), %rsi
callq 0x4360
movq %r13, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x630b(%rip), %rsi      # 0x1599d
callq 0x4290
movq %r15, %rdi
callq 0x4170
movq %r12, %rdi
callq 0xc9d4
movq %r14, %rdi
movl %eax, %esi
callq 0x4430
movq %rax, %rdi
leaq 0x62e3(%rip), %rsi      # 0x1599e
callq 0x4290
movq %r14, %rdi
leaq 0x4ad3(%rip), %rsi      # 0x1419d
callq 0x4290
movq %rax, %r13
movq %r12, %rdi
callq 0xc9ca
cmpl $0x1, %eax
leaq 0x6359(%rip), %rsi      # 0x15a3d
leaq 0x659a(%rip), %rax      # 0x15c85
cmoveq %rax, %rsi
movq %r13, %rdi
callq 0x4290
movq %rax, %rdi
leaq 0x64a2(%rip), %rsi      # 0x15ba3
callq 0x4290
movq %r12, %rdi
callq 0xc7d8
addq $0x68, %rbx
jmp 0xf5c8
leaq -0x2b8(%rbp), %rdi
callq 0x4370
leaq -0x2b8(%rbp), %rdi
callq 0x43a0
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x4190
movq %rax, %r14
leaq 0x60d2(%rip), %rsi      # 0x15825
movq %rax, %rdi
callq 0x4130
movq 0xe886(%rip), %rsi      # 0x1dfe8
movq 0xe7ff(%rip), %rdx      # 0x1df68
movq %r14, %rdi
callq 0x4410
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0xf7ac
jmp 0xf780
movq %rax, %rbx
jmp 0xf7ac
jmp 0xf79d
jmp 0xf79d
jmp 0xf79d
jmp 0xf78f
jmp 0xf78f
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x4170
jmp 0xf7a0
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0xc7d8
leaq -0x2b8(%rbp), %rdi
callq 0x43a0
movq %rbx, %rdi
callq 0x4450