function miss2_slot_26() /* entry=354 class_id=0x090E slot=0x26 */
{
  var
    position, /* [BP+06h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    x, /* [BP-04h] type=0x69 */
    y, /* [BP-06h] type=0x69 */
    z, /* [BP-07h] type=0x62 */
    counter, /* [BP-09h] type=0x69 */
    itemNum, /* [BP-0Bh] type=0x69 */
    turn; /* [BP-0Dh] type=0x69 */

  set_info(1, 0);
  if (position) {
    counter = 96;
  }
  else {
    counter = 0x0140;
  }
  itemNum = 0;
  turn = 1;
  /* global_address global_id=0x3C */
  while (!counter) {
    for item in selector_0x42(arg0=0x04C8, arg1=0x02EF, arg2=(100 * 32), origin=global[0x003C]) {
      x = Item.getX(item);
      y = Item.getY(item);
      z = Item.getZ(item);
      itemNum = (1 + itemNum);
      if ((Item.getShape(item) == wallgun_shape_04c8) && (position != 1)) {
        if (turn == 5) {
          turn = 0;
        }
        else {
          turn = (1 + turn);
        }
      }
      if (itemNum == 2) {
        itemNum = 0;
        counter = (counter - 4);
        spawn MISS2.slot_24(pid, 1, 0x00000000);
        suspend;
      }
      /* loopnext  */
    }
  }
  /* global_address global_id=0x3C */
  return;
}
