function textfile_slot_22() /* entry=393 class_id=0x0A17 slot=0x22 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    ref, /* [BP+0Ah] type=0x69 */
    vel; /* [BP+0Ch] type=0x69 */

  entry:
    set_info(0x0001, *(arg_06));
    class_0A0C_slot_2B(vel, ref);
    if retval goto block_0292;

  block_01F8:
    if (Item.getMapNum(arg_06) != 0) goto block_0292;

  block_020A:
    if (Item.getFrame(arg_06) != 0) goto block_024E;

  block_0219:
    spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
    suspend;
    goto block_0292;

  block_024E:
    if (Item.getFrame(arg_06) != 1) goto block_0292;

  block_025D:
    spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
    suspend;
    goto block_0292;

  block_0292:
    return;

}
