function door2_slot_35() /* entry=377 class_id=0x0A07 slot=0x35 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    item2, /* [BP-04h] type=0x24 */
    item3, /* [BP-06h] type=0x24 */
    prisDoor, /* [BP-08h] type=0x24 */
    counter, /* [BP-0Ah] type=0x69 */
    maxFrame, /* [BP-0Ch] type=0x69 */
    cox, /* [BP-0Eh] type=0x69 */
    coy, /* [BP-10h] type=0x69 */
    coz, /* [BP-12h] type=0x69 */
    x1, /* [BP-14h] type=0x69 */
    y1, /* [BP-16h] type=0x69 */
    x2, /* [BP-18h] type=0x69 */
    y2, /* [BP-1Ah] type=0x69 */
    z1, /* [BP-1Ch] type=0x69 */
    z2, /* [BP-1Eh] type=0x69 */
    link; /* [BP-20h] type=0x69 */

  entry:
    set_info(0x0207, *(arg_06));
    set_info(1, 0);
    maxFrame = 7;
    prisDoor = *(arg_06);
    cox = Intrinsic0013(arg_06);
    coy = Item.legal_create(arg_06);
    coz = Item.getZ(arg_06);
    /* loopscr value_u8=0x24 */
    /* loopscr value_u8=0x3D */
    /* loopscr value_u8=0x40 */
    /* loopscr value_u8=0x25 */
    /* loop current_var=0xFE string_bytes=0x6 loop_type=0x6 */

  block_2778:
    if condition goto block_27FE;

  block_277B:
    if (Item.getFrame(item) != 0) goto block_27C5;

  block_278D:
    x1 = Intrinsic0013(item);
    y1 = Item.legal_create(item);
    z1 = Item.getZ(item);
    goto block_27FA;

  block_27C5:
    x2 = Intrinsic0013(item);
    y2 = Item.legal_create(item);
    z2 = Item.getZ(item);

  block_27FA:
    /* loopnext  */
    goto block_2778;

  block_27FE:
    link = Item.fall(arg_06);
    if (Intrinsic0019((coz - 80), coy, cox, 7, 0x01EE, item2) != 1) goto block_28DB;

  block_2839:
    spawn class_0A0C_slot_32(pid, 5, 0x00000000);
    suspend;
    counter = 1;

  block_2880:
    if (counter <= maxFrame) goto block_28CE;

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

  block_28CE:
    /* word_to_dword  */
    /* pop_result  */
    goto block_2948;

  block_28D8:
    goto block_2948;

  block_28DB:
    /* word_to_dword  */
    /* pop_result  */
    goto block_2948;

  block_2948:
    return;

}
