function trigger_slot_22() /* entry=469 class_id=0x0A17 slot=0x22 */
{
  set_info(0x021B, 0);
  local_02 = arg_0A;
  while (!(1)) {
    if ((Item.getStatus(local_02) & 0x1000) == 0) {
      spawn DOOR.slot_21(pid, arg_0C, local_02);
      suspend;
      /* bit_not  */
      return;
    }
    else {
      spawn FREE.slot_3B(pid, 10, 0x00000000);
      suspend;
    }
  }
  return;
}
