// File: mahdibohloul[P]SnapTrip/./Business-Logic/Backend.cpp
// Function: Backend::delete_reserve(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
void Backend::delete_reserve(data_t data)
{
    if(!data.empty())
    {
        check_question_mark(data);
        check_access(ConstNames::Online_Mode);
        string str_id = find_info(ConstNames::ID, data);
        if(str_id == ConstNames::Empty_Str)
            throw Exception(ConstNames::Bad_Request_msg);
        int id = stoi(str_id);
        object_relational->delete_reserve(*online_users.begin(), id);
        responding(ConstNames::OK_msg);
    }
    else
        throw Exception(ConstNames::Bad_Request_msg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rsi, -0xd0(%rbp)
movq %rdi, %rax
movq -0xd0(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc0(%rbp)
callq 0x80940
testb $0x1, %al
jne 0x7f51e
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdi
callq 0x79140
movq -0xc0(%rbp), %rdi
leaq 0x9888c(%rip), %rsi     # 0x117c00
callq 0x79240
movq -0xc0(%rbp), %rsi
movq -0xc8(%rbp), %rcx
leaq -0x30(%rbp), %rdi
leaq 0x9830e(%rip), %rdx     # 0x1176a0
callq 0x7bad0
leaq -0x30(%rbp), %rdi
leaq 0x97dfe(%rip), %rsi     # 0x1171a0
callq 0x55080
testb $0x1, %al
jne 0x7f3b0
jmp 0x7f448
movb $0x1, -0x5d(%rbp)
movl $0x28, %edi
callq 0x6210
movq %rax, -0xd8(%rbp)
leaq 0x97fb4(%rip), %rsi     # 0x117380
leaq -0x50(%rbp), %rdi
callq 0x61d0
jmp 0x7f3d7
movq -0xd8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xabc90
jmp 0x7f3e9
movq -0xd8(%rbp), %rdi
movb $0x0, -0x5d(%rbp)
leaq 0x8886d(%rip), %rsi     # 0x107c68
leaq 0x2c8fe(%rip), %rdx     # 0xabd00
callq 0x6710
jmp 0x7f5d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7f42f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x6828
testb $0x1, -0x5d(%rbp)
jne 0x7f437
jmp 0x7f443
movq -0xd8(%rbp), %rdi
callq 0x6360
jmp 0x7f510
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
movl $0xa, %edx
callq 0x74d10
movl %eax, -0xdc(%rbp)
jmp 0x7f462
movq -0xc0(%rbp), %rdi
movl -0xdc(%rbp), %eax
movl %eax, -0x64(%rbp)
movq (%rdi), %rax
movq %rax, -0xe8(%rbp)
addq $0x8, %rdi
callq 0x54d40
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x54dd0
movq -0xe8(%rbp), %rdi
movq (%rax), %rsi
movl -0x64(%rbp), %edx
callq 0x744c0
jmp 0x7f4a6
leaq 0x97fb3(%rip), %rsi     # 0x117460
leaq -0x90(%rbp), %rdi
callq 0x61d0
jmp 0x7f4bb
movq -0xc0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x7a5e0
jmp 0x7f4d0
leaq -0x90(%rbp), %rdi
callq 0x6828
leaq -0x30(%rbp), %rdi
callq 0x6828
jmp 0x7f5c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7f510
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x6828
leaq -0x30(%rbp), %rdi
callq 0x6828
jmp 0x7f5cb
movb $0x1, -0xb1(%rbp)
movl $0x28, %edi
callq 0x6210
movq %rax, -0xf0(%rbp)
leaq 0x97e43(%rip), %rsi     # 0x117380
leaq -0xb0(%rbp), %rdi
callq 0x61d0
jmp 0x7f54b
movq -0xf0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xabc90
jmp 0x7f560
movq -0xf0(%rbp), %rdi
movb $0x0, -0xb1(%rbp)
leaq 0x886f3(%rip), %rsi     # 0x107c68
leaq 0x2c784(%rip), %rdx     # 0xabd00
callq 0x6710
jmp 0x7f5d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7f5a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x6828
testb $0x1, -0xb1(%rbp)
jne 0x7f5b4
jmp 0x7f5c0
movq -0xf0(%rbp), %rdi
callq 0x6360
jmp 0x7f5cb
addq $0xf0, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x6750
nopw %cs:(%rax,%rax)