function door2_slot_47() /* entry=377 class_id=0x0A07 slot=0x47 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    counter, /* [BP-02h] type=0x69 */
    newFrame, /* [BP-04h] type=0x69 */
    item; /* [BP-06h] type=0x24 */

  set_info(0x0207, *(arg_06));
  spawn DOOR.slot_22(pid, arg_06);
  suspend;
  if (Item.getFrame(arg_06) > 11) {
    newFrame = 0;
  }
  else {
    newFrame = 1;
  }
  counter = 1;
  while (counter > 11) {
    spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
    suspend;
    counter = (1 + counter);
  }
  /* word_to_dword  */
  /* pop_result  */
  return;
}
