// File: mahdibohloul[P]SnapTrip/./Models/Hotel.cpp
// Function: Database::Hotel::get_map_of_rooms_price() const
map<int, long double> Database::Hotel::get_map_of_rooms_price() const
{
    map<int, long double> map_of_price;
    map_of_price.insert(make_pair(Room::Room_Class::Standard, 0));
    map_of_price.insert(make_pair(Room::Room_Class::Deluxe, 0));
    map_of_price.insert(make_pair(Room::Room_Class::Luxury, 0));
    map_of_price.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;
        long double price = (*room_itr)->price;
        map_of_price[type] = price;
    }
    return map_of_price;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x100(%rbp)
movq %rdi, %rax
movq %rax, -0xf8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xf0(%rbp)
movb $0x0, -0x11(%rbp)
callq 0x5b060
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0xe8(%rbp)
jmp 0x595bc
movq -0x100(%rbp), %rdi
movq -0xe8(%rbp), %rax
movq %rax, -0x1c(%rbp)
leaq -0x1c(%rbp), %rsi
callq 0x5b080
movb %dl, -0x109(%rbp)
movq %rax, -0x108(%rbp)
jmp 0x595e6
movb -0x109(%rbp), %al
movq -0x108(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movb %al, -0x40(%rbp)
movl $0x1, -0x54(%rbp)
movl $0x0, -0x58(%rbp)
leaq -0x54(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0x118(%rbp)
jmp 0x5961e
movq -0x100(%rbp), %rdi
movq -0x118(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rsi
callq 0x5b080
movb %dl, -0x121(%rbp)
movq %rax, -0x120(%rbp)
jmp 0x59648
movb -0x121(%rbp), %al
movq -0x120(%rbp), %rcx
movq %rcx, -0x68(%rbp)
movb %al, -0x60(%rbp)
movl $0x2, -0x74(%rbp)
movl $0x0, -0x78(%rbp)
leaq -0x74(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0x130(%rbp)
jmp 0x59680
movq -0x100(%rbp), %rdi
movq -0x130(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rsi
callq 0x5b080
movb %dl, -0x139(%rbp)
movq %rax, -0x138(%rbp)
jmp 0x596aa
movb -0x139(%rbp), %al
movq -0x138(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movb %al, -0x80(%rbp)
movl $0x3, -0x94(%rbp)
movl $0x0, -0x98(%rbp)
leaq -0x94(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x5b0c0
movq %rax, -0x148(%rbp)
jmp 0x596f1
movq -0x100(%rbp), %rdi
movq -0x148(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rsi
callq 0x5b080
movb %dl, -0x151(%rbp)
movq %rax, -0x150(%rbp)
jmp 0x59721
movq -0xf0(%rbp), %rdi
movb -0x151(%rbp), %al
movq -0x150(%rbp), %rcx
movq %rcx, -0xa8(%rbp)
movb %al, -0xa0(%rbp)
addq $0xe0, %rdi
callq 0x56ef0
movq %rax, -0xb0(%rbp)
movq -0xf0(%rbp), %rdi
addq $0xe0, %rdi
callq 0x56f20
movq %rax, -0xb8(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x5a890
testb $0x1, %al
jne 0x5978b
jmp 0x59839
leaq -0xb0(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x5a8d0
movq -0x178(%rbp), %rdi
movq (%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0xbc(%rbp)
callq 0x5a8d0
movq -0x100(%rbp), %rdi
movq (%rax), %rax
fldt 0x10(%rax)
fstpt -0xd0(%rbp)
fldt -0xd0(%rbp)
fstpt -0x16c(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, -0xd4(%rbp)
leaq -0xd4(%rbp), %rsi
callq 0x5b0f0
movq %rax, -0x160(%rbp)
jmp 0x597f6
movq -0x160(%rbp), %rax
fldt -0x16c(%rbp)
fstpt (%rax)
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
callq 0x5a8f0
movq %rax, -0xe0(%rbp)
jmp 0x59755
movq -0x100(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x5b1d0
jmp 0x5985f
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x5984f
movq -0x100(%rbp), %rdi
callq 0x5b1d0
movq -0xf8(%rbp), %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x6750
nopl (%rax,%rax)