// File: /workspace/github_cpp_makefile_star2_O3/Karunika[P]Taxi_Agency_OODB/./src/TaxiAgency.cpp
// Function: TaxiAgency::add_driver(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Status)
void TaxiAgency::add_driver(string firstname, string lastname, string uuid, string dln, Status status){
    if(driver_db.size() == DriverLimit+1)
        throw range_error("The maximum vacancy of driver is reached. Need to upgrade the Agency!");
    for(int i = 0; i < driver_db.size(); i++){
        if(driver_db[i] == uuid){
            throw invalid_argument("User with the UUID already exist.");
        }
        if(driver_db[i] > uuid){
            Driver new_driver(firstname, lastname, uuid, dln, status);
            driver_db.insert(driver_db.begin() + i, new_driver);
            return;
        }
    };
    Driver new_driver(firstname, lastname, uuid, dln, status);
    driver_db.push_back(new_driver);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rcx, %r13
movq %rdx, -0x50(%rbp)
movq %rsi, -0x48(%rbp)
movq %rdi, %r14
movq 0x18(%rdi), %rdi
movq 0x20(%r14), %rax
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x3, %rcx
movabsq $-0xf0f0f0f0f0f0f0f, %r12 # imm = 0xF0F0F0F0F0F0F0F1
imulq %r12, %rcx
movslq 0x84(%r14), %rdx
incq %rdx
cmpq %rdx, %rcx
je 0x14ef3
movq %r8, -0x40(%rbp)
movl %r9d, -0x34(%rbp)
leaq 0x18(%r14), %rcx
movq %rcx, -0x30(%rbp)
cmpq %rdi, %rax
je 0x14c38
xorl %r15d, %r15d
xorl %ebx, %ebx
addq %r15, %rdi
movq %r13, %rsi
callq 0xfd92
testb %al, %al
jne 0x14ec1
movq -0x30(%rbp), %rax
movq (%rax), %rdi
addq %r15, %rdi
movq %r13, %rsi
callq 0xfd76
testb %al, %al
jne 0x14d40
incq %rbx
movq 0x18(%r14), %rdi
movq 0x20(%r14), %rax
subq %rdi, %rax
sarq $0x3, %rax
imulq %r12, %rax
addq $0x88, %r15
cmpq %rbx, %rax
ja 0x14be9
leaq -0xc0(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x48(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xd0(%rbp), %rdi
callq 0xf492
leaq -0xa0(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0xf492
leaq -0x80(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0xf492
leaq -0x60(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0xf492
leaq -0x1d8(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0x70(%rbp), %r8
movl -0x34(%rbp), %r9d
callq 0xfe38
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x14cf8
callq 0x4280
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x14d09
callq 0x4280
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0x14d1a
callq 0x4280
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x14d2b
callq 0x4280
leaq -0x1d8(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x17818
jmp 0x14e5b
leaq -0x140(%rbp), %rax
movq %rax, %rbx
movq %rax, -0x10(%rax)
movq -0x48(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x150(%rbp), %rdi
callq 0xf492
leaq -0x120(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x130(%rbp), %rdi
callq 0xf492
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0xf492
leaq -0xe0(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xf0(%rbp), %rdi
callq 0xf492
leaq -0x1d8(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x130(%rbp), %rdx
leaq -0x110(%rbp), %rcx
leaq -0xf0(%rbp), %r8
movl -0x34(%rbp), %r9d
callq 0xfe38
movq -0xf0(%rbp), %rdi
cmpq %r13, %rdi
je 0x14e12
callq 0x4280
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x14e23
callq 0x4280
movq -0x130(%rbp), %rdi
cmpq %r12, %rdi
je 0x14e34
callq 0x4280
movq -0x150(%rbp), %rdi
cmpq %rbx, %rdi
je 0x14e45
callq 0x4280
movq -0x30(%rbp), %rdi
addq (%rdi), %r15
leaq -0x1d8(%rbp), %rdx
movq %r15, %rsi
callq 0x1792a
leaq -0x168(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14e70
callq 0x4280
leaq -0x188(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14e85
callq 0x4280
leaq -0x1a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14e9a
callq 0x4280
leaq -0x1c8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14eaf
callq 0x4280
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x6aa4(%rip), %rsi      # 0x1b979
movq %rax, %rdi
callq 0x44d0
movq 0xe0d4(%rip), %rsi      # 0x22fb8
movq 0xe0ad(%rip), %rdx      # 0x22f98
movq %r14, %rdi
callq 0x4440
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x6b06(%rip), %rsi      # 0x1ba0d
movq %rax, %rdi
callq 0x4450
movq 0xe08a(%rip), %rsi      # 0x22fa0
movq 0xe04b(%rip), %rdx      # 0x22f68
jmp 0x14eeb
jmp 0x14f7a
movq %rax, -0x30(%rbp)
movq -0xf0(%rbp), %rdi
cmpq %r13, %rdi
je 0x14f3c
callq 0x4280
jmp 0x14f3c
movq %rax, -0x30(%rbp)
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x14f53
callq 0x4280
jmp 0x14f53
movq %rax, -0x30(%rbp)
movq -0x130(%rbp), %rdi
cmpq %r12, %rdi
je 0x14f6a
callq 0x4280
jmp 0x14f6a
movq %rax, -0x30(%rbp)
movq -0x150(%rbp), %rdi
cmpq %rbx, %rdi
jne 0x14fde
jmp 0x14ff1
jmp 0x14fe5
movq %rax, -0x30(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x177be
jmp 0x14ff1
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x14fa4
callq 0x4280
jmp 0x14fa4
movq %rax, -0x30(%rbp)
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x14fbb
callq 0x4280
jmp 0x14fbb
movq %rax, -0x30(%rbp)
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0x14fd2
callq 0x4280
jmp 0x14fd2
movq %rax, -0x30(%rbp)
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x14ff1
callq 0x4280
jmp 0x14ff1
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x4220
movq -0x30(%rbp), %rdi
callq 0x4490