forked from darklife/darkriscv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarksocv.lst
1301 lines (1259 loc) · 52.5 KB
/
darksocv.lst
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
darksocv.o: file format elf32-littleriscv
Disassembly of section .text:
00000000 <_boot>:
0: 00002517 auipc a0,0x2
4: 87450513 addi a0,a0,-1932 # 1874 <threads>
8: 00052583 lw a1,0(a0)
c: 00158613 addi a2,a1,1
10: 00c52023 sw a2,0(a0)
14: 80000697 auipc a3,0x80000
18: fec68693 addi a3,a3,-20 # 80000000 <io+0x0>
1c: 04059263 bnez a1,60 <_multi_thread_boot>
00000020 <_normal_boot>:
20: 00002117 auipc sp,0x2
24: fe010113 addi sp,sp,-32 # 2000 <_stack>
28: 00002197 auipc gp,0x2
2c: 04518193 addi gp,gp,69 # 206d <_global>
30: 3e1000ef jal ra,c10 <banner>
34: 00002697 auipc a3,0x2
38: fcc68693 addi a3,a3,-52 # 2000 <_stack>
3c: 00002617 auipc a2,0x2
40: 84060613 addi a2,a2,-1984 # 187c <_heap>
44: 40c68733 sub a4,a3,a2
48: 00000593 li a1,0
4c: 00001517 auipc a0,0x1
50: 7f050513 addi a0,a0,2032 # 183c <_boot0msg>
54: 694000ef jal ra,6e8 <printf>
58: 4a1000ef jal ra,cf8 <main>
5c: fc5ff06f j 20 <_normal_boot>
00000060 <_multi_thread_boot>:
60: 00b69523 sh a1,10(a3)
64: 00158593 addi a1,a1,1
68: ff9ff06f j 60 <_multi_thread_boot>
0000006c <check4rv32i>:
6c: 00000793 li a5,0
70: 00100f93 li t6,1
74: 40ff8533 sub a0,t6,a5
78: 00008067 ret
0000007c <board_name>:
7c: 00001797 auipc a5,0x1
80: 2c078793 addi a5,a5,704 # 133c <main+0x644>
84: 0a050663 beqz a0,130 <board_name+0xb4>
88: 00001797 auipc a5,0x1
8c: 00100713 li a4,1
90: 2c478793 addi a5,a5,708 # 134c <main+0x654>
94: 08e50e63 beq a0,a4,130 <board_name+0xb4>
98: 00001797 auipc a5,0x1
9c: 00200713 li a4,2
a0: 2cc78793 addi a5,a5,716 # 1364 <main+0x66c>
a4: 08e50663 beq a0,a4,130 <board_name+0xb4>
a8: 00001797 auipc a5,0x1
ac: 00300713 li a4,3
b0: 2d078793 addi a5,a5,720 # 1378 <main+0x680>
b4: 06e50e63 beq a0,a4,130 <board_name+0xb4>
b8: 00001797 auipc a5,0x1
bc: 00400713 li a4,4
c0: 2d478793 addi a5,a5,724 # 138c <main+0x694>
c4: 06e50663 beq a0,a4,130 <board_name+0xb4>
c8: 00001797 auipc a5,0x1
cc: 00500713 li a4,5
d0: 2d878793 addi a5,a5,728 # 13a0 <main+0x6a8>
d4: 04e50e63 beq a0,a4,130 <board_name+0xb4>
d8: 00001797 auipc a5,0x1
dc: 00600713 li a4,6
e0: 2e078793 addi a5,a5,736 # 13b8 <main+0x6c0>
e4: 04e50663 beq a0,a4,130 <board_name+0xb4>
e8: 00001797 auipc a5,0x1
ec: 00700713 li a4,7
f0: 2e478793 addi a5,a5,740 # 13cc <main+0x6d4>
f4: 02e50e63 beq a0,a4,130 <board_name+0xb4>
f8: 00001797 auipc a5,0x1
fc: 00800713 li a4,8
100: 22878793 addi a5,a5,552 # 1320 <main+0x628>
104: 02e50663 beq a0,a4,130 <board_name+0xb4>
108: 00001797 auipc a5,0x1
10c: 00900713 li a4,9
110: 2dc78793 addi a5,a5,732 # 13e4 <main+0x6ec>
114: 00e50e63 beq a0,a4,130 <board_name+0xb4>
118: 00001797 auipc a5,0x1
11c: 00a00713 li a4,10
120: 1ec78793 addi a5,a5,492 # 1304 <main+0x60c>
124: 00e50663 beq a0,a4,130 <board_name+0xb4>
128: 00001797 auipc a5,0x1
12c: 2d078793 addi a5,a5,720 # 13f8 <main+0x700>
130: 00078513 mv a0,a5
134: 00008067 ret
00000138 <_idle.part.0>:
138: 00001797 auipc a5,0x1
13c: 7387a783 lw a5,1848(a5) # 1870 <utimers>
140: 00001717 auipc a4,0x1
144: fff78693 addi a3,a5,-1
148: 72d72823 sw a3,1840(a4) # 1870 <utimers>
14c: 02079c63 bnez a5,184 <_idle.part.0+0x4c>
150: 80000797 auipc a5,0x80000
154: eb078793 addi a5,a5,-336 # 80000000 <io+0x0>
158: 0087d783 lhu a5,8(a5)
15c: 80000717 auipc a4,0x80000
160: ea470713 addi a4,a4,-348 # 80000000 <io+0x0>
164: 00178793 addi a5,a5,1
168: 01079793 slli a5,a5,0x10
16c: 0107d793 srli a5,a5,0x10
170: 00f71423 sh a5,8(a4)
174: 000f4737 lui a4,0xf4
178: 00001797 auipc a5,0x1
17c: 23f70713 addi a4,a4,575 # f423f <_global+0xf21d2>
180: 6ee7ac23 sw a4,1784(a5) # 1870 <utimers>
184: 80000797 auipc a5,0x80000
188: e7c78793 addi a5,a5,-388 # 80000000 <io+0x0>
18c: f8000713 li a4,-128
190: 00e781a3 sb a4,3(a5)
194: 00008067 ret
00000198 <__udiv_umod_si3.part.1>:
198: 00050713 mv a4,a0
19c: 00100793 li a5,1
1a0: 00a5fa63 bleu a0,a1,1b4 <__udiv_umod_si3.part.1+0x1c>
1a4: 0005c863 bltz a1,1b4 <__udiv_umod_si3.part.1+0x1c>
1a8: 00159593 slli a1,a1,0x1
1ac: 00179793 slli a5,a5,0x1
1b0: fee5eae3 bltu a1,a4,1a4 <__udiv_umod_si3.part.1+0xc>
1b4: 00000513 li a0,0
1b8: 02070e63 beqz a4,1f4 <__udiv_umod_si3.part.1+0x5c>
1bc: 00078e63 beqz a5,1d8 <__udiv_umod_si3.part.1+0x40>
1c0: 02b76263 bltu a4,a1,1e4 <__udiv_umod_si3.part.1+0x4c>
1c4: 40b70733 sub a4,a4,a1
1c8: 00f50533 add a0,a0,a5
1cc: 0015d593 srli a1,a1,0x1
1d0: 0017d793 srli a5,a5,0x1
1d4: fe0714e3 bnez a4,1bc <__udiv_umod_si3.part.1+0x24>
1d8: 00061c63 bnez a2,1f0 <__udiv_umod_si3.part.1+0x58>
1dc: 00070513 mv a0,a4
1e0: 00008067 ret
1e4: 0017d793 srli a5,a5,0x1
1e8: 0015d593 srli a1,a1,0x1
1ec: fd1ff06f j 1bc <__udiv_umod_si3.part.1+0x24>
1f0: 00008067 ret
1f4: 00070513 mv a0,a4
1f8: fe1ff06f j 1d8 <__udiv_umod_si3.part.1+0x40>
000001fc <__div_mod_si3.part.2>:
1fc: ff010113 addi sp,sp,-16
200: 00812423 sw s0,8(sp)
204: 00912223 sw s1,4(sp)
208: 00112623 sw ra,12(sp)
20c: 00060493 mv s1,a2
210: 00000413 li s0,0
214: 00055663 bgez a0,220 <__div_mod_si3.part.2+0x24>
218: 40a00533 neg a0,a0
21c: 00100413 li s0,1
220: 00012023 sw zero,0(sp)
224: 0005d863 bgez a1,234 <__div_mod_si3.part.2+0x38>
228: 00100793 li a5,1
22c: 40b005b3 neg a1,a1
230: 00f12023 sw a5,0(sp)
234: 00048613 mv a2,s1
238: f61ff0ef jal ra,198 <__udiv_umod_si3.part.1>
23c: 02048263 beqz s1,260 <__div_mod_si3.part.2+0x64>
240: 00012783 lw a5,0(sp)
244: 00f40463 beq s0,a5,24c <__div_mod_si3.part.2+0x50>
248: 40a00533 neg a0,a0
24c: 00c12083 lw ra,12(sp)
250: 00812403 lw s0,8(sp)
254: 00412483 lw s1,4(sp)
258: 01010113 addi sp,sp,16
25c: 00008067 ret
260: fe0414e3 bnez s0,248 <__div_mod_si3.part.2+0x4c>
264: 00c12083 lw ra,12(sp)
268: 00812403 lw s0,8(sp)
26c: 00412483 lw s1,4(sp)
270: 01010113 addi sp,sp,16
274: 00008067 ret
00000278 <_idle>:
278: 80000797 auipc a5,0x80000
27c: d8878793 addi a5,a5,-632 # 80000000 <io+0x0>
280: 0037c783 lbu a5,3(a5)
284: 01879793 slli a5,a5,0x18
288: 4187d793 srai a5,a5,0x18
28c: 0007c463 bltz a5,294 <_idle+0x1c>
290: 00008067 ret
294: ea5ff06f j 138 <_idle.part.0>
00000298 <getchar>:
298: ff410113 addi sp,sp,-12
29c: 00112423 sw ra,8(sp)
2a0: 80000797 auipc a5,0x80000
2a4: d6078793 addi a5,a5,-672 # 80000000 <io+0x0>
2a8: 0047c783 lbu a5,4(a5)
2ac: 80000717 auipc a4,0x80000
2b0: d5470713 addi a4,a4,-684 # 80000000 <io+0x0>
2b4: 0027f793 andi a5,a5,2
2b8: 00079e63 bnez a5,2d4 <getchar+0x3c>
2bc: 00374783 lbu a5,3(a4)
2c0: 01879793 slli a5,a5,0x18
2c4: 4187d793 srai a5,a5,0x18
2c8: fc07dce3 bgez a5,2a0 <getchar+0x8>
2cc: e6dff0ef jal ra,138 <_idle.part.0>
2d0: fd1ff06f j 2a0 <getchar+0x8>
2d4: 00812083 lw ra,8(sp)
2d8: 80000797 auipc a5,0x80000
2dc: d2878793 addi a5,a5,-728 # 80000000 <io+0x0>
2e0: 0057c503 lbu a0,5(a5)
2e4: 00c10113 addi sp,sp,12
2e8: 00008067 ret
000002ec <putchar>:
2ec: ff410113 addi sp,sp,-12
2f0: 00812223 sw s0,4(sp)
2f4: 00112423 sw ra,8(sp)
2f8: 00a00793 li a5,10
2fc: 00050413 mv s0,a0
300: 02f50e63 beq a0,a5,33c <putchar+0x50>
304: 80000797 auipc a5,0x80000
308: cfc78793 addi a5,a5,-772 # 80000000 <io+0x0>
30c: 0047c783 lbu a5,4(a5)
310: 80000717 auipc a4,0x80000
314: cf070713 addi a4,a4,-784 # 80000000 <io+0x0>
318: 0017f793 andi a5,a5,1
31c: 04078863 beqz a5,36c <putchar+0x80>
320: 00374783 lbu a5,3(a4)
324: 01879793 slli a5,a5,0x18
328: 4187d793 srai a5,a5,0x18
32c: fc07dce3 bgez a5,304 <putchar+0x18>
330: e09ff0ef jal ra,138 <_idle.part.0>
334: fd1ff06f j 304 <putchar+0x18>
338: e01ff0ef jal ra,138 <_idle.part.0>
33c: 80000797 auipc a5,0x80000
340: cc478793 addi a5,a5,-828 # 80000000 <io+0x0>
344: 0047c783 lbu a5,4(a5)
348: 80000717 auipc a4,0x80000
34c: cb870713 addi a4,a4,-840 # 80000000 <io+0x0>
350: 0017f793 andi a5,a5,1
354: 02078e63 beqz a5,390 <putchar+0xa4>
358: 00374783 lbu a5,3(a4)
35c: 01879793 slli a5,a5,0x18
360: 4187d793 srai a5,a5,0x18
364: fc07dce3 bgez a5,33c <putchar+0x50>
368: fd1ff06f j 338 <putchar+0x4c>
36c: 80000797 auipc a5,0x80000
370: 0ff47713 andi a4,s0,255
374: c9478793 addi a5,a5,-876 # 80000000 <io+0x0>
378: 00e782a3 sb a4,5(a5)
37c: 00812083 lw ra,8(sp)
380: 00412403 lw s0,4(sp)
384: 00070513 mv a0,a4
388: 00c10113 addi sp,sp,12
38c: 00008067 ret
390: 80000797 auipc a5,0x80000
394: c7078793 addi a5,a5,-912 # 80000000 <io+0x0>
398: 00d00713 li a4,13
39c: 00e782a3 sb a4,5(a5)
3a0: f65ff06f j 304 <putchar+0x18>
000003a4 <gets>:
3a4: fe810113 addi sp,sp,-24
3a8: 00812823 sw s0,16(sp)
3ac: 00912623 sw s1,12(sp)
3b0: 00112a23 sw ra,20(sp)
3b4: 00b12223 sw a1,4(sp)
3b8: 00a12423 sw a0,8(sp)
3bc: fff58493 addi s1,a1,-1
3c0: 00050413 mv s0,a0
3c4: 0e048063 beqz s1,4a4 <gets+0x100>
3c8: 80000797 auipc a5,0x80000
3cc: c3878793 addi a5,a5,-968 # 80000000 <io+0x0>
3d0: 0047c783 lbu a5,4(a5)
3d4: 0027f793 andi a5,a5,2
3d8: 02079263 bnez a5,3fc <gets+0x58>
3dc: 80000797 auipc a5,0x80000
3e0: c2478793 addi a5,a5,-988 # 80000000 <io+0x0>
3e4: 0037c783 lbu a5,3(a5)
3e8: 01879793 slli a5,a5,0x18
3ec: 4187d793 srai a5,a5,0x18
3f0: fc07dce3 bgez a5,3c8 <gets+0x24>
3f4: d45ff0ef jal ra,138 <_idle.part.0>
3f8: fd1ff06f j 3c8 <gets+0x24>
3fc: 80000797 auipc a5,0x80000
400: c0478793 addi a5,a5,-1020 # 80000000 <io+0x0>
404: 0057c703 lbu a4,5(a5)
408: 00a00693 li a3,10
40c: 0ff77793 andi a5,a4,255
410: 02e68e63 beq a3,a4,44c <gets+0xa8>
414: 00d00713 li a4,13
418: 02e78a63 beq a5,a4,44c <gets+0xa8>
41c: 00078513 mv a0,a5
420: 00f12023 sw a5,0(sp)
424: ec9ff0ef jal ra,2ec <putchar>
428: 00012783 lw a5,0(sp)
42c: 00800713 li a4,8
430: 04e78c63 beq a5,a4,488 <gets+0xe4>
434: 00f40023 sb a5,0(s0)
438: 00912223 sw s1,4(sp)
43c: 00140413 addi s0,s0,1
440: 00412783 lw a5,4(sp)
444: fff78493 addi s1,a5,-1
448: f80490e3 bnez s1,3c8 <gets+0x24>
44c: 00a00513 li a0,10
450: e9dff0ef jal ra,2ec <putchar>
454: 00812703 lw a4,8(sp)
458: 00040023 sb zero,0(s0)
45c: 408707b3 sub a5,a4,s0
460: 00f037b3 snez a5,a5
464: 40f007b3 neg a5,a5
468: 00f777b3 and a5,a4,a5
46c: 00f12423 sw a5,8(sp)
470: 01412083 lw ra,20(sp)
474: 01012403 lw s0,16(sp)
478: 00812503 lw a0,8(sp)
47c: 00c12483 lw s1,12(sp)
480: 01810113 addi sp,sp,24
484: 00008067 ret
488: 00812783 lw a5,8(sp)
48c: 00878863 beq a5,s0,49c <gets+0xf8>
490: fe040fa3 sb zero,-1(s0)
494: fff40413 addi s0,s0,-1
498: fa9ff06f j 440 <gets+0x9c>
49c: 00912223 sw s1,4(sp)
4a0: fa1ff06f j 440 <gets+0x9c>
4a4: 00a00513 li a0,10
4a8: e45ff0ef jal ra,2ec <putchar>
4ac: 00812783 lw a5,8(sp)
4b0: 00012423 sw zero,8(sp)
4b4: 00078023 sb zero,0(a5)
4b8: fb9ff06f j 470 <gets+0xcc>
000004bc <putstr>:
4bc: ff410113 addi sp,sp,-12
4c0: 00112423 sw ra,8(sp)
4c4: 00812223 sw s0,4(sp)
4c8: 02051a63 bnez a0,4fc <putstr+0x40>
4cc: 00001797 auipc a5,0x1
4d0: 24478793 addi a5,a5,580 # 1710 <main+0xa18>
4d4: 00078413 mv s0,a5
4d8: 00c0006f j 4e4 <putstr+0x28>
4dc: 00140413 addi s0,s0,1
4e0: e0dff0ef jal ra,2ec <putchar>
4e4: 00044503 lbu a0,0(s0)
4e8: fe051ae3 bnez a0,4dc <putstr+0x20>
4ec: 00812083 lw ra,8(sp)
4f0: 00412403 lw s0,4(sp)
4f4: 00c10113 addi sp,sp,12
4f8: 00008067 ret
4fc: 00050413 mv s0,a0
500: fe5ff06f j 4e4 <putstr+0x28>
00000504 <puts>:
504: ff410113 addi sp,sp,-12
508: 00112423 sw ra,8(sp)
50c: 00812223 sw s0,4(sp)
510: 02051c63 bnez a0,548 <puts+0x44>
514: 00001797 auipc a5,0x1
518: 1fc78793 addi a5,a5,508 # 1710 <main+0xa18>
51c: 00078413 mv s0,a5
520: 00c0006f j 52c <puts+0x28>
524: 00140413 addi s0,s0,1
528: dc5ff0ef jal ra,2ec <putchar>
52c: 00044503 lbu a0,0(s0)
530: fe051ae3 bnez a0,524 <puts+0x20>
534: 00412403 lw s0,4(sp)
538: 00812083 lw ra,8(sp)
53c: 00a00513 li a0,10
540: 00c10113 addi sp,sp,12
544: da9ff06f j 2ec <putchar>
548: 00050413 mv s0,a0
54c: fe1ff06f j 52c <puts+0x28>
00000550 <putdx>:
550: 00001797 auipc a5,0x1
554: fa810113 addi sp,sp,-88
558: 18078793 addi a5,a5,384 # 16d0 <main+0x9d8>
55c: 04812823 sw s0,80(sp)
560: 0207a403 lw s0,32(a5)
564: 0007a703 lw a4,0(a5)
568: 0087a383 lw t2,8(a5)
56c: 04812023 sw s0,64(sp)
570: 0247a403 lw s0,36(a5)
574: 02e12023 sw a4,32(sp)
578: 0047a703 lw a4,4(a5)
57c: 04812223 sw s0,68(sp)
580: 0287a403 lw s0,40(a5)
584: 00c7a283 lw t0,12(a5)
588: 0107a303 lw t1,16(a5)
58c: 04812423 sw s0,72(sp)
590: 02c7a403 lw s0,44(a5)
594: 0147a603 lw a2,20(a5)
598: 02e12223 sw a4,36(sp)
59c: 00812623 sw s0,12(sp)
5a0: 0307a403 lw s0,48(a5)
5a4: 01c7a703 lw a4,28(a5)
5a8: 0187a683 lw a3,24(a5)
5ac: 00812823 sw s0,16(sp)
5b0: 0347a403 lw s0,52(a5)
5b4: 04112a23 sw ra,84(sp)
5b8: 04912623 sw s1,76(sp)
5bc: 00812a23 sw s0,20(sp)
5c0: 0387a403 lw s0,56(a5)
5c4: 03c7a783 lw a5,60(a5)
5c8: 02712423 sw t2,40(sp)
5cc: 00812c23 sw s0,24(sp)
5d0: 02512623 sw t0,44(sp)
5d4: 02612823 sw t1,48(sp)
5d8: 02c12a23 sw a2,52(sp)
5dc: 02d12c23 sw a3,56(sp)
5e0: 02e12e23 sw a4,60(sp)
5e4: 00f12e23 sw a5,28(sp)
5e8: 00058413 mv s0,a1
5ec: 00c10713 addi a4,sp,12
5f0: 00058463 beqz a1,5f8 <putdx+0xa8>
5f4: 02010713 addi a4,sp,32
5f8: 00072583 lw a1,0(a4)
5fc: 0c058463 beqz a1,6c4 <putdx+0x174>
600: 00470493 addi s1,a4,4
604: 00048793 mv a5,s1
608: 00812023 sw s0,0(sp)
60c: 01800413 li s0,24
610: 00040493 mv s1,s0
614: 00050693 mv a3,a0
618: 00078413 mv s0,a5
61c: 0380006f j 654 <putdx+0x104>
620: 554000ef jal ra,b74 <__udivsi3>
624: 00a00593 li a1,10
628: 560000ef jal ra,b88 <__umodsi3>
62c: 00001797 auipc a5,0x1
630: 0ec78793 addi a5,a5,236 # 1718 <main+0xa20>
634: 00f50533 add a0,a0,a5
638: 00054503 lbu a0,0(a0)
63c: cb1ff0ef jal ra,2ec <putchar>
640: 00412683 lw a3,4(sp)
644: 00440413 addi s0,s0,4
648: ffc42583 lw a1,-4(s0)
64c: ff848493 addi s1,s1,-8
650: 06058a63 beqz a1,6c4 <putdx+0x174>
654: 00100793 li a5,1
658: 00f58463 beq a1,a5,660 <putdx+0x110>
65c: feb6e4e3 bltu a3,a1,644 <putdx+0xf4>
660: 00448793 addi a5,s1,4
664: 00012703 lw a4,0(sp)
668: 00f6d7b3 srl a5,a3,a5
66c: 00001617 auipc a2,0x1
670: 00f7f793 andi a5,a5,15
674: 0ac60613 addi a2,a2,172 # 1718 <main+0xa20>
678: 00d12223 sw a3,4(sp)
67c: 00c787b3 add a5,a5,a2
680: 00068513 mv a0,a3
684: f8071ee3 bnez a4,620 <putdx+0xd0>
688: 0007c503 lbu a0,0(a5)
68c: 00c12423 sw a2,8(sp)
690: 00440413 addi s0,s0,4
694: c59ff0ef jal ra,2ec <putchar>
698: 00412683 lw a3,4(sp)
69c: 00812603 lw a2,8(sp)
6a0: 0096d7b3 srl a5,a3,s1
6a4: 00f7f793 andi a5,a5,15
6a8: 00c78633 add a2,a5,a2
6ac: 00064503 lbu a0,0(a2)
6b0: ff848493 addi s1,s1,-8
6b4: c39ff0ef jal ra,2ec <putchar>
6b8: ffc42583 lw a1,-4(s0)
6bc: 00412683 lw a3,4(sp)
6c0: f8059ae3 bnez a1,654 <putdx+0x104>
6c4: 05412083 lw ra,84(sp)
6c8: 05012403 lw s0,80(sp)
6cc: 04c12483 lw s1,76(sp)
6d0: 05810113 addi sp,sp,88
6d4: 00008067 ret
000006d8 <putx>:
6d8: 00000593 li a1,0
6dc: e75ff06f j 550 <putdx>
000006e0 <putd>:
6e0: 00100593 li a1,1
6e4: e6dff06f j 550 <putdx>
000006e8 <printf>:
6e8: fd410113 addi sp,sp,-44
6ec: 00912623 sw s1,12(sp)
6f0: 02f12423 sw a5,40(sp)
6f4: 00112a23 sw ra,20(sp)
6f8: 00812823 sw s0,16(sp)
6fc: 00b12c23 sw a1,24(sp)
700: 00c12e23 sw a2,28(sp)
704: 02d12023 sw a3,32(sp)
708: 02e12223 sw a4,36(sp)
70c: 00050493 mv s1,a0
710: 00054503 lbu a0,0(a0)
714: 01810793 addi a5,sp,24
718: 00f12423 sw a5,8(sp)
71c: 02051a63 bnez a0,750 <printf+0x68>
720: 0540006f j 774 <printf+0x8c>
724: 0014c503 lbu a0,1(s1)
728: 07300793 li a5,115
72c: 00248493 addi s1,s1,2
730: 08f50a63 beq a0,a5,7c4 <printf+0xdc>
734: 07800793 li a5,120
738: 06f50863 beq a0,a5,7a8 <printf+0xc0>
73c: 06400793 li a5,100
740: 04f50663 beq a0,a5,78c <printf+0xa4>
744: ba9ff0ef jal ra,2ec <putchar>
748: 00144503 lbu a0,1(s0)
74c: 02050463 beqz a0,774 <printf+0x8c>
750: 02500793 li a5,37
754: 00148413 addi s0,s1,1
758: fcf506e3 beq a0,a5,724 <printf+0x3c>
75c: b91ff0ef jal ra,2ec <putchar>
760: 00040793 mv a5,s0
764: 00048413 mv s0,s1
768: 00144503 lbu a0,1(s0)
76c: 00078493 mv s1,a5
770: fe0510e3 bnez a0,750 <printf+0x68>
774: 01412083 lw ra,20(sp)
778: 01012403 lw s0,16(sp)
77c: 00c12483 lw s1,12(sp)
780: 00000513 li a0,0
784: 02c10113 addi sp,sp,44
788: 00008067 ret
78c: 00812783 lw a5,8(sp)
790: 00100593 li a1,1
794: 0007a503 lw a0,0(a5)
798: 00478793 addi a5,a5,4
79c: 00f12423 sw a5,8(sp)
7a0: db1ff0ef jal ra,550 <putdx>
7a4: fa5ff06f j 748 <printf+0x60>
7a8: 00812783 lw a5,8(sp)
7ac: 00000593 li a1,0
7b0: 0007a503 lw a0,0(a5)
7b4: 00478793 addi a5,a5,4
7b8: 00f12423 sw a5,8(sp)
7bc: d95ff0ef jal ra,550 <putdx>
7c0: f89ff06f j 748 <printf+0x60>
7c4: 00812683 lw a3,8(sp)
7c8: 00001717 auipc a4,0x1
7cc: f4870713 addi a4,a4,-184 # 1710 <main+0xa18>
7d0: 0006a783 lw a5,0(a3)
7d4: 00468693 addi a3,a3,4
7d8: 00d12423 sw a3,8(sp)
7dc: 00079463 bnez a5,7e4 <printf+0xfc>
7e0: 00070793 mv a5,a4
7e4: 0007c503 lbu a0,0(a5)
7e8: f60500e3 beqz a0,748 <printf+0x60>
7ec: 00178793 addi a5,a5,1
7f0: 00f12023 sw a5,0(sp)
7f4: 00f12223 sw a5,4(sp)
7f8: af5ff0ef jal ra,2ec <putchar>
7fc: 00012783 lw a5,0(sp)
800: 0007c503 lbu a0,0(a5)
804: fe0514e3 bnez a0,7ec <printf+0x104>
808: f41ff06f j 748 <printf+0x60>
0000080c <strncmp>:
80c: 00100793 li a5,1
810: 00054683 lbu a3,0(a0)
814: 0005c303 lbu t1,0(a1)
818: 00050713 mv a4,a0
81c: 00f61e63 bne a2,a5,838 <strncmp+0x2c>
820: 0300006f j 850 <strncmp+0x44>
824: 02030663 beqz t1,850 <strncmp+0x44>
828: 02669463 bne a3,t1,850 <strncmp+0x44>
82c: 00074683 lbu a3,0(a4)
830: 0005c303 lbu t1,0(a1)
834: 00078e63 beqz a5,850 <strncmp+0x44>
838: 00170713 addi a4,a4,1
83c: fff74793 not a5,a4
840: 00c787b3 add a5,a5,a2
844: 00158593 addi a1,a1,1
848: 00f507b3 add a5,a0,a5
84c: fc069ce3 bnez a3,824 <strncmp+0x18>
850: 40668533 sub a0,a3,t1
854: 00008067 ret
00000858 <strcmp>:
858: 00054783 lbu a5,0(a0)
85c: 0005c703 lbu a4,0(a1)
860: 00079c63 bnez a5,878 <strcmp+0x20>
864: 0200006f j 884 <strcmp+0x2c>
868: 00e79e63 bne a5,a4,884 <strcmp+0x2c>
86c: 00054783 lbu a5,0(a0)
870: 0005c703 lbu a4,0(a1)
874: 00078c63 beqz a5,88c <strcmp+0x34>
878: 00150513 addi a0,a0,1
87c: 00158593 addi a1,a1,1
880: fe0714e3 bnez a4,868 <strcmp+0x10>
884: 40e78533 sub a0,a5,a4
888: 00008067 ret
88c: 00000793 li a5,0
890: 40e78533 sub a0,a5,a4
894: 00008067 ret
00000898 <strlen>:
898: 00050793 mv a5,a0
89c: 00000513 li a0,0
8a0: 00079663 bnez a5,8ac <strlen+0x14>
8a4: 0180006f j 8bc <strlen+0x24>
8a8: 00150513 addi a0,a0,1
8ac: 00178793 addi a5,a5,1
8b0: fff7c703 lbu a4,-1(a5)
8b4: fe071ae3 bnez a4,8a8 <strlen+0x10>
8b8: 00008067 ret
8bc: 00008067 ret
000008c0 <memcpy>:
8c0: 02060063 beqz a2,8e0 <memcpy+0x20>
8c4: 00c50633 add a2,a0,a2
8c8: 00050793 mv a5,a0
8cc: 00158593 addi a1,a1,1
8d0: fff5c703 lbu a4,-1(a1)
8d4: 00178793 addi a5,a5,1
8d8: fee78fa3 sb a4,-1(a5)
8dc: fef618e3 bne a2,a5,8cc <memcpy+0xc>
8e0: 00008067 ret
000008e4 <memset>:
8e4: 0ff5f593 andi a1,a1,255
8e8: 00c50733 add a4,a0,a2
8ec: 00050793 mv a5,a0
8f0: 00060863 beqz a2,900 <memset+0x1c>
8f4: 00178793 addi a5,a5,1
8f8: feb78fa3 sb a1,-1(a5)
8fc: fef71ce3 bne a4,a5,8f4 <memset+0x10>
900: 00008067 ret
00000904 <strtok>:
904: ff410113 addi sp,sp,-12
908: 00812423 sw s0,8(sp)
90c: 00912223 sw s1,4(sp)
910: 00a12023 sw a0,0(sp)
914: 00058393 mv t2,a1
918: 02058063 beqz a1,938 <strtok+0x34>
91c: 00058793 mv a5,a1
920: 00000393 li t2,0
924: 0080006f j 92c <strtok+0x28>
928: 00138393 addi t2,t2,1
92c: 00178793 addi a5,a5,1
930: fff7c703 lbu a4,-1(a5)
934: fe071ae3 bnez a4,928 <strtok+0x24>
938: 00012783 lw a5,0(sp)
93c: 0a078463 beqz a5,9e4 <strtok+0xe0>
940: 00012283 lw t0,0(sp)
944: 0002c683 lbu a3,0(t0)
948: 04068e63 beqz a3,9a4 <strtok+0xa0>
94c: 0005c403 lbu s0,0(a1)
950: 00728333 add t1,t0,t2
954: 00100493 li s1,1
958: 00058513 mv a0,a1
95c: 00028793 mv a5,t0
960: 00040613 mv a2,s0
964: 02938663 beq t2,s1,990 <strtok+0x8c>
968: 00178793 addi a5,a5,1
96c: fff7c713 not a4,a5
970: 00150513 addi a0,a0,1
974: 00670733 add a4,a4,t1
978: 00060e63 beqz a2,994 <strtok+0x90>
97c: 00d61c63 bne a2,a3,994 <strtok+0x90>
980: 0007c683 lbu a3,0(a5)
984: 00054603 lbu a2,0(a0)
988: 00070463 beqz a4,990 <strtok+0x8c>
98c: fc069ee3 bnez a3,968 <strtok+0x64>
990: 02c68863 beq a3,a2,9c0 <strtok+0xbc>
994: 00128293 addi t0,t0,1
998: 0002c683 lbu a3,0(t0)
99c: 00130313 addi t1,t1,1
9a0: fa069ce3 bnez a3,958 <strtok+0x54>
9a4: 00012503 lw a0,0(sp)
9a8: 00001797 auipc a5,0x1
9ac: ec07a823 sw zero,-304(a5) # 1878 <nxt.1110>
9b0: 00812403 lw s0,8(sp)
9b4: 00412483 lw s1,4(sp)
9b8: 00c10113 addi sp,sp,12
9bc: 00008067 ret
9c0: 00028023 sb zero,0(t0)
9c4: 00812403 lw s0,8(sp)
9c8: 00128713 addi a4,t0,1
9cc: 00001797 auipc a5,0x1
9d0: eae7a623 sw a4,-340(a5) # 1878 <nxt.1110>
9d4: 00012503 lw a0,0(sp)
9d8: 00412483 lw s1,4(sp)
9dc: 00c10113 addi sp,sp,12
9e0: 00008067 ret
9e4: 00001797 auipc a5,0x1
9e8: e947a783 lw a5,-364(a5) # 1878 <nxt.1110>
9ec: 00f12023 sw a5,0(sp)
9f0: f40798e3 bnez a5,940 <strtok+0x3c>
9f4: 00000513 li a0,0
9f8: fb9ff06f j 9b0 <strtok+0xac>
000009fc <atoi>:
9fc: 00050793 mv a5,a0
a00: 00000293 li t0,0
a04: 00000513 li a0,0
a08: 02d00313 li t1,45
a0c: 00079a63 bnez a5,a20 <atoi+0x24>
a10: 0440006f j a54 <atoi+0x58>
a14: 00178793 addi a5,a5,1
a18: 00b70533 add a0,a4,a1
a1c: 02078663 beqz a5,a48 <atoi+0x4c>
a20: 0007c683 lbu a3,0(a5)
a24: 00351713 slli a4,a0,0x3
a28: 00151593 slli a1,a0,0x1
a2c: fd068613 addi a2,a3,-48
a30: 00e60733 add a4,a2,a4
a34: 00068a63 beqz a3,a48 <atoi+0x4c>
a38: fc669ee3 bne a3,t1,a14 <atoi+0x18>
a3c: 00178793 addi a5,a5,1
a40: 00100293 li t0,1
a44: fc079ee3 bnez a5,a20 <atoi+0x24>
a48: 00028463 beqz t0,a50 <atoi+0x54>
a4c: 40a00533 neg a0,a0
a50: 00008067 ret
a54: 00008067 ret
00000a58 <xtoi>:
a58: 00050713 mv a4,a0
a5c: 03900313 li t1,57
a60: 00000513 li a0,0
a64: 00071e63 bnez a4,a80 <xtoi+0x28>
a68: 0340006f j a9c <xtoi+0x44>
a6c: 00c58533 add a0,a1,a2
a70: 00f37463 bleu a5,t1,a78 <xtoi+0x20>
a74: 00c68533 add a0,a3,a2
a78: 00170713 addi a4,a4,1
a7c: 00070e63 beqz a4,a98 <xtoi+0x40>
a80: 00074783 lbu a5,0(a4)
a84: 00451613 slli a2,a0,0x4
a88: 05f7f693 andi a3,a5,95
a8c: fd078593 addi a1,a5,-48
a90: fc968693 addi a3,a3,-55
a94: fc079ce3 bnez a5,a6c <xtoi+0x14>
a98: 00008067 ret
a9c: 00008067 ret
00000aa0 <mac>:
aa0: 857f 0x857f
aa2: 00c5 addi ra,ra,17
aa4: 00008067 ret
00000aa8 <__umulsi3>:
aa8: 00050793 mv a5,a0
aac: 00b57663 bleu a1,a0,ab8 <__umulsi3+0x10>
ab0: 00058793 mv a5,a1
ab4: 00050593 mv a1,a0
ab8: 00000513 li a0,0
abc: 02058063 beqz a1,adc <__umulsi3+0x34>
ac0: 0015f713 andi a4,a1,1
ac4: 0015d593 srli a1,a1,0x1
ac8: 00070463 beqz a4,ad0 <__umulsi3+0x28>
acc: 00f50533 add a0,a0,a5
ad0: 00179793 slli a5,a5,0x1
ad4: fe0596e3 bnez a1,ac0 <__umulsi3+0x18>
ad8: 00008067 ret
adc: 00008067 ret
00000ae0 <__mulsi3>:
ae0: 00000613 li a2,0
ae4: 00055663 bgez a0,af0 <__mulsi3+0x10>
ae8: 40a00533 neg a0,a0
aec: 00100613 li a2,1
af0: 00050793 mv a5,a0
af4: 0405c463 bltz a1,b3c <__mulsi3+0x5c>
af8: 00058713 mv a4,a1
afc: 00000313 li t1,0
b00: 00b56863 bltu a0,a1,b10 <__mulsi3+0x30>
b04: 00050713 mv a4,a0
b08: 00000313 li t1,0
b0c: 00058793 mv a5,a1
b10: 04078663 beqz a5,b5c <__mulsi3+0x7c>
b14: 00000513 li a0,0
b18: 0017f693 andi a3,a5,1
b1c: 0017d793 srli a5,a5,0x1
b20: 00068463 beqz a3,b28 <__mulsi3+0x48>
b24: 00e50533 add a0,a0,a4
b28: 00171713 slli a4,a4,0x1
b2c: fe0796e3 bnez a5,b18 <__mulsi3+0x38>
b30: 00660463 beq a2,t1,b38 <__mulsi3+0x58>
b34: 40a00533 neg a0,a0
b38: 00008067 ret
b3c: 40b00733 neg a4,a1
b40: 00e56a63 bltu a0,a4,b54 <__mulsi3+0x74>
b44: 00070793 mv a5,a4
b48: 00100313 li t1,1
b4c: 00050713 mv a4,a0
b50: fc5ff06f j b14 <__mulsi3+0x34>
b54: 00100313 li t1,1
b58: fa079ee3 bnez a5,b14 <__mulsi3+0x34>
b5c: 00000513 li a0,0
b60: fd1ff06f j b30 <__mulsi3+0x50>
00000b64 <__udiv_umod_si3>:
b64: 00058463 beqz a1,b6c <__udiv_umod_si3+0x8>
b68: e30ff06f j 198 <__udiv_umod_si3.part.1>
b6c: 00000513 li a0,0
b70: 00008067 ret
00000b74 <__udivsi3>:
b74: 00058663 beqz a1,b80 <__udivsi3+0xc>
b78: 00100613 li a2,1
b7c: e1cff06f j 198 <__udiv_umod_si3.part.1>
b80: 00000513 li a0,0
b84: 00008067 ret
00000b88 <__umodsi3>:
b88: 00058663 beqz a1,b94 <__umodsi3+0xc>
b8c: 00000613 li a2,0
b90: e08ff06f j 198 <__udiv_umod_si3.part.1>
b94: 00000513 li a0,0
b98: 00008067 ret
00000b9c <__div_mod_si3>:
b9c: 00058463 beqz a1,ba4 <__div_mod_si3+0x8>
ba0: e5cff06f j 1fc <__div_mod_si3.part.2>
ba4: 00000513 li a0,0
ba8: 00008067 ret
00000bac <__divsi3>:
bac: 00058663 beqz a1,bb8 <__divsi3+0xc>
bb0: 00100613 li a2,1
bb4: e48ff06f j 1fc <__div_mod_si3.part.2>
bb8: 00000513 li a0,0
bbc: 00008067 ret
00000bc0 <__modsi3>:
bc0: 00058663 beqz a1,bcc <__modsi3+0xc>
bc4: 00000613 li a2,0
bc8: e34ff06f j 1fc <__div_mod_si3.part.2>
bcc: 00000513 li a0,0
bd0: 00008067 ret
00000bd4 <usleep>:
bd4: fff50713 addi a4,a0,-1
bd8: 02050a63 beqz a0,c0c <usleep+0x38>
bdc: f8000613 li a2,-128
be0: fff00693 li a3,-1
be4: 7ffff797 auipc a5,0x7ffff
be8: 41c78793 addi a5,a5,1052 # 80000000 <io>
bec: 00c781a3 sb a2,3(a5)
bf0: 7ffff797 auipc a5,0x7ffff
bf4: 41078793 addi a5,a5,1040 # 80000000 <io>
bf8: 0037c783 lbu a5,3(a5)
bfc: 0ff7f793 andi a5,a5,255
c00: fe0788e3 beqz a5,bf0 <usleep+0x1c>
c04: fff70713 addi a4,a4,-1
c08: fcd71ee3 bne a4,a3,be4 <usleep+0x10>
c0c: 00008067 ret
00000c10 <banner>:
c10: 00001797 auipc a5,0x1
c14: edc10113 addi sp,sp,-292
c18: b1c78793 addi a5,a5,-1252 # 172c <main+0xa34>
c1c: 12112023 sw ra,288(sp)
c20: 10812e23 sw s0,284(sp)
c24: 10912c23 sw s1,280(sp)
c28: 00810713 addi a4,sp,8
c2c: 10878393 addi t2,a5,264
c30: 0007a283 lw t0,0(a5)
c34: 0047a303 lw t1,4(a5)
c38: 0087a503 lw a0,8(a5)
c3c: 00c7a583 lw a1,12(a5)
c40: 0107a603 lw a2,16(a5)
c44: 0147a683 lw a3,20(a5)
c48: 00572023 sw t0,0(a4)
c4c: 00672223 sw t1,4(a4)
c50: 00a72423 sw a0,8(a4)
c54: 00b72623 sw a1,12(a4)
c58: 00c72823 sw a2,16(a4)
c5c: 00d72a23 sw a3,20(a4)
c60: 01878793 addi a5,a5,24
c64: 01870713 addi a4,a4,24
c68: fc7794e3 bne a5,t2,c30 <banner+0x20>
c6c: 0007a683 lw a3,0(a5)
c70: 0047c783 lbu a5,4(a5)
c74: 00a00513 li a0,10
c78: 00d72023 sw a3,0(a4)
c7c: 00f70223 sb a5,4(a4)
c80: 07600793 li a5,118
c84: 00f12223 sw a5,4(sp)
c88: e64ff0ef jal ra,2ec <putchar>
c8c: 00810793 addi a5,sp,8
c90: 00f12023 sw a5,0(sp)
c94: 00e00713 li a4,14
c98: 02000413 li s0,32
c9c: 00012783 lw a5,0(sp)
ca0: fff70493 addi s1,a4,-1
ca4: 00278793 addi a5,a5,2
ca8: 00f12023 sw a5,0(sp)
cac: 00070c63 beqz a4,cc4 <banner+0xb4>
cb0: 00040513 mv a0,s0
cb4: e38ff0ef jal ra,2ec <putchar>
cb8: fff48493 addi s1,s1,-1
cbc: fff00793 li a5,-1
cc0: fef498e3 bne s1,a5,cb0 <banner+0xa0>
cc4: 00412783 lw a5,4(sp)
cc8: 00078e63 beqz a5,ce4 <banner+0xd4>
ccc: 00012783 lw a5,0(sp)
cd0: 00412403 lw s0,4(sp)
cd4: 0017c703 lbu a4,1(a5)
cd8: 0027c783 lbu a5,2(a5)
cdc: 00f12223 sw a5,4(sp)
ce0: fbdff06f j c9c <banner+0x8c>
ce4: 12012083 lw ra,288(sp)
ce8: 11c12403 lw s0,284(sp)
cec: 11812483 lw s1,280(sp)
cf0: 12410113 addi sp,sp,292
cf4: 00008067 ret
Disassembly of section .text.startup:
00000cf8 <main>:
cf8: 7ffff797 auipc a5,0x7ffff
cfc: 3087c503 lbu a0,776(a5) # 80000000 <io>
d00: f8410113 addi sp,sp,-124
d04: 06112c23 sw ra,120(sp)
d08: 06812a23 sw s0,116(sp)
d0c: 06912823 sw s1,112(sp)
d10: b6cff0ef jal ra,7c <board_name>
d14: 7ffff797 auipc a5,0x7ffff
d18: 2ec7c603 lbu a2,748(a5) # 80000000 <io>
d1c: 00050593 mv a1,a0
d20: 00000517 auipc a0,0x0
d24: 6f050513 addi a0,a0,1776 # 1410 <main+0x718>
d28: 9c1ff0ef jal ra,6e8 <printf>
d2c: 00000617 auipc a2,0x0
d30: 00000597 auipc a1,0x0
d34: 00000517 auipc a0,0x0
d38: 6f860613 addi a2,a2,1784 # 1424 <main+0x72c>
d3c: 6fc58593 addi a1,a1,1788 # 142c <main+0x734>
d40: 71850513 addi a0,a0,1816 # 144c <main+0x754>
d44: 9a5ff0ef jal ra,6e8 <printf>
d48: 00001797 auipc a5,0x1
d4c: b2c7a783 lw a5,-1236(a5) # 1874 <threads>
d50: 00000413 li s0,0
d54: 0c078663 beqz a5,e20 <main+0x128>
d58: 7ffff717 auipc a4,0x7ffff
d5c: 7ffff797 auipc a5,0x7ffff
d60: 2a870713 addi a4,a4,680 # 80000000 <io>
d64: 2a478793 addi a5,a5,676 # 80000000 <io>
d68: 00174483 lbu s1,1(a4)
d6c: 0027c783 lbu a5,2(a5)
d70: 00000717 auipc a4,0x0
d74: 00e12423 sw a4,8(sp)
d78: 0ff7f793 andi a5,a5,255
d7c: 00f12223 sw a5,4(sp)
d80: aecff0ef jal ra,6c <check4rv32i>
d84: 00001797 auipc a5,0x1
d88: 00812703 lw a4,8(sp)
d8c: af07a683 lw a3,-1296(a5) # 1874 <threads>
d90: 0ff4f493 andi s1,s1,255
d94: 01000613 li a2,16
d98: 01000593 li a1,16
d9c: 00000797 auipc a5,0x0
da0: 69070713 addi a4,a4,1680 # 1400 <main+0x708>
da4: 00051663 bnez a0,db0 <main+0xb8>
da8: 00000717 auipc a4,0x0
dac: 68070713 addi a4,a4,1664 # 1428 <main+0x730>
db0: 00100313 li t1,1
db4: 3e800513 li a0,1000
db8: 66878793 addi a5,a5,1640 # 1404 <main+0x70c>
dbc: 00d34663 blt t1,a3,dc8 <main+0xd0>
dc0: 00001797 auipc a5,0x1
dc4: a7878793 addi a5,a5,-1416 # 1838 <main+0xb40>
dc8: 00f12623 sw a5,12(sp)
dcc: 00e12423 sw a4,8(sp)
dd0: cd1ff0ef jal ra,aa0 <mac>
dd4: 00000317 auipc t1,0x0
dd8: 4e800293 li t0,1256
ddc: 00040593 mv a1,s0
de0: 00c12783 lw a5,12(sp)
de4: 00812703 lw a4,8(sp)
de8: 00412683 lw a3,4(sp)
dec: 00048613 mv a2,s1
df0: 00140413 addi s0,s0,1
df4: 63430313 addi t1,t1,1588 # 1408 <main+0x710>
df8: 00550663 beq a0,t0,e04 <main+0x10c>
dfc: 00001317 auipc t1,0x1
e00: a3c30313 addi t1,t1,-1476 # 1838 <main+0xb40>
e04: 00000517 auipc a0,0x0
e08: 00612023 sw t1,0(sp)
e0c: 6b850513 addi a0,a0,1720 # 14bc <main+0x7c4>
e10: 8d9ff0ef jal ra,6e8 <printf>
e14: 00001797 auipc a5,0x1
e18: a607a783 lw a5,-1440(a5) # 1874 <threads>
e1c: f2879ee3 bne a5,s0,d58 <main+0x60>
e20: 00001797 auipc a5,0x1
e24: a407aa23 sw zero,-1452(a5) # 1874 <threads>
e28: 7ffff797 auipc a5,0x7ffff
e2c: 1d878793 addi a5,a5,472 # 80000000 <io>
e30: 0067d583 lhu a1,6(a5)
e34: 00000517 auipc a0,0x0
e38: 62c50513 addi a0,a0,1580 # 1460 <main+0x768>
e3c: 8adff0ef jal ra,6e8 <printf>
e40: 7ffff717 auipc a4,0x7ffff
e44: 7ffff797 auipc a5,0x7ffff
e48: 1c070713 addi a4,a4,448 # 80000000 <io>
e4c: 1bc78793 addi a5,a5,444 # 80000000 <io>