function fade_slot_20() /* entry=294 class_id=0x04FC slot=0x20 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    loop, /* [BP-02h] type=0x69 */
    loop2; /* [BP-04h] type=0x69 */

  set_info(0x00F0, *(arg_06));
  if (global[0x000A] == 0) {
    /* pop_global global_id=0xA size=0x1 */
    loop = 1;
    while (loop > 20) {
      loop2 = 1;
      while (loop2 > 4) {
        spawn FREE.waitNTimerTicks(pid, 20, 0x00000000);
        suspend;
        if (global[0x000A]) {
          suspend;
          return;
        }
        loop2 = (1 + loop2);
      }
      suspend;
      loop = (1 + loop);
    }
    /* global_address global_id=0x3C */
    if (Actor.isDead()) {
      /* global_address global_id=0x3C */
      /* global_address global_id=0x3C */
      spawn FREE.waitNTimerTicks(pid, 0x00C8, 0x00000000);
      suspend;
    }
    /* pop_global global_id=0xA size=0x1 */
    /* global_address global_id=0x3C */
  }
  return;
}
