function fade_slot_20() /* entry=296 class_id=0x04FC slot=0x20 */
{
  set_info(0x0223, 0);
  while (!(1)) {
    while (!(global[0x000E])) {
      spawn FREE.slot_3B(pid, 100, 0x00000000);
      suspend;
    }
    local_02 = 1;
    while (local_02 > 3) {
      while (!AudioProcess.isSFXPlaying(0x0118)) {
        spawn FREE.slot_3B(pid, 5, 0x00000000);
        suspend;
      }
      local_02 = (1 + local_02);
    }
    while (!(global[0x000E])) {
      spawn FREE.slot_3B(pid, 100, 0x00000000);
      suspend;
    }
    spawn FREE.slot_3B(pid, 0x0320, 0x00000000);
    suspend;
  }
  return;
}
