// File: /workspace/github_cpp_makefile_star2_O3/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::export_taxies(char const*)
void TaxiAgency::export_taxies(const char* TAXIES_FILE){
    ofstream File;
    File.open(TAXIES_FILE);
    if(File.is_open()){
        File << "\"hybrid\",\"id\",\"manufacturer\",\"fare_amount\",\"number\"\n";
        for(auto taxi : taxies){
            File << "\"" << (taxi.hybrid ? "True" : "False") << "\",";
            File << "\"" << taxi.id << "\",";
            File << "\"" << taxi.manufacturer << "\",";
            File << taxi.fare_amount << ",";
            File << taxi.number << ",";
            File << taxi.available_number << "\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 $0x268, %rsp            # imm = 0x268
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x288(%rbp), %r15
movq %r15, %rdi
callq 0x4430
movq %r15, %rdi
movq %r14, %rsi
movl $0x10, %edx
callq 0x4060
leaq -0x218(%rbp), %rdi
callq 0x40d0
testb %al, %al
je 0x12f5a
leaq 0x8b9b(%rip), %rsi      # 0x1b8dd
leaq -0x288(%rbp), %rdi
movl $0x34, %edx
callq 0x4320
movq (%rbx), %r14
movq 0x8(%rbx), %rax
movq %rax, -0x30(%rbp)
cmpq %rax, %r14
je 0x12f06
leaq -0x80(%rbp), %rbx
leaq 0x742b(%rip), %r15      # 0x1a19d
leaq -0x288(%rbp), %r12
leaq 0x8b9d(%rip), %r13      # 0x1b91d
movb (%r14), %al
movb %al, -0x88(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xf492
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0xf492
movl 0x50(%r14), %eax
movl %eax, 0x48(%rbx)
movq 0x48(%r14), %rax
movq %rax, 0x40(%rbx)
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x4320
movzbl -0x88(%rbp), %edx
testq %rdx, %rdx
leaq 0x8b27(%rip), %rsi      # 0x1b917
leaq 0x8b1b(%rip), %rax      # 0x1b912
cmovneq %rax, %rsi
xorq $0x5, %rdx
movq %r12, %rdi
callq 0x4320
movl $0x2, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x4320
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x4320
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq %r12, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x4320
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r12, %rdi
callq 0x4320
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4320
movl -0x40(%rbp), %esi
movq %r12, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8a8d(%rip), %rsi      # 0x1b91e
callq 0x4320
movl -0x3c(%rbp), %esi
movq %r12, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8a6e(%rip), %rsi      # 0x1b91e
callq 0x4320
movl -0x38(%rbp), %esi
movq %r12, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8c55(%rip), %rsi      # 0x1bb24
callq 0x4320
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x12ee6
callq 0x4280
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x12ef8
callq 0x4280
addq $0x58, %r14
cmpq -0x30(%rbp), %r14
jne 0x12d80
leaq -0x288(%rbp), %rdi
callq 0x43a0
movq 0x1003f(%rip), %rax     # 0x22f58
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x280(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x288(%rbp,%rcx)
callq 0x4250
leaq -0x190(%rbp), %rdi
callq 0x4110
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x8837(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0x1006b(%rip), %rsi     # 0x22fe8
movq 0xffec(%rip), %rdx      # 0x22f70
movq %r14, %rdi
callq 0x4440
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x12fc6
jmp 0x12f9b
movq %rax, %rbx
jmp 0x12fc6
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x12fc6
callq 0x4280
jmp 0x12fc6
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x17668
leaq -0x288(%rbp), %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x4490