// File: Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::insert_new_taxi_breed(bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int)
void TaxiAgency::insert_new_taxi_breed(bool hybrid, string id, string manufacturer, int fare_amount, int number){
    if(taxies.size() == GarageLimit+1)
        throw range_error("The limit of garage is reached. Need to upgrade the Agency!");
    try{
        retrieve_taxi_by_id(id);
        throw ("Taxi with the provided id already exist. Id should be unique.");
    }catch(invalid_argument){
        taxies.push_back(Taxi(hybrid, id, manufacturer, fare_amount, number, number));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rcx, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x29a10
movq -0x118(%rbp), %rcx
movl 0x7c(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jne 0x23a06
movl $0x10, %edi
callq 0x41a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x130(%rbp)
leaq 0xe1ce(%rip), %rsi      # 0x31b96
callq 0x44c0
jmp 0x239cf
movq -0x130(%rbp), %rdi
movq 0x225d3(%rip), %rsi     # 0x45fb0
movq 0x22584(%rip), %rdx     # 0x45f68
callq 0x44b0
movq -0x130(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x4240
jmp 0x23c0e
movq -0x120(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x4170
jmp 0x23a18
movq -0x118(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x23860
movq %rdx, -0x140(%rbp)
movl %eax, -0x134(%rbp)
jmp 0x23a37
movq -0x140(%rbp), %rax
movl -0x134(%rbp), %ecx
movl %ecx, -0x68(%rbp)
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x41f0
movl $0x8, %edi
callq 0x41a0
movq %rax, %rdi
leaq 0xe16a(%rip), %rax      # 0x31bd2
movq %rax, (%rdi)
movq 0x224de(%rip), %rsi     # 0x45f50
xorl %eax, %eax
movl %eax, %edx
callq 0x44b0
jmp 0x23c1f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x23aa3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x41f0
movl -0x34(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x23c0e
movq -0x30(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x4370
movq %rax, %rsi
leaq -0x78(%rbp), %rdi
callq 0x1d840
movq -0x158(%rbp), %rdi
callq 0x4150
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rax
movq %rax, -0x150(%rbp)
movb -0x9(%rbp), %al
movb %al, -0x141(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x4170
jmp 0x23b07
movq -0x128(%rbp), %rsi
leaq -0x110(%rbp), %rdi
callq 0x4170
jmp 0x23b1c
movb -0x141(%rbp), %al
movl -0x24(%rbp), %r8d
movl -0x28(%rbp), %r9d
movq %rsp, %rcx
movl %r9d, (%rcx)
movzbl %al, %esi
andl $0x1, %esi
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rdx
leaq -0x110(%rbp), %rcx
callq 0x29640
jmp 0x23b52
movq -0x150(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x29a60
jmp 0x23b67
leaq -0xd0(%rbp), %rdi
callq 0x297d0
leaq -0x110(%rbp), %rdi
callq 0x41f0
leaq -0xf0(%rbp), %rdi
callq 0x41f0
leaq -0x78(%rbp), %rdi
callq 0x4570
callq 0x4480
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x23bfc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x23bf0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x23be4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x297d0
leaq -0x110(%rbp), %rdi
callq 0x41f0
leaq -0xf0(%rbp), %rdi
callq 0x41f0
leaq -0x78(%rbp), %rdi
callq 0x4570
callq 0x4480
jmp 0x23c0c
jmp 0x23c0e
movq -0x30(%rbp), %rdi
callq 0x44f0
movq %rax, %rdi
callq 0x1d350
nop