function miss2_slot_23() /* entry=354 class_id=0x090E slot=0x23 */
{
  var
    done0, /* [BP-01h] type=0x62 */
    done1, /* [BP-02h] type=0x62 */
    done2, /* [BP-03h] type=0x62 */
    activate, /* [BP-04h] type=0x62 */
    item; /* [BP-06h] type=0x24 */

  set_info(1, 0);
  done0 = 0;
  done1 = 0;
  done2 = 0;
  while (((done0 == 0) || (done1 != 0)) || (done2 != 0)) {
    for item in nearby_items(shape=0x04D5, origin=global[0x003C]) {
      activate = 0;
      if (done0) {
        if (Item.getQLo(item) == 0) {
          activate = 1;
          done0 = 1;
        }
      }
      else if (done1) {
        if (Item.getQLo(item) == 1) {
          activate = 1;
          done1 = 1;
        }
      }
      else if (done2) {
        if (Item.getQLo(item) == 2) {
          activate = 1;
          done2 = 1;
        }
      }
      if (!activate) {
        if (done2) {
          spawn MISS2.slot_22(item, 0x00000000);
          spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
          suspend;
        }
        else {
          spawn MISS2.slot_22(pid, item, 0x00000000);
          suspend;
        }
      }
      /* loopnext  */
    }
  }
  return;
}
