function grenegg_hatch() /* entry=428 class_id=0x0909 slot=0x07 */
{
  set_info(0x0210, *(arg_06));
  process_exclude();
  /* loop_selector local_02 in nearby_items(shape=0x033A, origin=arg_06) */
  while (!condition) {
    if (Item.getFrame(local_02) == 0) {
      local_04 = local_02;
    }
    /* loopnext  */
  }
  for local_02 in nearby_items(shape=0x033A, origin=arg_06) {
    if (Item.getFrame(local_02) == 0) {
      local_06 = local_02;
    }
    /* loopnext  */
  }
  if (!(local_04 && local_06)) {
    local_0D = Item.getX(local_06);
    local_0B = Item.getY(local_06);
    local_09 = Item.getZ(local_06);
  }
  return;
}
