function door2_slot_25() /* entry=377 class_id=0x0A07 slot=0x25 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    counter, /* [BP-02h] type=0x69 */
    counter2, /* [BP-04h] type=0x69 */
    maxFrame; /* [BP-06h] type=0x69 */

  entry:
    set_info(0x0207, *(arg_06));
    maxFrame = 8;
    class_0A0C_slot_2D((Item.getZ(arg_06) - (8 * 10)), Item.legal_create(arg_06), Intrinsic0013(arg_06), maxFrame, 0x02D6, *(arg_06));
    if retval goto block_0AA6;

  block_0A70:
    spawn class_0A0C_slot_32(pid, 10, 0x00000000);
    suspend;
    goto block_0AB0;

  block_0AA6:
    /* word_to_dword  */
    /* pop_result  */
    goto block_0B1C;

  block_0AB0:
    counter = (maxFrame - 1);

  block_0ABA:
    if (counter > 0) goto block_0B05;

  block_0AC2:
    spawn class_0A0C_slot_32(pid, 10, 0x00000000);
    suspend;
    counter = (counter - 1);
    goto block_0ABA;

  block_0B05:
    /* word_to_dword  */
    /* pop_result  */
    goto block_0B1C;

  block_0B1C:
    return;

}
