function chest_ew_gotHit() /* entry=317 class_id=0x0550 slot=0x06 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    ref, /* [BP+0Ah] type=0x69 */
    vel, /* [BP+0Ch] type=0x69 */
    fram; /* [BP-02h] type=0x69 */

  entry:
    set_info(0x020C, *(arg_06));
    process_exclude();
    class_0A0C_slot_2C(vel, ref);
    if (!retval) goto block_0107;

  block_0101:
    goto block_01CA;

  block_0107:
    fram = Item.getFrame(arg_06);
    if (fram < 2) goto block_01CA;

  block_0123:
    spawn class_0A1E_slot_27(pid, 40, vel, ref, arg_06);
    suspend;
    /* dword_to_word  */
    if (!process_result) goto block_0186;

  block_0153:
    class_0A0C_slot_20(1);
    if retval goto block_0173;

  block_0163:
    goto block_0180;

  block_0173:

  block_0180:
    goto block_01CA;

  block_0186:
    spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
    suspend;
    class_0A1E_slot_23(0x1000, arg_06);

  block_01CA:
    return;

}
