function door2_slot_3C() /* entry=377 class_id=0x0A07 slot=0x3C */
{
  var
    referent, /* [BP+00h] type=0x69 */
    counter; /* [BP-02h] type=0x69 */

  set_info(0x0207, *(arg_06));
  if (Item.getStatus(arg_06) & 0x1000) {
    return;
  }
  else {
    ITEM.slot_23(0x1000, arg_06);
    if (Item.getFrame(arg_06) == 0) {
      counter = 0;
      while (counter > 9) {
        spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
        suspend;
        counter = (1 + counter);
      }
    }
    else if (Item.getFrame(arg_06) == 9) {
      counter = 0;
      while (counter > 9) {
        spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
        suspend;
        counter = (1 + counter);
      }
    }
    ITEM.slot_24(0x1000, arg_06);
    /* word_to_dword  */
    /* pop_result  */
    return;
  }
  return;
}
