// File: mahdibohloul[P]SnapTrip/./ORM/ObjectRelational.cpp
// Function: ObjectRelational::rating_db_setup(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 ObjectRelational::rating_db_setup(Backend::data_t data)
{
    auto hotel_id = data[DR_Id];
    auto hotel = database->get_hotels(hotel_id);
    auto rating_info = Database::Hotel::RatingInfo();
    rating_info.hotel_id = hotel_id;
    rating_info.location = stold(data[DR_Location]);
    rating_info.cleanliness = stold(data[DR_Cleanliness]);
    rating_info.staff = stold(data[DR_Staff]);
    rating_info.facilities = stold(data[DR_Facilities]);
    rating_info.value_for_money = stold(data[DR_Value]);
    rating_info.overall_rating = stold(data[DR_Overall]);
    hotel->set_default_rating_info(rating_info);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rsi, -0x128(%rbp)
movq %rdi, %rax
movq -0x128(%rbp), %rdi
movq %rdi, -0x120(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x118(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x74cb0
movq %rax, %rsi
leaq -0x30(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x61d0
movq -0x118(%rbp), %rax
movq -0x110(%rbp), %rsi
movq (%rax), %rax
movq %rax, -0x108(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x61d0
jmp 0x739c5
movq -0x108(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x54440
movq %rax, -0x130(%rbp)
jmp 0x739de
leaq -0x58(%rbp), %rdi
callq 0x6828
movq -0x130(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x57fb0
jmp 0x73a00
leaq -0x100(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x6060
jmp 0x73a12
movq -0x120(%rbp), %rdi
movl $0x1, %esi
callq 0x74cb0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x74cd0
fstpt -0x13c(%rbp)
jmp 0x73a37
movq -0x120(%rbp), %rdi
fldt -0x13c(%rbp)
fstpt -0xe0(%rbp)
movl $0x2, %esi
callq 0x74cb0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x74cd0
fstpt -0x148(%rbp)
jmp 0x73a68
movq -0x120(%rbp), %rdi
fldt -0x148(%rbp)
fstpt -0xd0(%rbp)
movl $0x3, %esi
callq 0x74cb0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x74cd0
fstpt -0x154(%rbp)
jmp 0x73a99
movq -0x120(%rbp), %rdi
fldt -0x154(%rbp)
fstpt -0xc0(%rbp)
movl $0x4, %esi
callq 0x74cb0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x74cd0
fstpt -0x160(%rbp)
jmp 0x73aca
movq -0x120(%rbp), %rdi
fldt -0x160(%rbp)
fstpt -0xb0(%rbp)
movl $0x5, %esi
callq 0x74cb0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x74cd0
fstpt -0x16c(%rbp)
jmp 0x73afb
movq -0x120(%rbp), %rdi
fldt -0x16c(%rbp)
fstpt -0xa0(%rbp)
movl $0x6, %esi
callq 0x74cb0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x74cd0
fstpt -0x178(%rbp)
jmp 0x73b2c
fldt -0x178(%rbp)
fstpt -0x90(%rbp)
movq -0x38(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x589b0
jmp 0x73b4a
leaq -0x100(%rbp), %rdi
callq 0x5a6b0
leaq -0x30(%rbp), %rdi
callq 0x6828
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x73ba5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x6828
jmp 0x73ba5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x5a6b0
leaq -0x30(%rbp), %rdi
callq 0x6828
movq -0x60(%rbp), %rdi
callq 0x6750
nopw (%rax,%rax)