// File: /workspace/github_cpp_makefile_star2_O1/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 0x1304c
leaq 0x8aa9(%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 0x12ff8
leaq -0x80(%rbp), %rbx
leaq 0x7339(%rip), %r15      # 0x1a19d
leaq -0x288(%rbp), %r12
leaq 0x8aab(%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 0xf530
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0xf530
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 0x8a35(%rip), %rsi      # 0x1b917
leaq 0x8a29(%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 0x899b(%rip), %rsi      # 0x1b91e
callq 0x4320
movl -0x3c(%rbp), %esi
movq %r12, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x897c(%rip), %rsi      # 0x1b91e
callq 0x4320
movl -0x38(%rbp), %esi
movq %r12, %rdi
callq 0x4460
movl $0x1, %edx
movq %rax, %rdi
leaq 0x8b63(%rip), %rsi      # 0x1bb24
callq 0x4320
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x12fd8
callq 0x4280
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x12fea
callq 0x4280
addq $0x58, %r14
cmpq -0x30(%rbp), %r14
jne 0x12e72
leaq -0x288(%rbp), %rdi
callq 0x43a0
movq 0xff4d(%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 0x8745(%rip), %rsi      # 0x1b7a5
movq %rax, %rdi
callq 0x4140
movq 0xff79(%rip), %rsi      # 0x22fe8
movq 0xfefa(%rip), %rdx      # 0x22f70
movq %r14, %rdi
callq 0x4440
movq %rax, %rbx
movq %r14, %rdi
callq 0x4220
jmp 0x130b8
jmp 0x1308d
movq %rax, %rbx
jmp 0x130b8
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x130b8
callq 0x4280
jmp 0x130b8
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x17842
leaq -0x288(%rbp), %rdi
callq 0x43d0
movq %rbx, %rdi
callq 0x4490