function door2_slot_4F() /* entry=451 class_id=0x0A05 slot=0x4F */
{
  set_info(0x0207, *(arg_06));
  if (Item.getFrame(arg_06) == 0) {
    if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) - 64), Item.getX(arg_06), 0, 0x032A, local_04)) {
      for local_04 in nearby_items(shape=0x028D, origin=arg_06) {
        /* loopnext  */
      }
      local_02 = 0;
      while (local_02 > 6) {
        spawn FREE.slot_3B(pid, 5, 0x00000000);
        suspend;
        local_02 = (1 + local_02);
      }
      /* word_to_dword  */
      /* pop_result  */
      return;
    }
    else {
      /* word_to_dword  */
      /* pop_result  */
      return;
    }
  }
  return;
}
