// File: /workspace/github_cpp_makefile_star2_O1/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
movl %r9d, -0x2c(%rbp)
movq %r8, -0x40(%rbp)
movq %rcx, %r12
movq %rdx, -0x50(%rbp)
movq %rsi, -0x48(%rbp)
movq 0x20(%rdi), %rax
subq 0x18(%rdi), %rax
sarq $0x3, %rax
movabsq $-0xf0f0f0f0f0f0f0f, %rcx # imm = 0xF0F0F0F0F0F0F0F1
imulq %rcx, %rax
movslq 0x84(%rdi), %rcx
incq %rcx
cmpq %rcx, %rax
je 0x150c1
movq %rdi, %r13
leaq 0x18(%rdi), %rax
movq %rax, -0x38(%rbp)
movq 0x18(%rdi), %rdi
cmpq %rdi, 0x20(%r13)
setne %r14b
je 0x14f17
xorl %r15d, %r15d
xorl %ebx, %ebx
addq %r15, %rdi
movq %r12, %rsi
callq 0xfe0c
testb %al, %al
jne 0x1508f
movq -0x38(%rbp), %rax
movq (%rax), %rdi
addq %r15, %rdi
movq %r12, %rsi
callq 0xfdf0
testb %al, %al
jne 0x14da8
incq %rbx
movq 0x18(%r13), %rdi
movq 0x20(%r13), %rax
subq %rdi, %rax
sarq $0x3, %rax
movabsq $-0xf0f0f0f0f0f0f0f, %rcx # imm = 0xF0F0F0F0F0F0F0F1
imulq %rcx, %rax
addq $0x88, %r15
cmpq %rbx, %rax
seta %r14b
ja 0x14d4a
jmp 0x14f17
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x48(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0xf530
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0xf530
leaq -0x140(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq -0x150(%rbp), %rdi
callq 0xf530
leaq -0x120(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x130(%rbp), %rdi
callq 0xf530
leaq -0x1d8(%rbp), %rdi
leaq -0x90(%rbp), %rsi
leaq -0x70(%rbp), %rdx
leaq -0x150(%rbp), %rcx
leaq -0x130(%rbp), %r8
movl -0x2c(%rbp), %r9d
callq 0xfeb0
movq -0x130(%rbp), %rdi
cmpq %rbx, %rdi
je 0x14e6b
callq 0x4280
movq -0x150(%rbp), %rdi
cmpq %r13, %rdi
leaq -0x80(%rbp), %rbx
je 0x14e80
callq 0x4280
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x14e92
callq 0x4280
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x14ea3
callq 0x4280
movq -0x38(%rbp), %rdi
addq (%rdi), %r15
leaq -0x1d8(%rbp), %rdx
movq %r15, %rsi
callq 0x17b04
leaq -0x168(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14ece
callq 0x4280
leaq -0x188(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14ee3
callq 0x4280
leaq -0x1a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14ef8
callq 0x4280
leaq -0x1c8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14f0d
callq 0x4280
testb $0x1, %r14b
jne 0x1507d
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x48(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0xf530
leaq -0xe0(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xf0(%rbp), %rdi
callq 0xf530
leaq -0xc0(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq -0xd0(%rbp), %rdi
callq 0xf530
leaq -0xa0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0xf530
leaq -0x1d8(%rbp), %rdi
leaq -0x110(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
leaq -0xd0(%rbp), %rcx
leaq -0xb0(%rbp), %r8
movl -0x2c(%rbp), %r9d
callq 0xfeb0
movq -0xb0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x14fe6
callq 0x4280
movq -0xd0(%rbp), %rdi
cmpq %r13, %rdi
je 0x14ff7
callq 0x4280
movq -0xf0(%rbp), %rdi
cmpq %r15, %rdi
je 0x15008
callq 0x4280
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x15019
callq 0x4280
leaq -0x1d8(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x179f2
leaq -0x168(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1503e
callq 0x4280
leaq -0x188(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15053
callq 0x4280
leaq -0x1a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15068
callq 0x4280
leaq -0x1c8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1507d
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 0x68d6(%rip), %rsi      # 0x1b979
movq %rax, %rdi
callq 0x44d0
movq 0xdf06(%rip), %rsi      # 0x22fb8
movq 0xdedf(%rip), %rdx      # 0x22f98
movq %r14, %rdi
callq 0x4440
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x6938(%rip), %rsi      # 0x1ba0d
movq %rax, %rdi
callq 0x4450
movq 0xdebc(%rip), %rsi      # 0x22fa0
movq 0xde7d(%rip), %rdx      # 0x22f68
jmp 0x150b9
jmp 0x15149
movq %rax, %r12
movq -0x130(%rbp), %rdi
cmpq %rbx, %rdi
je 0x15108
callq 0x4280
jmp 0x15108
movq %rax, %r12
movq -0x150(%rbp), %rdi
cmpq %r13, %rdi
je 0x1511e
callq 0x4280
jmp 0x1511e
movq %rax, %r12
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x15135
callq 0x4280
jmp 0x15135
movq %rax, %r12
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
jne 0x151ab
jmp 0x151bd
jmp 0x151b2
movq %rax, %r12
leaq -0x1d8(%rbp), %rdi
callq 0x17998
jmp 0x151bd
movq %rax, %r12
movq -0xb0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x15173
callq 0x4280
jmp 0x15173
movq %rax, %r12
movq -0xd0(%rbp), %rdi
cmpq %r13, %rdi
je 0x15189
callq 0x4280
jmp 0x15189
movq %rax, %r12
movq -0xf0(%rbp), %rdi
cmpq %r15, %rdi
je 0x1519f
callq 0x4280
jmp 0x1519f
movq %rax, %r12
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x151bd
callq 0x4280
jmp 0x151bd
movq %rax, %r12
movq %r14, %rdi
callq 0x4220
movq %r12, %rdi
callq 0x4490
nop