-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.s
1945 lines (1945 loc) · 31.9 KB
/
main.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
.fpu softvfp
.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
.arm
.syntax divided
.file "main.c"
.text
.align 2
.global drawHead
.type drawHead, %function
drawHead:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
ldr r3, .L71
ldr r0, [r3]
stmfd sp!, {r4, r5, r6, lr}
add ip, r0, #61440
add lr, r0, #64768
ldr r1, .L71+4
add ip, ip, #168
add lr, lr, #200
.L2:
mov r3, ip
add r2, ip, #20
.L3:
strh r1, [r3, #2]! @ movhi
cmp r3, r2
bne .L3
add ip, ip, #480
cmp ip, lr
bne .L2
add r2, r0, #60928
add lr, r0, #55808
ldr r1, .L71+4
add ip, r2, #200
add lr, lr, #18
add r2, r2, #224
.L6:
mov r3, ip
.L5:
strh r1, [r3], #2 @ movhi
cmp r2, r3
bne .L5
sub ip, ip, #480
sub ip, ip, #2
sub r2, r2, #476
cmp ip, lr
sub r2, r2, #2
bne .L6
add ip, r0, #46592
add lr, r0, #56064
ldr r1, .L71+4
add ip, ip, #112
add lr, lr, #240
.L9:
mov r3, ip
add r2, ip, #68
.L8:
strh r1, [r3, #2]! @ movhi
cmp r3, r2
bne .L8
add ip, ip, #480
cmp ip, lr
bne .L9
add r2, r0, #46080
add lr, r0, #38912
ldr r1, .L71+4
add ip, r2, #146
add lr, lr, #144
add r2, r2, #214
.L12:
mov r3, ip
.L11:
strh r1, [r3], #2 @ movhi
cmp r2, r3
bne .L11
sub ip, ip, #476
sub ip, ip, #2
sub r2, r2, #480
cmp ip, lr
sub r2, r2, #2
bne .L12
add lr, r0, #69632
add r4, r0, #80896
ldr r1, .L71+8
add ip, lr, #112
add r4, r4, #848
.L15:
mov r3, ip
add r2, ip, #70
.L14:
strh r1, [r3, #2]! @ movhi
cmp r3, r2
bne .L14
add ip, ip, #480
cmp ip, r4
bne .L15
add r4, r0, #64256
ldr r1, .L71+8
add r4, r4, #218
add ip, lr, #100
add r2, lr, #196
.L18:
mov r3, ip
.L17:
strh r1, [r3], #2 @ movhi
cmp r2, r3
bne .L17
sub ip, ip, #476
sub ip, ip, #2
sub r2, r2, #480
cmp ip, r4
sub r2, r2, #2
bne .L18
add r4, r0, #71680
ldr r1, .L71+4
add r5, r4, #448
add ip, lr, #96
.L21:
mov r3, ip
add r2, ip, #16
.L20:
strh r1, [r3, #2]! @ movhi
cmp r3, r2
bne .L20
add ip, ip, #480
cmp ip, r5
bne .L21
ldr r5, .L71+12
ldr r6, .L71+16
ldr ip, .L71+4
add r5, r0, r5
add r6, r0, r6
.L24:
mov r3, r5
add r1, r5, #4736
add r1, r1, #44
.L23:
add r2, r3, #476
strh ip, [r3] @ movhi
add r3, r2, #2
cmp r1, r3
bne .L23
add r5, r5, #2
cmp r5, r6
bne .L24
ldr ip, .L71+20
ldr r1, .L71+4
add lr, lr, #182
add ip, r0, ip
.L27:
mov r3, lr
add r2, lr, #16
.L26:
strh r1, [r3, #2]! @ movhi
cmp r2, r3
bne .L26
add lr, lr, #480
cmp lr, ip
bne .L27
ldr r0, .L71+4
add ip, r4, #536
add r4, r4, #552
.L30:
mov r3, ip
add r1, ip, #4800
add r1, r1, #20
.L29:
add r2, r3, #480
strh r0, [r3] @ movhi
add r3, r2, #2
cmp r1, r3
bne .L29
add ip, ip, #2
cmp ip, r4
bne .L30
ldmfd sp!, {r4, r5, r6, lr}
bx lr
.L72:
.align 2
.L71:
.word .LANCHOR0
.word 21277
.word 16582
.word 72130
.word 72146
.word 72214
.size drawHead, .-drawHead
.align 2
.global drawRect
.type drawRect, %function
drawRect:
@ Function supports interworking.
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, r5, lr}
cmp r2, #0
ldrh ip, [sp, #12]
ble .L73
mov r4, #0
ldr lr, .L82
rsb r0, r0, r0, lsl #4
ldr lr, [lr]
add r0, r1, r0, lsl #4
add lr, lr, r0, lsl #1
mov r5, r3, asl #1
.L77:
cmp r3, #0
ble .L78
mov r1, lr
add r0, lr, r5
.L76:
strh ip, [r1], #2 @ movhi
cmp r1, r0
bne .L76
.L78:
add r4, r4, #1
cmp r2, r4
add lr, lr, #480
bne .L77
.L73:
ldmfd sp!, {r4, r5, lr}
bx lr
.L83:
.align 2
.L82:
.word .LANCHOR0
.size drawRect, .-drawRect
.align 2
.global drawCurveR
.type drawCurveR, %function
drawCurveR:
@ Function supports interworking.
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, r5, r6, r7, r8, r9, r10, lr}
cmp r3, #0
ldrh r9, [sp, #32]
ble .L84
mov r7, #0
ldr ip, .L98
ldr r8, [ip]
.L91:
cmp r2, #0
movgt r6, r1
movgt r5, r0
movgt lr, #0
bgt .L90
b .L93
.L97:
cmp lr, #0
rsbeq r10, r5, r5, lsl #4
addeq r10, r6, r10, lsl #4
addeq r10, r10, r7
moveq r10, r10, asl #1
add r5, r5, #1
streqh r9, [r8, r10] @ movhi
add r10, r5, lr
rsb r10, r10, r10, lsl #4
add r4, r4, r10, lsl #4
add lr, lr, #1
mov r4, r4, asl #1
cmp r2, lr
strh r9, [r8, ip] @ movhi
strh r9, [r8, r4] @ movhi
beq .L93
.L90:
add ip, r5, lr
add r4, r6, lr
add r4, r4, r7
rsb ip, ip, ip, lsl #4
add ip, r4, ip, lsl #4
tst lr, #1
mov ip, ip, asl #1
beq .L97
add r10, r6, lr
add ip, r5, lr
add r6, r6, #1
add r4, r6, lr
rsb ip, ip, ip, lsl #4
mov ip, ip, asl #4
add r4, r4, r7
add r10, r10, r7
add r10, r10, ip
add lr, lr, #1
add ip, r4, ip
mov ip, ip, asl #1
mov r4, r10, asl #1
cmp r2, lr
strh r9, [r8, r4] @ movhi
strh r9, [r8, ip] @ movhi
bne .L90
.L93:
add r7, r7, #1
cmp r3, r7
bne .L91
.L84:
ldmfd sp!, {r4, r5, r6, r7, r8, r9, r10, lr}
bx lr
.L99:
.align 2
.L98:
.word .LANCHOR0
.size drawCurveR, .-drawCurveR
.align 2
.global drawCurveL
.type drawCurveL, %function
drawCurveL:
@ Function supports interworking.
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, r5, r6, r7, r8, r9, r10, lr}
cmp r3, #0
ldrh r9, [sp, #32]
ble .L100
mov r7, #0
ldr ip, .L115
ldr r8, [ip]
.L107:
cmp r2, #0
movgt r5, r1
movgt r6, r0
movgt ip, #0
bgt .L106
b .L109
.L114:
cmp ip, #0
beq .L113
.L104:
add r4, r6, ip
add r6, r6, #1
add r10, r6, ip
rsb r4, r4, r4, lsl #4
rsb r10, r10, r10, lsl #4
add r4, lr, r4, lsl #4
add ip, ip, #1
add lr, lr, r10, lsl #4
mov r4, r4, asl #1
mov lr, lr, asl #1
cmp r2, ip
strh r9, [r8, r4] @ movhi
strh r9, [r8, lr] @ movhi
beq .L109
.L106:
rsb lr, ip, r5
tst ip, #1
rsb lr, r7, lr
beq .L114
add lr, r6, ip
rsb r4, ip, r5
sub r5, r5, #1
rsb r10, lr, lr, lsl #4
rsb lr, ip, r5
mov r10, r10, asl #4
rsb r4, r7, r4
rsb lr, r7, lr
add r4, r4, r10
add lr, lr, r10
add ip, ip, #1
mov r4, r4, asl #1
mov lr, lr, asl #1
cmp r2, ip
strh r9, [r8, r4] @ movhi
strh r9, [r8, lr] @ movhi
bne .L106
.L109:
add r7, r7, #1
cmp r3, r7
bne .L107
.L100:
ldmfd sp!, {r4, r5, r6, r7, r8, r9, r10, lr}
bx lr
.L113:
rsb r4, r6, r6, lsl #4
add r4, r5, r4, lsl #4
add r4, r4, r7
mov r4, r4, asl #1
strh r9, [r8, r4] @ movhi
add r6, r6, #1
b .L104
.L116:
.align 2
.L115:
.word .LANCHOR0
.size drawCurveL, .-drawCurveL
.align 2
.global drawLetsParty
.type drawLetsParty, %function
drawLetsParty:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, r5, r6, r7, lr}
ldr r5, .L281
ldr r2, [r5]
mov r4, r0
add r3, r2, #9600
add r0, r2, #19200
sub sp, sp, #12
add r3, r3, #40
add r1, r0, #40
.L118:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r3, r1
bne .L118
add ip, r2, #17664
add lr, ip, #140
add r6, r0, #44
.L121:
mov r3, lr
add r1, lr, #20
.L120:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L120
add lr, lr, #480
cmp lr, r6
bne .L121
add lr, r2, #9664
add r3, lr, #12
add r1, r0, #76
.L123:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L123
add ip, ip, #176
add r6, r0, #80
.L126:
mov r3, ip
add r1, ip, #20
.L125:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L125
add ip, ip, #480
cmp ip, r6
bne .L126
add ip, r2, #13504
add r6, r2, #14912
add ip, ip, #16
add r6, r6, #48
.L129:
mov r3, ip
add r1, ip, #20
.L128:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L128
add ip, ip, #480
cmp ip, r6
bne .L129
add r6, r2, #11072
add r6, r6, #48
add ip, lr, #16
.L132:
mov r3, ip
add r1, ip, #20
.L131:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L131
add ip, ip, #480
cmp ip, r6
bne .L132
add r1, r2, #11136
add lr, lr, #46
add r6, r1, #14
.L135:
mov r3, lr
add ip, lr, #38
.L134:
strh r4, [r3, #2]! @ movhi
cmp ip, r3
bne .L134
add lr, lr, #480
cmp lr, r6
bne .L135
add r3, r1, #32
add r1, r0, #128
.L137:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r3, r1
bne .L137
add lr, r2, #9728
add r3, lr, #32
add r1, r2, #12160
.L138:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L138
add r1, r2, #11200
add lr, lr, #46
add r6, r1, #14
.L141:
mov r3, lr
add ip, lr, #32
.L140:
strh r4, [r3, #2]! @ movhi
cmp ip, r3
bne .L140
add lr, lr, #480
cmp lr, r6
bne .L141
add lr, r2, #15040
add r3, r1, #16
add r1, lr, #16
.L143:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L143
add ip, r2, #13568
add lr, lr, #20
add ip, ip, #52
.L146:
mov r3, ip
add r1, ip, #20
.L145:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L145
add ip, ip, #480
cmp ip, lr
bne .L146
add ip, r2, #13632
add r1, r2, #18432
add r3, ip, #10
add r1, r1, #10
.L148:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L148
add lr, r2, #17920
add lr, lr, #14
add r6, r0, #174
.L151:
mov r3, lr
add r1, lr, #32
.L150:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L150
add lr, lr, #480
cmp lr, r6
bne .L151
add lr, r2, #9792
add r0, r0, #242
add r3, lr, #50
.L153:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r0, r3
bne .L153
add r3, r2, #11264
add lr, lr, #54
add r6, r3, #22
.L156:
mov r1, lr
add r0, lr, #14
.L155:
strh r4, [r1, #2]! @ movhi
cmp r0, r1
bne .L155
add lr, lr, #480
cmp lr, r6
bne .L156
add r6, r2, #9856
add lr, r2, #15104
add r1, r6, #6
add r0, lr, #38
.L158:
strh r4, [r1] @ movhi
strh r4, [r1, #2] @ movhi
strh r4, [r1, #4] @ movhi
add r1, r1, #480
cmp r0, r1
bne .L158
add ip, ip, #54
add r7, lr, #22
.L161:
mov r1, ip
add r0, ip, #14
.L160:
strh r4, [r1, #2]! @ movhi
cmp r0, r1
bne .L160
add ip, ip, #480
cmp ip, r7
bne .L161
add ip, r6, #26
add r6, r3, #58
.L164:
mov r1, ip
add r0, ip, #20
.L163:
strh r4, [r1, #2]! @ movhi
cmp r0, r1
bne .L163
add ip, ip, #480
cmp ip, r6
bne .L164
add r0, r2, #19456
add r3, r3, #54
add r1, r0, #22
.L166:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L166
add r6, r2, #11328
add r3, r6, #16
add r1, r0, #48
.L167:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L167
add ip, r2, #13696
add lr, lr, #58
add ip, ip, #26
.L170:
mov r3, ip
add r1, ip, #20
.L169:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L169
add ip, ip, #480
cmp ip, lr
bne .L170
add r1, r2, #9920
mov r3, r1
add r0, r0, #64
.L172:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r0, r3
bne .L172
add r6, r6, #36
add ip, r1, #4
.L175:
mov r3, ip
add r0, ip, #14
.L174:
strh r4, [r3, #2]! @ movhi
cmp r0, r3
bne .L174
add ip, ip, #480
cmp ip, r6
bne .L175
add r0, r2, #15168
add r3, r1, #20
add r1, r0, #52
.L177:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L177
add r2, r2, #13760
add r2, r2, #4
add r0, r0, #36
.L180:
mov r3, r2
add r1, r2, #14
.L179:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L179
add r2, r2, #480
cmp r2, r0
bne .L180
mov r2, #8
mov r0, #28
str r4, [sp]
mov r3, #3
mov r1, #161
bl drawCurveR
ldr r0, [r5]
add ip, r0, #9920
add r2, r0, #11392
add ip, ip, #34
add lr, r2, #2
.L182:
mov r3, ip
add r1, ip, #38
.L183:
strh r4, [r3, #2]! @ movhi
cmp r1, r3
bne .L183
add ip, ip, #480
cmp ip, lr
bne .L182
add r1, r0, #19456
add r1, r1, #116
add r3, r2, #20
.L185:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r1, r3
bne .L185
mov r3, #3
mov r2, #5
str r4, [sp]
mov r1, #202
mov r0, #20
bl drawCurveR
ldr r2, [r5]
add r3, r2, #13824
add r2, r2, #19456
add r3, r3, #36
add r2, r2, #164
.L186:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r2, r3
bne .L186
mov r3, #3
mov r2, #5
mov r1, #219
str r4, [sp]
mov r0, #20
bl drawCurveL
ldr r1, [r5]
add r2, r1, #16640
add r2, r2, #128
add r3, r1, #10048
.L187:
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add r3, r3, #480
cmp r3, r2
bne .L187
add r3, r1, #16384
add r2, r3, #1824
add r1, r1, #18688
add r3, r3, #2784
strh r4, [r2] @ movhi
strh r4, [r2, #2] @ movhi
strh r4, [r2, #4] @ movhi
strh r4, [r1] @ movhi
strh r4, [r1, #2] @ movhi
strh r4, [r1, #4] @ movhi
strh r4, [r3] @ movhi
strh r4, [r3, #2] @ movhi
strh r4, [r3, #4] @ movhi
add sp, sp, #12
@ sp needed
ldmfd sp!, {r4, r5, r6, r7, lr}
bx lr
.L282:
.align 2
.L281:
.word .LANCHOR0
.size drawLetsParty, .-drawLetsParty
.align 2
.global drawLine
.type drawLine, %function
drawLine:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
cmp r2, #0
bxle lr
ldr ip, .L288
rsb r0, r0, r0, lsl #4
add r1, r1, r0, lsl #4
ldr ip, [ip]
add r2, r1, r2
add r2, ip, r2, lsl #1
add r1, ip, r1, lsl #1
.L285:
strh r3, [r1], #2 @ movhi
cmp r1, r2
bne .L285
bx lr
.L289:
.align 2
.L288:
.word .LANCHOR0
.size drawLine, .-drawLine
.align 2
.global drawDiagonalLineLeft
.type drawDiagonalLineLeft, %function
drawDiagonalLineLeft:
@ Function supports interworking.
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, lr}
cmp r3, #0
ldrh lr, [sp, #8]
ble .L290
ldr ip, .L300
rsb r0, r0, r0, lsl #4
add r0, r1, r0, lsl #4
ldr r1, [ip]
rsb ip, r2, r2, lsl #4
add r3, r3, r0
rsb ip, r2, ip, lsl #4
add r4, r1, r3, lsl #1
add r0, r1, r0, lsl #1
mov ip, ip, asl #1
.L294:
cmp r2, #0
movgt r3, #0
ble .L296
.L293:
add r1, r3, #476
strh lr, [r0, r3] @ movhi
add r3, r1, #2
cmp ip, r3
bne .L293
.L296:
add r0, r0, #2
cmp r0, r4
bne .L294
.L290:
ldmfd sp!, {r4, lr}
bx lr
.L301:
.align 2
.L300:
.word .LANCHOR0
.size drawDiagonalLineLeft, .-drawDiagonalLineLeft
.align 2
.global drawDiagonalLineRight
.type drawDiagonalLineRight, %function
drawDiagonalLineRight:
@ Function supports interworking.
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, lr}
cmp r3, #0
ldrh lr, [sp, #8]
ble .L302
ldr ip, .L312
rsb r0, r0, r0, lsl #4
add r0, r1, r0, lsl #4
ldr r1, [ip]
rsb ip, r2, r2, lsl #4
add r3, r3, r0
add ip, r2, ip, lsl #4
add r4, r1, r3, lsl #1
add r0, r1, r0, lsl #1
mov ip, ip, asl #1
.L306:
cmp r2, #0
movgt r3, #0
ble .L308
.L305:
add r1, r3, #480
strh lr, [r0, r3] @ movhi
add r3, r1, #2
cmp ip, r3
bne .L305
.L308:
add r0, r0, #2
cmp r0, r4
bne .L306
.L302:
ldmfd sp!, {r4, lr}
bx lr
.L313:
.align 2
.L312:
.word .LANCHOR0
.size drawDiagonalLineRight, .-drawDiagonalLineRight
.align 2
.global drawOval
.type drawOval, %function
drawOval:
@ Function supports interworking.
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, r5, r6, r7, r8, r9, lr}
cmp r2, #0
ldrh lr, [sp, #28]
ble .L315
ldr r5, .L336
rsb r4, r0, r0, lsl #4
mov r6, r4, asl #4
ldr r7, [r5]
add r4, r2, r1
add ip, r1, r6
add r4, r4, r6
add ip, r7, ip, lsl #1
add r4, r7, r4, lsl #1
.L316:
strh lr, [ip], #2 @ movhi
cmp ip, r4
bne .L316
cmp r3, #0
add r0, r0, #1
add r8, r2, #4
ble .L323
.L326:
mov r6, #0
ldr r7, [r5]
sub ip, r1, #2
rsb r5, r0, r0, lsl #4
add r5, ip, r5, lsl #4
add r5, r7, r5, lsl #1
mov r9, r8, asl #1
.L319:
cmp r8, #0
movgt ip, r5
addgt r4, r9, r5
ble .L322
.L321:
strh lr, [ip], #2 @ movhi
cmp r4, ip
bne .L321
.L322:
add r6, r6, #1
cmp r3, r6
add r0, r0, #1
add r5, r5, #480
bgt .L319
cmp r2, #0
ble .L314
.L323:
mov r3, #0
rsb r0, r0, r0, lsl #4
add r1, r1, r0, lsl #4
add r1, r7, r1, lsl #1
.L324:
add r3, r3, #1
cmp r2, r3
strh lr, [r1], #2 @ movhi
bgt .L324
.L314:
ldmfd sp!, {r4, r5, r6, r7, r8, r9, lr}
bx lr
.L315:
cmp r3, #0
ble .L314
add r0, r0, #1
add r8, r2, #4
ldr r5, .L336
b .L326
.L337:
.align 2
.L336:
.word .LANCHOR0
.size drawOval, .-drawOval
.align 2
.global drawPupils
.type drawPupils, %function
drawPupils:
@ Function supports interworking.
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, r5, r6, r7, r8, lr}
mov r5, r0
mov r7, r2
mov r8, r3
sub sp, sp, #8
ldrh r4, [sp, #32]
mov r6, r1