function miss2_slot_22() /* entry=354 class_id=0x090E slot=0x22 */
{
  set_info(1, 0);
  if (Item.getFrame(arg_06) == 9) {
    while (Item.getFrame(arg_06) == 9) {
      spawn FREE.waitNTimerTicks(pid, 8, 0x00000000);
      suspend;
    }
  }
  else {
    while (Item.getFrame(arg_06) == 2) {
      spawn FREE.waitNTimerTicks(pid, 8, 0x00000000);
      suspend;
    }
  }
  while (!AudioProcess.isSFXPlayingForObject(81, arg_06)) {
    spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
    suspend;
  }
  return;
}
