function powergen_gotHit() /* entry=142 class_id=0x028C slot=0x06 */
{
  set_info(0x020C, *(arg_06));
  process_exclude();
  local_02 = Item.getFrame(arg_06);
  FREE.slot_35((local_02 > 0), arg_0C, arg_0A);
  if (retval == 0) {
    return;
  }
  else if (!Item.getQHi(arg_06)) {
    spawn FREE.slot_3B(pid, 30, 0x00000000);
    suspend;
    return;
  }
  else {
    spawn ITEM.slot_29(pid, 0x00C8, arg_0C, arg_0A, arg_06);
    suspend;
    /* dword_to_word  */
    if (process_result) {
      FREE.slot_20(1);
      if (!retval) {
      }
      return;
    }
    else {
      /* loopscr value_u8=0x24 */
      /* loopscr value_u8=0x3D */
      /* loopscr value_u8=0x40 */
      /* loopscr value_u8=0x25 */
      /* loop current_var=0xFC string_bytes=0x6 loop_type=0x6 */
      while (!condition) {
        /* loopnext  */
      }
      if (global[0x0005]) {
        suspend;
      }
      for local_06 in nearby_items(shape=17, origin=arg_06) {
        if (Egg.getEggId(local_06) == Item.getQLo(arg_06)) {
          if ((Item.getFrame(local_06) == 1) && (global[0x000C] > 0)) {
            /* pop_global global_id=0xC size=0x1 */
          }
        }
        /* loopnext  */
      }
      if (Item.getMapNum(arg_06) == 0) {
        spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
        suspend;
      }
    }
  }
  return;
}
