// File: Unreality3D[P]Unreality3D/indie-studio/source/MapGenerator/MapGenerator.cpp
// Function: Map::add_misc()
void			Map::add_misc()
{
  for (size_t i = 1;i < _map.size() - 1;i++)
    {
      for (size_t x = 1;x < _map[i].length()- 1;x++)
  	{
	  if ((_map[i][x] == ' ' && _map[i][x - 1] == '|' && _map[i][x + 1] == ' ')
	      || (_map[i][x] == ' ' && _map[i][x + 1] == '|' && _map[i][x - 1] == ' ')
	      || (_map[i][x] == ' ' && _map[i + 1][x] == '-' && _map[i - 1][x] == ' ')
	      || (_map[i][x] == ' ' && _map[i - 1][x] == '-' && _map[i + 1][x] == ' '))
	    _map[i][x] = 'M';
	}
    }
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movq $0x1, 0x28(%rsp)
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0x58, %rdi
callq 0x6a70
movq %rax, %rcx
movq 0x10(%rsp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x8d35
movq $0x1, 0x20(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
callq 0x67c0
movq %rax, %rcx
movq 0x8(%rsp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x8d20
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x8b60
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
subq $0x1, %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x7c, %eax
jne 0x8b60
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
addq $0x1, %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x8ce8
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x8be4
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
addq $0x1, %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x7c, %eax
jne 0x8be4
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
subq $0x1, %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x8ce8
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x8c68
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
addq $0x1, %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x8c68
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
subq $0x1, %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x8ce8
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x8d0b
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
subq $0x1, %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x8d0b
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
addq $0x1, %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x8d0b
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq 0x28(%rsp), %rsi
callq 0x6a90
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x6b10
movb $0x4d, (%rax)
jmp 0x8d0d
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x8aa2
jmp 0x8d22
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x8a6c
addq $0x38, %rsp
retq
nopw (%rax,%rax)