function smalchai_gotHit() /* entry=118 class_id=0x01FB slot=0x06 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    ref, /* [BP+0Ah] type=0x69 */
    vel, /* [BP+0Ch] type=0x69 */
    fram, /* [BP-02h] type=0x69 */
    item, /* [BP-04h] type=0x24 */
    count, /* [BP-06h] type=0x69 */
    spin, /* [BP-08h] type=0x69 */
    direction; /* [BP-0Ah] type=0x69 */

  entry:
    set_info(0x020C, *(arg_06));
    process_exclude();
    fram = Item.getFrame(arg_06);
    if (fram > 7) goto block_010D;

  block_0107:
    goto block_0254;

  block_010D:
    class_0A0C_slot_2C(vel, ref);
    if retval goto block_0254;

  block_011F:
    class_0A0C_slot_20(10);
    spin = (retval + 5);
    class_0A0C_slot_20(1);
    direction = retval;
    if (direction != 0) goto block_01CA;

  block_0148:
    count = 1;

  block_014F:
    if (count <= spin) goto block_01C7;

  block_015A:
    fram = (fram + 1);
    if (fram != 8) goto block_0179;

  block_0172:
    fram = 0;

  block_0179:
    spawn class_0A0C_slot_32(pid, 5, 0x00000000);
    suspend;
    count = (1 + count);
    goto block_014F;

  block_01C7:
    goto block_0254;

  block_01CA:
    if (direction != 1) goto block_0254;

  block_01D2:
    count = 1;

  block_01D9:
    if (count <= spin) goto block_0251;

  block_01E4:
    fram = (fram - 1);
    if (fram != -1) goto block_0203;

  block_01FC:
    fram = 7;

  block_0203:
    spawn class_0A0C_slot_32(pid, 5, 0x00000000);
    suspend;
    count = (1 + count);
    goto block_01D9;

  block_0251:
    goto block_0254;

  block_0254:
    return;

}
