// File: mahdibohloul[P]SnapTrip/./Business-Logic/Backend.cpp
// Function: Backend::post_comment(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::post_comment(data_t data)
{
    if(!data.empty())
    {
        check_question_mark(data);
        check_access(ConstNames::Online_Mode);
        string hotel_id = find_info(ConstNames::Hotel, data);
        string comment = find_info(ConstNames::Comment, data);
        object_relational->post_comment(*online_users.begin(), hotel_id, comment);
        responding(ConstNames::OK_msg);
    }
    else
        throw Exception(ConstNames::Bad_Request_msg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rsi, -0x108(%rbp)
movq %rdi, %rax
movq -0x108(%rbp), %rdi
movq %rdi, -0x100(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
callq 0x80940
testb $0x1, %al
jne 0x7ba13
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdi
callq 0x79140
movq -0xf8(%rbp), %rdi
leaq 0x9c38c(%rip), %rsi     # 0x117c00
callq 0x79240
movq -0xf8(%rbp), %rsi
movq -0x100(%rbp), %rcx
leaq 0x9c1d2(%rip), %rdx     # 0x117a60
leaq -0x30(%rbp), %rdi
callq 0x7bad0
movq -0xf8(%rbp), %rsi
movq -0x100(%rbp), %rcx
leaq 0x9c1d4(%rip), %rdx     # 0x117a80
leaq -0x50(%rbp), %rdi
callq 0x7bad0
jmp 0x7b8b7
movq -0xf8(%rbp), %rdi
movq (%rdi), %rax
movq %rax, -0x118(%rbp)
addq $0x8, %rdi
callq 0x54d40
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x54dd0
movq (%rax), %rax
movq %rax, -0x110(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x61d0
jmp 0x7b8fa
leaq -0xa8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x61d0
jmp 0x7b90c
movq -0x110(%rbp), %rsi
movq -0x118(%rbp), %rdi
leaq -0x88(%rbp), %rdx
leaq -0xa8(%rbp), %rcx
callq 0x744f0
jmp 0x7b92f
leaq -0xa8(%rbp), %rdi
callq 0x6828
leaq -0x88(%rbp), %rdi
callq 0x6828
leaq 0x9bb12(%rip), %rsi     # 0x117460
leaq -0xc8(%rbp), %rdi
callq 0x61d0
jmp 0x7b95c
movq -0xf8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x7a5e0
jmp 0x7b971
leaq -0xc8(%rbp), %rdi
callq 0x6828
leaq -0x50(%rbp), %rdi
callq 0x6828
leaq -0x30(%rbp), %rdi
callq 0x6828
jmp 0x7bab7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7ba05
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7b9fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7b9d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x6828
leaq -0x88(%rbp), %rdi
callq 0x6828
jmp 0x7b9fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x6828
leaq -0x50(%rbp), %rdi
callq 0x6828
leaq -0x30(%rbp), %rdi
callq 0x6828
jmp 0x7bac0
movb $0x1, -0xe9(%rbp)
movl $0x28, %edi
callq 0x6210
movq %rax, -0x120(%rbp)
leaq 0x9b94e(%rip), %rsi     # 0x117380
leaq -0xe8(%rbp), %rdi
callq 0x61d0
jmp 0x7ba40
movq -0x120(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0xabc90
jmp 0x7ba55
movq -0x120(%rbp), %rdi
movb $0x0, -0xe9(%rbp)
leaq 0x8c1fe(%rip), %rsi     # 0x107c68
leaq 0x3028f(%rip), %rdx     # 0xabd00
callq 0x6710
jmp 0x7bac9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7ba9e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x6828
testb $0x1, -0xe9(%rbp)
jne 0x7baa9
jmp 0x7bab5
movq -0x120(%rbp), %rdi
callq 0x6360
jmp 0x7bac0
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x6750
nopl (%rax)