function textfile_slot_23() /* entry=393 class_id=0x0A17 slot=0x23 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    linkNum, /* [BP+0Ah] type=0x69 */
    msgNum, /* [BP+0Ch] type=0x69 */
    passcode, /* [BP+0Eh] type=0x69 */
    textFile, /* [BP-02h] type=0x73 */
    rnge; /* [BP-04h] type=0x69 */

  entry:
    if (msgNum >= 110) goto block_02EB;

  block_02D1:
    class_0A1F_slot_20(passcode, msgNum, linkNum, arg_06);
    goto block_24DD;

  block_02E8:
    goto block_0313;

  block_02EB:
    if (msgNum >= 60) goto block_0313;

  block_02F9:
    class_0A1D_slot_20(passcode, msgNum, linkNum, arg_06);
    goto block_24DD;

  block_0310:
    goto block_0313;

  block_0313:
    if (msgNum != 0) goto block_0967;

  block_031B:
    rnge = UCMachine.rndRange(11, 1);
    if (rnge != 1) goto block_03C9;

  block_0333:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Due to recent rebel activity, the T-300 lines have failed. *^Do NOT attempt to access the WEC network at this time.^END OF MESSAGE...";
    goto block_0964;

  block_03C9:
    if (rnge != 2) goto block_0462;

  block_03D1:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "The use of WEC equipment for playing computerized entertainment software is strictly prohibited!* Return to work IMMEDIATELY!***";
    goto block_0964;

  block_0462:
    if (rnge != 3) goto block_04E9;

  block_046A:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "All workers must display their badges at ALL TIMES!* Failure to comply will result in immediate termination!*^";
    goto block_0964;

  block_04E9:
    if (rnge != 4) goto block_0591;

  block_04F1:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Report all unauthorized use of WEC equipment immediately! Remember, your co-workers could be rebel sympathizers! Collect big cash rewards too!*";
    goto block_0964;

  block_0591:
    if (rnge != 5) goto block_0667;

  block_0599:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Unauthorized access of this terminal constitutes a violation of WEC security code 1701-D. Please report yourself to the nearest WEC security officer for correctional measures IMMEDIATELY.*^";
    goto block_0964;

  block_0667:
    if (rnge != 6) goto block_06D8;

  block_066F:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "The WEC network is exp*erien^*cing*^ slight dif^*ficulties.^Please st$#@**%^#@!*)(*^%$#^";
    goto block_0964;

  block_06D8:
    if (rnge != 7) goto block_07A0;

  block_06E0:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "The carrying of unregistered radiation detection devices is strictly prohibited by the WEC. Register yours today. Remember, the WEC is just like family, and we care about you!";
    goto block_0964;

  block_07A0:
    if (rnge != 8) goto block_07D6;

  block_07A8:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "WEC T-300/SYS out of disk space^";
    goto block_0964;

  block_07D6:
    if (rnge != 9) goto block_0865;

  block_07DE:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Consortium-wide meeting tomorrow at 1330. WedgeRoom 1501. This is a mandatory meeting! All Branch Leaders must attend!";
    goto block_0964;

  block_0865:
    if (rnge != 10) goto block_090B;

  block_086D:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "The WEC Regulatory Commission requires reports of your daily activities. Failure to submit these reports may result in immediate termination.";
    goto block_0964;

  block_090B:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "The WEC network is experiencing slight difficulties.^Please stand by*.*.*.^";

  block_0964:
    goto block_24D4;

  block_0967:
    if (msgNum != 1) goto block_0995;

  block_096F:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Doors have been opened.^";
    goto block_24D4;

  block_0995:
    if (msgNum != 2) goto block_09C4;

  block_099D:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Force field deactivated.^";
    goto block_24D4;

  block_09C4:
    if (msgNum != 3) goto block_09F6;

  block_09CC:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Electronic bridge extended.^";
    goto block_24D4;

  block_09F6:
    if (msgNum != 4) goto block_0A28;

  block_09FE:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security systems activated.^";
    goto block_24D4;

  block_0A28:
    if (msgNum != 5) goto block_0A5D;

  block_0A30:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security systems de-activated.^";
    goto block_24D4;

  block_0A5D:
    if ((((msgNum != 6) || (msgNum != 7)) || (msgNum != 8)) || (msgNum != 9)) goto block_0AAF;

  block_0A77:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "All alarm systems have been de-activated.^";
    goto block_24D4;

  block_0AAF:
    if (msgNum != 10) goto block_0B7C;

  block_0AB7:
    /* concat  */
    /* concat  */
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "^Remember, delete this message! Spies are everywhere!";
    goto block_24D4;

  block_0B7C:
    if (msgNum != 11) goto block_0BF1;

  block_0B84:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security Cartel HQD^___________________^*^Accessing system:*.*.*.*^^Thresher Cannon: *ACTIVE";
    goto block_24D4;

  block_0BF1:
    if (msgNum != 12) goto block_0CB1;

  block_0BF9:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "To all Refinery Ops^2nd Class Tech Stokes has once again started a fire in the thermalcoupler area.^We ask again that all employees smoke only in the authorized areas.";
    goto block_24D4;

  block_0CB1:
    if (msgNum != 13) goto block_0D59;

  block_0CB9:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "To all Refinery Ops^3rd Class Tech Brandt has contaminated the fifth level with dangerous^plutonium isotopes again. Be careful where you step.^";
    goto block_24D4;

  block_0D59:
    if (msgNum != 14) goto block_0DEA;

  block_0D61:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security Cartel:^________________^Remote viewing facility.^*Thermal Coupler power system.^^Watch Station: ^*<NOW ACTIVE>";
    goto block_24D4;

  block_0DEA:
    if (msgNum != 15) goto block_0E85;

  block_0DF2:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Refinery Operations:^____________________^Now interfacing with remote service droid...*^Thermatron ZC90201^^Unit is now *-ONLINE-.";
    goto block_24D4;

  block_0E85:
    if (msgNum != 16) goto block_0F00;

  block_0E8D:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security Cartel: ^^Remote alarm panel^User ID <TZ81664>^*^Area is secured:*^Stand down from alert.";
    goto block_24D4;

  block_0F00:
    if (msgNum != 17) goto block_0F6C;

  block_0F08:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security Cartel:^__________________^Remote Operations^Watch Station: ^*<NOW ACTIVE>";
    goto block_24D4;

  block_0F6C:
    if (msgNum != 18) goto block_10A9;

  block_0F74:
    /* concat  */
    /* concat  */
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = " is this week's passcode.";
    goto block_24D4;

  block_10A9:
    if (msgNum != 19) goto block_118F;

  block_10B1:
    /* concat  */
    /* concat  */
    /* concat  */
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "^This is the last time, Philbert!^";
    goto block_24D4;

  block_118F:
    if (msgNum != 20) goto block_1200;

  block_1197:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "NOTICE:^^To: All Personnel^Please remember to keep your keycards with you at all times.^";
    goto block_24D4;

  block_1200:
    if (msgNum != 21) goto block_1278;

  block_1208:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security Cartel: ^Operations Center.^User ID T*Z*1*6*^^Area is secured:*^Stand down from Alert.";
    goto block_24D4;

  block_1278:
    if (msgNum != 22) goto block_1342;

  block_1280:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Security Cartel: ^Operations Center.*^User ID T*Z*1*6*^^Due to malfunctions within the security grid, the telepad is inoperative. Please use the backup telepad in the west wing.";
    goto block_24D4;

  block_1342:
    if (msgNum != 25) goto block_1396;

  block_134A:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Phase one of the impassable laser field has been de-activated.";
    goto block_24D4;

  block_1396:
    if (msgNum != 27) goto block_1425;

  block_139E:
    /* concat  */
    /* concat  */
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = ".^*End of Message <";
    goto block_24D4;

  block_1425:
    if (((((msgNum != 23) || (msgNum != 24)) || (msgNum != 26)) || (msgNum != 28)) || (msgNum != 29)) goto block_1471;

  block_1445:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    textFile = "Mission 2 Generic Message 0-9^";
    goto block_24D4;

  block_1471:
    if (msgNum == 30) {
      /* concat  */
      /* concat  */
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = ".^*End of Message <";
    }
    else if (msgNum == 31) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Thermatron Assembly Line:^_____________^Now interfacing with remote droid *.*.*.^<Thermatron> VTK944^^Unit is now *-ONLINE-.";
    }
    else if (msgNum == 32) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Thermatron Manufacturing Plant:^_____________";
    }
    else if (msgNum == 33) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Refinery Operations:^____________^Remote viewing facility.^*Restricted Access*^Granted";
    }
    else if (msgNum == 34) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Security Cartel:^________________^Remote viewing facility.^*Production Line^*<DEACTIVATED>";
    }
    else if (msgNum == 35) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Security Cartel:^________________^*Auxiliary Production Line^*<ACTIVE>^Shut down requires Security Card Clearance";
    }
    else if (msgNum == 36) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Thermatron Auxiliary Production Line:^________";
    }
    else if (msgNum == 37) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Security Cartel:^________________^*Laser Field^*<DEACTIVATED>";
    }
    else if (msgNum == 38) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Security Cartel:^________________^Remote viewing facility.^*Laser Field^*<ACTIVE>^Security card clearance required to de-activate";
    }
    else if (msgNum == 39) {
      /* concat  */
      /* concat  */
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "^Memorize the code and delete this message immediately! <";
    }
    else if (msgNum == 40) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Security Cartel:^________________^*Laser Field^*<DEACTIVATED>";
    }
    else if (msgNum == 41) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Remote Security Op:^_____________^Now interfacing with remote droid *.*.*.^<Thermatron> ATK656^^Unit is now *-ONLINE-.";
    }
    else if (msgNum == 42) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "^Security Control:^_______________^^*Laser Field^*<ACTIVATED>";
    }
    else if (msgNum == 43) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Security Cartel HQD^___________________^*^Accessing system:*.*.*.*^^Thresher Cannon: *ACTIVE";
    }
    else if (msgNum == 44) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Security Cartel HQD^___________________^*^Accessing system:*.*.*.*^^SORC Monitoring station security field:^^*<DEACTIVATED>";
    }
    else if (msgNum == 45) {
      /* concat  */
      /* concat  */
      /* concat  */
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "^^Spies are everywhere so be alert!";
    }
    else if (msgNum == 46) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "^* WEC Email^^To: Prof. Coulson^^From: Sev Dorren,^Security Chief^^Professor, I have installed a force-field at the entrance to the SORC station as you instructed. If there is anything further required please let me know. ^PS: The only way to access the force-field is through the central computer, so I am sure it will be quite safe from any saboteurs. .^*End of Message <";
    }
    else if (msgNum == 47) {
      /* concat  */
      /* concat  */
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "^*End of Message <";
    }
    else if (msgNum == 48) {
      /* concat  */
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = UCMachine.numToStr(passcode);
    }
    else if (msgNum == 49) {
      /* concat  */
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = UCMachine.numToStr(passcode);
    }
    else if (msgNum == 50) {
      if (!(linkNum && passcode)) {
        /* concat  */
        /* concat  */
        /* free_local_string bp_offset=0xFE target=[BP-02h] */
        textFile = ". J.J.";
      }
      else {
        /* free_local_string bp_offset=0xFE target=[BP-02h] */
        textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*";
      }
    }
    else if (msgNum == 52) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Dr. Watson:^Since we no longer produce the 37x18 Chip at the Snell Memorial Science Center, you can expect to receive the remaining chips for meltdown this afternoon. See that no chips find their way out of your facility.^L. Probst^End of Message <";
    }
    else if (msgNum == 53) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "Ms. Ashcraft - *It has come to my attention that you have had problems with your platform elevator. Just put an Out of Order sign on it, and I'll send a maintenance worker out to fix it A.S.A.P. Larson ";
    }
    else if (msgNum == 54) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*^M.E.L.F. Station";
    }
    else if (msgNum == 56) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "WEC SECURITY SYSTEM:^^Remote Camera: *ACTIVE^Teleporter Room^Level Four";
    }
    else if (msgNum == 57) {
      /* free_local_string bp_offset=0xFE target=[BP-02h] */
      textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*^Security System^*ACTIVE";
    }
    else if (msgNum == 58) {
      if (!(linkNum && passcode)) {
        /* concat  */
        /* concat  */
        /* concat  */
        /* free_local_string bp_offset=0xFE target=[BP-02h] */
        textFile = "Now you can store your very own load!";
      }
      else {
        /* free_local_string bp_offset=0xFE target=[BP-02h] */
        textFile = "WEC SECURITY SYSTEM:^Remote Camera: ACTIVE*^Security System^*ACTIVE^Forcefield Deactivated";
      }
    }

  block_24D4:
    goto block_24DD;

  block_24DD:
    /* free_local_string bp_offset=0xFE target=[BP-02h] */
    return;

}
