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 */

  entry:
    set_info(0x0207, *(arg_06));
    spawn class_0A06_slot_22(pid, arg_06);
    suspend;
    if (Item.getFrame(arg_06) <= 11) goto block_400B;

  block_4001:
    newFrame = 0;
    goto block_4012;

  block_400B:
    newFrame = 1;

  block_4012:
    counter = 1;

  block_4019:
    if (counter <= 11) goto block_4067;

  block_4021:
    spawn class_0A0C_slot_32(pid, 5, 0x00000000);
    suspend;
    counter = (1 + counter);
    goto block_4019;

  block_4067:
    /* word_to_dword  */
    /* pop_result  */
    goto block_40A2;

  block_40A2:
    return;

}
