-
Notifications
You must be signed in to change notification settings - Fork 1
/
5bf10fd1.06
12915 lines (11487 loc) · 409 KB
/
5bf10fd1.06
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
DOHDELETE:
movel %sp@+,%fp@- /* 40830000 2d1f */
bsrw __v__BOTTLENECKIO /* 40830002 6100 ff6c */
bnes .L4083000c /* 40830006 6604 */
_PBHDeleteSync /* 40830008 a209 */
bras .L4082ffc4 /* 4083000a 60b8 */
.L4083000c:
_PBHDeleteAsync /* 4083000c a609 */
bras .L4082ffe2 /* 4083000e 60d2 */
DOCLOSE:
movel %sp@+,%fp@- /* 40830010 2d1f */
bsrw __v__BOTTLENECKIO /* 40830012 6100 ff5c */
bnes .L4083001c /* 40830016 6604 */
_PBCloseSync /* 40830018 a001 */
bras .L4082ffc4 /* 4083001a 60a8 */
.L4083001c:
_PBCloseAsync /* 4083001c a401 */
bras .L4082ffe2 /* 4083001e 60c2 */
DOREAD:
movel %sp@+,%fp@- /* 40830020 2d1f */
bsrw __v__BOTTLENECKIO /* 40830022 6100 ff4c */
bnes .L4083002c /* 40830026 6604 */
_PBReadSync /* 40830028 a002 */
bras .L4082ffc4 /* 4083002a 6098 */
.L4083002c:
_PBReadAsync
bras .L4082ffe2 /* 4083002e 60b2 */
DOWRITE:
movel %sp@+,%fp@- /* 40830030 2d1f */
bsrw __v__BOTTLENECKIO /* 40830032 6100 ff3c */
bnes .L4083003c /* 40830036 6604 */
.short 0xa003 /* 40830038 a003 */
bras .L4082ffc4 /* 4083003a 6088 */
.L4083003c:
.short 0xa403 /* 4083003c a403 */
bras .L4082ffe2 /* 4083003e 60a2 */
DOGETCATINFO_:
movel %sp@+,%fp@- /* 40830040 2d1f */
bsrw __v__BOTTLENECKIO /* 40830042 6100 ff2c */
bnes .L40830050 /* 40830046 6608 */
moveq #9,%d0 /* 40830048 7009 */
.short 0xa260 /* 4083004a a260 */
braw .L4082ffc4 /* 4083004c 6000 ff76 */
.L40830050:
moveq #9,%d0 /* 40830050 7009 */
.short 0xa660 /* 40830052 a660 */
bras .L4082ffe2 /* 40830054 608c */
DOHGETVINFO:
movel %sp@+,%fp@- /* 40830056 2d1f */
bsrw __v__BOTTLENECKIO /* 40830058 6100 ff16 */
bnes .L40830064 /* 4083005c 6606 */
.short 0xa207 /* 4083005e a207 */
braw .L4082ffc4 /* 40830060 6000 ff62 */
.L40830064:
.short 0xa607 /* 40830064 a607 */
braw .L4082ffe2 /* 40830066 6000 ff7a */
DOHGETFILEINFO:
movel %sp@+,%fp@- /* 4083006a 2d1f */
bsrw __v__BOTTLENECKIO /* 4083006c 6100 ff02 */
bnes .L40830078 /* 40830070 6606 */
.short 0xa20c /* 40830072 a20c */
braw .L4082ffc4 /* 40830074 6000 ff4e */
.L40830078:
.short 0xa60c /* 40830078 a60c */
braw .L4082ffe2 /* 4083007a 6000 ff66 */
DOHSETFILEINFO:
movel %sp@+,%fp@- /* 4083007e 2d1f */
bsrw __v__BOTTLENECKIO /* 40830080 6100 feee */
bnes .L4083008c /* 40830084 6606 */
.short 0xa20d /* 40830086 a20d */
braw .L4082ffc4 /* 40830088 6000 ff3a */
.L4083008c:
.short 0xa60d /* 4083008c a60d */
braw .L4082ffe2 /* 4083008e 6000 ff52 */
DOHCREATE:
movel %sp@+,%fp@- /* 40830092 2d1f */
bsrw __v__BOTTLENECKIO /* 40830094 6100 feda */
bnes .L408300a0 /* 40830098 6606 */
.short 0xa208 /* 4083009a a208 */
braw .L4082ffc4 /* 4083009c 6000 ff26 */
.L408300a0:
.short 0xa608 /* 408300a0 a608 */
braw .L4082ffe2 /* 408300a2 6000 ff3e */
DOALLOCATE:
movel %sp@+,%fp@- /* 408300a6 2d1f */
bsrw __v__BOTTLENECKIO /* 408300a8 6100 fec6 */
bnes .L408300b4 /* 408300ac 6606 */
.short 0xa010 /* 408300ae a010 */
braw .L4082ffc4 /* 408300b0 6000 ff12 */
.L408300b4:
.short 0xa410 /* 408300b4 a410 */
braw .L4082ffe2 /* 408300b6 6000 ff2a */
DOSETEOF:
movel %sp@+,%fp@- /* 408300ba 2d1f */
bsrw __v__BOTTLENECKIO /* 408300bc 6100 feb2 */
bnes .L408300c8 /* 408300c0 6606 */
.short 0xa012 /* 408300c2 a012 */
braw .L4082ffc4 /* 408300c4 6000 fefe */
.L408300c8:
.short 0xa412 /* 408300c8 a412 */
braw .L4082ffe2 /* 408300ca 6000 ff16 */
DOGETEOF:
movel %sp@+,%fp@- /* 408300ce 2d1f */
bsrw __v__BOTTLENECKIO /* 408300d0 6100 fe9e */
bnes .L408300dc /* 408300d4 6606 */
.short 0xa011 /* 408300d6 a011 */
braw .L4082ffc4 /* 408300d8 6000 feea */
.L408300dc:
.short 0xa411 /* 408300dc a411 */
braw .L4082ffe2 /* 408300de 6000 ff02 */
DOGETFCBINFO:
movel %sp@+,%fp@- /* 408300e2 2d1f */
bsrw __v__BOTTLENECKIO /* 408300e4 6100 fe8a */
bnes .L408300f2 /* 408300e8 6608 */
moveq #8,%d0 /* 408300ea 7008 */
.short 0xa260 /* 408300ec a260 */
braw .L4082ffc4 /* 408300ee 6000 fed4 */
.L408300f2:
moveq #8,%d0 /* 408300f2 7008 */
.short 0xa660 /* 408300f4 a660 */
braw .L4082ffe2 /* 408300f6 6000 feea */
DOFLUSHVOL:
movel %sp@+,%fp@- /* 408300fa 2d1f */
bsrw __v__BOTTLENECKIO /* 408300fc 6100 fe72 */
bnes .L40830108 /* 40830100 6606 */
.short 0xa013 /* 40830102 a013 */
braw .L4082ffc4 /* 40830104 6000 febe */
.L40830108:
.short 0xa413 /* 40830108 a413 */
braw .L4082ffe2 /* 4083010a 6000 fed6 */
DOMAKEFSSPEC:
movel %sp@+,%fp@- /* 4083010e 2d1f */
bsrw __v__BOTTLENECKIO /* 40830110 6100 fe5e */
bnes .L4083011e /* 40830114 6608 */
moveq #27,%d0 /* 40830116 701b */
.short 0xa260 /* 40830118 a260 */
braw .L4082ffc4 /* 4083011a 6000 fea8 */
.L4083011e:
moveq #27,%d0 /* 4083011e 701b */
.short 0xa660 /* 40830120 a660 */
braw .L4082ffe2 /* 40830122 6000 febe */
DOGETVOLPARMS:
movel %sp@+,%fp@- /* 40830126 2d1f */
bsrw __v__BOTTLENECKIO /* 40830128 6100 fe46 */
bnes .L40830136 /* 4083012c 6608 */
moveq #48,%d0 /* 4083012e 7030 */
.short 0xa260 /* 40830130 a260 */
braw .L4082ffc4 /* 40830132 6000 fe90 */
.L40830136:
moveq #48,%d0 /* 40830136 7030 */
.short 0xa660 /* 40830138 a660 */
braw .L4082ffe2 /* 4083013a 6000 fea6 */
DOBTSEARCH:
movel %sp@+,%fp@-
bsrw __v__BOTTLENECKIO
bnes .L4083014e
moveq #6,%d0
.short 0xa08e
braw .L4082ffc4
.L4083014e:
moveq #6,%d0
.short 0xa48e
braw .L4082ffe2
DOBTGETREC:
movel %sp@+,%fp@-
bsrw __v__BOTTLENECKIO
bnes .L40830166
moveq #7,%d0
.short 0xa08e
braw .L4082ffc4
.L40830166:
moveq #7,%d0
.short 0xa48e
braw .L4082ffe2
DOBTSETREC:
.short 0x2d1f /* 4083016e 2d1f */
.short 0x6100 /* 40830170 6100 */
.short 0xfdfe /* 40830172 fdfe */
.short 0x6608 /* 40830174 6608 */
.short 0x7004 /* 40830176 7004 */
.short 0xa08e /* 40830178 a08e */
.short 0x6000 /* 4083017a 6000 */
.short 0xfe48 /* 4083017c fe48 */
.short 0x7004 /* 4083017e 7004 */
.short 0xa48e /* 40830180 a48e */
.short 0x6000 /* 40830182 6000 */
.short 0xfe5e /* 40830184 fe5e */
DOBTREPLREC:
.short 0x2d1f /* 40830186 2d1f */
.short 0x6100 /* 40830188 6100 */
.short 0xfde6 /* 4083018a fde6 */
.short 0x6608 /* 4083018c 6608 */
.short 0x7005 /* 4083018e 7005 */
.short 0xa08e /* 40830190 a08e */
.short 0x6000 /* 40830192 6000 */
.short 0xfe30 /* 40830194 fe30 */
.short 0x7005 /* 40830196 7005 */
.short 0xa48e /* 40830198 a48e */
.short 0x6000 /* 4083019a 6000 */
.short 0xfe46 /* 4083019c fe46 */
DOBTDELREC:
.short 0x2d1f /* 4083019e 2d1f */
.short 0x6100 /* 408301a0 6100 */
.short 0xfdce /* 408301a2 fdce */
.short 0x6608 /* 408301a4 6608 */
.short 0x7008 /* 408301a6 7008 */
.short 0xa08e /* 408301a8 a08e */
.short 0x6000 /* 408301aa 6000 */
.short 0xfe18 /* 408301ac fe18 */
.short 0x7008 /* 408301ae 7008 */
.short 0xa48e /* 408301b0 a48e */
.short 0x6000 /* 408301b2 6000 */
.short 0xfe2e /* 408301b4 fe2e */
DOBTFLUSH:
.short 0x2d1f /* 408301b6 2d1f */
.short 0x6100 /* 408301b8 6100 */
.short 0xfdb6 /* 408301ba fdb6 */
.short 0x6608 /* 408301bc 6608 */
.short 0x700a /* 408301be 700a */
.short 0xa08e /* 408301c0 a08e */
.short 0x6000 /* 408301c2 6000 */
.short 0xfe00 /* 408301c4 fe00 */
.short 0x700a /* 408301c6 700a */
.short 0xa48e /* 408301c8 a48e */
.short 0x6000 /* 408301ca 6000 */
.short 0xfe16 /* 408301cc fe16 */
sub_408301ce:
JmpVector 0x2030 109 /* 408301ce 2f30 81e2 2030 01b4 */
.align 16
MYBEGINSYSTEMMODE:
movew %sr,%sp@- /* 408301e0 40e7 */
moveml %d0-%d2/%a0-%a1,%sp@- /* 408301e2 48e7 e0c0 */
subqw #2,%sp /* 408301e6 554f */
movew #64,%sp@- /* 408301e8 3f3c 0040 */
.short 0xa88f /* 408301ec a88f */
addqw #2,%sp /* 408301ee 544f */
moveml %sp@+,%d0-%d2/%a0-%a1 /* 408301f0 4cdf 0307 */
rtr /* 408301f4 4e77 */
.align 16
MYENDSYSTEMMODE:
.short 0x40e7 /* 40830200 40e7 */
.short 0x48e7 /* 40830202 48e7 */
.short 0xe0c0 /* 40830204 e0c0 */
.short 0x554f /* 40830206 554f */
.short 0x3f3c /* 40830208 3f3c */
.short 0x0041 /* 4083020a 0041 */
.short 0xa88f /* 4083020c a88f */
.short 0x544f /* 4083020e 544f */
.short 0x4cdf /* 40830210 4cdf */
.short 0x0307 /* 40830212 0307 */
.short 0x4e77 /* 40830214 4e77 */
.align 16
DESKMGRQUEUE:
.short 0x4eba /* 40830220 4eba */
.short 0x816a /* 40830222 816a */
.short 0x7416 /* 40830224 7416 */
.short 0x4eba /* 40830226 4eba */
.short 0xc708 /* 40830228 c708 */
.short 0x4efa /* 4083022a 4efa */
.short 0x820c /* 4083022c 820c */
.align 16
DTDONE:
.short 0x225e /* 40830230 225e */
.short 0x0c40 /* 40830232 0c40 */
.short 0xfe61 /* 40830234 fe61 */
.short 0x6606 /* 40830236 6606 */
.short 0x303c /* 40830238 303c */
.short 0xec6c /* 4083023a ec6c */
.short 0x6016 /* 4083023c 6016 */
.short 0x0c40 /* 4083023e 0c40 */
.short 0xfe54 /* 40830240 fe54 */
.short 0x6606 /* 40830242 6606 */
.short 0x303c /* 40830244 303c */
.short 0xec6c /* 40830246 ec6c */
.short 0x600a /* 40830248 600a */
.short 0x0c40 /* 4083024a 0c40 */
.short 0xffd5 /* 4083024c ffd5 */
.short 0x6604 /* 4083024e 6604 */
.short 0x303c /* 40830250 303c */
.short 0xec6c /* 40830252 ec6c */
jmp %a1@ /* 40830254 4ed1 */
.align 16
DTVOLEXTFSCHECK:
.short 0x4eba /* 40830260 4eba */
.short 0x9cc8 /* 40830262 9cc8 */
.short 0x6636 /* 40830264 6636 */
.short 0x4a6a /* 40830266 4a6a */
.short 0x004c /* 40830268 004c */
.short 0x6736 /* 4083026a 6736 */
.short 0x21ca /* 4083026c 21ca */
.short 0x03ee /* 4083026e 03ee */
.short 0x1028 /* 40830270 1028 */
.short 0x0007 /* 40830272 0007 */
.short 0x0c00 /* 40830274 0c00 */
.short 0x0020 /* 40830276 0020 */
.short 0x6706 /* 40830278 6706 */
.short 0x0c00 /* 4083027a 0c00 */
.short 0x002e /* 4083027c 002e */
.short 0x661a /* 4083027e 661a */
.short 0x4eba /* 40830280 4eba */
.short 0xc1a4 /* 40830282 c1a4 */
.short 0x4ab1 /* 40830284 4ab1 */
.short 0x1000 /* 40830286 1000 */
.short 0x670e /* 40830288 670e */
.short 0x4eba /* 4083028a 4eba */
.short 0xc190 /* 4083028c c190 */
.short 0x65f4 /* 4083028e 65f4 */
.short 0x70d6 /* 40830290 70d6 */
.short 0x4268 /* 40830292 4268 */
.short 0x0018 /* 40830294 0018 */
.short 0x6004 /* 40830296 6004 */
.short 0xd289 /* 40830298 d289 */
.short 0x70c6 /* 4083029a 70c6 */
.short 0x4a9f /* 4083029c 4a9f */
.short 0x4efa /* 4083029e 4efa */
.short 0xc0f0 /* 408302a0 c0f0 */
.short 0x2678 /* 408302a2 2678 */
.short 0x0bb8 /* 408302a4 0bb8 */
.short 0x266b /* 408302a6 266b */
.short 0x000e /* 408302a8 000e */
.short 0x376a /* 408302aa 376a */
.short 0x004e /* 408302ac 004e */
.short 0x000a /* 408302ae 000a */
rts /* 408302b0 4e75 */
.align 16
DTRFNEXTFSCHECK:
movew %a0@(24),%d0
movew %d0,%d1
jsr %pc@(REFNUMCHECK)
bnes .L408302e0
moveal 0x34e,%a1
moveal %a1@(20,%d1:w),%a2
tstw %a2@(76)
beqs .L408302e6
movel %a2,0x3ee
moveq #-58,%d0
.L408302e0:
tstl %sp@+
jmp %pc@(CMDDONE)
.L408302e6:
rts
.align 16
SAVEHINTINDTDBQELT:
.short 0x48e7 /* 408302f0 48e7 */
.short 0x0060 /* 408302f2 0060 */
.short 0x43eb /* 408302f4 43eb */
.short 0x001c /* 408302f6 001c */
.short 0x45e8 /* 408302f8 45e8 */
.short 0x0034 /* 408302fa 0034 */
.short 0x22da /* 408302fc 22da */
.short 0x22da /* 408302fe 22da */
.short 0x22da /* 40830300 22da */
.short 0x22da /* 40830302 22da */
.short 0x4cdf /* 40830304 4cdf */
.short 0x0600 /* 40830306 0600 */
rts /* 40830308 4e75 */
.align 16
.short 0x48e7 /* 40830310 48e7 */
.short 0x0060 /* 40830312 0060 */
.short 0x43eb /* 40830314 43eb */
.short 0x001c /* 40830316 001c */
.short 0x45e8 /* 40830318 45e8 */
.short 0x0034 /* 4083031a 0034 */
.short 0x24d9 /* 4083031c 24d9 */
.short 0x24d9 /* 4083031e 24d9 */
.short 0x24d9 /* 40830320 24d9 */
.short 0x24d9 /* 40830322 24d9 */
.short 0x4cdf /* 40830324 4cdf */
.short 0x0600 /* 40830326 0600 */
rts /* 40830328 4e75 */
.align 16
SETUPBTPB:
.short 0x41d6 /* 40830330 41d6 */
.short 0x6100 /* 40830332 6100 */
.short 0xffdc /* 40830334 ffdc */
.short 0x316b /* 40830336 316b */
.short 0x0008 /* 40830338 0008 */
.short 0x0018 /* 4083033a 0018 */
.short 0x45ee /* 4083033c 45ee */
.short 0x00ee /* 4083033e 00ee */
.short 0x214a /* 40830340 214a */
.short 0x0020 /* 40830342 0020 */
.short 0x45ee /* 40830344 45ee */
.short 0x00c8 /* 40830346 00c8 */
.short 0x214a /* 40830348 214a */
.short 0x002c /* 4083034a 002c */
rts /* 4083034c 4e75 */
.align 16
DONEBTPB:
.short 0x40e7 /* 40830350 40e7 */
.short 0x2f08 /* 40830352 2f08 */
.short 0x41d6 /* 40830354 41d6 */
.short 0x6100 /* 40830356 6100 */
.short 0xff98 /* 40830358 ff98 */
.short 0x205f /* 4083035a 205f */
.short 0x4e77 /* 4083035c 4e77 */
.align 16
SETUPDFPB:
.short 0x41d6 /* 40830360 41d6 */
.short 0x316b /* 40830362 316b */
.short 0x000a /* 40830364 000a */
.short 0x0018 /* 40830366 0018 */
rts /* 40830368 4e75 */
.align 16
__v__FINDDTVOL:
.short 0x2f01 /* 40830370 2f01 */
.short 0x2678 /* 40830372 2678 */
.short 0x0bb8 /* 40830374 0bb8 */
.short 0x266b /* 40830376 266b */
.short 0x000e /* 40830378 000e */
.short 0x266b /* 4083037a 266b */
.short 0x0002 /* 4083037c 0002 */
.short 0x6008 /* 4083037e 6008 */
.short 0xb06b /* 40830380 b06b */
.short 0x000e /* 40830382 000e */
.short 0x670c /* 40830384 670c */
.short 0x2653 /* 40830386 2653 */
.short 0x220b /* 40830388 220b */
.short 0x66f4 /* 4083038a 66f4 */
.short 0x303c /* 4083038c 303c */
.short 0xffcd /* 4083038e ffcd */
.short 0x6002 /* 40830390 6002 */
.short 0x4240 /* 40830392 4240 */
.short 0x221f /* 40830394 221f */
.short 0x4a40 /* 40830396 4a40 */
rts /* 40830398 4e75 */
FINDDTVOL:
JmpVector 0x2030 110 /* 4083039a 2f30 81e2 2030 01b8 */
.align 16
DTSETUP:
.short 0x2d01 /* 408303b0 2d01 */
.short 0x302c /* 408303b2 302c */
.short 0x0018 /* 408303b4 0018 */
.short 0x2678 /* 408303b6 2678 */
.short 0x0bb8 /* 408303b8 0bb8 */
.short 0x266b /* 408303ba 266b */
.short 0x000e /* 408303bc 000e */
.short 0x266b /* 408303be 266b */
.short 0x0002 /* 408303c0 0002 */
.short 0x6008 /* 408303c2 6008 */
.short 0xb06b /* 408303c4 b06b */
.short 0x0006 /* 408303c6 0006 */
.short 0x670c /* 408303c8 670c */
.short 0x2653 /* 408303ca 2653 */
.short 0x220b /* 408303cc 220b */
.short 0x66f4 /* 408303ce 66f4 */
.short 0x303c /* 408303d0 303c */
.short 0xffcd /* 408303d2 ffcd */
.short 0x6002 /* 408303d4 6002 */
.short 0x4240 /* 408303d6 4240 */
.short 0x221e /* 408303d8 221e */
.short 0x4a40 /* 408303da 4a40 */
rts /* 408303dc 4e75 */
.align 16
CHECKCSPEC:
.short 0x2d1f /* 408303e0 2d1f */
.short 0x48e6 /* 408303e2 48e6 */
.short 0x00c0 /* 408303e4 00c0 */
.short 0x9cfc /* 408303e6 9cfc */
.short 0x00c8 /* 408303e8 00c8 */
.short 0x41d6 /* 408303ea 41d6 */
.short 0x216c /* 408303ec 216c */
.short 0x0012 /* 408303ee 0012 */
.short 0x0012 /* 408303f0 0012 */
.short 0x316b /* 408303f2 316b */
.short 0x000e /* 408303f4 000e */
.short 0x0016 /* 408303f6 0016 */
.short 0x4268 /* 408303f8 4268 */
.short 0x001c /* 408303fa 001c */
.short 0x216c /* 408303fc 216c */
.short 0x0030 /* 408303fe 0030 */
.short 0x0030 /* 40830400 0030 */
.short 0x6100 /* 40830402 6100 */
.short 0xfc3c /* 40830404 fc3c */
.short 0x2228 /* 40830406 2228 */
.short 0x0030 /* 40830408 0030 */
.short 0x4dee /* 4083040a 4dee */
.short 0x00c8 /* 4083040c 00c8 */
.short 0x4cde /* 4083040e 4cde */
.short 0x0300 /* 40830410 0300 */
.short 0x2f1e /* 40830412 2f1e */
.short 0x4a40 /* 40830414 4a40 */
rts /* 40830416 4e75 */
.align 16
MYMAKEFOLDER:
moveq #1,%d0
bras .L40830426
MYFINDFOLDER:
moveq #0,%d0
.L40830426:
movel %sp@+,%fp@-
moveml %a0-%a1,%fp@-
subaw #128,%fp
cmpil #1919905652,%d2
beqs .L40830440
cmpil #1936028278,%d2
bnes .L4083047a
.L40830440:
cmpiw #-32768,%d1
bnes .L4083044a
movew 0x210,%d1
.L4083044a:
lea %fp@(6),%a0
clrl %a0@(18)
movew %d1,%a0@(22)
clrw %a0@(28)
bsrw DOHGETVINFO
bnes .L40830474
movew %a0@(22),%d1
cmpil #1919905652,%d2
beqs .L40830476
movel %a0@(118),%d2
bnes .L40830474
moveq #-43,%d0
.L40830474:
bras .L40830494
.L40830476:
moveq #2,%d2
bras .L40830494
.L4083047a:
subql #2,%sp
movew %d1,%sp@-
movel %d2,%sp@-
movew %d0,%sp@-
pea %fp@
pea %fp@(2)
moveq #0,%d0
.short 0xa823
movew %fp@,%d1
movel %fp@(2),%d2
movew %sp@+,%d0
.L40830494:
lea %fp@(128),%fp
moveml %fp@+,%a0-%a1
movel %fp@+,%sp@-
tstw %d0
rts
.align 16
FINDDTFILES:
movel %sp@+,%fp@- /* 408304b0 2d1f */
moveml %d4/%a0/%a2-%a3,%fp@- /* 408304b2 48e6 08b0 */
subaw #200,%fp /* 408304b6 9cfc 00c8 */
movew %d0,%d3 /* 408304ba 3600 */
lea %pc@(str_408305b8),%a0 /* 408304bc 41fa 00fa */
moveq #0,%d0 /* 408304c0 7000 */
moveb %a0@,%d0 /* 408304c2 1010 */
addqb #1,%d0 /* 408304c4 5200 */
_BlockMove
movel #0x726f6f74,%d2 /* 408304c8 243c 726f 6f74 */
bsrw sub_40830590 /* 408304ce 6100 00c0 */
beqw .L40830580 /* 408304d2 6700 00ac */
movel #0x73657276,%d2 /* 408304d6 243c 7365 7276 */
bsrw sub_40830590 /* 408304dc 6100 00b2 */
beqw .L40830580 /* 408304e0 6700 009e */
movel #0x6d616373,%d2 /* 408304e4 243c 6d61 6373 */
bsrw sub_40830590 /* 408304ea 6100 00a4 */
beqw .L40830580 /* 408304ee 6700 0090 */
lea %fp@,%a0 /* 408304f2 41d6 */
clrl %a0@(18) /* 408304f4 42a8 0012 */
movew %d3,%a0@(22) /* 408304f8 3143 0016 */
clrw %a0@(28) /* 408304fc 4268 001c */
bsrw DOHGETVINFO /* 40830500 6100 fb54 */
bnew .L40830582 /* 40830504 6600 007c */
movew %fp@(38),%d0 /* 40830508 302e 0026 */
btst #15,%d0 /* 4083050c 0800 000f */
bnes .L40830520 /* 40830510 660e */
btst #7,%d0 /* 40830512 0800 0007 */
bnes .L40830520 /* 40830516 6608 */
movel #1919905652,%d2 /* 40830518 243c 726f 6f74 */
bras .L40830574 /* 4083051e 6054 */
.L40830520:
lea %fp@,%a0 /* 40830520 41d6 */
movel %a1,%a0@(18) /* 40830522 2149 0012 */
movew %d3,%a0@(22) /* 40830526 3143 0016 */
clrw %a0@(28) /* 4083052a 4268 001c */
bsrw DOHGETVINFO /* 4083052e 6100 fb26 */
bnes .L40830582 /* 40830532 664e */
moveq #0,%d0 /* 40830534 7000 */
moveq #0,%d2 /* 40830536 7400 */
moveal %a1,%a2 /* 40830538 2449 */
lea %pc@(str_408305c4),%a0 /* 4083053a 41fa 0088 */
moveb %a0@+,%d0 /* 4083053e 1018 */
moveb %a1@,%d2 /* 40830540 1411 */
addb %d0,%a1@+ /* 40830542 d119 */
addaw %d2,%a1 /* 40830544 d2c2 */
_BlockMove
moveal %a2,%a1 /* 40830548 224a */
movew #-32768,%d3 /* 4083054a 363c 8000 */
movel #1886545254,%d2 /* 4083054e 243c 7072 6566 */
bsrs sub_40830590 /* 40830554 613a */
beqs .L40830580 /* 40830556 6728 */
movel #1936028278,%d2 /* 40830558 243c 7365 7276 */
bsrw sub_40830590 /* 4083055e 6100 0030 */
beqs .L40830580 /* 40830562 671c */
movel #1835098995,%d2 /* 40830564 243c 6d61 6373 */
bsrs sub_40830590 /* 4083056a 6124 */
beqs .L40830580 /* 4083056c 6712 */
movel #1886545254,%d2 /* 4083056e 243c 7072 6566 */
.L40830574:
movew %d3,%d1 /* 40830574 3203 */
bsrw MYMAKEFOLDER /* 40830576 6100 fea8 */
bnes .L40830582 /* 4083057a 6606 */
moveq #0,%d3 /* 4083057c 7600 */
bras .L40830582 /* 4083057e 6002 */
.L40830580:
moveq #1,%d3 /* 40830580 7601 */
.L40830582:
lea %fp@(200),%fp /* 40830582 4dee 00c8 */
moveml %fp@+,%d4/%a0/%a2-%a3 /* 40830586 4cde 0d10 */
movel %fp@+,%sp@- /* 4083058a 2f1e */
tstw %d0 /* 4083058c 4a40 */
rts /* 4083058e 4e75 */
sub_40830590:
movel %sp@+,%fp@-
movew %d3,%d1
bsrw MYFINDFOLDER
bnes .L408305b2
lea %fp@(4),%a0
movel %a1,%a0@(18)
movew %d1,%a0@(22)
clrw %a0@(28)
movel %d2,%a0@(48)
bsrw DOHGETFILEINFO
.L408305b2:
movel %fp@+,%sp@-
tstw %d0
rts
str_408305b8:
.byte 0x0a /* 408305b8 0a */
.ascii "Desktop DB" /* 408305b9 44 6573 6b74 6f70 2044 42 */
.byte 0x00 /* 408305c3 00 */
str_408305c4:
.byte 0x04 /* 408305c4 04 */
.ascii " DDB" /* 408305c5 20 4444 42 */
.byte 0x00 /* 408305c9 00 */
.align 16
DESKTOPNOTIFYPROC:
linkw %fp,#0
moveml %d0/%a1/%a3,%sp@-
moveal %fp@(8),%a1
movew %a1@(4),%d0
cmpiw #1,%d0
beqs .L408305ec
cmpiw #3,%d0
bnes .L40830610
.L408305ec:
movew %a1@(6),%d0
bsrw FINDDTVOL
bnes .L40830610
subaw #108,%sp
moveal %sp,%a0
movew %a3@(6),%a0@(24)
moveq #43,%d0
.short 0xa260
movew %d0,%fp@(12)
lea %sp@(108),%sp
bras .L40830614
.L40830610:
clrw %fp@(12)
.L40830614:
moveml %sp@+,%d0/%a1/%a3
unlk %fp
moveal %sp@+,%a0
addqw #4,%sp
jmp %a0@
__v__REALOPENDT:
movel %sp@+,%fp@-
moveml %d2/%a0-%a4,%fp@-
subaw #236,%fp
moveal %a0,%a4
moveal 0xbb8,%a3
.L40830630:
moveal %a3@(14),%a3
movew %a3@(10),%fp@(200)
movew %fp@(200),%d0
bsrw FINDDTVOL
bnes .L40830652
movew %a3@(6),%a4@(24)
st %fp@(234)
braw .L408307f2
.L40830652:
lea %fp@,%a0
movew %fp@(200),%a0@(22)
clrl %a0@(18)
lea %fp@(202),%a1
movel %a1,%a0@(32)
movel #6,%a0@(36)
bsrw DOGETVOLPARMS
bnew .L4083084c
movel %a1@(2),%d0
btst #12,%d0
beqw .L4083084c
lea %fp@(202),%a1
movew %fp@(200),%d0
bsrw FINDDTFILES
bnew .L40830850
moveb %d3,%fp@(234)
bnew .L40830702
lea %fp@,%a0
moveq #0,%d0
moveb %a1@,%d0
moveb #70,%a1@(%d0:w)
movel %a1,%a0@(18)
movew %d1,%a0@(22)
movel %d2,%a0@(48)
bsrw DOHCREATE
bnew .L40830850
movel #1146373708,%d3
bsrw SETFILEATTRIBS
bnew .L4083080a
moveq #0,%d0
moveb %a1@,%d0
moveb #66,%a1@(%d0:w)
bsrw DOHCREATE
bnew .L4083080a
movew #37,%a0@(28)
clrl %a0@(44)
pea %pc@(DTKEYDESCRIPTOR)
movel %sp@+,%a0@(52)
moveq #0,%d0
.short 0xa08e
bnew .L408307fe
movel #1112819276,%d3
bsrw SETFILEATTRIBS
bnew .L408307fe
.L40830702:
moveq #44,%d0
_NewPtrSysClear
bnew .L40830850
moveal %a0,%a3
lea %fp@,%a0
movel %a1,%a0@(18)
movew %d1,%a0@(22)
moveb #3,%a0@(27)
movel %d2,%a0@(48)
pea %pc@(DTKEYCMP)
movel %sp@+,%a0@(82)
bsrw MYBEGINSYSTEMMODE
moveq #1,%d0
.short 0xa08e
bsrw MYENDSYSTEMMODE
bnew .L40830842
movew %a0@(24),%a3@(8)
moveq #0,%d0
moveb %a1@,%d0
moveb #70,%a1@(%d0:w)
moveb #3,%a0@(27)
clrl %a0@(28)
bsrw MYBEGINSYSTEMMODE
bsrw DOHOPEN
bsrw MYENDSYSTEMMODE
bnew .L40830826
movew %a0@(24),%a3@(10)
movew %a3@(8),%a3@(6)
movew %a3@(8),%a4@(24)
clrb %a3@(12)
clrb %a3@(13)
movew %fp@(200),%a3@(14)
movew %d1,%a3@(16)
movel %d2,%a3@(18)
movel #65536,%a3@(24)
clrl %a3@(28)
moveal 0xbb8,%a1
moveal %a1@(14),%a1
lea %a1@,%a1
moveal %a3,%a0
_Enqueue
tstw %d0
beqs .L408307ac
jmp %pc@(DEEPSHITERROR)
.L408307ac:
tstb %fp@(234)
bnes .L408307be
lea %fp@,%a0
movel %a3@(24),%a0@(36)
bsrw DOALLOCATE
.L408307be:
moveal 0xbb8,%a1
moveal %a1@(14),%a1
bset #0,%a1@(12)
bnes .L408307f2
lea %sp@(-2),%sp
pea %pc@(DESKTOPNOTIFYPROC)
movel #1264009547,%sp@-
bsrw MYBEGINSYSTEMMODE
movew #66,%sp@-
.short 0xa88f
bsrw MYENDSYSTEMMODE
movew %sp@+,%d0
beqs .L408307f2
jmp %pc@(DEEPSHITERROR)
.L408307f2:
moveq #0,%d0
tstb %fp@(234)
beqs .L40830850
moveq #1,%d1
bras .L40830852
.L408307fe:
movew %d0,%a4@(16)
bsrw DOHDELETE
movew %a4@(16),%d0
.L4083080a:
movew %d0,%a4@(16)
moveq #0,%d0
moveb %a1@,%d0
moveb #70,%a1@(%d0:w)
movel %a1,%a0@(18)
bsrw DOHDELETE
movew %a4@(16),%d0
bras .L40830850
.L40830826:
movew %d0,%a4@(16)
lea %fp@,%a0
movew %a3@(8),%a0@(24)
bsrw MYBEGINSYSTEMMODE
moveq #2,%d0
.short 0xa08e
bsrw MYENDSYSTEMMODE
movew %a4@(16),%d0
.L40830842:
moveal %a3,%a0
movew %d0,%sp@-
.short 0xa01f
movew %sp@+,%d0
bras .L40830850
.L4083084c:
movew #-123,%d0
.L40830850:
moveq #0,%d1
.L40830852:
lea %fp@(236),%fp
moveml %fp@+,%d2/%a0-%a4
movel %fp@+,%sp@-
rts
REALOPENDT:
JmpVector 0x2030 111
.align 16
SETFILEATTRIBS:
movel %sp@+,%fp@- /* 40830870 2d1f */
clrw %a0@(28) /* 40830872 4268 001c */
bsrw DOHGETFILEINFO /* 40830876 6100 f7f2 */
bnew .L408308a8 /* 4083087a 6600 002c */
movel %d3,%a0@(32) /* 4083087e 2143 0020 */
movel #1145915218,%a0@(36) /* 40830882 217c 444d 4752 0024 */
cmpw %fp@(204),%d1 /* 4083088a b26e 00cc */
bnes .L40830896 /* 4083088e 6606 */
movew #16384,%d0 /* 40830890 303c 4000 */
bras .L40830898 /* 40830894 6002 */
.L40830896:
moveq #0,%d0 /* 40830896 7000 */
.L40830898:
orw %d0,%a0@(40) /* 40830898 8168 0028 */
movel %d2,%a0@(48) /* 4083089c 2142 0030 */
clrw %a0@(28) /* 408308a0 4268 001c */
bsrw DOHSETFILEINFO /* 408308a4 6100 f7d8 */
.L408308a8:
movel %fp@+,%sp@- /* 408308a8 2f1e */
tstw %d0 /* 408308aa 4a40 */
rts /* 408308ac 4e75 */
.align 16
__v__DTOPENINFORM:
.short 0x4eba /* 408308b0 4eba */
.short 0xbae8 /* 408308b2 bae8 */
.short 0x6100 /* 408308b4 6100 */
.short 0xf9aa /* 408308b6 f9aa */
.short 0x6100 /* 408308b8 6100 */
.short 0xf966 /* 408308ba f966 */
.short 0x6100 /* 408308bc 6100 */
.short 0xffa0 /* 408308be ffa0 */
.short 0x0281 /* 408308c0 0281 */
.short 0x0000 /* 408308c2 0000 */
.short 0x0001 /* 408308c4 0001 */
.short 0x2141 /* 408308c6 2141 */
.short 0x001c /* 408308c8 001c */
.short 0x6000 /* 408308ca 6000 */
.short 0xf964 /* 408308cc f964 */
DTOPENINFORM:
JmpVector 0x2030 112 /* 408308ce 2f30 81e2 2030 01c0 */
.align 16