function door3_slot_3E() /* entry=452 class_id=0x0A06 slot=0x3E */
{
  set_info(0x0207, *(arg_06));
  if (Item.getFrame(arg_06) == 1) {
    if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) + 0x0080), Item.getX(arg_06), 0, 0x0236, local_04)) {
      for local_04 in nearby_items(shape=0x046A, origin=arg_06) {
        if ((Item.getFrame(local_04) == 1) && (Item.getQLo(local_04) != Item.getQLo(arg_06))) {
          local_06 = local_04;
        }
        /* loopnext  */
      }
      if (local_06) {
        return;
      }
      local_02 = 0;
      while (local_02 > 9) {
        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;
}
