-
Notifications
You must be signed in to change notification settings - Fork 1
/
5bf10fd1.13
14723 lines (13966 loc) · 476 KB
/
5bf10fd1.13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
moveal %a3@(114,%d2:w),%a0 /* 40868000 2073 2072 */
st %a0@(100) /* 40868004 50e8 0064 */
bras .L40868030 /* 40868008 6026 */
.L4086800a:
movew %a1@+,%d2 /* 4086800a 3419 */
addqw #2,%a1 /* 4086800c 5449 */
cmpw %a3@(38),%d2 /* 4086800e b46b 0026 */
beqs .L40868030 /* 40868012 671c */
movew %d2,%d1 /* 40868014 3202 */
lslw #2,%d1 /* 40868016 e549 */
movel %a3@(114,%d1:w),%d0 /* 40868018 2033 1072 */
beqs .L40868030 /* 4086801c 6712 */
moveal %d0,%a0 /* 4086801e 2040 */
tstb %a0@(4) /* 40868020 4a28 0004 */
beqs .L40868030 /* 40868024 670a */
st %a0@(100) /* 40868026 50e8 0064 */
lea %a2@(14),%a2 /* 4086802a 45ea 000e */
movew %d2,%a2@ /* 4086802e 3482 */
.L40868030:
dbf %d3,.L4086800a /* 40868030 51cb ffd8 */
movew #64,%d3 /* 40868034 363c 0040 */
moveq #0,%d2 /* 40868038 7400 */
clrw %d4 /* 4086803a 4244 */
lea %a3@(114),%a1 /* 4086803c 43eb 0072 */
.L40868040:
movel %a1@+,%d0 /* 40868040 2019 */
beqs .L4086805a /* 40868042 6716 */
moveal %d0,%a0 /* 40868044 2040 */
tstb %a0@(4) /* 40868046 4a28 0004 */
beqs .L4086805a /* 4086804a 670e */
movew %d2,%d4 /* 4086804c 3802 */
tstb %a0@(100) /* 4086804e 4a28 0064 */
bnes .L4086805a /* 40868052 6606 */
lea %a2@(14),%a2 /* 40868054 45ea 000e */
movew %d2,%a2@ /* 40868058 3482 */
.L4086805a:
addqw #1,%d2 /* 4086805a 5242 */
dbf %d3,.L40868040 /* 4086805c 51cb ffe2 */
moveal %d6,%a1 /* 40868060 2246 */
addal %a1@(6),%a1 /* 40868062 d3e9 0006 */
movew %a1@+,%d5 /* 40868066 3a19 */
cmpw %d4,%d5 /* 40868068 ba44 */
bges .L4086806e /* 4086806a 6c02 */
movew %d4,%d5 /* 4086806c 3a04 */
.L4086806e:
lea %a4@(356),%a2 /* 4086806e 45ec 0164 */
bsrw sub_40868148 /* 40868072 6100 00d4 */
bnew .L4086813e /* 40868076 6600 00c6 */
moveq #0,%d2 /* 4086807a 7400 */
moveal %a4@(352),%a0 /* 4086807c 206c 0160 */
movew %a0@+,%d3 /* 40868080 3618 */
bras .L40868092 /* 40868082 600e */
.L40868084:
movew %a0@,%d1 /* 40868084 3210 */
lslw #2,%d1 /* 40868086 e549 */
movew %d2,%a2@(%d1:w) /* 40868088 3582 1000 */
addqw #1,%d2 /* 4086808c 5242 */
lea %a0@(14),%a0 /* 4086808e 41e8 000e */
.L40868092:
dbf %d3,.L40868084 /* 40868092 51cb fff0 */
bras .L408680a6 /* 40868096 600e */
.L40868098:
movew %a1@+,%d1 /* 40868098 3219 */
movew %a1@+,%d2 /* 4086809a 3419 */
cmpw %d5,%d1 /* 4086809c b245 */
bgts .L408680a6 /* 4086809e 6e06 */
lslw #2,%d1 /* 408680a0 e549 */
movew %d2,%a2@(2,%d1:w) /* 408680a2 3582 1002 */
.L408680a6:
dbf %d4,.L40868098 /* 408680a6 51cc fff0 */
moveal %d6,%a1 /* 408680aa 2246 */
addal %a1@(14),%a1 /* 408680ac d3e9 000e */
movew %a1@+,%d5 /* 408680b0 3a19 */
lea %a4@(360),%a2 /* 408680b2 45ec 0168 */
bsrw sub_40868148 /* 408680b6 6100 0090 */
bnew .L4086813e /* 408680ba 6600 0082 */
moveq #0,%d3 /* 408680be 7600 */
bras .L408680d8 /* 408680c0 6016 */
.L408680c2:
movel %a1@+,%d2 /* 408680c2 2419 */
swap %d2 /* 408680c4 4842 */
cmpw %d5,%d2 /* 408680c6 b445 */
bgts .L408680d8 /* 408680c8 6e0e */
movew %d2,%d1 /* 408680ca 3202 */
lslw #2,%d1 /* 408680cc e549 */
movew %d3,%d2 /* 408680ce 3403 */
swap %d2 /* 408680d0 4842 */
movel %d2,%a2@(%d1:w) /* 408680d2 2582 1000 */
addqw #1,%d3 /* 408680d6 5243 */
.L408680d8:
dbf %d4,.L408680c2 /* 408680d8 51cc ffe8 */
moveal %a4@(352),%a4 /* 408680dc 286c 0160 */
movew %a4@+,%d7 /* 408680e0 3e1c */
bras .L4086811c /* 408680e2 6038 */
.L408680e4:
movew %a4@+,%d6 /* 408680e4 3c1c */
movew %d6,%d0 /* 408680e6 3006 */
lslw #2,%d0 /* 408680e8 e548 */
moveal %a3@(114,%d0:w),%a2 /* 408680ea 2473 0072 */
movew %a2@(16),%d0 /* 408680ee 302a 0010 */
movew %d0,%a4@+ /* 408680f2 38c0 */
clrl %a4@+ /* 408680f4 429c */
movew %a2@(20),%d0 /* 408680f6 302a 0014 */
movew %d0,%a4@+ /* 408680fa 38c0 */
clrl %a4@+ /* 408680fc 429c */
movel %a2@(104),%d0 /* 408680fe 202a 0068 */
beqs .L4086810a /* 40868102 6706 */
moveal %d0,%a0 /* 40868104 2040 */
movew %d6,%sp@- /* 40868106 3f06 */
jsr %a0@ /* 40868108 4e90 */
.L4086810a:
tstb %a2@(7) /* 4086810a 4a2a 0007 */
beqs .L4086811c /* 4086810e 670c */
bpls .L40868118 /* 40868110 6a06 */
st %a3@(5) /* 40868112 50eb 0005 */
bras .L4086811c /* 40868116 6004 */
.L40868118:
st %a3@(90) /* 40868118 50eb 005a */
.L4086811c:
dbf %d7,.L408680e4 /* 4086811c 51cf ffc6 */
moveq #0,%d0 /* 40868120 7000 */
.L40868122:
movew %d0,%fp@(12) /* 40868122 3d40 000c */
moveml %sp@+,%d3-%d7/%a2-%a4 /* 40868126 4cdf 1cf8 */
movew #4,%d0 /* 4086812a 303c 0004 */
braw STDUNLINK /* 4086812e 6000 0312 */
.L40868132:
movew 0xa60,%d0 /* 40868132 3038 0a60 */
bnes .L40868122 /* 40868136 66ea */
movew #-192,%d0 /* 40868138 303c ff40 */
bras .L40868122 /* 4086813c 60e4 */
.L4086813e:
movew %d0,%d6 /* 4086813e 3c00 */
moveal %d7,%a0 /* 40868140 2047 */
_HUnlock /* 40868142 a02a */
movew %d6,%d0 /* 40868144 3006 */
bras .L40868122 /* 40868146 60da */
sub_40868148:
movew %d5,%d0 /* 40868148 3005 */
addqw #2,%d0 /* 4086814a 5440 */
lslw #2,%d0 /* 4086814c e548 */
_NewPtrSysClear
bnes .L40868174 /* 40868150 6622 */
movel %a0,%a2@ /* 40868152 2488 */
movew %a1@+,%d3 /* 40868154 3619 */
movew %a1@+,%d4 /* 40868156 3819 */
movew %d5,%a0@+ /* 40868158 30c5 */
movew %d3,%a0@+ /* 4086815a 30c3 */
moveal %a0,%a2 /* 4086815c 2448 */
movew %d5,%d2 /* 4086815e 3405 */
clrw %d0 /* 40868160 4240 */
movew #4096,%d1 /* 40868162 323c 1000 */
.L40868166:
moveb %d0,%d1 /* 40868166 1200 */
movew %d1,%a0@+ /* 40868168 30c1 */
movew %d3,%a0@+ /* 4086816a 30c3 */
addqw #1,%d0 /* 4086816c 5240 */
dbf %d2,.L40868166 /* 4086816e 51ca fff6 */
moveq #0,%d0 /* 40868172 7000 */
.L40868174:
rts /* 40868174 4e75 */
sub_40868176:
moveml %a2,%sp@-
moveal %a0,%a2
subqw #4,%sp
movel #1179602500,%sp@-
movew %a2@,%sp@-
movew #-1,0xb9e
_GetResource
tstl %sp@+
bnes .L40868196
movew %a3@(8),%a2@
.L40868196:
moveml %sp@+,%a2
rts
__v__KILLOLDFIXWORLDVEC:
rts /* 4086819c 4e75 */
sub_4086819e:
JmpVector 0x2060 47 /* 4086819e 2f30 81e2 2060 00bc */
sub_408681a8:
JmpVector 0x2060 46 /* 408681a8 2f30 81e2 2060 00b8 */
.align 16
__v__REINITSCRIPTS:
linkw %fp,#0 /* 408681c0 4e56 0000 */
moveml %d3-%d7/%a2-%a4,%sp@- /* 408681c4 48e7 1f38 */
moveal 0x2b6,%a1 /* 408681c8 2278 02b6 */
moveq #0,%d1 /* 408881cc 7200 */
moveal %a1@(352),%a0 /* 408681ce 2069 0160 */
.short 0xa01f /* 408681d2 a01f */
movel %d1,%a1@(352) /* 408681d4 2341 0160 */
moveal %a1@(356),%a0 /* 408681d8 2069 0164 */
.short 0xa01f /* 408681dc a01f */
movel %d1,%a1@(356) /* 408681de 2341 0164 */
moveal %a1@(360),%a0 /* 408681e2 2069 0168 */
.short 0xa01f /* 408681e6 a01f */
movel %d1,%a1@(360) /* 408681e8 2341 0168 */
subqw #2,%sp /* 408681ec 554f */
_ScriptUtil 0x8200ffda
movew %sp@+,%d0 /* 408681f6 301f */
movew %d0,%fp@(12) /* 408681f8 3d40 000c */
moveml %sp@+,%d3-%d7/%a2-%a4 /* 408681fc 4cdf 1cf8 */
movew #4,%d0 /* 40868200 303c 0004 */
braw STDUNLINK /* 40868204 6000 023c */
sub_40868208:
JmpVector 0x2060 48 /* 40868208 2f30 81e2 2060 00c0 */
.align 16
__v__ADDSCRIPTFONTS:
linkw %fp,#0 /* 40868220 4e56 0000 */
moveml %d3/%a2-%a3,%sp@- /* 40868224 48e7 1030 */
moveal 0xba0,%a3 /* 40868228 2678 0ba0 */
moveal 0x2b6,%a2 /* 4086822c 2478 02b6 */
moveal %a2@(352),%a2 /* 40868230 246a 0160 */
movew %a2@+,%d3 /* 40868234 361a */
bras .L40868252 /* 40868236 601a */
.L40868238:
movew %a2@+,%d1 /* 40868238 321a */
lea %a2@(12),%a2 /* 4086823a 45ea 000c */
movew %d1,%d0 /* 4086823e 3001 */
lslw #2,%d0 /* 40868240 e548 */
moveal %a3@(0x0072,%d0:w),%a0 /* 40868242 2073 0072 */
movel %a0@(108),%d0 /* 40868246 2028 006c */
beqs .L40868252 /* 4086824a 6706 */
moveal %d0,%a0 /* 4086824c 2040 */
movew %d1,%sp@- /* 4086824e 3f01 */
jsr %a0@ /* 40868250 4e90 */
.L40868252:
dbf %d3,.L40868238
clrw %fp@(12) /* 40868256 426e 000c */
moveml %sp@+,%d3/%a2-%a3 /* 4086825a 4cdf 0c08 */
movew #4,%d0 /* 4086825e 303c 0004 */
braw STDUNLINK /* 40868262 6000 01de */
sub_40868266:
JmpVector 0x2060 49 /* 40868266 2f30 81e2 2060 00c4 */
__v__INITSCRIPTAPP:
linkw %fp,#0 /* 40868270 4e56 0000 */
moveml %a2,%sp@- /* 40868274 48e7 0020 */
moveal 0x2b6,%a2 /* 40868278 2478 02b6 */
moveal %a2@(352),%a0 /* 4086827c 206a 0160 */
.short 0xa021 /* 40868280 a021 */
tstl %d0 /* 40868282 4a80 */
bmis .L408682a8 /* 40868284 6b22 */
movel %d0,%d2 /* 40868286 2400 */
addil #48,%d0 /* 40868288 0680 0000 0030 */
_NewHandleClear
bmis .L408682a8 /* 40868290 6b16 */
moveal %a0,%a1 /* 40868292 2248 */
movel %a1,%a2@(376) /* 40868294 2549 0178 */
_HNoPurge
moveal %a2@(352),%a0 /* 4086829a 206a 0160 */
moveal %a1@,%a1 /* 4086829e 2251 */
lea %a1@(48),%a1 /* 408682a0 43e9 0030 */
movel %d2,%d0 /* 408682a4 2002 */
_BlockMove
.L408682a8:
clrw %fp@(12) /* 408682a8 426e 000c */
moveml %sp@+,%a2 /* 408682ac 4cdf 0400 */
movew #4,%d0 /* 408682b0 303c 0004 */
braw STDUNLINK /* 408682b4 6000 018c */
sub_408682b8:
JmpVector 0x2060 50 /* 408682b8 2f30 81e2 2060 00c8 */
.align 16
__v__CLEANUPSCRIPTAPP:
linkw %fp,#0 /* 408682d0 4e56 0000 */
moveal 0x2b6,%a0 /* 408682d4 2078 02b6 */
moveal %a0@(376),%a0 /* 408682d8 2068 0178 */
movel %a0,%d0 /* 408682dc 2008 */
beqs .L408682ee /* 408682de 670e */
addql #1,%d0 /* 408682e0 5280 */
beqs .L408682ee /* 408682e2 670a */
_DisposeHandle /* 408682e4 a023 */
moveal 0x2b6,%a0 /* 408682e6 2078 02b6 */
clrl %a0@(376) /* 408682ea 42a8 0178 */
.L408682ee:
clrw %fp@(12) /* 408682ee 426e 000c */
movew #4,%d0 /* 408682f2 303c 0004 */
braw STDUNLINK /* 408682f6 6000 014a */
sub_408682fa:
JmpVector 0x2060 51 /* 408682fa 2f30 81e2 2060 00cc */
.align 16
__v__ISCMDCHAR:
linkw %fp,#0 /* 40868310 4e56 0000 */
moveml %d3-%d4/%a2,%sp@- /* 40868314 48e7 1820 */
movew %fp@(12),%d4 /* 40868318 382e 000c */
moveal %fp@(14),%a0 /* 4086831c 206e 000e */
movew %a0@(14),%d3 /* 40868320 3628 000e */
moveb %a0@(4),%d3 /* 40868324 1628 0004 */
orib #0x80,%d3 /* 40868328 0003 0080 */
moveal 0x2b6,%a0 /* 4086832c 2078 02b6 */
moveal %a0@(14),%a2 /* 40868330 2468 000e */
st %fp@(18) /* 40868334 50ee 0012 */
bsrs __v__DOKEYTRANS /* 40868338 612c */
beqs .L40868358 /* 4086833a 671c */
andiw #-257,%d3 /* 4086833c 0243 feff */
bsrs __v__DOKEYTRANS /* 40868340 6124 */
beqs .L40868358 /* 40868342 6714 */
movew #512,%d0 /* 40868344 303c 0200 */
eorw %d0,%d3 /* 40868348 b143 */
bsrs __v__DOKEYTRANS /* 4086834a 611a */
beqs .L40868358 /* 4086834c 670a */
oriw #256,%d3 /* 4086834e 0043 0100 */
bsrs __v__DOKEYTRANS /* 40868352 6112 */
seq %fp@(18) /* 40868354 57ee 0012 */
.L40868358:
moveml %sp@+,%d3-%d4/%a2 /* 40868358 4cdf 0418 */
unlk %fp /* 4086835c 4e5e */
moveal %sp@+,%a0 /* 4086835e 205f */
addaw #10,%sp /* 40868360 defc 000a */
jmp %a0@ /* 40868364 4ed0 */
__v__DOKEYTRANS:
subql #4,%sp /* 40868366 598f */
movel %a2,%sp@- /* 40868368 2f0a */
movew %d3,%sp@- /* 4086836a 3f03 */
pea %pc@(byte_4086837e) /* 4086836c 487a 0010 */
.short 0xa9c3 /* 40868370 a9c3 */
cmpw %sp@+,%d4 /* 40868372 b85f */
beqs .L4086837a /* 40868374 6704 */
cmpw %sp@+,%d4 /* 40868376 b85f */
rts /* 40868378 4e75 */
.L4086837a:
addqw #2,%sp /* 4086837a 544f */
rts /* 4086837c 4e75 */
byte_4086837e:
.long 0 /* 4086837e 0000 0000 */
sub_40868382:
JmpVector 0x2060 53 /* 40868382 2f30 81e2 2060 00d4 */
sub_4086838c:
JmpVector 0x2060 52 /* 4086838c 2f30 81e2 2060 00d0 */
.align 16
__v__FINDCHARINSET:
linkw %fp,#0 /* 408683a0 4e56 0000 */
moveml %d2-%d7/%a2-%a4,%sp@-
moveq #-1,%d7
movel %d7,%fp@(28)
movel %fp@(20),%d7
bles .L40868416
moveal %fp@(16),%a3
moveq #0,%d6
moveb %a3@+,%d6
beqs .L40868416
moveq #0,%d0
moveq #0,%d1
moveq #0,%d2
moveal %fp@(24),%a4
moveal %fp@(12),%a2
moveb %a3@,%d1
moveq #0,%d4
.L408683d0:
moveb %a4@(%d4:l),%d0
cmpiw #1,%d6
beqs .L40868400
moveq #0,%d3
.L408683dc:
lea %a4@(%d4:l),%a0
lea %a3@(%d3:l),%a1
moveb %a1@,%d1
moveb %a2@(%d1:l),%d2
movel %d2,%d5
.L408683ec:
cmpmb %a0@+,%a1@+
bnes .L408683f6
dbf %d5,.L408683ec
bras .L40868404
.L408683f6:
addql #1,%d3
addl %d2,%d3
cmpl %d3,%d6
bgts .L408683dc
bras .L4086840a
.L40868400:
cmpb %d0,%d1
bnes .L4086840a
.L40868404:
movel %d4,%fp@(28)
bras .L40868416
.L4086840a:
addql #1,%d4
moveb %a2@(%d0:l),%d0
addl %d0,%d4
cmpl %d4,%d7
bgts .L408683d0
.L40868416:
moveml %sp@+,%d2-%d7/%a2-%a4
unlk %fp
moveal %sp@+,%a0
moveq #20,%d0
addaw %d0,%sp
jmp %a0@
sub_40868424:
JmpVector 0x2060 54 /* 40868424 2f30 81e2 2060 00d8 */
.align 16
__v__STDUNLINK:
.short 0x4e5e /* 40868430 4e5e */
__v__STDEXIT:
.short 0x205f /* 40868432 205f */
.short 0xdec0 /* 40868434 dec0 */
.short 0x4ed0 /* 40868436 4ed0 */
STDEXIT:
JmpVector 0x2060 56 /* 40868438 2f30 81e2 2060 00e0 */
STDUNLINK:
JmpVector 0x2060 55 /* 40868442 2f30 81e2 2060 00dc */
.align 16
__v__SCLWRSTRING:
.short 0x225f /* 40868450 225f */
.short 0x584f /* 40868452 584f */
.short 0x321f /* 40868454 321f */
.short 0x341f /* 40868456 341f */
.short 0x301f /* 40868458 301f */
.short 0x205f /* 4086845a 205f */
.short 0x2f09 /* 4086845c 2f09 */
.short 0x0c42 /* 4086845e 0c42 */
.short 0xffff /* 40868460 ffff */
.short 0x6d24 /* 40868462 6d24 */
.short 0x2278 /* 40868464 2278 */
.short 0x0ba0 /* 40868466 0ba0 */
.short 0x6e04 /* 40868468 6e04 */
.short 0x3429 /* 4086846a 3429 */
.short 0x0026 /* 4086846c 0026 */
.short 0x3f02 /* 4086846e 3f02 */
.short 0xe54a /* 40868470 e54a */
.short 0x2431 /* 40868472 2431 */
.short 0x2072 /* 40868474 2072 */
.short 0x6700 /* 40868476 6700 */
.short 0x00ec /* 40868478 00ec */
.short 0x2242 /* 4086847a 2242 */
.short 0x4a29 /* 4086847c 4a29 */
.short 0x0004 /* 4086847e 0004 */
.short 0x6700 /* 40868480 6700 */
.short 0x00e2 /* 40868482 00e2 */
.short 0x341f /* 40868484 341f */
.short 0x6016 /* 40868486 6016 */
NEWLWRSTRING:
moveml %d0-%d1/%a0,%sp@- /* 40868488 48e7 c080 */
subql #2,%sp /* 4086848c 558f */
_ScriptUtil 0x82000000
movew %sp@+,%d2 /* 40868496 341f */
moveal %a0,%a1 /* 40868498 2248 */
moveml %sp@+,%d0-%d1/%a0 /* 4086849a 4cdf 0103 */
.L4086849e:
extl %d0 /* 4086849e 48c0 */
blew .L40868566 /* 408684a0 6f00 00c4 */
tstb %a1@(7) /* 408684a4 4a29 0007 */
blew .L4086856a /* 408684a8 6f00 00c0 */
linkw %fp,#-22 /* 408684ac 4e56 ffea */
movew %d2,%fp@(-22) /* 408684b0 3d42 ffea */
clrw %fp@(-18) /* 408684b4 426e ffee */
movew #16384,%fp@(-20) /* 408684b8 3d7c 4000 ffec */
andiw #1536,%d1 /* 408684be 0241 0600 */
beqs .L408684d2 /* 408684c2 670e */
cmpiw #512,%d1 /* 408684c4 0c41 0200 */
beqw .L4086855c /* 408684c8 6700 0092 */
movew #-32768,%fp@(-20) /* 408684cc 3d7c 8000 ffec */
.L408684d2:
movel %a0,%fp@(-4) /* 408684d2 2d48 fffc */
movel %d0,%fp@(-8) /* 408684d6 2d40 fff8 */
.short 0xa9e3 /* 408684da a9e3 */
movew %d0,%fp@(-18) /* 408684dc 3d40 ffee */
bnew .L4086855c /* 408684e0 6600 007a */
movel %a0,%fp@(-12) /* 408684e4 2d48 fff4 */
movel %fp@(-8),%d0 /* 408684e8 202e fff8 */
.short 0xa122 /* 408684ec a122 */
movew %d0,%fp@(-18) /* 408684ee 3d40 ffee */
bnes .L40868556 /* 408684f2 6662 */
movel %a0,%fp@(-16) /* 408684f4 2d48 fff0 */
subql #2,%sp /* 408684f8 558f */
movel %fp@(-12),%sp@- /* 408684fa 2f2e fff4 */
movel %a0,%sp@- /* 408684fe 2f08 */
movew %fp@(-20),%sp@- /* 40868500 3f2e ffec */
movel #1,%sp@- /* 40868504 2f3c 0000 0001 */
movew %fp@(-22),%sp@- /* 4086850a 3f2e ffea */
_ScriptUtil 0xc20e0018
movew %sp@+,%fp@(-18) /* 40868516 3d5f ffee */
bnes .L40868550 /* 4086851a 6634 */
moveal %fp@(-16),%a0 /* 4086851c 206e fff0 */
.short 0xa025 /* 40868520 a025 */
movew %d0,%fp@(-18) /* 40868522 3d40 ffee */
tstl %d0 /* 40868526 4a80 */
blts .L40868550 /* 40868528 6d26 */
movew #-1,%fp@(-18) /* 4086852a 3d7c ffff ffee */
cmpl %fp@(-8),%d0 /* 40868530 b0ae fff8 */
bnes .L40868550 /* 40868534 661a */
moveal %fp@(-16),%a0 /* 40868536 206e fff0 */
moveal %a0@,%a0 /* 4086853a 2050 */
moveal %fp@(-4),%a1 /* 4086853c 226e fffc */
movel %fp@(-8),%d0 /* 40868540 202e fff8 */
subql #1,%d0 /* 40868544 5380 */
.L40868546:
moveb %a0@+,%a1@+ /* 40868546 12d8 */
dbf %d0,.L40868546 /* 40868548 51c8 fffc */
clrw %fp@(-18) /* 4086854c 426e ffee */
.L40868550:
moveal %fp@(-16),%a0 /* 40868550 206e fff0 */
_DisposeHandle /* 40868554 a023 */
.L40868556:
moveal %fp@(-12),%a0 /* 40868556 206e fff4 */
_DisposeHandle /* 4086855a a023 */
.L4086855c:
movew %fp@(-18),%d0 /* 4086855c 302e ffee */
unlk %fp /* 40868560 4e5e */
rts /* 40868562 4e75 */
.short 0x544f /* 40868564 544f */
.L40868566:
.short 0x4240 /* 40868566 4240 */
rts /* 40868568 4e75 */
.L4086856a:
.short 0x2f0a /* 4086856a 2f0a */
.short 0x48e7 /* 4086856c 48e7 */
.short 0xc080 /* 4086856e c080 */
.short 0x42a7 /* 40868570 42a7 */
.short 0x3f3c /* 40868572 3f3c */
.short 0x0002 /* 40868574 0002 */
.short 0x3f02 /* 40868576 3f02 */
.short 0x4267 /* 40868578 4267 */
.short 0x3f3c /* 4086857a 3f3c */
.short 0x0032 /* 4086857c 0032 */
.short 0xa9ed /* 4086857e a9ed */
.short 0x245f /* 40868580 245f */
.short 0x4cdf /* 40868582 4cdf */
.short 0x0103 /* 40868584 0103 */
.short 0x240a /* 40868586 240a */
.short 0x673e /* 40868588 673e */
.short 0x2452 /* 4086858a 2452 */
.short 0x082a /* 4086858c 082a */
.short 0x0000 /* 4086858e 0000 */
.short 0x0009 /* 40868590 0009 */
.short 0x6734 /* 40868592 6734 */
.short 0x224a /* 40868594 224a */
.short 0x7400 /* 40868596 7400 */
.short 0x342a /* 40868598 342a */
.short 0x000e /* 4086859a 000e */
.short 0xd3c2 /* 4086859c d3c2 */
.short 0xe049 /* 4086859e e049 */
.short 0x0241 /* 408685a0 0241 */
.short 0x0006 /* 408685a2 0006 */
.short 0x323b /* 408685a4 323b */
.short 0x1028 /* 408685a6 1028 */
.short 0x3432 /* 408685a8 3432 */
.short 0x1000 /* 408685aa 1000 */
.short 0xd5c2 /* 408685ac d5c2 */
.short 0x7200 /* 408685ae 7200 */
.short 0x600c /* 408685b0 600c */
.short 0x1210 /* 408685b2 1210 */
.short 0x1231 /* 408685b4 1231 */
.short 0x1000 /* 408685b6 1000 */
.short 0x1232 /* 408685b8 1232 */
.short 0x1000 /* 408685ba 1000 */
.short 0xd318 /* 408685bc d318 */
.short 0x51c8 /* 408685be 51c8 */
.short 0xfff2 /* 408685c0 fff2 */
moveq #0,%d0 /* 408685c2 7000 */
.short 0x245f /* 408685c4 245f */
rts /* 408685c6 4e75 */
.short 0x303c /* 408685c8 303c */
.short 0xff40 /* 408685ca ff40 */
.short 0x60f6 /* 408685cc 60f6 */
.short 0x0012 /* 408685ce 0012 */
.short 0x001a /* 408685d0 001a */
.short 0x0010 /* 408685d2 0010 */
.short 0x0014 /* 408685d4 0014 */
sub_408685d6:
JmpVector 0x2060 57 /* 408685d6 2f30 81e2 2060 00e4 */
__v__XTESTLETTER:
.short 0x2e9f /* 408685e0 2e9f */
__v__ITESTLETTER:
.short 0x426f /* 408685e2 426f */
.short 0x0006 /* 408685e4 0006 */
.short 0x7200 /* 408685e6 7200 */
.short 0x2038 /* 408685e8 2038 */
.short 0x0174 /* 408685ea 0174 */
.short 0x660e /* 408685ec 660e */
.short 0x7220 /* 408685ee 7220 */
.short 0x2038 /* 408685f0 2038 */
.short 0x0178 /* 408685f2 0178 */
.short 0x0280 /* 408685f4 0280 */
.short 0xffff /* 408685f6 ffff */
.short 0x7f80 /* 408685f8 7f80 */
.short 0x674e /* 408685fa 674e */
linkw %fp,#0 /* 408685fc 4e56 0000 */
.short 0x48e7 /* 40868600 48e7 */
.short 0x1820 /* 40868602 1820 */
.short 0x382e /* 40868604 382e */
.short 0x0008 /* 40868606 0008 */
.short 0x761f /* 40868608 761f */
.short 0x0700 /* 4086860a 0700 */
.short 0x56cb /* 4086860c 56cb */
.short 0xfffc /* 4086860e fffc */
.short 0x3003 /* 40868610 3003 */
.short 0x0243 /* 40868612 0243 */
.short 0x0007 /* 40868614 0007 */
.short 0x0240 /* 40868616 0240 */
.short 0x00f8 /* 40868618 00f8 */
.short 0x0643 /* 4086861a 0643 */
.short 0x0018 /* 4086861c 0018 */
.short 0x9640 /* 4086861e 9640 */
.short 0xd641 /* 40868620 d641 */
.short 0x0043 /* 40868622 0043 */
.short 0x0080 /* 40868624 0080 */
.short 0x2078 /* 40868626 2078 */
.short 0x02b6 /* 40868628 02b6 */
.short 0x2468 /* 4086862a 2468 */
.short 0x000e /* 4086862c 000e */
.short 0x50ee /* 4086862e 50ee */
.short 0x000a /* 40868630 000a */
.short 0x6100 /* 40868632 6100 */
.short 0xfd4e /* 40868634 fd4e */
.short 0x670c /* 40868636 670c */
.short 0x0043 /* 40868638 0043 */
.short 0x0100 /* 4086863a 0100 */
.short 0x6100 /* 4086863c 6100 */
.short 0xfd44 /* 4086863e fd44 */
.short 0x57ee /* 40868640 57ee */
.short 0x000a /* 40868642 000a */
.short 0x4cdf /* 40868644 4cdf */
.short 0x0418 /* 40868646 0418 */
.short 0x4e5e /* 40868648 4e5e */
.short 0x205f /* 4086864a 205f */
.short 0x548f /* 4086864c 548f */
.short 0x4ed0 /* 4086864e 4ed0 */
ITESTLETTER:
JmpVector 0x2060 59 /* 40868650 2f30 81e2 2060 00ec */
sub_4086865a:
JmpVector 0x2060 58 /* 4086865a 2f30 81e2 2060 00e8 */
.align 16
.short 0x205f /* 40868670 205f */
.short 0x504f /* 40868672 504f */
.short 0x4297 /* 40868674 4297 */
.short 0x4ed0 /* 40868676 4ed0 */
.short 0x205f /* 40868678 205f */
.short 0x4fef /* 4086867a 4fef */
.short 0x000c /* 4086867c 000c */
.short 0x3ebc /* 4086867e 3ebc */
.short 0xffff /* 40868680 ffff */
.short 0x4ed0 /* 40868682 4ed0 */
.short 0x0000 /* 40868684 0000 */
.short 0x0000 /* 40868686 0000 */
.short 0x0000 /* 40868688 0000 */
.short 0x0000 /* 4086868a 0000 */
.short 0x0000 /* 4086868c 0000 */
.short 0x0000 /* 4086868e 0000 */
__v__CHARTYPE:
.short 0x206f /* 40868690 206f */
.short 0x0004 /* 40868692 0004 */
.short 0x7400 /* 40868694 7400 */
.short 0x1428 /* 40868696 1428 */
.short 0x0065 /* 40868698 0065 */
.short 0x42a7 /* 4086869a 42a7 */
.short 0x3f3c /* 4086869c 3f3c */
.short 0x0002 /* 4086869e 0002 */
.short 0x2f02 /* 408686a0 2f02 */
.short 0x3f3c /* 408686a2 3f3c */
.short 0x0032 /* 408686a4 0032 */
.short 0xa9ed /* 408686a6 a9ed */
.short 0x201f /* 408686a8 201f */
.short 0x205f /* 408686aa 205f */
.short 0x241f /* 408686ac 241f */
.short 0x321f /* 408686ae 321f */
.short 0x225f /* 408686b0 225f */
.short 0x48e7 /* 408686b2 48e7 */
.short 0x0030 /* 408686b4 0030 */
.short 0x4a80 /* 408686b6 4a80 */
.short 0x6758 /* 408686b8 6758 */
.short 0x2440 /* 408686ba 2440 */
moveq #0,%d0 /* 408686bc 7000 */
.short 0x2452 /* 408686be 2452 */
.short 0x082a /* 408686c0 082a */
.short 0x0000 /* 408686c2 0000 */
.short 0x0009 /* 408686c4 0009 */
.short 0x674a /* 408686c6 674a */
.short 0x264a /* 408686c8 264a */
.short 0x302a /* 408686ca 302a */
.short 0x000e /* 408686cc 000e */
.short 0xd5c0 /* 408686ce d5c0 */
.short 0x302b /* 408686d0 302b */
.short 0x000c /* 408686d2 000c */
.short 0xd7c0 /* 408686d4 d7c0 */
moveq #0,%d0 /* 408686d6 7000 */
.short 0x1031 /* 408686d8 1031 */
.short 0x1000 /* 408686da 1000 */
.short 0x1032 /* 408686dc 1032 */
.short 0x0000 /* 408686de 0000 */
.short 0x1033 /* 408686e0 1033 */
.short 0x0000 /* 408686e2 0000 */
.short 0x7200 /* 408686e4 7200 */
.short 0x1200 /* 408686e6 1200 */
.short 0x6a04 /* 408686e8 6a04 */
.short 0x08c0 /* 408686ea 08c0 */
.short 0x000e /* 408686ec 000e */
.short 0x0200 /* 408686ee 0200 */
.short 0x000f /* 408686f0 000f */
.short 0x2242 /* 408686f2 2242 */
.short 0x4a29 /* 408686f4 4a29 */
.short 0x0005 /* 408686f6 0005 */
.short 0x6710 /* 408686f8 6710 */
.short 0x0801 /* 408686fa 0801 */
.short 0x0006 /* 408686fc 0006 */
.short 0x670a /* 408686fe 670a */
.short 0x08c0 /* 40868700 08c0 */
.short 0x000d /* 40868702 000d */
.short 0x0201 /* 40868704 0201 */
.short 0x0030 /* 40868706 0030 */
.short 0x6004 /* 40868708 6004 */
.short 0x0201 /* 4086870a 0201 */
.short 0x0070 /* 4086870c 0070 */
.short 0xe949 /* 4086870e e949 */
.short 0x8041 /* 40868710 8041 */
.short 0x4cdf /* 40868712 4cdf */
.short 0x0c00 /* 40868714 0c00 */
.short 0x3e80 /* 40868716 3e80 */
.short 0x4ed0 /* 40868718 4ed0 */
sub_4086871a:
JmpVector 0x2060 60 /* 4086871a 2f30 81e2 2060 00f0 */
.align 16
__v__STYLEDLINEBREAK:
linkw %fp,#-22
moveml %d4-%d6/%a2-%a3,%sp@-
moveal %fp@(16),%a3
movel %fp@(36),%d5
addl %fp@(28),%d5
movew 0xbac,%fp@(-16)
clrw 0xbac
clrw %sp@-
_ScriptUtil 0x82000000
movew %sp@+,%d0
lslw #2,%d0
moveal 0xba0,%a2
moveal %a2@(0x72,%d0:w),%a2
moveb %a2@(18),%fp@(-18)
bclr #15,%a2@(18)
movel %fp@(24),%d4
subl %fp@(28),%d4
blew .L40868838
tstl %a3@
bmiw .L4086887c
moveal %d5,%a0
movew %d4,%d0
bsrw sub_408688e0
moveb %d0,%fp@(-14)
movew %d1,%d4
movel %a3@,%fp@(-22)
clrw %sp@-
movel %d5,%sp@-
movel %d4,%sp@-
clrl %sp@-
movel %a3@,%sp@-
pea %fp@(-13)
movel %a3,%sp@-
clrw %sp@-
movel #65537,%d0
movel %d0,%sp@-
movel %d0,%sp@-
_ScriptUtil 0x8222002e
moveq #0,%d6
movew %sp@+,%d6
tstl %fp@(-22)
bnes .L408687c6
st %fp@(-13)
.L408687c6:
movel %d6,%d0
addl %fp@(28),%d6
cmpl %d4,%d0
blts .L408687e2
tstb %fp@(-13)
beqs .L408687e2
tstb %fp@(-14)
beqs .L40868838
movel %d6,%d1
braw .L408688ac
.L408687e2:
movel %fp@(36),%sp@-
movew %fp@(34),%sp@-
movew %d6,%sp@-
moveb %fp@(-13),%sp@-
movel 0xa06,%sp@-
pea %fp@(-12)
_ScriptUtil 0x8012001a
clrw %sp@-
movel %fp@(36),%sp@-
movew %fp@(-12),%sp@-
_ScriptUtil 0x82060012
movew %sp@+,%d0
moveq #0,%d1
movew %fp@(-12),%d1
andiw #3855,%d0
cmpiw #768,%d0
bnes .L40868840
btst #15,%fp@(-18)
sne %d0
cmpb %fp@(-15),%d0
bnes .L40868840
movew %fp@(-10),%d1
bras .L408688ac
.L40868838:
movel %fp@(24),%d6
moveq #2,%d0
bras .L408688b2
.L40868840:
tstl %d1
bnes .L408688ac
moveal %fp@(12),%a0
tstl %a0@
beqs .L408688ac
tstb %fp@(-13)
bnes .L40868876
subql #1,%d6
btst #1,%a2@(19)
bnes .L40868876
clrw %sp@-
movel %d5,%sp@-
movel %d6,%d0
subl %fp@(28),%d0
movew %d0,%sp@-
_ScriptUtil 0x82060010
tstw %sp@+
bles .L40868876
subql #1,%d6
.L40868876:
tstl %d6
bgts .L408688a8
bras .L40868888
.L4086887c:
moveal %fp@(12),%a0
tstl %a0@
bnes .L40868888
moveq #0,%d1
bras .L408688ac
.L40868888:
moveq #1,%d6
btst #1,%a2@(19)
bnes .L408688a8
clrw %sp@-
movel %d5,%sp@-
movew #1,%sp@-
_ScriptUtil 0x82060010
tstw %sp@+
bles .L408688a8
addql #1,%d6
.L408688a8:
moveq #1,%d0
bras .L408688b2
.L408688ac:
moveq #0,%d6
movew %d1,%d6
moveq #0,%d0
.L408688b2:
moveal %fp@(12),%a0
movel %d6,%a0@
moveb %d0,%fp@(40)
moveb %fp@(-18),%a2@(18)
movew %fp@(-16),0xbac
moveml %sp@+,%d4-%d6/%a2-%a3
movew #32,%d0
braw STDUNLINK
sub_408688d4:
JmpVector 0x2060 61 /* 408688d4 2f30 81e2 2060 00f4 */
.align 16
sub_408688e0:
.short 0x3200 /* 408688e0 3200 */
.short 0x143c /* 408688e2 143c */
.short 0x000d /* 408688e4 000d */
.short 0x6002 /* 408688e6 6002 */
.short 0xb418 /* 408688e8 b418 */
.short 0x57c8 /* 408688ea 57c8 */
.short 0xfffc /* 408688ec fffc */
.short 0x6704 /* 408688ee 6704 */
.short 0x51c0 /* 408688f0 51c0 */
.short 0x6004 /* 408688f2 6004 */
.short 0x9240 /* 408688f4 9240 */
.short 0x50c0 /* 408688f6 50c0 */
rts /* 408688f8 4e75 */
.align 16
__v__KEYSCRIPT:
linkw %fp,#-26 /* 40868900 4e56 ffe6 */
movel %a2,%sp@- /* 40868904 2f0a */
moveal 0xba0,%a2 /* 40868906 2478 0ba0 */
clrb %a2@(399) /* 4086890a 422a 018f */
movew %fp@(12),%d0 /* 4086890e 302e 000c */
blts .L40868930 /* 40868912 6d1c */
beqs .L40868928 /* 40868914 6712 */
cmpib #1,%a2@(4) /* 40868916 0c2a 0001 0004 */
blew .L40868eb6 /* 4086891c 6f00 0598 */
cmpiw #65,%d0 /* 40868920 0c40 0041 */
bgtw .L40868eb6 /* 40868924 6e00 0590 */
.L40868928:
st %a2@(399) /* 40868928 50ea 018f */
braw .L40868b90 /* 4086892c 6000 0262 */
.L40868930:
negw %d0 /* 40868930 4440 */
cmpiw #18,%d0 /* 40868932 0c40 0012 */
bgtw .L40868eb6 /* 40868936 6e00 057e */
subqw #1,%d0 /* 4086893a 5340 */
lslw #2,%d0 /* 4086893c e548 */
lea %pc@(off_4086894c),%a0 /* 4086893e 41fa 000c */
movel %a0@(%d0:w),%d0 /* 40868942 2030 0000 */
lea %a0@(%d0:w),%a1 /* 40868946 43f0 0000 */
jmp %a1@ /* 4086894a 4ed1 */