// File: 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
subq $0x300, %rsp            # imm = 0x300
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2a0(%rbp)
leaq -0x210(%rbp), %rdi
movq %rdi, -0x298(%rbp)
callq 0x44a0
movq -0x298(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x10, %edx
callq 0x4060
jmp 0x23fb8
leaq -0x210(%rbp), %rdi
callq 0x4250
movb %al, -0x2a1(%rbp)
jmp 0x23fcc
movb -0x2a1(%rbp), %al
testb $0x1, %al
jne 0x23fdb
jmp 0x2424f
leaq 0xdca4(%rip), %rsi      # 0x31c86
leaq -0x210(%rbp), %rdi
callq 0x42d0
jmp 0x23ff0
movq -0x2a0(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rdi
callq 0x29870
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rdi
callq 0x298a0
movq %rax, -0x238(%rbp)
leaq -0x230(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x298d0
testb $0x1, %al
jne 0x24040
jmp 0x2423f
leaq -0x230(%rbp), %rdi
callq 0x29910
movq %rax, %rsi
leaq -0x290(%rbp), %rdi
callq 0x29930
jmp 0x2405d
leaq 0xc955(%rip), %rsi      # 0x309b9
leaq -0x210(%rbp), %rdi
callq 0x42d0
movq %rax, -0x2b0(%rbp)
jmp 0x24079
movq -0x2b0(%rbp), %rdi
movb -0x290(%rbp), %cl
leaq 0xdc2e(%rip), %rax      # 0x31cbb
leaq 0xdc2c(%rip), %rsi      # 0x31cc0
testb $0x1, %cl
cmovneq %rax, %rsi
callq 0x42d0
movq %rax, -0x2b8(%rbp)
jmp 0x240a9
movq -0x2b8(%rbp), %rdi
leaq 0xdc0f(%rip), %rsi      # 0x31cc6
callq 0x42d0
jmp 0x240be
leaq 0xc8f4(%rip), %rsi      # 0x309b9
leaq -0x210(%rbp), %rdi
callq 0x42d0
movq %rax, -0x2c0(%rbp)
jmp 0x240da
movq -0x2c0(%rbp), %rdi
leaq -0x288(%rbp), %rsi
callq 0x4290
movq %rax, -0x2c8(%rbp)
jmp 0x240f6
movq -0x2c8(%rbp), %rdi
leaq 0xdbc2(%rip), %rsi      # 0x31cc6
callq 0x42d0
jmp 0x2410b
leaq 0xc8a7(%rip), %rsi      # 0x309b9
leaq -0x210(%rbp), %rdi
callq 0x42d0
movq %rax, -0x2d0(%rbp)
jmp 0x24127
movq -0x2d0(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x4290
movq %rax, -0x2d8(%rbp)
jmp 0x24143
movq -0x2d8(%rbp), %rdi
leaq 0xdb75(%rip), %rsi      # 0x31cc6
callq 0x42d0
jmp 0x24158
movl -0x248(%rbp), %esi
leaq -0x210(%rbp), %rdi
callq 0x44d0
movq %rax, -0x2e0(%rbp)
jmp 0x24173
movq -0x2e0(%rbp), %rdi
leaq 0xdb46(%rip), %rsi      # 0x31cc7
callq 0x42d0
jmp 0x24188
movl -0x244(%rbp), %esi
leaq -0x210(%rbp), %rdi
callq 0x44d0
movq %rax, -0x2e8(%rbp)
jmp 0x241a3
movq -0x2e8(%rbp), %rdi
leaq 0xdb16(%rip), %rsi      # 0x31cc7
callq 0x42d0
jmp 0x241b8
movl -0x240(%rbp), %esi
leaq -0x210(%rbp), %rdi
callq 0x44d0
movq %rax, -0x2f0(%rbp)
jmp 0x241d3
movq -0x2f0(%rbp), %rdi
leaq 0xdcec(%rip), %rsi      # 0x31ecd
callq 0x42d0
jmp 0x241e8
leaq -0x290(%rbp), %rdi
callq 0x297d0
leaq -0x230(%rbp), %rdi
callq 0x299f0
jmp 0x24024
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
jmp 0x242c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
leaq -0x290(%rbp), %rdi
callq 0x297d0
jmp 0x242c5
leaq -0x210(%rbp), %rdi
callq 0x43f0
jmp 0x2424d
jmp 0x242b0
movl $0x10, %edi
callq 0x41a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2f8(%rbp)
leaq 0xd8e1(%rip), %rsi      # 0x31b4e
callq 0x4140
jmp 0x24274
movq -0x2f8(%rbp), %rdi
movq 0x21d6e(%rip), %rsi     # 0x45ff0
movq 0x21ce7(%rip), %rdx     # 0x45f70
callq 0x44b0
jmp 0x242dd
movq -0x2f8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
callq 0x4240
jmp 0x242c5
leaq -0x210(%rbp), %rdi
callq 0x4420
addq $0x300, %rsp            # imm = 0x300
popq %rbp
retq
leaq -0x210(%rbp), %rdi
callq 0x4420
movq -0x218(%rbp), %rdi
callq 0x44f0
nopl (%rax)