// File: Unreality3D[P]Unreality3D/indie-studio/source/MapGenerator/MapGenerator.cpp
// Function: Map::draw_rooms_pattern()
void		Map::draw_rooms_pattern()
{
  for(int i = 0; i < _rooms.size();i++)
    {
      if (_rooms[i]._size.y > _rooms[i]._size.x && _rooms[i]._size.y >= 12 && _rooms[i]._size.x >= 6)
	rand() % 100 > 50 ? _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'H' : _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'T';
      else if (_rooms[i]._size.y > _rooms[i]._size.x && _rooms[i]._size.y >= 6 && _rooms[i]._size.x >= 5)
	rand() % 100 > 50 ? _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'h' : _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 't';
      else if (_rooms[i]._size.y < _rooms[i]._size.x && _rooms[i]._size.x >= 12 && _rooms[i]._size.x >= 6)
	(rand() % 100) > 50 ? _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'B' : _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'G';
     else if (_rooms[i]._size.y < _rooms[i]._size.x && _rooms[i]._size.x >= 6 && _rooms[i]._size.x >= 5)
       (rand() % 100) > 50 ? _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'b' : _map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'g';
     else if (_rooms[i]._size.y == _rooms[i]._size.x
	      && (_rooms[i]._size.x >= 5 && _rooms[i]._size.y >= 5)
	      && (_rooms[i]._size.x <= 7 && _rooms[i]._size.y <= 7))
	_map[(_rooms[i]._size.y / 2) + _rooms[i]._pos.y + 2][(_rooms[i]._size.x / 2) + _rooms[i]._pos.x + 2] = 'C';
    }
}

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movq %rdi, 0x140(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0x130(%rsp)
movl $0x0, 0x13c(%rsp)
movq 0x130(%rsp), %rdi
movslq 0x13c(%rsp), %rax
movq %rax, 0x128(%rsp)
addq $0x40, %rdi
callq 0x6360
movq %rax, %rcx
movq 0x128(%rsp), %rax
cmpq %rcx, %rax
jae 0x98f1
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl %eax, 0x124(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq %rax, %rcx
movl 0x124(%rsp), %eax
cmpl 0x8(%rcx), %eax
jle 0x9016
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0xc, 0xc(%rax)
jl 0x9016
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x6, 0x8(%rax)
jl 0x9016
callq 0x60f0
movl $0x64, %ecx
cltd
idivl %ecx
cmpl $0x32, %edx
jle 0x8f30
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0x108(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x114(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x108(%rsp), %rdi
movq %rax, %rcx
movl 0x114(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0x118(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x120(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x118(%rsp), %rdi
movq %rax, %rcx
movl 0x120(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x48, (%rax)
jmp 0x9011
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0xe8(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0xf4(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0xe8(%rsp), %rdi
movq %rax, %rcx
movl 0xf4(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0xf8(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x104(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0xf8(%rsp), %rdi
movq %rax, %rcx
movl 0x104(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x54, (%rax)
jmp 0x98d9
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl %eax, 0xe4(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq %rax, %rcx
movl 0xe4(%rsp), %eax
cmpl 0x8(%rcx), %eax
jle 0x928d
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x6, 0xc(%rax)
jl 0x928d
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x5, 0x8(%rax)
jl 0x928d
callq 0x60f0
movl $0x64, %ecx
cltd
idivl %ecx
cmpl $0x32, %edx
jle 0x91a7
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0xc8(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0xd4(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0xc8(%rsp), %rdi
movq %rax, %rcx
movl 0xd4(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0xd8(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0xe0(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0xd8(%rsp), %rdi
movq %rax, %rcx
movl 0xe0(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x68, (%rax)
jmp 0x9288
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0xa8(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0xb4(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0xa8(%rsp), %rdi
movq %rax, %rcx
movl 0xb4(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0xb8(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0xc4(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0xb8(%rsp), %rdi
movq %rax, %rcx
movl 0xc4(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x74, (%rax)
jmp 0x98d7
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl %eax, 0xa4(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq %rax, %rcx
movl 0xa4(%rsp), %eax
cmpl 0x8(%rcx), %eax
jge 0x94f2
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0xc, 0x8(%rax)
jl 0x94f2
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x6, 0x8(%rax)
jl 0x94f2
callq 0x60f0
movl $0x64, %ecx
cltd
idivl %ecx
cmpl $0x32, %edx
jle 0x941e
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0x88(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x94(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x88(%rsp), %rdi
movq %rax, %rcx
movl 0x94(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0x98(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0xa0(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x98(%rsp), %rdi
movq %rax, %rcx
movl 0xa0(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x42, (%rax)
jmp 0x94ed
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0x68(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x74(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x68(%rsp), %rdi
movq %rax, %rcx
movl 0x74(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0x78(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x84(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x78(%rsp), %rdi
movq %rax, %rcx
movl 0x84(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x47, (%rax)
jmp 0x98d5
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl %eax, 0x64(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq %rax, %rcx
movl 0x64(%rsp), %eax
cmpl 0x8(%rcx), %eax
jge 0x9733
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x6, 0x8(%rax)
jl 0x9733
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x5, 0x8(%rax)
jl 0x9733
callq 0x60f0
movl $0x64, %ecx
cltd
idivl %ecx
cmpl $0x32, %edx
jle 0x9665
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0x48(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x54(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x48(%rsp), %rdi
movq %rax, %rcx
movl 0x54(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0x58(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x60(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x58(%rsp), %rdi
movq %rax, %rcx
movl 0x60(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x62, (%rax)
jmp 0x972e
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0x28(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x34(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl 0x34(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0x38(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x44(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x38(%rsp), %rdi
movq %rax, %rcx
movl 0x44(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x67, (%rax)
jmp 0x98d3
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl %eax, 0x24(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq %rax, %rcx
movl 0x24(%rsp), %eax
cmpl 0x8(%rcx), %eax
jne 0x98d1
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x5, 0x8(%rax)
jl 0x98d1
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x5, 0xc(%rax)
jl 0x98d1
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x7, 0x8(%rax)
jg 0x98d1
movq 0x130(%rsp), %rdi
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
cmpl $0x7, 0xc(%rax)
jg 0x98d1
movq 0x130(%rsp), %rdi
movq %rdi, %rax
addq $0x58, %rax
movq %rax, 0x8(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x14(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl 0x14(%rsp), %eax
addl 0x4(%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6a90
movq 0x130(%rsp), %rdi
movq %rax, 0x18(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x130(%rsp), %rdi
movl 0x8(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x20(%rsp)
addq $0x40, %rdi
movslq 0x13c(%rsp), %rsi
callq 0x6a30
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl 0x20(%rsp), %eax
addl (%rcx), %eax
addl $0x2, %eax
movslq %eax, %rsi
callq 0x6b10
movb $0x43, (%rax)
jmp 0x98d3
jmp 0x98d5
jmp 0x98d7
jmp 0x98d9
jmp 0x98db
movl 0x13c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x13c(%rsp)
jmp 0x8d6a
addq $0x148, %rsp            # imm = 0x148
retq
nopl (%rax)