function door2_slot_36() /* entry=377 class_id=0x0A07 slot=0x36 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    counter, /* [BP-02h] type=0x69 */
    maxFrame, /* [BP-04h] type=0x69 */
    link, /* [BP-06h] type=0x69 */
    item, /* [BP-08h] type=0x24 */
    item2; /* [BP-0Ah] type=0x24 */

  entry:
    set_info(0x0207, *(arg_06));
    spawn class_0A06_slot_22(pid, arg_06);
    suspend;
    set_info(1, 0);
    maxFrame = 7;
    counter = 1;

  block_2A34:
    if (counter <= maxFrame) goto block_2A7F;

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

  block_2A7F:
    link = Item.fall(arg_06);
    if (Intrinsic0019(Item.getZ(arg_06), Item.legal_create(arg_06), (Intrinsic0013(arg_06) - 0x00D0), 1, 0x0238, item2) != 1) goto block_2AF8;

  block_2AEB:

  block_2AF8:
    if (Intrinsic0019((Item.getZ(arg_06) + 80), Item.legal_create(arg_06), Intrinsic0013(arg_06), 0, 0x03C7, item) != 1) goto block_2B3A;

  block_2B2D:

  block_2B3A:
    /* word_to_dword  */
    /* pop_result  */
    goto block_2B44;

  block_2B44:
    return;

}
