// File: mahdibohloul[P]SnapTrip/./Models/Hotel.cpp
// Function: Database::Hotel::get_num_of_rooms[abi:cxx11]()
info_t Database::Hotel::get_num_of_rooms()
{
    map<Room::Room_Class, int> map_of_rooms;
    map_of_rooms.insert(make_pair(Room::Room_Class::Standard, 0));
    map_of_rooms.insert(make_pair(Room::Room_Class::Deluxe, 0));
    map_of_rooms.insert(make_pair(Room::Room_Class::Luxury, 0));
    map_of_rooms.insert(make_pair(Room::Room_Class::Premium, 0));

    for(auto room_itr = rooms.begin(); room_itr != rooms.end(); room_itr++)
    {
        Room::Room_Class type = (*room_itr)->type;
        map_of_rooms[type]++;
    }

    ostringstream os;
    os << map_of_rooms[Room::Room_Class::Standard] << ConstNames::Space << map_of_rooms[Room::Room_Class::Deluxe] << ConstNames::Space << map_of_rooms[Room::Room_Class::Luxury] << ConstNames::Space << map_of_rooms[Room::Room_Class::Premium];
    return os.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x350, %rsp            # imm = 0x350
movq %rdi, -0x298(%rbp)
movq %rdi, %rax
movq %rax, -0x290(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x288(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x5b1f0
movl $0x0, -0x4c(%rbp)
movl $0x0, -0x50(%rbp)
leaq -0x4c(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0x280(%rbp)
jmp 0x59aec
movq -0x280(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x5b210
movb %dl, -0x2a1(%rbp)
movq %rax, -0x2a0(%rbp)
jmp 0x59b13
movb -0x2a1(%rbp), %al
movq -0x2a0(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movb %al, -0x68(%rbp)
movl $0x1, -0x7c(%rbp)
movl $0x0, -0x80(%rbp)
leaq -0x7c(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0x2b0(%rbp)
jmp 0x59b4b
movq -0x2b0(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x5b210
movb %dl, -0x2b9(%rbp)
movq %rax, -0x2b8(%rbp)
jmp 0x59b72
movb -0x2b9(%rbp), %al
movq -0x2b8(%rbp), %rcx
movq %rcx, -0x90(%rbp)
movb %al, -0x88(%rbp)
movl $0x2, -0x9c(%rbp)
movl $0x0, -0xa0(%rbp)
leaq -0x9c(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0x2c8(%rbp)
jmp 0x59bbc
movq -0x2c8(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x5b210
movb %dl, -0x2d1(%rbp)
movq %rax, -0x2d0(%rbp)
jmp 0x59be9
movb -0x2d1(%rbp), %al
movq -0x2d0(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
movb %al, -0xa8(%rbp)
movl $0x3, -0xbc(%rbp)
movl $0x0, -0xc0(%rbp)
leaq -0xbc(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0x2e0(%rbp)
jmp 0x59c33
movq -0x2e0(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x5b210
movb %dl, -0x2e9(%rbp)
movq %rax, -0x2e8(%rbp)
jmp 0x59c60
movq -0x288(%rbp), %rdi
movb -0x2e9(%rbp), %al
movq -0x2e8(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
movb %al, -0xc8(%rbp)
addq $0xe0, %rdi
callq 0x5a930
movq %rax, -0xd8(%rbp)
movq -0x288(%rbp), %rdi
addq $0xe0, %rdi
callq 0x5a9a0
movq %rax, -0xe0(%rbp)
leaq -0xd8(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x5a960
testb $0x1, %al
jne 0x59cc7
jmp 0x59d31
leaq -0xd8(%rbp), %rdi
callq 0x5a9d0
movq (%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0xe4(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0xe4(%rbp), %rsi
callq 0x5b250
movq %rax, -0x2f8(%rbp)
jmp 0x59cf8
movq -0x2f8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
callq 0x5aa60
movq %rax, -0xf0(%rbp)
jmp 0x59c94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x59edc
leaq -0x268(%rbp), %rdi
callq 0x65b0
jmp 0x59d3f
movl $0x0, -0x26c(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x26c(%rbp), %rsi
callq 0x5b330
movq %rax, -0x300(%rbp)
jmp 0x59d62
movq -0x300(%rbp), %rax
movl (%rax), %esi
leaq -0x268(%rbp), %rdi
callq 0x6730
movq %rax, -0x308(%rbp)
jmp 0x59d80
movq -0x308(%rbp), %rdi
movl $0x20, %esi
callq 0x6520
movq %rax, -0x310(%rbp)
jmp 0x59d9a
movl $0x1, -0x270(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x5b330
movq %rax, -0x318(%rbp)
jmp 0x59dbd
movq -0x310(%rbp), %rdi
movq -0x318(%rbp), %rax
movl (%rax), %esi
callq 0x6730
movq %rax, -0x320(%rbp)
jmp 0x59ddb
movq -0x320(%rbp), %rdi
movl $0x20, %esi
callq 0x6520
movq %rax, -0x328(%rbp)
jmp 0x59df5
movl $0x2, -0x274(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x274(%rbp), %rsi
callq 0x5b330
movq %rax, -0x330(%rbp)
jmp 0x59e18
movq -0x328(%rbp), %rdi
movq -0x330(%rbp), %rax
movl (%rax), %esi
callq 0x6730
movq %rax, -0x338(%rbp)
jmp 0x59e36
movq -0x338(%rbp), %rdi
movl $0x20, %esi
callq 0x6520
movq %rax, -0x340(%rbp)
jmp 0x59e50
movl $0x3, -0x278(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x5b330
movq %rax, -0x348(%rbp)
jmp 0x59e73
movq -0x340(%rbp), %rdi
movq -0x348(%rbp), %rax
movl (%rax), %esi
callq 0x6730
jmp 0x59e8a
movq -0x298(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x6460
jmp 0x59e9f
leaq -0x268(%rbp), %rdi
callq 0x60f0
leaq -0x40(%rbp), %rdi
callq 0x5b410
movq -0x290(%rbp), %rax
addq $0x350, %rsp            # imm = 0x350
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x60f0
leaq -0x40(%rbp), %rdi
callq 0x5b410
movq -0x58(%rbp), %rdi
callq 0x6750
nop