-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameSystem.s
1635 lines (1635 loc) · 25.4 KB
/
gameSystem.s
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
.cpu arm7tdmi
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 1
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "gameSystem.c"
.text
.align 2
.global initInputLine
.arch armv4t
.syntax unified
.arm
.fpu softvfp
.type initInputLine, %function
initInputLine:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
str lr, [sp, #-4]!
mov r2, #16
mov lr, #128
mov ip, #0
mov r0, #8
mov r1, #1
ldr r3, .L4
str lr, [r3]
str ip, [r3, #4]
str r0, [r3, #20]
str r1, [r3, #24]
str r2, [r3, #8]
str r2, [r3, #12]
ldr lr, [sp], #4
bx lr
.L5:
.align 2
.L4:
.word line
.size initInputLine, .-initInputLine
.align 2
.global hitRed
.syntax unified
.arm
.fpu softvfp
.type hitRed, %function
hitRed:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
ldr r4, .L16
ldr r2, .L16+4
ldr r1, [r4]
ldr r3, [r2]
ldr ip, [r2, #20]
ldr r0, [r1, #24]
ldr r2, [r1, #4]
add r3, r3, ip
add r2, r2, r0
sub r0, r3, #49
cmp r0, r2
bgt .L6
add r0, r3, #29
cmp r2, r0
bgt .L6
ldr r0, [r1, #28]
cmp r0, #0
beq .L6
sub r0, r3, #9
ldr ip, .L16+8
cmp r2, r0
ldr r0, [ip]
blt .L8
add lr, r3, #4
cmp r2, lr
ble .L15
.L8:
sub lr, r3, #24
cmp r2, lr
blt .L9
add r3, r3, #14
cmp r2, r3
bgt .L9
mov lr, #0
mov r7, #4
mov r6, #32
mov r5, #8
ldr r3, [r1]
ldr r2, .L16+12
add r3, r3, #1
smull r9, r8, r2, r3
asr r2, r3, #31
rsb r2, r2, r8, asr #1
add r2, r2, r2, lsl #3
add r0, r0, #80
sub r3, r3, r2
ldr r2, .L16+16
str r0, [ip]
add r3, r3, r3, lsl #2
ldr r0, .L16+20
add r3, r2, r3, lsl #3
.L14:
str r3, [r4]
ldr r3, [r0]
add r3, r3, #1
str r3, [r0]
ldr r2, .L16+24
ldr r3, [r2]
add r3, r3, #1
str r3, [r2]
str lr, [r1, #28]
str lr, [r1, #8]
str lr, [r1, #4]
str lr, [r1, #36]
str r7, [r1, #16]
str r6, [r1, #12]
str r5, [r1, #24]
.L6:
pop {r4, r5, r6, r7, r8, r9, r10, lr}
bx lr
.L9:
mov r5, #0
ldr lr, .L16+28
ldr r3, [lr]
ldr r2, .L16+32
add r0, r0, #10
str r0, [ip]
add r3, r3, #1
ldr ip, .L16+24
ldr r1, [r2]
str r3, [lr]
mov r2, r5
ldr r3, .L16+36
ldr r0, .L16+40
str r5, [ip]
mov lr, pc
bx r3
mov lr, #4
mov ip, #32
mov r0, #8
ldr r1, [r4]
ldr r3, [r1]
ldr r2, .L16+12
add r3, r3, #1
smull r7, r6, r2, r3
asr r2, r3, #31
rsb r2, r2, r6, asr #1
add r2, r2, r2, lsl #3
sub r3, r3, r2
ldr r2, .L16+16
add r3, r3, r3, lsl #2
add r3, r2, r3, lsl #3
str r5, [r1, #28]
str r5, [r1, #8]
str r5, [r1, #4]
str r5, [r1, #36]
str lr, [r1, #16]
str ip, [r1, #12]
str r0, [r1, #24]
str r3, [r4]
b .L6
.L15:
ldr r3, [r1]
ldr r2, .L16+12
add r3, r3, #1
smull r9, r8, r2, r3
asr r2, r3, #31
rsb r2, r2, r8, asr #1
add r2, r2, r2, lsl #3
sub r3, r3, r2
ldr r2, .L16+16
add r0, r0, #100
add r3, r3, r3, lsl #2
str r0, [ip]
mov lr, #0
mov r7, #4
mov r6, #32
mov r5, #8
ldr r0, .L16+44
add r3, r2, r3, lsl #3
b .L14
.L17:
.align 2
.L16:
.word red
.word line
.word score
.word 954437177
.word reds
.word greatCount
.word combo
.word badCount
.word hitsound_length
.word playSoundB
.word hitsound_data
.word perfectCount
.size hitRed, .-hitRed
.align 2
.global hitBlue
.syntax unified
.arm
.fpu softvfp
.type hitBlue, %function
hitBlue:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
ldr r4, .L28
ldr r2, .L28+4
ldr r1, [r4]
ldr r3, [r2]
ldr ip, [r2, #20]
ldr r0, [r1, #24]
ldr r2, [r1, #4]
add r3, r3, ip
add r2, r2, r0
sub r0, r3, #59
cmp r0, r2
bgt .L18
add r0, r3, #59
cmp r2, r0
bgt .L18
ldr r0, [r1, #28]
cmp r0, #0
beq .L18
sub r0, r3, #9
ldr ip, .L28+8
cmp r2, r0
ldr r0, [ip]
blt .L20
add lr, r3, #4
cmp r2, lr
ble .L27
.L20:
sub lr, r3, #24
cmp r2, lr
blt .L21
add r3, r3, #14
cmp r2, r3
bgt .L21
mov lr, #0
mov r7, #4
mov r6, #32
mov r5, #8
ldr r3, [r1]
ldr r2, .L28+12
add r3, r3, #1
smull r9, r8, r2, r3
asr r2, r3, #31
rsb r2, r2, r8, asr #1
add r2, r2, r2, lsl #3
add r0, r0, #80
sub r3, r3, r2
ldr r2, .L28+16
str r0, [ip]
add r3, r3, r3, lsl #2
ldr r0, .L28+20
add r3, r2, r3, lsl #3
.L26:
str r3, [r4]
ldr r3, [r0]
add r3, r3, #1
str r3, [r0]
ldr r2, .L28+24
ldr r3, [r2]
add r3, r3, #1
str r3, [r2]
str lr, [r1, #28]
str lr, [r1, #8]
str lr, [r1, #4]
str lr, [r1, #36]
str r7, [r1, #16]
str r6, [r1, #12]
str r5, [r1, #24]
.L18:
pop {r4, r5, r6, r7, r8, r9, r10, lr}
bx lr
.L21:
mov r5, #0
ldr lr, .L28+28
ldr r3, [lr]
ldr r2, .L28+32
add r0, r0, #10
str r0, [ip]
add r3, r3, #1
ldr ip, .L28+24
ldr r1, [r2]
str r3, [lr]
mov r2, r5
ldr r3, .L28+36
ldr r0, .L28+40
str r5, [ip]
mov lr, pc
bx r3
mov lr, #4
mov ip, #32
mov r0, #8
ldr r1, [r4]
ldr r3, [r1]
ldr r2, .L28+12
add r3, r3, #1
smull r7, r6, r2, r3
asr r2, r3, #31
rsb r2, r2, r6, asr #1
add r2, r2, r2, lsl #3
sub r3, r3, r2
ldr r2, .L28+16
add r3, r3, r3, lsl #2
add r3, r2, r3, lsl #3
str r5, [r1, #28]
str r5, [r1, #8]
str r5, [r1, #4]
str r5, [r1, #36]
str lr, [r1, #16]
str ip, [r1, #12]
str r0, [r1, #24]
str r3, [r4]
b .L18
.L27:
ldr r3, [r1]
ldr r2, .L28+12
add r3, r3, #1
smull r9, r8, r2, r3
asr r2, r3, #31
rsb r2, r2, r8, asr #1
add r2, r2, r2, lsl #3
sub r3, r3, r2
ldr r2, .L28+16
add r0, r0, #100
add r3, r3, r3, lsl #2
str r0, [ip]
mov lr, #0
mov r7, #4
mov r6, #32
mov r5, #8
ldr r0, .L28+44
add r3, r2, r3, lsl #3
b .L26
.L29:
.align 2
.L28:
.word blue
.word line
.word score
.word 954437177
.word blues
.word greatCount
.word combo
.word badCount
.word hitsound_length
.word playSoundB
.word hitsound_data
.word perfectCount
.size hitBlue, .-hitBlue
.align 2
.global updateInputLine
.syntax unified
.arm
.fpu softvfp
.type updateInputLine, %function
updateInputLine:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, lr}
ldr r4, .L72
ldrh r3, [r4]
tst r3, #1
beq .L31
ldr r2, .L72+4
ldrh r2, [r2]
tst r2, #1
bne .L31
bl hitRed
ldrh r3, [r4]
.L33:
tst r3, #32
beq .L34
ldr r2, .L72+4
ldrh r2, [r2]
tst r2, #32
bne .L34
.L35:
pop {r4, lr}
b hitBlue
.L31:
tst r3, #2
beq .L33
ldr r2, .L72+4
ldrh r2, [r2]
tst r2, #2
bne .L33
bl hitRed
ldrh r3, [r4]
b .L33
.L34:
tst r3, #16
beq .L36
ldr r2, .L72+4
ldrh r2, [r2]
tst r2, #16
beq .L35
.L36:
tst r3, #64
bne .L71
.L37:
tst r3, #128
beq .L30
ldr r3, .L72+4
ldrh r3, [r3]
tst r3, #128
beq .L35
.L30:
pop {r4, lr}
bx lr
.L71:
ldr r2, .L72+4
ldrh r2, [r2]
tst r2, #64
bne .L37
pop {r4, lr}
b hitBlue
.L73:
.align 2
.L72:
.word oldButtons
.word buttons
.size updateInputLine, .-updateInputLine
.align 2
.global recycleNote
.syntax unified
.arm
.fpu softvfp
.type recycleNote, %function
recycleNote:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
mov r3, #0
mov ip, #4
mov r1, #32
mov r2, #8
str ip, [r0, #16]
str r1, [r0, #12]
str r2, [r0, #24]
str r3, [r0, #28]
str r3, [r0, #8]
str r3, [r0, #4]
str r3, [r0, #36]
bx lr
.size recycleNote, .-recycleNote
.align 2
.global initNotes
.syntax unified
.arm
.fpu softvfp
.type initNotes, %function
initNotes:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
mov r0, #0
push {r4, r5, lr}
mov r1, r0
mov r5, #4
mov r4, #32
mov lr, #8
ldr r3, .L79
ldr r2, .L79+4
ldr ip, [r3]
ldr r3, .L79+8
.L76:
str r0, [r2]
str r0, [r3]
add r0, r0, #1
cmp r0, #9
str r1, [r2, #28]
str r1, [r2, #8]
str r1, [r2, #4]
str r5, [r2, #16]
str r4, [r2, #12]
str lr, [r2, #24]
str ip, [r2, #32]
str r1, [r2, #36]
str r1, [r3, #28]
str r1, [r3, #8]
str r1, [r3, #4]
str r5, [r3, #16]
str r4, [r3, #12]
str lr, [r3, #24]
str ip, [r3, #32]
str r1, [r3, #36]
add r2, r2, #40
add r3, r3, #40
bne .L76
pop {r4, r5, lr}
bx lr
.L80:
.align 2
.L79:
.word .LANCHOR0
.word reds
.word blues
.size initNotes, .-initNotes
.align 2
.global initGame
.syntax unified
.arm
.fpu softvfp
.type initGame, %function
initGame:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
mov r2, #0
push {r4, lr}
mov r3, #16
mov ip, #8
mov r0, #1
mov r4, #128
ldr r1, .L83
str r2, [r1]
ldr r1, .L83+4
str r2, [r1]
ldr r1, .L83+8
str r2, [r1]
ldr r1, .L83+12
str r2, [r1]
ldr r1, .L83+16
str r2, [r1]
ldr r1, .L83+20
str r2, [r1]
ldr r1, .L83+24
str r2, [r1]
ldr r1, .L83+28
str r2, [r1]
ldr r1, .L83+32
str r2, [r1]
ldr r1, .L83+36
str r2, [r1, #4]
str ip, [r1, #20]
str r0, [r1, #24]
str r4, [r1]
str r3, [r1, #8]
str r3, [r1, #12]
bl initNotes
ldr r3, .L83+40
ldr r2, .L83+44
ldr ip, [r3, #4]
ldr r1, [r3, #540]
ldr r3, .L83+48
str ip, [r2]
ldr r0, .L83+52
ldr ip, .L83+56
ldr r2, .L83+60
str r1, [r3]
ldr r1, .L83+64
ldr r3, .L83+68
str ip, [r0]
str r1, [r2]
mov lr, pc
bx r3
mov r3, r4
mov r2, #117440512
ldr r4, .L83+72
mov r0, #3
ldr r1, .L83+76
mov lr, pc
bx r4
pop {r4, lr}
bx lr
.L84:
.align 2
.L83:
.word score
.word frame
.word combo
.word perfectCount
.word greatCount
.word goodCount
.word badCount
.word gameBcount
.word gameRcount
.word line
.word .LANCHOR0
.word gameR
.word gameB
.word red
.word reds
.word blue
.word blues
.word hideSprites
.word DMANow
.word shadowOAM
.size initGame, .-initGame
.align 2
.global generateRed
.syntax unified
.arm
.fpu softvfp
.type generateRed, %function
generateRed:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
mov r2, #0
ldr r3, .L92
ldr r3, [r3]
push {r4, lr}
ldr ip, .L92+4
ldr r4, [r3]
ldr lr, .L92+8
.L88:
add r1, r2, r4
smull r3, r0, lr, r1
asr r3, r1, #31
rsb r3, r3, r0, asr #1
add r3, r3, r3, lsl #3
sub r3, r1, r3
add r3, r3, r3, lsl #2
add r3, ip, r3, lsl #3
ldr r1, [r3, #28]
cmp r1, #0
beq .L91
add r2, r2, #1
cmp r2, #9
bne .L88
pop {r4, lr}
bx lr
.L91:
mov r0, #1
add r2, r2, r2, lsl #2
add r2, ip, r2, lsl #3
ldr r2, [r2, #12]
add r2, r2, r2, lsr #31
asr r2, r2, r0
rsb r2, r2, #80
stmib r3, {r1, r2}
str r0, [r3, #28]
pop {r4, lr}
bx lr
.L93:
.align 2
.L92:
.word red
.word reds
.word 954437177
.size generateRed, .-generateRed
.align 2
.global generateBlue
.syntax unified
.arm
.fpu softvfp
.type generateBlue, %function
generateBlue:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
mov r2, #0
ldr r3, .L101
ldr r3, [r3]
push {r4, lr}
ldr ip, .L101+4
ldr r4, [r3]
ldr lr, .L101+8
.L97:
add r1, r2, r4
smull r3, r0, lr, r1
asr r3, r1, #31
rsb r3, r3, r0, asr #1
add r3, r3, r3, lsl #3
sub r3, r1, r3
add r3, r3, r3, lsl #2
add r3, ip, r3, lsl #3
ldr r1, [r3, #28]
cmp r1, #0
beq .L100
add r2, r2, #1
cmp r2, #9
bne .L97
pop {r4, lr}
bx lr
.L100:
mov r0, #1
add r2, r2, r2, lsl #2
add r2, ip, r2, lsl #3
ldr r2, [r2, #12]
add r2, r2, r2, lsr #31
asr r2, r2, r0
rsb r2, r2, #160
stmib r3, {r1, r2}
str r0, [r3, #28]
pop {r4, lr}
bx lr
.L102:
.align 2
.L101:
.word blue
.word blues
.word 954437177
.size generateBlue, .-generateBlue
.align 2
.global updateNotes
.syntax unified
.arm
.fpu softvfp
.type updateNotes, %function
updateNotes:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
ldr r6, .L127
ldr r4, .L127+4
ldr r2, [r6, #20]
ldr r3, [r6]
ldr r1, [r4]
add r3, r3, r2
ldr r2, [r1, #4]
add r3, r3, #29
cmp r3, r2
blt .L123
.L104:
ldr r4, .L127+8
ldr r1, [r4]
ldr r2, [r1, #4]
cmp r2, r3
bgt .L124
.L105:
ldr r4, .L127+12
ldr r5, .L127+16
ldr r7, .L127+20
ldr r10, .L127+24
ldr r9, .L127+28
ldr r8, .L127+32
add fp, r4, #360
b .L112
.L107:
ldr r3, [r5, #28]
cmp r3, #0
ldrne r3, [r5, #4]
ldrne r2, [r5, #32]
addne r3, r3, r2
strne r3, [r5, #4]
ldr r3, [r4, #28]
cmp r3, #0
ldrne r3, [r4, #4]
ldrne r2, [r4, #32]
addne r3, r3, r2
strne r3, [r4, #4]
add r4, r4, #40
cmp fp, r4
add r5, r5, #40
beq .L125
.L112:
ldr r3, [r7]
cmp r3, #9
bne .L107
ldr r1, [r6]
ldr r3, [r6, #20]
ldr r2, [r5, #4]
ldr r0, [r5, #24]
add r3, r1, r3
sub r1, r3, #4
add r2, r2, r0
cmp r1, r2
bgt .L108
add r0, r3, #4
cmp r2, r0
ble .L126
.L108:
ldr r2, [r4, #4]
ldr r0, [r4, #24]
add r2, r2, r0
cmp r2, r1
blt .L107
add r3, r3, #4
cmp r2, r3
bgt .L107
bl hitBlue
mov r2, #0
mov r0, r9
ldr r1, [r10]
mov lr, pc
bx r8
mov r3, #83886080
ldrh r2, [r3, #10]
strh r2, [r3, #6] @ movhi
b .L107
.L125:
pop {r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
bx lr
.L126:
bl hitRed
mov r2, #0
mov r0, r9
ldr r1, [r10]
mov lr, pc
bx r8
mov r3, #83886080
ldrh r2, [r3, #8]
strh r2, [r3, #4] @ movhi
ldr r3, [r7]
cmp r3, #9
bne .L107
ldr r2, [r6]
ldr r3, [r6, #20]
add r3, r2, r3
sub r1, r3, #4
b .L108
.L123:
mov r5, #0
mov ip, #32
mov lr, #4
mov r0, #8
ldr r3, .L127+24
str ip, [r1, #12]
str r0, [r1, #24]
mov r2, r5
str r5, [r1, #28]
str r5, [r1, #8]
str r5, [r1, #4]
str r5, [r1, #36]
str lr, [r1, #16]
ldr r0, .L127+28
ldr r1, [r3]
ldr r3, .L127+32
mov lr, pc
bx r3
mov r3, #83886080
ldrh r2, [r3, #8]
strh r2, [r3, #2] @ movhi
ldr r3, [r4]
ldr r3, [r3]
ldr r2, .L127+36
add r3, r3, #1
smull r0, r1, r2, r3
asr r2, r3, #31
rsb r2, r2, r1, asr #1
add r2, r2, r2, lsl #3
sub r3, r3, r2
add r1, r3, r3, lsl #2
ldr r2, .L127+16
ldr r3, [r6]
ldr r0, [r6, #20]
ldr ip, .L127+40
add r1, r2, r1, lsl #3
add r3, r3, r0
str r5, [ip]
str r1, [r4]
add r3, r3, #29
b .L104
.L124:
mov r5, #0
mov ip, #32
mov lr, #4
mov r0, #8
ldr r3, .L127+24
str ip, [r1, #12]
str r0, [r1, #24]
mov r2, r5
str r5, [r1, #28]
str r5, [r1, #8]
str r5, [r1, #4]
str r5, [r1, #36]
str lr, [r1, #16]
ldr r0, .L127+28
ldr r1, [r3]
ldr r3, .L127+32
mov lr, pc
bx r3
mov r0, #83886080
ldr r3, [r4]
ldr r3, [r3]
ldr r2, .L127+36
add r3, r3, #1
smull ip, r1, r2, r3
asr r2, r3, #31
rsb r2, r2, r1, asr #1
add r2, r2, r2, lsl #3
sub r3, r3, r2
ldr r2, .L127+12
add r3, r3, r3, lsl #2
add r3, r2, r3, lsl #3
str r3, [r4]
ldrh r2, [r0, #10]
ldr r3, .L127+40
strh r2, [r0, #2] @ movhi
str r5, [r3]
b .L105
.L128:
.align 2
.L127:
.word line
.word red
.word blue
.word blues
.word reds
.word cheater
.word hitsound_length
.word hitsound_data
.word playSoundB
.word 954437177
.word combo
.size updateNotes, .-updateNotes
.align 2
.global drawNotes
.syntax unified
.arm
.fpu softvfp
.type drawNotes, %function
drawNotes:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r4, #512
ldr r6, .L137
ldr r3, .L137+4
ldr r5, [r6]
ldr r2, .L137+8
ldr r1, .L137+12
ldr lr, .L137+16
add r3, r3, r5, lsl #3
add ip, r2, #360
.L134:
ldr r0, [r2, #28]
cmp r0, #0
strheq r4, [r3] @ movhi
beq .L131
ldr r10, [r2, #36]
add r7, r10, #1
smull r8, r0, lr, r7
ldr r9, [r2, #8]
ldr r8, [r2, #4]
sub r0, r0, r7, asr #31
add r10, r10, #32
add r0, r0, r0, lsl #1
lsl r10, r10, #2
sub r0, r7, r0
orr r8, r8, #16384
orr r9, r9, #16384
strh r10, [r3, #4] @ movhi
str r0, [r2, #36]
strh r8, [r3] @ movhi
strh r9, [r3, #2] @ movhi
.L131:
ldr r0, [r1, #28]
cmp r0, #0
strheq r4, [r3, #8] @ movhi
beq .L133
ldr r10, [r1, #36]
add r7, r10, #1
smull r8, r0, lr, r7
ldr r9, [r1, #8]
ldr r8, [r1, #4]
sub r0, r0, r7, asr #31
add r10, r10, #40
add r0, r0, r0, lsl #1
lsl r10, r10, #2
sub r0, r7, r0
orr r8, r8, #16384
orr r9, r9, #16384
strh r10, [r3, #12] @ movhi
str r0, [r1, #36]
strh r8, [r3, #8] @ movhi
strh r9, [r3, #10] @ movhi
.L133:
add r2, r2, #40
cmp r2, ip
add r1, r1, #40
add r3, r3, #16
bne .L134
add r5, r5, #18
str r5, [r6]
pop {r4, r5, r6, r7, r8, r9, r10, lr}
bx lr
.L138:
.align 2
.L137:
.word shadowCount
.word shadowOAM
.word reds
.word blues
.word 1431655766
.size drawNotes, .-drawNotes
.global __aeabi_idiv
.align 2
.global noteGenerator
.syntax unified
.arm
.fpu softvfp
.type noteGenerator, %function
noteGenerator: