-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy patharm9_sprite.s
More file actions
executable file
·18113 lines (15699 loc) · 351 KB
/
arm9_sprite.s
File metadata and controls
executable file
·18113 lines (15699 loc) · 351 KB
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
/* Input:
r0: PtrToSpriteList
Return:
r0: PtrToSpriteStruct
*/
.align 2, 0
.thumb
Function_205e820: @ 205e820 :thumb
push {r3-r7,lr}
mov r4, r1
mov r7, r0
mov r6, r2
bl Function_205e8fc
mov r5, r0
mov r0, r4
bl Function_205ec94
str r0, [sp, #0x0]
ldr r1, [sp, #0x0]
mov r0, r5
mov r2, r6
mov r3, r4
bl Function_205e91c
mov r0, r7
bl Function_205ea64
mov r4, r0
ldr r0, [sp, #0x0]
mov r1, r6
bl Function_205ed6c
mov r1, r0 @ SpriteGraphicID
mov r0, r4
bl SetSpriteGraphic
mov r1, #0x9
mov r0, r4
lsl r1, r1, #10
bl SetSpriteFlags
mov r1, #0x6
mov r0, r4
lsl r1, r1, #6
bl UnsetSpriteFlags
mov r0, r4
mov r1, #0x1
bl SetUnsetSpriteFlags20000000
mov r0, r5
mov r1, r4
bl Function_205eb38
mov r0, r5
pop {r3-r7,pc}
@ 0x205e882
.align 2, 0
.thumb
.globl Function_205e884
Function_205e884: @ 205e884 :thumb
push {r3-r7,lr}
mov r5, r0
mov r4, r1
bl Function_205eb3c
mov r6, r0
bne branch_205e896
bl ErrorHandling
branch_205e896: @ 205e896 :thumb
mov r0, r6
bl GetSpriteSpriteList
mov r0, r5
bl 0x21f6218
mov r0, r5
bl Function_205eb74
cmp r0, #0x2
bne branch_205e8de
cmp r4, #0x9
beq branch_205e8de
mov r0, r5
bl GetSpritePositionX
mov r4, r0
mov r0, r5
bl GetSpritePositionY
mov r7, r0
mov r0, r5
bl GetSpriteFaceDirection
mov r3, r0
mov r0, #0x1
str r0, [sp, #0x0]
mov r0, r6
mov r1, r4
mov r2, r7
bl Function_5_21f261c
mov r1, r0
mov r0, r5
bl Function_205ec00
branch_205e8de: @ 205e8de :thumb
pop {r3-r7,pc}
@ 0x205e8e0
thumb_func_start Call_free9
Call_free9: @ 205e8e0 :thumb
ldr r3, =free+1
bx r3
@ 0x205e8e4
.align 2
.pool
thumb_func_end Call_free9
.thumb
Function_205e8e8: @ 205e8e8 :thumb
push {r4,lr}
mov r4, r0
bl Function_205eb3c
bl Function_2061af4
mov r0, r4
bl Call_free9
pop {r4,pc}
@ 0x205e8fc
.thumb
Function_205e8fc: @ 205e8fc :thumb
push {r4,lr}
mov r0, #0xb
mov r1, #0x40
bl malloc
mov r4, r0
bne branch_205e90e
bl ErrorHandling
branch_205e90e: @ 205e90e :thumb
mov r0, r4
mov r1, #0x0
mov r2, #0x40
blx Call_FillMemWithValue
mov r0, r4
pop {r4,pc}
@ 0x205e91c
.thumb
Function_205e91c: @ 205e91c :thumb
push {r4-r6,lr}
mov r4, r1
mov r5, r0
mov r1, r3
mov r6, r2
bl Function_205ec08
mov r0, r5
mov r1, #0x0
bl Function_205eb08
mov r0, r5
mov r1, #0x0
bl Function_205eb10
mov r0, r5
mov r1, r4
bl Function_205eb58
mov r0, r5
mov r1, r6
bl Function_205eb94
mov r0, r5
mov r1, #0x0
bl Function_205eb8c
mov r0, r5
bl Function_205ebc0
mov r1, #0x0
mov r0, r5
mvn r1, r1
bl Function_205ebdc
mov r1, #0x0
mov r0, r5
mvn r1, r1
bl Function_205ebe4
mov r0, r5
mov r1, #0xff
mov r2, #0x0
bl Function_205ec20
mov r0, r5
mov r1, #0x1
bl Function_205ef6c
mov r0, r5
mov r1, #0x1
bl Function_205eff0
pop {r4-r6,pc}
@ 0x205e988
thumb_func_start Init2SpriteStruct
Init2SpriteStruct: @ 205e988 :thumb
push {r4,r5,lr}
add sp, #-0xc
mov r4, r0
str r2, [sp, #0x0]
mov r0, #0x1
str r0, [sp, #0x4]
str r0, [sp, #0x8]
mov r0, r1
ldr r1, [sp, #0x18]
ldr r2, [sp, #0x1c]
bl InitSpriteStruct
mov r5, r0
bne branch_205e9a8
bl ErrorHandling
branch_205e9a8: @ 205e9a8 :thumb
mov r0, r5
mov r1, #0xff
bl SetSpriteID
mov r0, r5
mov r1, #0x0
bl SetSpriteTrainer
mov r0, r5
mov r1, #0x0
bl SetSpriteFlag
mov r0, r5
mov r1, #0x0
bl SetSpriteScript
mov r1, #0x0
mov r0, r5
mov r2, r1
bl Function_20629b4
mov r0, r5
mov r1, #0x0
mov r2, #0x1
bl Function_20629b4
mov r0, r5
mov r1, #0x0
mov r2, #0x2
bl Function_20629b4
mov r1, #0x0
mov r0, r5
mvn r1, r1
bl SetSpriteMovementWidth
mov r1, #0x0
mov r0, r5
mvn r1, r1
bl SetSpriteMovementLength
mov r1, #0x9
mov r0, r5
lsl r1, r1, #10
bl SetSpriteFlags
mov r1, #0x6
mov r0, r5
lsl r1, r1, #6
bl UnsetSpriteFlags
mov r0, r5
mov r1, #0x1
bl SetUnsetSpriteFlags20000000
mov r0, r4
mov r1, r5
bl Function_205eb38
add sp, #0xc
pop {r4,r5,pc}
thumb_func_end Init2SpriteStruct
/* Input:
r0: PtrToSpriteList
*/
.align 2, 0
.thumb
Function_205ea24: @ 205ea24 :thumb
push {r3-r7,lr}
add sp, #-0x8
mov r1, #0x0
str r1, [sp, #0x4]
str r1, [sp, #0x0]
add r1, sp, #0x0
add r2, sp, #0x4
mov r3, #0x1
mov r5, r0
bl Function_20625b0
cmp r0, #0x0
beq branch_205ea5e
add r4, sp, #0x0
add r6, sp, #0x4
mov r7, #0x1
branch_205ea44: @ 205ea44 :thumb
ldr r0, [sp, #0x0]
bl GetSpriteMovement
cmp r0, #0x1
beq branch_205ea5e
mov r0, r5
mov r1, r4
mov r2, r6
mov r3, r7
bl Function_20625b0
cmp r0, #0x0
bne branch_205ea44
branch_205ea5e: @ 205ea5e :thumb
ldr r0, [sp, #0x0]
add sp, #0x8
pop {r3-r7,pc}
@ 0x205ea64
/* Input:
r0: PtrToSpriteList
*/
.thumb
Function_205ea64: @ 205ea64 :thumb
push {r4,lr}
bl Function_205ea24
mov r4, r0
bne branch_205ea72
bl ErrorHandling
branch_205ea72: @ 205ea72 :thumb
mov r0, r4
pop {r4,pc}
@ 0x205ea76
thumb_func_start GetSpriteFaceDirection
GetSpriteFaceDirection: @ 205ea78 :thumb
push {r3,lr}
bl Function_205eb3c
bl LoadSpriteFaceDirection
pop {r3,pc}
thumb_func_end GetSpriteFaceDirection
.thumb
.globl Function_205ea84
Function_205ea84: @ 205ea84 :thumb
push {r4,lr}
mov r4, r1
bl Function_205eb3c
mov r1, r4
bl ChangeSpriteFaceDirection_WithCheck
pop {r4,pc}
@ 0x205ea94
.thumb
.globl Function_205ea94
Function_205ea94: @ 205ea94 :thumb
push {r3,lr}
bl Function_205eb3c
bl LoadSpriteFace2Direction
pop {r3,pc}
@ 0x205eaa0
/* Input:
r0: PtrToSpriteStruct
*/
.thumb
.globl Function_205eaa0
Function_205eaa0: @ 205eaa0 :thumb
push {r4,lr}
mov r4, r0
bl Function_205f16c
cmp r0, #0x1
bne branch_205eab4
mov r0, r4
bl GetSpriteFaceDirection
pop {r4,pc}
branch_205eab4: @ 205eab4 :thumb
mov r0, r4
bl Function_205ea94
pop {r4,pc}
@ 0x205eabc
thumb_func_start GetSpritePositionX
GetSpritePositionX: @ 205eabc :thumb
push {r3,lr}
bl Function_205eb3c
bl LoadSpritePositionX
pop {r3,pc}
thumb_func_end GetSpritePositionX
thumb_func_start GetSpritePositionY
GetSpritePositionY: @ 205eac8 :thumb
push {r3,lr}
bl Function_205eb3c
bl LoadSpritePositionY
pop {r3,pc}
thumb_func_end GetSpritePositionY
.thumb
Function_205ead4: @ 205ead4 :thumb
push {r3,lr}
bl Function_205eb3c
bl GetSpriteX2
pop {r3,pc}
@ 0x205eae0
.thumb
Function_205eae0: @ 205eae0 :thumb
push {r3,lr}
bl Function_205eb3c
bl GetSpriteY2
pop {r3,pc}
@ 0x205eaec
.thumb
.globl Function_205eaec
Function_205eaec: @ 205eaec :thumb
push {r4,lr}
mov r4, r1
bl Function_205eb3c
mov r1, r4
bl CopySprite70Struct
pop {r4,pc}
@ 0x205eafc
.thumb
.globl Function_205eafc
Function_205eafc: @ 205eafc :thumb
push {r3,lr}
bl Function_205eb54
bl GetSpriteAdr70
pop {r3,pc}
@ 0x205eb08
.thumb
Function_205eb08: @ 205eb08 :thumb
str r1, [r0, #0x14]
bx lr
@ 0x205eb0c
.thumb
.globl Function_205eb0c
Function_205eb0c: @ 205eb0c :thumb
ldr r0, [r0, #0x14]
bx lr
@ 0x205eb10
.thumb
Function_205eb10: @ 205eb10 :thumb
str r1, [r0, #0x18]
bx lr
@ 0x205eb14
.thumb
.globl Function_205eb14
Function_205eb14: @ 205eb14 :thumb
ldr r0, [r0, #0x18]
bx lr
@ 0x205eb18
.thumb
.globl Function_205eb18
Function_205eb18: @ 205eb18 :thumb
push {r4,lr}
mov r4, r1
bl Function_205eb3c
cmp r4, #0x1
bne branch_205eb2e
mov r1, #0x2
lsl r1, r1, #8
bl UnsetSpriteFlags
pop {r4,pc}
branch_205eb2e: @ 205eb2e :thumb
mov r1, #0x2
lsl r1, r1, #8
bl SetSpriteFlags
pop {r4,pc}
@ 0x205eb38
.thumb
Function_205eb38: @ 205eb38 :thumb
str r1, [r0, #0x30]
bx lr
@ 0x205eb3c
.thumb
.globl Function_205eb3c
Function_205eb3c: @ 205eb3c :thumb
push {r4,lr}
mov r4, r0
bne branch_205eb46
bl ErrorHandling
branch_205eb46: @ 205eb46 :thumb
ldr r0, [r4, #0x30]
cmp r0, #0x0
bne branch_205eb50
bl ErrorHandling
branch_205eb50: @ 205eb50 :thumb
ldr r0, [r4, #0x30]
pop {r4,pc}
@ 0x205eb54
.thumb
Function_205eb54: @ 205eb54 :thumb
ldr r0, [r0, #0x30]
bx lr
@ 0x205eb58
.thumb
.globl Function_205eb58
Function_205eb58: @ 205eb58 :thumb
push {r3-r5,lr}
mov r4, r1
mov r5, r0
cmp r4, #0x6
blt branch_205eb66
bl ErrorHandling
branch_205eb66: @ 205eb66 :thumb
mov r0, r5
mov r1, r4
str r4, [r5, #0x1c]
bl Function_205eca8
pop {r3-r5,pc}
@ 0x205eb72
.align 2, 0
.thumb
.globl Function_205eb74
Function_205eb74: @ 205eb74 :thumb
push {r4,lr}
mov r4, r0
bne branch_205eb7e
bl ErrorHandling
branch_205eb7e: @ 205eb7e :thumb
ldr r0, [r4, #0x1c]
pop {r4,pc}
@ 0x205eb82
.align 2, 0
.thumb
.globl Function_205eb84
Function_205eb84: @ 205eb84 :thumb
ldr r2, [r0, #0x4]
orr r1, r2
str r1, [r0, #0x4]
bx lr
@ 0x205eb8c
.thumb
.globl Function_205eb8c
Function_205eb8c: @ 205eb8c :thumb
str r1, [r0, #0x4]
bx lr
@ 0x205eb90
.thumb
.globl Function_205eb90
Function_205eb90: @ 205eb90 :thumb
ldr r0, [r0, #0x4]
bx lr
@ 0x205eb94
.thumb
Function_205eb94: @ 205eb94 :thumb
str r1, [r0, #0x20]
bx lr
@ 0x205eb98
.thumb
.globl Function_205eb98
Function_205eb98: @ 205eb98 :thumb
ldr r0, [r0, #0x20]
bx lr
@ 0x205eb9c
.thumb
Function_205eb9c: @ 205eb9c :thumb
ldr r2, [r0, #0x0]
orr r1, r2
str r1, [r0, #0x0]
bx lr
@ 0x205eba4
.thumb
Function_205eba4: @ 205eba4 :thumb
ldr r2, [r0, #0x0]
mvn r1, r1
and r1, r2
str r1, [r0, #0x0]
bx lr
@ 0x205ebae
.align 2, 0
.thumb
Function_205ebb0: @ 205ebb0 :thumb
ldr r0, [r0, #0x0]
and r0, r1
bx lr
@ 0x205ebb6
.align 2, 0
.thumb
.globl Function_205ebb8
Function_205ebb8: @ 205ebb8 :thumb
ldr r0, [r0, #0x24]
bx lr
@ 0x205ebbc
.thumb
Function_205ebbc: @ 205ebbc :thumb
str r1, [r0, #0x24]
bx lr
@ 0x205ebc0
.thumb
.globl Function_205ebc0
Function_205ebc0: @ 205ebc0 :thumb
ldr r3, [pc, #0x4] @ 0x205ebc8, (=Function_205ef98+1)
mov r1, #0x0
str r1, [r0, #0x24]
bx r3
@ 0x205ebc8
.word Function_205ef98+1 @ 0x205ebc8
.thumb
Function_205ebcc: @ 205ebcc :thumb
ldr r3, [r0, #0x24]
add r1, r3, r1
str r1, [r0, #0x24]
cmp r1, r2
ble branch_205ebd8
str r2, [r0, #0x24]
branch_205ebd8: @ 205ebd8 :thumb
ldr r0, [r0, #0x24]
bx lr
@ 0x205ebdc
.thumb
Function_205ebdc: @ 205ebdc :thumb
str r1, [r0, #0x28]
bx lr
@ 0x205ebe0
.thumb
Function_205ebe0: @ 205ebe0 :thumb
ldr r0, [r0, #0x28]
bx lr
@ 0x205ebe4
.thumb
Function_205ebe4: @ 205ebe4 :thumb
str r1, [r0, #0x2c]
bx lr
@ 0x205ebe8
.thumb
Function_205ebe8: @ 205ebe8 :thumb
ldr r0, [r0, #0x2c]
bx lr
@ 0x205ebec
.thumb
Function_205ebec: @ 205ebec :thumb
push {r3-r5,lr}
mov r5, r0
mov r4, r2
bl Function_205ebdc
mov r0, r5
mov r1, r4
bl Function_205ebe4
pop {r3-r5,pc}
@ 0x205ec00
.thumb
.globl Function_205ec00
Function_205ec00: @ 205ec00 :thumb
str r1, [r0, #0x34]
bx lr
@ 0x205ec04
.thumb
.globl Function_205ec04
Function_205ec04: @ 205ec04 :thumb
ldr r0, [r0, #0x34]
bx lr
@ 0x205ec08
.thumb
Function_205ec08: @ 205ec08 :thumb
str r1, [r0, #0x38]
bx lr
@ 0x205ec0c
.thumb
Function_205ec0c: @ 205ec0c :thumb
ldr r0, [r0, #0x38]
bx lr
@ 0x205ec10
.thumb
Function_205ec10: @ 205ec10 :thumb
str r1, [r0, #0x8]
bx lr
@ 0x205ec14
.thumb
Function_205ec14: @ 205ec14 :thumb
ldr r0, [r0, #0x8]
bx lr
@ 0x205ec18
.thumb
Function_205ec18: @ 205ec18 :thumb
str r1, [r0, #0xc]
bx lr
@ 0x205ec1c
.thumb
Function_205ec1c: @ 205ec1c :thumb
ldr r0, [r0, #0xc]
bx lr
@ 0x205ec20
.thumb
Function_205ec20: @ 205ec20 :thumb
push {r3-r5,lr}
mov r5, r0
mov r4, r2
bl Function_205ec10
mov r0, r5
mov r1, r4
bl Function_205ec18
pop {r3-r5,pc}
@ 0x205ec34
.thumb
Function_205ec34: @ 205ec34 :thumb
mov r1, #0x0
strh r1, [r0, #0x0]
strh r1, [r0, #0x2]
str r1, [r0, #0x4]
bx lr
@ 0x205ec3e
.align 2, 0
.thumb
Function_205ec40: @ 205ec40 :thumb
cmp r0, #0x0
beq branch_205ec4e
ldrh r0, [r0, #0x2]
cmp r0, #0x1
bne branch_205ec4e
mov r0, #0x1
bx lr
branch_205ec4e: @ 205ec4e :thumb
mov r0, #0x0
bx lr
@ 0x205ec52
/* Input:
r0: VariableAreaAdress_6_8c
*/
thumb_func_start SetRunningShoes
SetRunningShoes: @ 205ec54 :thumb
cmp r1, #0x1
bne branch_205ec5e
mov r1, #0x1
strh r1, [r0, #VarArea6_8c_2]
bx lr
branch_205ec5e: @ 205ec5e :thumb
mov r1, #0x0
strh r1, [r0, #VarArea6_8c_2]
bx lr
thumb_func_end SetRunningShoes
.thumb
Function_205ec64: @ 205ec64 :thumb
cmp r0, #0x0
bne branch_205ec6c
mov r0, #0x0
bx lr
branch_205ec6c: @ 205ec6c :thumb
ldrh r0, [r0, #0x0]
bx lr
@ 0x205ec70
.thumb
Function_205ec70: @ 205ec70 :thumb
cmp r0, #0x0
beq branch_205ec76
strh r1, [r0, #0x0]
branch_205ec76: @ 205ec76 :thumb
bx lr
@ 0x205ec78
.thumb
Function_205ec78: @ 205ec78 :thumb
push {r4,lr}
mov r4, r1
bl Function_205ec0c
mov r1, r4
bl Function_205ec70
pop {r4,pc}
@ 0x205ec88
.thumb
Function_205ec88: @ 205ec88 :thumb
push {r3,lr}
bl Function_205ec0c
bl Function_205ec64
pop {r3,pc}
@ 0x205ec94
.thumb
Function_205ec94: @ 205ec94 :thumb
cmp r0, #0x0
beq branch_205ec9c
ldr r0, [r0, #0x4]
bx lr
branch_205ec9c: @ 205ec9c :thumb
mov r0, #0x0
bx lr
@ 0x205eca0
.thumb
Function_205eca0: @ 205eca0 :thumb
cmp r0, #0x0
beq branch_205eca6
str r1, [r0, #0x4]
branch_205eca6: @ 205eca6 :thumb
bx lr
@ 0x205eca8
.thumb
Function_205eca8: @ 205eca8 :thumb
push {r4,lr}
mov r4, r1
bl Function_205ec0c
mov r1, r4
bl Function_205eca0
pop {r4,pc}
@ 0x205ecb8
.thumb
Function_205ecb8: @ 205ecb8 :thumb
push {r4-r6,lr}
mov r4, r1
mov r6, r2
mov r5, r0
bl Function_205eb3c
mov r1, r4
mov r2, r6
bl Function_20632d4
mov r0, r5
mov r1, #0x0
bl Function_205eb08
mov r0, r5
mov r1, #0x0
bl Function_205eb10
pop {r4-r6,pc}
@ 0x205ecde
.align 2, 0
.thumb
.globl Function_205ece0
Function_205ece0: @ 205ece0 :thumb
push {r3-r7,lr}
mov r6, r1
mov r7, r2
mov r5, r0
mov r4, r3
bl Function_205eb3c
mov r1, r6
mov r2, #0x0
mov r3, r7
str r4, [sp, #0x0]
bl Function_2063340
mov r0, r5
mov r1, #0x0
bl Function_205eb08
mov r0, r5
mov r1, #0x0
bl Function_205eb10
pop {r3-r7,pc}
@ 0x205ed0c
.thumb
.globl Function_205ed0c
Function_205ed0c: @ 205ed0c :thumb
push {r4,r5,lr}
add sp, #-0xc
mov r5, r1
bl Function_205eb3c
mov r4, r0
add r1, sp, #0x0
bl CopySprite70Struct
mov r0, r4
add r1, sp, #0x0
str r5, [sp, #0x4]
bl CopyToSprite70Struct
add sp, #0xc
pop {r4,r5,pc}
@ 0x205ed2c
.thumb
.globl Function_205ed2c
Function_205ed2c: @ 205ed2c :thumb
push {r4,lr}
mov r4, r1
bl Function_205eb3c
cmp r4, #0x1
bne branch_205ed40
mov r1, #0x0
bl SetUnsetSpriteFlags800000
pop {r4,pc}
branch_205ed40: @ 205ed40 :thumb
mov r1, #0x1
bl SetUnsetSpriteFlags800000
pop {r4,pc}
@ 0x205ed48
.thumb