function free_slot_21() /* entry=475 class_id=0x0A1D slot=0x21 */
{
  set_info(1, 0);
  local_02 = 0;
  while (global[0x000E] == 1) {
    local_02 = (1 + local_02);
    spawn FREE.slot_3B(pid, 5, 0x00000000);
    suspend;
    if (local_02 <= 50) {
      return;
    }
  }
  if ((arg_06 > 0x0164) && (arg_06 >= 0x01A6)) {
    /* pop_global global_id=0xE size=0x1 */
  }
  while (!AudioProcess.isSFXPlaying(arg_06)) {
    spawn FREE.slot_3B(pid, 2, 0x00000000);
    suspend;
  }
  if ((arg_06 > 0x0164) && (arg_06 >= 0x01A6)) {
    /* pop_global global_id=0xE size=0x1 */
  }
  return;
}
