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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
|
.include "asm/macros.inc"
.include "global.inc"
.section .rodata
.global UNK_020FF500
UNK_020FF500: ; 0x020FF500
.byte 0x00, 0x08, 0x01, 0x01, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00
.global UNK_020FF50C
UNK_020FF50C: ; 0x020FF50C
.byte 0x00, 0x08, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00
.global UNK_020FF518
UNK_020FF518: ; 0x020FF518
.byte 0x00, 0x08, 0x01, 0x01, 0x01, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00
.global UNK_020FF524
UNK_020FF524: ; 0x020FF524
.byte 0x00, 0x01, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04
.global UNK_020FF534
UNK_020FF534: ; 0x020FF534
.byte 0x06, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00
.byte 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00
.global UNK_020FF554
UNK_020FF554: ; 0x020FF554
.byte 0x05, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00
.global UNK_020FF564
UNK_020FF564: ; 0x020FF564
.byte 0x04, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00
.global UNK_020FF56C
UNK_020FF56C: ; 0x020FF56C
.byte 0x03, 0x00, 0x01, 0x00
.global UNK_020FF570
UNK_020FF570: ; 0x020FF570
.byte 0x02, 0x00
.global UNK_020FF572
UNK_020FF572: ; 0x020FF572
.byte 0x01
.global UNK_020FF573
UNK_020FF573: ; 0x020FF573
.byte 0x00
.section .data
.global UNK_02106170
UNK_02106170: ; 0x02106170
.word UNK_020FF573
.word UNK_020FF572
.word UNK_020FF570
.word UNK_020FF56C
.word UNK_020FF564
.word UNK_020FF554
.word UNK_020FF534
.text
arm_func_start FUN_020910EC
FUN_020910EC: ; 0x020910EC
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x14
mov r12, r0
mov r4, r1
mov r5, r2
mov r2, r4
add r0, sp, #0x0
mov r1, r12
mov r4, r3
bl MATH_CalcSHA1
add r0, sp, #0x0
mov r1, r5
mov r2, r4
bl FUN_02091130
add sp, sp, #0x14
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_02091130
FUN_02091130: ; 0x02091130
stmdb sp!, {r4,lr}
sub sp, sp, #0x120
mov r3, #0x0
str r3, [sp, #0x10]
str r3, [sp, #0x18]
str r2, [sp, #0x0]
mov r3, #0x80
mov r4, r0
mov r2, r1
ldr ip, _0209122C ; =0x00010001
str r3, [sp, #0x4]
add r0, sp, #0x1c
mov r1, #0x100
str r12, [sp, #0x8]
bl FUN_0209156C
mov r1, r0
add r0, sp, #0x1c
add r2, sp, #0xc
add r3, sp, #0x10
bl FUN_020913D4
cmp r0, #0x0
addeq sp, sp, #0x120
moveq r0, #0x0
ldmeqia sp!, {r4,lr}
bxeq lr
add r1, sp, #0x14
add r0, sp, #0x18
str r1, [sp, #0x0]
str r0, [sp, #0x4]
mov r2, #0x0
ldr r0, [sp, #0xc]
ldr r1, [sp, #0x10]
mov r3, r2
bl FUN_02091230
cmp r0, #0x0
addeq sp, sp, #0x120
moveq r0, #0x0
ldmeqia sp!, {r4,lr}
bxeq lr
ldr r0, [sp, #0x18]
cmp r0, #0x14
addne sp, sp, #0x120
movne r0, #0x0
ldmneia sp!, {r4,lr}
bxne lr
ldr r2, [sp, #0x14]
mov r3, #0x0
_020911EC:
ldrb r1, [r2, #0x0]
ldrb r0, [r4, #0x0]
cmp r1, r0
addne sp, sp, #0x120
movne r0, #0x0
ldmneia sp!, {r4,lr}
bxne lr
add r3, r3, #0x1
cmp r3, #0x14
add r4, r4, #0x1
add r2, r2, #0x1
blt _020911EC
mov r0, #0x1
add sp, sp, #0x120
ldmia sp!, {r4,lr}
bx lr
.balign 4
_0209122C: .word 0x00010001
arm_func_start FUN_02091230
FUN_02091230:
stmdb sp!, {r0-r3}
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
mov r5, r2
mov r4, r3
add r0, sp, #0x10
add r1, sp, #0x14
mov r2, #0x30
mov r3, #0x0
bl FUN_02091498
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
addeq sp, sp, #0x10
bxeq lr
add r0, sp, #0x10
add r1, sp, #0x14
mov r2, #0x30
mov r3, #0x0
bl FUN_02091498
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
addeq sp, sp, #0x10
bxeq lr
add r0, sp, #0x10
add r1, sp, #0x14
add r3, sp, #0x0
mov r2, #0x6
bl FUN_02091498
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
addeq sp, sp, #0x10
bxeq lr
cmp r5, #0x0
ldrne r0, [sp, #0x10]
strne r0, [r5, #0x0]
cmp r4, #0x0
ldrne r0, [sp, #0x0]
strne r0, [r4, #0x0]
ldr r2, [sp, #0x0]
ldr r0, [sp, #0x10]
ldr r1, [sp, #0x14]
add r0, r0, r2
str r0, [sp, #0x10]
cmp r1, r2
addcc sp, sp, #0x4
movcc r0, #0x0
ldmccia sp!, {r4-r5,lr}
addcc sp, sp, #0x10
bxcc lr
sub r12, r1, r2
add r0, sp, #0x10
add r1, sp, #0x14
add r3, sp, #0x0
mov r2, #0x5
str r12, [sp, #0x14]
bl FUN_02091498
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
addeq sp, sp, #0x10
bxeq lr
ldr r2, [sp, #0x0]
ldr r0, [sp, #0x10]
ldr r1, [sp, #0x14]
add r0, r0, r2
str r0, [sp, #0x10]
cmp r1, r2
addcc sp, sp, #0x4
movcc r0, #0x0
ldmccia sp!, {r4-r5,lr}
addcc sp, sp, #0x10
bxcc lr
sub r12, r1, r2
add r0, sp, #0x10
add r1, sp, #0x14
add r3, sp, #0x0
mov r2, #0x4
str r12, [sp, #0x14]
bl FUN_02091498
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
addeq sp, sp, #0x10
bxeq lr
ldr r1, [sp, #0x20]
cmp r1, #0x0
ldrne r0, [sp, #0x10]
strne r0, [r1, #0x0]
ldr r1, [sp, #0x24]
cmp r1, #0x0
ldrne r0, [sp, #0x0]
strne r0, [r1, #0x0]
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
add sp, sp, #0x10
bx lr
arm_func_start FUN_020913D4
FUN_020913D4:
stmdb sp!, {lr}
sub sp, sp, #0x4
cmp r1, #0xa
addcc sp, sp, #0x4
movcc r0, #0x0
ldmccia sp!, {lr}
bxcc lr
ldrb r12, [r0, #0x0]
add lr, r0, r1
cmp r12, #0x1
addne sp, sp, #0x4
movne r0, #0x0
ldmneia sp!, {lr}
bxne lr
add r12, r0, #0x1
mov r1, #0x0
_02091414:
ldrb r0, [r12], #0x1
cmp r0, #0xff
addne sp, sp, #0x4
movne r0, #0x0
ldmneia sp!, {lr}
bxne lr
add r1, r1, #0x1
cmp r1, #0x8
blt _02091414
cmp r12, lr
beq _02091458
_02091440:
ldrb r0, [r12, #0x0]
cmp r0, #0xff
bne _02091458
add r12, r12, #0x1
cmp r12, lr
bne _02091440
_02091458:
cmp r12, lr
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {lr}
bxeq lr
ldrb r0, [r12, #0x0]
cmp r0, #0x0
movne r0, #0x0
addeq r0, r12, #0x1
subeq r1, lr, r0
streq r1, [r3, #0x0]
streq r0, [r2, #0x0]
moveq r0, #0x1
add sp, sp, #0x4
ldmia sp!, {lr}
bx lr
arm_func_start FUN_02091498
FUN_02091498:
stmdb sp!, {r4-r6,lr}
ldr r5, [r0, #0x0]
mov r6, #0x0
ldrb r4, [r5, #0x0]
add r5, r5, #0x1
mov r12, r6
cmp r4, r2
ldr r2, [r1, #0x0]
movne r0, r6
ldmneia sp!, {r4-r6,lr}
bxne lr
cmp r2, #0x1
movcc r0, r6
ldmccia sp!, {r4-r6,lr}
bxcc lr
ldrb lr, [r5, #0x0]
sub r4, r2, #0x1
ands r2, lr, #0x80
beq _02091534
and r2, lr, #0x7f
and lr, r2, #0xff
add r2, lr, #0x1
cmp r4, r2
movcc r0, r6
ldmccia sp!, {r4-r6,lr}
bxcc lr
cmp r3, #0x0
sub r6, r4, lr
beq _0209152C
ldrb r2, [r5, #0x1]
add r5, r5, #0x1
and r4, r2, #0x7f
_02091518:
sub r2, lr, #0x1
add r12, r4, r12, lsl #0x7
ands lr, r2, #0xff
bne _02091518
b _02091550
_0209152C:
add r5, r5, lr
b _02091550
_02091534:
add r5, r5, #0x1
cmp r4, #0x1
mov r12, lr
movcc r0, r6
ldmccia sp!, {r4-r6,lr}
bxcc lr
sub r6, r4, #0x1
_02091550:
str r5, [r0, #0x0]
str r6, [r1, #0x0]
cmp r3, #0x0
strne r12, [r3, #0x0]
mov r0, #0x1
ldmia sp!, {r4-r6,lr}
bx lr
arm_func_start FUN_0209156C
FUN_0209156C: ; 0x0209156C
stmdb sp!, {r4-r8,lr}
sub sp, sp, #0x58
movs r6, r0
mov r5, r1
mov r8, r2
mov r7, r3
beq _0209159C
cmp r8, #0x0
beq _0209159C
ldr r0, [sp, #0x70]
cmp r0, #0x0
bne _020915AC
_0209159C:
add sp, sp, #0x58
mvn r0, #0x2
ldmia sp!, {r4-r8,lr}
bx lr
_020915AC:
bl FUN_02094FAC
mov r4, r0
add r0, sp, #0x4
bl FUN_0209502C
add r0, sp, #0x18
bl FUN_0209502C
add r0, sp, #0x2c
bl FUN_0209502C
add r0, sp, #0x40
bl FUN_0209502C
cmp r4, #0x0
mvneq r5, #0x1
beq _02091688
add r2, sp, #0x4
mov r0, r8
mov r1, r7
bl FUN_02094C68
cmp r0, #0x0
mvneq r5, #0x1
beq _02091688
ldr r1, [sp, #0x78]
add r0, sp, #0x2c
bl FUN_02094D7C
cmp r0, #0x0
mvneq r5, #0x1
beq _02091688
ldr r0, [sp, #0x70]
ldr r1, [sp, #0x74]
add r2, sp, #0x40
bl FUN_02094C68
cmp r0, #0x0
mvneq r5, #0x1
beq _02091688
add r0, sp, #0x18
add r1, sp, #0x4
add r2, sp, #0x2c
add r3, sp, #0x40
str r4, [sp, #0x0]
bl FUN_020931B8
cmp r0, #0x0
mvneq r5, #0x1
beq _02091688
add r0, sp, #0x18
bl FUN_02095188
add r1, r0, #0x7
mov r0, r1, asr #0x2
add r0, r1, r0, lsr #0x1d
mov r0, r0, asr #0x3
cmp r0, r5
mvngt r5, #0x0
bgt _02091688
add r0, sp, #0x18
mov r1, r6
bl FUN_02094BEC
mov r5, r0
_02091688:
add r0, sp, #0x4
bl FUN_0209510C
add r0, sp, #0x18
bl FUN_0209510C
add r0, sp, #0x2c
bl FUN_0209510C
add r0, sp, #0x40
bl FUN_0209510C
cmp r4, #0x0
beq _020916B8
mov r0, r4
bl FUN_02094F3C
_020916B8:
mov r0, r5
add sp, sp, #0x58
ldmia sp!, {r4-r8,lr}
bx lr
arm_func_start FUN_020916C8
FUN_020916C8: ; 0x020916C8
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0x7c
mov r4, #0x0
mov r5, r3
mov r3, r4
str r3, [sp, #0x34]
ldr r3, [r5, #0x0]
str r0, [sp, #0x4]
mov r0, r4
ldr r3, [r3, #0x0]
str r0, [sp, #0x1c]
str r0, [sp, #0x20]
ands r0, r3, #0x1
ldr r0, [sp, #0xa0]
str r4, [sp, #0x8]
str r0, [sp, #0xa0]
mov r7, r1
mov r6, r2
addeq sp, sp, #0x7c
moveq r0, r4
ldmeqia sp!, {r4-r11,lr}
bxeq lr
ldr r1, [r7, #0x4]
ldr r0, [r0, #0x0]
cmp r1, #0x0
str r0, [sp, #0xc]
beq _0209174C
cmp r1, #0x1
bne _02091768
ldr r0, [r7, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
bne _02091768
_0209174C:
ldr r0, [sp, #0x4]
mov r1, #0x0
bl FUN_02094D7C
add sp, sp, #0x7c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_02091768:
ldr r1, [r6, #0x4]
cmp r1, #0x0
beq _0209178C
cmp r1, #0x1
bne _020917A8
ldr r0, [r6, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
bne _020917A8
_0209178C:
ldr r0, [sp, #0x4]
mov r1, #0x1
bl FUN_02094D7C
add sp, sp, #0x7c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_020917A8:
cmp r1, #0x1
bne _020917DC
ldr r0, [r6, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x1
bne _020917DC
ldr r0, [sp, #0x4]
mov r1, r7
bl FUN_02094E24
add sp, sp, #0x7c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_020917DC:
ldr r0, [sp, #0xa4]
str r0, [sp, #0x18]
cmp r0, #0x0
bne _02091810
bl FUN_02092860
str r0, [sp, #0x18]
cmp r0, #0x0
beq _02091E6C
ldr r2, [sp, #0xa0]
mov r1, r5
bl FUN_02092894
cmp r0, #0x0
beq _02091E6C
_02091810:
ldr r3, [sp, #0xa0]
add r1, sp, #0x34
mov r4, r3
ldr r4, [r4, #0x10c]
mov r0, r6
mov r2, #0x0
str r4, [sp, #0x1c]
bl FUN_02092C28
cmp r0, #0x0
beq _02091E6C
ldr r0, [sp, #0xa0]
ldr r0, [r0, #0x0]
add r1, r0, #0x1
ldr r0, [sp, #0xa0]
str r1, [r0, #0x0]
ldr r0, [sp, #0x34]
ldrb r1, [r0, #0x2]
ldrb r0, [r0, #0x3]
str r0, [sp, #0x10]
add r0, r1, #0x3f
bl _s32_div_f
ldr r1, [sp, #0x34]
mov r4, r0
add r0, r1, #0x4
str r0, [sp, #0x34]
ldr r0, [sp, #0x18]
ldr r3, [r7, #0x4]
ldr r10, [r0, #0x24]
cmp r3, r10
bne _020918A8
ldr r1, [r7, #0x0]
sub r2, r10, #0x1
ldr r0, [r5, #0x0]
ldr r1, [r1, r2, lsl #0x2]
ldr r0, [r0, r2, lsl #0x2]
cmp r1, r0
strcc r7, [sp, #0x14]
blo _02091960
_020918A8:
cmp r3, r10
bge _0209191C
ldr r0, [sp, #0xa0]
ldr r3, [r0, #0x0]
add r1, r0, #0x4
add r2, r3, #0x1
str r2, [r0, #0x0]
mov r0, #0x14
mla r0, r3, r0, r1
ldr r2, [r7, #0x4]
mov r1, r0
str r2, [r1, #0x4]
mov r1, r10
str r0, [sp, #0x14]
bl FUN_0209508C
ldr r0, [r7, #0x4]
mov r2, #0x0
cmp r0, #0x0
ble _02091960
_020918F4:
ldr r1, [r7, #0x0]
ldr r0, [sp, #0x14]
ldr r1, [r1, r2, lsl #0x2]
ldr r0, [r0, #0x0]
str r1, [r0, r2, lsl #0x2]
ldr r0, [r7, #0x4]
add r2, r2, #0x1
cmp r2, r0
blt _020918F4
b _02091960
_0209191C:
ldr r0, [sp, #0xa0]
mov r2, r5
ldr r3, [r0, #0x0]
mov r1, r7
add r5, r3, #0x1
str r5, [r0, #0x0]
add r5, r0, #0x4
mov r0, #0x14
mla r0, r3, r0, r5
ldr r3, [sp, #0xa0]
str r0, [sp, #0x14]
bl FUN_02093214
cmp r0, #0x0
beq _02091E6C
ldr r0, [sp, #0x14]
mov r1, r10
bl FUN_0209508C
_02091960:
ldr r0, [sp, #0xa0]
ldr r3, [r0, #0x0]
ldr r0, [r6, #0x4]
add r1, r3, #0x1
mul r2, r0, r4
ldr r0, [sp, #0xa0]
mov r4, r2, lsl #0x1
str r1, [r0, #0x0]
ldr r1, [r0, #0x0]
add r4, r4, #0x7
add r2, r1, #0x1
str r2, [r0, #0x0]
ldr r2, [sp, #0x10]
ldr r0, [r0, #0x0]
mul r5, r2, r10
mov r2, r4, asr #0x1
add r2, r4, r2, lsr #0x1e
add r5, r5, r2, asr #0x2
ldr r2, [sp, #0xa0]
mov r6, #0x14
add r2, r2, #0x4
mla r8, r1, r6, r2
mla r4, r3, r6, r2
ldr r1, [sp, #0xa0]
add r3, r0, #0x1
mla r7, r0, r6, r2
str r3, [r1, #0x0]
mov r0, r1
ldr r0, [r0, #0x0]
mla r6, r0, r6, r2
add r1, r0, #0x1
ldr r0, [sp, #0xa0]
str r1, [r0, #0x0]
ldr r0, [sp, #0x4]
ldr r0, [r0, #0x8]
cmp r10, r0
ldrle r0, [sp, #0x4]
ble _02091A04
ldr r0, [sp, #0x4]
mov r1, r10
bl FUN_02094EBC
_02091A04:
cmp r0, #0x0
beq _02091E6C
ldr r0, [r8, #0x8]
mov r1, r10, lsl #0x2
cmp r1, r0
movle r0, r8
ble _02091A28
mov r0, r8
bl FUN_02094EBC
_02091A28:
cmp r0, #0x0
beq _02091E6C
ldr r1, [r7, #0x8]
mov r0, r10, lsl #0x1
str r0, [sp, #0x24]
cmp r0, r1
movle r0, r7
ble _02091A54
ldr r1, [sp, #0x24]
mov r0, r7
bl FUN_02094EBC
_02091A54:
cmp r0, #0x0
beq _02091E6C
ldr r0, [r4, #0x8]
cmp r5, r0
movle r0, r4
ble _02091A78
mov r1, r5
mov r0, r4
bl FUN_02094EBC
_02091A78:
cmp r0, #0x0
beq _02091E6C
ldr r1, [r6, #0x8]
ldr r0, [sp, #0x24]
cmp r0, r1
movle r0, r6
ble _02091AA0
ldr r1, [sp, #0x24]
mov r0, r6
bl FUN_02094EBC
_02091AA0:
cmp r0, #0x0
beq _02091E6C
ldr r0, [sp, #0x18]
ldr r11, [r8, #0x0]
ldr r8, [r7, #0x0]
ldr r6, [r6, #0x0]
ldr r1, [r4, #0x0]
ldr r7, [r0, #0x48]
ldr r5, [r0, #0x20]
ldr r3, [sp, #0x18]
str r1, [sp, #0x38]
str r10, [sp, #0x0]
ldr r1, [sp, #0x14]
ldr r3, [r3, #0xc]
ldr r1, [r1, #0x0]
mov r0, r6
mov r2, r10
bl FUN_020937E8
str r7, [sp, #0x0]
ldr r0, [sp, #0x38]
mov r1, r6
mov r2, r5
mov r3, r10
bl FUN_02092E30
ldr r0, [sp, #0x10]
cmp r0, #0x1
ble _02091BA8
ldr r1, [sp, #0x38]
mov r0, r6
mov r2, r10
mov r3, r11
bl FUN_02092F70
mov r0, r11
mov r1, r6
mov r2, r5
mov r3, r10
str r7, [sp, #0x0]
bl FUN_02092E30
ldr r0, [sp, #0x10]
mov r4, #0x1
cmp r0, #0x1
ble _02091BA8
mov r0, r10, lsl #0x2
str r0, [sp, #0x28]
add r9, sp, #0x38
_02091B54:
sub r3, r4, #0x1
ldr r2, [r9, r3, lsl #0x2]
ldr r1, [sp, #0x28]
mov r0, r6
add r1, r2, r1
str r1, [r9, r4, lsl #0x2]
str r10, [sp, #0x0]
ldr r1, [r9, r3, lsl #0x2]
mov r2, r10
mov r3, r11
bl FUN_020937E8
str r7, [sp, #0x0]
ldr r0, [r9, r4, lsl #0x2]
mov r1, r6
mov r2, r5
mov r3, r10
bl FUN_02092E30
ldr r0, [sp, #0x10]
add r4, r4, #0x1
cmp r4, r0
blt _02091B54
_02091BA8:
ldr r3, [sp, #0x34]
add r0, r3, #0x1
str r0, [sp, #0x34]
add r2, r0, #0x1
ldrb r1, [r3, #0x0]
str r2, [sp, #0x34]
ldrb r9, [r3, #0x1]
cmp r9, #0xff
bne _02091C28
cmp r1, #0x0
bne _02091C28
add r0, r2, #0x1
str r0, [sp, #0x34]
ldrb r1, [r2, #0x0]
b _02091BF8
_02091BE4:
add r9, r9, #0x100
ldr r1, [sp, #0x34]
add r1, r1, #0x2
str r1, [sp, #0x34]
ldrb r1, [r0, #0x1]
_02091BF8:
ldr r0, [sp, #0x34]
ldrb r2, [r0, #0x0]
cmp r2, #0xff
bne _02091C10
cmp r1, #0x0
beq _02091BE4
_02091C10:
ldr r2, [sp, #0x34]
add r2, r2, #0x1
str r2, [sp, #0x34]
ldrb r0, [r0, #0x0]
add r0, r0, #0x1
add r9, r9, r0
_02091C28:
mov r2, r1, asr #0x1
add r0, sp, #0x38
ldr r0, [r0, r2, lsl #0x2]
mov r1, r8
mov r2, r10, lsl #0x2
bl MI_CpuCopy8
cmp r9, #0x0
beq _02091E00
mov r0, #0xff
str r0, [sp, #0x2c]
mov r0, #0x0
str r0, [sp, #0x30]
_02091C58:
ldr r0, [sp, #0x1c]
cmp r0, #0x0
beq _02091C8C
mov r3, r0
ldr r1, [sp, #0x2c]
ldr r2, [sp, #0x20]
ldr r3, [r3, #0x0]
blx r3
cmp r0, #0x0
ldr r0, [sp, #0x20]
add r0, r0, #0x1
str r0, [sp, #0x20]
bne _02091E6C
_02091C8C:
ldr r0, [sp, #0xa0]
ldr r0, [r0, #0x108]
ands r0, r0, #0x4000
bne _02091E6C
cmp r9, #0x0
ldr r4, [sp, #0x30]
ble _02091CE0
_02091CA8:
mov r0, r6
mov r1, r8
mov r2, r10
mov r3, r11
bl FUN_02092F70
str r7, [sp, #0x0]
mov r0, r8
mov r1, r6
mov r2, r5
mov r3, r10
bl FUN_02092E30
add r4, r4, #0x1
cmp r4, r9
blt _02091CA8
_02091CE0:
ldr r2, [sp, #0x34]
add r0, r2, #0x1
str r0, [sp, #0x34]
add r1, r0, #0x1
ldrb r0, [r2, #0x0]
str r1, [sp, #0x34]
ldrb r9, [r2, #0x1]
cmp r9, #0xff
bne _02091D60
cmp r0, #0x0
bne _02091D60
add r0, r1, #0x1
str r0, [sp, #0x34]
ldrb r0, [r1, #0x0]
b _02091D30
_02091D1C:
add r9, r9, #0x100
ldr r0, [sp, #0x34]
add r0, r0, #0x2
str r0, [sp, #0x34]
ldrb r0, [r1, #0x1]
_02091D30:
ldr r1, [sp, #0x34]
ldrb r2, [r1, #0x0]
cmp r2, #0xff
bne _02091D48
cmp r0, #0x0
beq _02091D1C
_02091D48:
ldr r2, [sp, #0x34]
add r2, r2, #0x1
str r2, [sp, #0x34]
ldrb r1, [r1, #0x0]
add r1, r1, #0x1
add r9, r9, r1
_02091D60:
cmp r0, #0x0
bne _02091D70
cmp r9, #0x0
beq _02091E00
_02091D70:
cmp r9, #0x0
bne _02091D80
cmp r0, #0x1
beq _02091DBC
_02091D80:
mov r1, r0, asr #0x1
str r10, [sp, #0x0]
add r0, sp, #0x38
ldr r3, [r0, r1, lsl #0x2]
mov r0, r6
mov r1, r8
mov r2, r10
bl FUN_020937E8
mov r0, r8
mov r1, r6
mov r2, r5
mov r3, r10
str r7, [sp, #0x0]
bl FUN_02092E30
b _02091DF8
_02091DBC:
ldr r0, [sp, #0x14]
str r10, [sp, #0x0]
ldr r3, [r0, #0x0]
mov r0, r6
mov r1, r8
mov r2, r10
bl FUN_020937E8
ldr r0, [sp, #0x4]
str r7, [sp, #0x0]
ldr r0, [r0, #0x0]
mov r1, r6
mov r2, r5
mov r3, r10
bl FUN_02092E30
b _02091E44
_02091DF8:
cmp r9, #0x0
bne _02091C58
_02091E00:
ldr r0, [sp, #0x24]
mov r2, r10
cmp r10, r0
bge _02091E28
mov r1, #0x0
_02091E14:
ldr r0, [sp, #0x24]
str r1, [r8, r2, lsl #0x2]
add r2, r2, #0x1
cmp r2, r0
blt _02091E14
_02091E28:
ldr r0, [sp, #0x4]
str r7, [sp, #0x0]
ldr r0, [r0, #0x0]
mov r1, r8
mov r2, r5
mov r3, r10
bl FUN_02092E30
_02091E44:
ldr r0, [sp, #0xa0]
ldr r0, [r0, #0x108]
ands r0, r0, #0x4000
bne _02091E6C
ldr r0, [sp, #0x4]
mov r1, r0
str r10, [r1, #0x4]
bl FUN_02095040
mov r0, #0x1
str r0, [sp, #0x8]
_02091E6C:
ldr r0, [sp, #0x1c]
cmp r0, #0x0
beq _02091E94
ldr r3, [r0, #0x0]
mov r1, #0xff
mvn r2, #0x0
blx r3
cmp r0, #0x0
movne r0, #0x0
strne r0, [sp, #0x8]
_02091E94:
ldr r0, [sp, #0xa4]
cmp r0, #0x0
bne _02091EB0
ldr r0, [sp, #0x18]
cmp r0, #0x0
beq _02091EB0
bl FUN_020927E4
_02091EB0:
ldr r2, [sp, #0xc]
ldr r1, [sp, #0xa0]
ldr r0, [sp, #0x8]
str r2, [r1, #0x0]
add sp, sp, #0x7c
ldmia sp!, {r4-r11,lr}
bx lr
arm_func_start FUN_02091ECC
FUN_02091ECC: ; 0x02091ECC
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0x18c
mov r10, r0
mov r0, #0x0
str r0, [sp, #0x8]
mov r5, r1
ldr r1, [sp, #0x8]
mov r0, r2
str r2, [sp, #0x4]
mov r4, r3
str r1, [sp, #0xc]
ldr r9, [sp, #0x1b0]
bl FUN_02095188
ldr r1, [r5, #0x4]
mov r8, r0
cmp r1, #0x0
beq _02091F28
cmp r1, #0x1
bne _02091F44
ldr r0, [r5, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
bne _02091F44
_02091F28:
mov r0, r10
mov r1, #0x0
bl FUN_02094D7C
add sp, sp, #0x18c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_02091F44:
ldr r0, [sp, #0x4]
ldr r1, [r0, #0x4]
cmp r1, #0x0
beq _02091F6C
cmp r1, #0x1
bne _02091F88
ldr r0, [r0, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
bne _02091F88
_02091F6C:
mov r0, r10
mov r1, #0x1
bl FUN_02094D7C
add sp, sp, #0x18c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_02091F88:
cmp r1, #0x1
bne _02091FC0
ldr r0, [sp, #0x4]
ldr r0, [r0, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x1
bne _02091FC0
mov r0, r10
mov r1, r5
bl FUN_02094E24
add sp, sp, #0x18c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_02091FC0:
add r0, sp, #0x18
bl FUN_020927BC
add r0, sp, #0x18
mov r1, r4
mov r2, r9
bl FUN_02092744
cmp r0, #0x0
ble _0209220C
add r0, sp, #0x4c
bl FUN_0209502C
ldr r2, [r9, #0x0]
add r1, r9, #0x4
mov r0, #0x14
mla r6, r2, r0, r1
add r1, r2, #0x1
str r1, [r9, #0x0]
mov r2, r4
mov r4, #0x1
add r0, sp, #0x4c
mov r1, r5
mov r3, r9
str r4, [sp, #0xc]
bl FUN_02093214
cmp r0, #0x0
beq _0209220C
add r1, sp, #0x4c
add r3, sp, #0x18
mov r0, r6
mov r2, r1
str r9, [sp, #0x0]
bl FUN_02092698
cmp r0, #0x0
beq _0209220C
cmp r8, #0x11
movle r11, r4
ble _02092068
cmp r8, #0x100
movge r11, #0x5
bge _02092068
cmp r8, #0x80
movge r11, #0x4
movlt r11, #0x3
_02092068:
sub r0, r11, #0x1
mov r4, #0x1
mov r7, r4, lsl r0
cmp r7, #0x1
ble _020920C4
add r5, sp, #0x60
_02092080:
mov r0, r5
bl FUN_0209502C
sub r3, r4, #0x1
mov r2, #0x14
add r1, sp, #0x4c
mla r1, r3, r2, r1
mov r0, r5
mov r2, r6
add r3, sp, #0x18
str r9, [sp, #0x0]
bl FUN_02092698
cmp r0, #0x0
beq _0209220C
add r4, r4, #0x1
cmp r4, r7
add r5, r5, #0x14
blt _02092080
_020920C4:
mov r5, #0x1
mov r0, r10
mov r1, r5
str r4, [sp, #0xc]
sub r8, r8, #0x1
bl FUN_02094D7C
cmp r0, #0x0
beq _0209220C
mov r0, r5
str r0, [sp, #0x10]
mov r0, #0x0
str r0, [sp, #0x14]
_020920F4:
ldr r0, [sp, #0x4]
mov r1, r8
bl FUN_02094A8C
cmp r0, #0x0
bne _02092140
cmp r5, #0x0
bne _02092130
mov r0, r10
mov r1, r10
mov r2, r10
add r3, sp, #0x18
str r9, [sp, #0x0]
bl FUN_02092698
cmp r0, #0x0
beq _0209220C
_02092130:
cmp r8, #0x0
beq _02092204
sub r8, r8, #0x1
b _020920F4
_02092140:
ldr r6, [sp, #0x10]
ldr r7, [sp, #0x14]
cmp r11, #0x1
mov r4, r6
ble _02092184
_02092154:
subs r1, r8, r4
bmi _02092184
ldr r0, [sp, #0x4]
bl FUN_02094A8C
cmp r0, #0x0
subne r0, r4, r7
movne r0, r6, lsl r0
movne r7, r4
add r4, r4, #0x1
orrne r6, r0, #0x1
cmp r4, r11
blt _02092154
_02092184:
cmp r5, #0x0
add r5, r7, #0x1
bne _020921C8
cmp r5, #0x0
ldr r4, [sp, #0x14]
ble _020921C8
_0209219C:
mov r0, r10
mov r1, r10
mov r2, r10
add r3, sp, #0x18
str r9, [sp, #0x0]
bl FUN_02092698
cmp r0, #0x0
beq _0209220C
add r4, r4, #0x1
cmp r4, r5
blt _0209219C
_020921C8:
mov r3, r6, asr #0x1
mov r1, #0x14
add r0, sp, #0x4c
mla r2, r3, r1, r0
mov r0, r10
mov r1, r10
add r3, sp, #0x18
str r9, [sp, #0x0]
bl FUN_02092698
cmp r0, #0x0
beq _0209220C
add r0, r7, #0x1
ldr r5, [sp, #0x14]
subs r8, r8, r0
bpl _020920F4
_02092204:
mov r0, #0x1
str r0, [sp, #0x8]
_0209220C:
ldr r0, [sp, #0xc]
ldr r1, [r9, #0x0]
cmp r0, #0x0
sub r0, r1, #0x1
str r0, [r9, #0x0]
mov r4, #0x0
ble _02092248
add r5, sp, #0x4c
_0209222C:
mov r0, r5
bl FUN_02095164
ldr r0, [sp, #0xc]
add r4, r4, #0x1
cmp r4, r0
add r5, r5, #0x14
blt _0209222C
_02092248:
add r0, sp, #0x18
bl FUN_02092788
ldr r0, [sp, #0x8]
add sp, sp, #0x18c
ldmia sp!, {r4-r11,lr}
bx lr
arm_func_start FUN_02092260
FUN_02092260: ; 0x02092260
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0x4
movs r8, r2
mov r10, r0
mov r9, r1
mov r11, #0x0
mov r5, #0x2
addeq sp, sp, #0x4
mvneq r0, #0x0
ldmeqia sp!, {r4-r11,lr}
bxeq lr
mov r0, r8
bl FUN_020951BC
cmp r0, #0x20
beq _020922B4
mov r1, #0x1
cmp r10, r1, lsl r0
addhi sp, sp, #0x4
movhi r0, r11
ldmhiia sp!, {r4-r11,lr}
bxhi lr
_020922B4:
cmp r10, r8
rsb r2, r0, #0x20
subcs r10, r10, r8
cmp r2, #0x0
movne r1, r10, lsl r2
rsbne r0, r2, #0x20
orrne r10, r1, r9, lsr r0
movne r8, r8, lsl r2
ldr r4, _0209239C ; =0x0000FFFF
movne r9, r9, lsl r2
and r7, r4, r8, lsr #0x10
and r6, r8, r4
_020922E4:
mov r0, r10, lsr #0x10
cmp r0, r7
moveq r0, r4
beq _02092300
mov r0, r10
mov r1, r7
bl _u32_div_f
_02092300:
mul r12, r0, r7
mul r3, r0, r6
and r2, r4, r9, lsr #0x10
_0209230C:
mov lr, #0x10000
sub r1, r10, r12
rsb lr, lr, #0x0
ands lr, r1, lr
bne _02092338
add r1, r2, r1, lsl #0x10
cmp r3, r1
subhi r12, r12, r7
subhi r3, r3, r6
subhi r0, r0, #0x1
bhi _0209230C
_02092338:
mul r2, r0, r6
and r1, r2, r4
mul r3, r0, r7
mov r1, r1, lsl #0x10
cmp r9, r1
add r2, r3, r2, lsr #0x10
addcc r2, r2, #0x1
cmp r10, r2
addcc r10, r10, r8
sub r9, r9, r1
subcc r0, r0, #0x1
sub r1, r10, r2
subs r5, r5, #0x1
beq _0209238C
and r2, r0, r4
mov r1, r1, lsl #0x10
and r0, r9, r4
orr r10, r1, r9, lsr #0x10
mov r11, r2, lsl #0x10
mov r9, r0, lsl #0x10
b _020922E4
_0209238C:
orr r0, r11, r0
add sp, sp, #0x4
ldmia sp!, {r4-r11,lr}
bx lr
.balign 4
_0209239C: .word 0x0000FFFF
arm_func_start FUN_020923A0
FUN_020923A0: ; 0x020923A0
stmdb sp!, {r4-r8,lr}
sub sp, sp, #0x18
mov r8, r0
add r0, sp, #0x4
mov r7, r1
mov r6, r2
mov r5, r3
mvn r4, #0x0
bl FUN_0209502C
add r0, sp, #0x4
mov r1, #0x0
bl FUN_02094D7C
add r0, sp, #0x4
mov r1, r6
bl FUN_02094AFC
cmp r0, #0x0
beq _02092404
add r2, sp, #0x4
mov r0, r8
mov r3, r7
mov r1, #0x0
str r5, [sp, #0x0]
bl FUN_02093248
cmp r0, #0x0
movne r4, r6
_02092404:
add r0, sp, #0x4
bl FUN_0209510C
mov r0, r4
add sp, sp, #0x18
ldmia sp!, {r4-r8,lr}
bx lr
arm_func_start FUN_0209241C
FUN_0209241C: ; 0x0209241C
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0xc
ldr r6, [sp, #0x30]
mov r9, r1
ldr r11, [r6, #0x0]
movs r10, r0
add r0, r11, #0x1
str r0, [r6, #0x0]
ldr r7, [r6, #0x0]
add r4, r6, #0x4
mov r0, #0x14
mla r5, r11, r0, r4
add r12, r7, #0x1
mov r1, #0x0
str r5, [sp, #0x4]
mla r5, r7, r0, r4
str r12, [r6, #0x0]
str r1, [sp, #0x0]
ldreq r1, [r6, #0x0]
mov r8, r2
mlaeq r10, r1, r0, r4
addeq r0, r1, #0x1
streq r0, [r6, #0x0]
mov r7, r3
cmp r9, #0x0
bne _0209249C
ldr r2, [r6, #0x0]
add r1, r6, #0x4
mov r0, #0x14
mla r9, r2, r0, r1
add r0, r2, #0x1
str r0, [r6, #0x0]
_0209249C:
mov r0, r8
mov r1, r7
bl FUN_02094B98
cmp r0, #0x0
bge _020924DC
mov r0, r10
mov r1, #0x0
bl FUN_02094D7C
mov r0, r9
mov r1, r8
bl FUN_02094E24
add sp, sp, #0xc
str r11, [r6, #0x0]
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_020924DC:
mov r0, r8
bl FUN_02095188
ldr r1, [r7, #0x28]
mov r2, r0
mov r0, r1, lsl #0x1
cmp r0, r2
movgt r2, r0
suble r0, r2, r0
movgt r4, #0x0
addle r0, r0, r0, lsr #0x1f
movle r4, r0, asr #0x1
ldr r1, [r7, #0x2c]
add r0, r2, r2, lsr #0x1f
mov r0, r0, asr #0x1
cmp r2, r1
str r0, [sp, #0x8]
beq _02092534
mov r1, r7
mov r3, r6
add r0, r7, #0x14
bl FUN_020923A0
str r0, [r7, #0x2c]
_02092534:
ldr r2, [sp, #0x8]
ldr r0, [sp, #0x4]
mov r1, r8
sub r2, r2, r4
bl FUN_02094134
cmp r0, #0x0
beq _02092684
ldr r1, [sp, #0x4]
mov r0, r5
mov r3, r6
add r2, r7, #0x14
bl FUN_0209390C
cmp r0, #0x0
beq _02092684
ldr r2, [sp, #0x8]
mov r0, r10
mov r1, r5
add r2, r2, r4
bl FUN_02094134
cmp r0, #0x0
beq _02092684
mov r4, #0x0
mov r0, r5
mov r1, r7
mov r2, r10
mov r3, r6
str r4, [r10, #0xc]
bl FUN_0209390C
cmp r0, #0x0
beq _02092684
mov r0, r9
mov r1, r8
mov r2, r5
bl FUN_02093B50
cmp r0, #0x0
beq _02092684
mov r5, r4
mov r0, r9
mov r1, r7
str r5, [r9, #0xc]
bl FUN_02094B98
cmp r0, #0x0
blt _02092630
mov r4, #0x1
_020925E4:
cmp r5, #0x2
add r5, r5, #0x1
bgt _02092684
mov r0, r9
mov r1, r9
mov r2, r7
bl FUN_02093B50
cmp r0, #0x0
beq _02092684
mov r0, r10
mov r1, r4
bl FUN_0209400C
cmp r0, #0x0
beq _02092684
mov r0, r9
mov r1, r7
bl FUN_02094B98
cmp r0, #0x0
bge _020925E4
_02092630:
ldr r0, [r9, #0x4]
mov r1, #0x1
cmp r0, #0x0
beq _0209265C
cmp r0, #0x1
bne _02092658
ldr r0, [r9, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
beq _0209265C
_02092658:
mov r1, #0x0
_0209265C:
cmp r1, #0x0
movne r0, #0x0
ldreq r0, [r8, #0xc]
str r0, [r9, #0xc]
mov r0, #0x1
ldr r2, [r8, #0xc]
ldr r1, [r7, #0xc]
str r0, [sp, #0x0]
eor r0, r2, r1
str r0, [r10, #0xc]
_02092684:
ldr r0, [sp, #0x0]
str r11, [r6, #0x0]
add sp, sp, #0xc
ldmia sp!, {r4-r11,lr}
bx lr
arm_func_start FUN_02092698
FUN_02092698:
stmdb sp!, {r4-r8,lr}
sub sp, sp, #0x8
ldr r4, [sp, #0x20]
mov r12, #0x14
ldr r5, [r4, #0x0]
add lr, r4, #0x4
mla r6, r5, r12, lr
add r12, r5, #0x1
mov r8, r0
mov r7, r3
str r12, [r4, #0x0]
cmp r2, #0x0
mov r5, #0x0
beq _02092708
cmp r1, r2
bne _020926F0
mov r0, r6
mov r2, r4
bl FUN_0209305C
cmp r0, #0x0
bne _0209270C
b _02092728
_020926F0:
mov r0, r6
mov r3, r4
bl FUN_0209390C
cmp r0, #0x0
bne _0209270C
b _02092728
_02092708:
mov r6, r1
_0209270C:
mov r1, r8
mov r2, r6
mov r3, r7
mov r0, #0x0
str r4, [sp, #0x0]
bl FUN_0209241C
mov r5, #0x1
_02092728:
ldr r1, [r4, #0x0]
mov r0, r5
sub r1, r1, #0x1
str r1, [r4, #0x0]
add sp, sp, #0x8
ldmia sp!, {r4-r8,lr}
bx lr
arm_func_start FUN_02092744
FUN_02092744:
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
mov r5, r0
mov r4, r1
bl FUN_02094E24
add r0, r5, #0x14
mov r1, #0x0
bl FUN_02094D7C
mov r0, r4
bl FUN_02095188
str r0, [r5, #0x28]
mov r0, #0x0
str r0, [r5, #0x2c]
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_02092788
FUN_02092788: ; 0x02092788
stmdb sp!, {r4,lr}
mov r4, r0
bl FUN_0209510C
add r0, r4, #0x14
bl FUN_0209510C
ldr r0, [r4, #0x30]
ands r0, r0, #0x1
ldmeqia sp!, {r4,lr}
bxeq lr
mov r0, r4
bl CallCustomDestructor
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_020927BC
FUN_020927BC: ; 0x020927BC
stmdb sp!, {r4,lr}
mov r4, r0
bl FUN_0209502C
add r0, r4, #0x14
bl FUN_0209502C
mov r0, #0x0
str r0, [r4, #0x28]
str r0, [r4, #0x30]
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_020927E4
FUN_020927E4: ; 0x020927E4
stmdb sp!, {r4,lr}
mov r4, r0
add r0, r4, #0xc
bl FUN_0209510C
add r0, r4, #0x20
bl FUN_0209510C
add r0, r4, #0x34
bl FUN_0209510C
ldr r0, [r4, #0x4c]
ands r0, r0, #0x1
ldmeqia sp!, {r4,lr}
bxeq lr
mov r0, r4
bl CallCustomDestructor
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02092824
FUN_02092824: ; 0x02092824
stmdb sp!, {r4,lr}
mov r4, r0
mov r1, #0x0
str r1, [r4, #0x0]
add r0, r4, #0xc
str r1, [r4, #0x8]
bl FUN_0209502C
add r0, r4, #0x20
bl FUN_0209502C
add r0, r4, #0x34
bl FUN_0209502C
mov r0, #0x0
str r0, [r4, #0x4c]
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02092860
FUN_02092860: ; 0x02092860
stmdb sp!, {r4,lr}
mov r0, #0x50
bl CallCustomAllocator
movs r4, r0
moveq r0, #0x0
ldmeqia sp!, {r4,lr}
bxeq lr
bl FUN_02092824
mov r1, #0x1
mov r0, r4
str r1, [r4, #0x4c]
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02092894
FUN_02092894:
stmdb sp!, {r4-r7,lr}
sub sp, sp, #0x14
mov r6, r1
ldr r3, [r6, #0x4]
mov r7, r0
cmp r3, #0x0
mov r5, r2
addeq sp, sp, #0x14
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
add r0, r7, #0x20
add r4, r7, #0xc
bl FUN_02094E24
cmp r0, #0x0
addeq sp, sp, #0x14
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
add r0, sp, #0x0
bl FUN_0209502C
mov r1, #0x1
mov r0, r6
str r1, [r7, #0x0]
bl FUN_02095188
add r1, r0, #0x1f
mov r0, r1, asr #0x4
add r0, r1, r0, lsr #0x1b
mov r2, r0, asr #0x5
mov r0, r4
mov r1, #0x0
str r2, [r7, #0x8]
bl FUN_02094D7C
cmp r0, #0x0
addeq sp, sp, #0x14
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
mov r0, r4
mov r1, #0x20
bl FUN_02094AFC
cmp r0, #0x0
beq _02092A38
ldr r0, [r6, #0x0]
ldr r4, [r0, #0x0]
mov r0, r4
bl FUN_02092D9C
mov r1, r0
add r0, sp, #0x0
bl FUN_02094D7C
cmp r0, #0x0
beq _02092A38
add r0, sp, #0x0
mov r2, #0x20
mov r1, r0
bl FUN_02094250
cmp r0, #0x0
beq _02092A38
ldr r0, [sp, #0x4]
cmp r0, #0x0
beq _020929B0
cmp r0, #0x1
bne _020929A0
ldr r0, [sp, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
beq _020929B0
_020929A0:
add r0, sp, #0x0
mov r1, #0x1
bl FUN_02093EAC
b _020929C4
_020929B0:
add r0, sp, #0x0
mvn r1, #0x0
bl FUN_02094D7C
cmp r0, #0x0
beq _02092A38
_020929C4:
ldr r2, [sp, #0x4]
cmp r2, #0x1
ldrge r0, [sp, #0x0]
ldrge r1, [r0, #0x0]
movlt r1, #0x0
cmp r2, #0x2
ldrge r0, [sp, #0x0]
mov r2, r4
ldrge r0, [r0, #0x4]
movlt r0, #0x0
bl FUN_02092260
str r0, [r7, #0x48]
add r0, r7, #0xc
mov r1, #0x0
bl FUN_02094D7C
ldr r1, [r7, #0x8]
add r0, r7, #0xc
mov r1, r1, lsl #0x6
bl FUN_02094AFC
cmp r0, #0x0
beq _02092A38
add r0, r7, #0xc
mov r1, r0
mov r3, r5
add r2, r7, #0x20
bl FUN_02093214
ldr r1, [r7, #0x8]
add r0, r7, #0xc
bl FUN_0209508C
_02092A38:
add r0, sp, #0x0
bl FUN_0209510C
mov r0, #0x1
add sp, sp, #0x14
ldmia sp!, {r4-r7,lr}
bx lr
arm_func_start FUN_02092A50
FUN_02092A50: ; 0x02092A50
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0xc
mov r4, r2
mov r7, r1
cmp r4, #0x6
mov r5, r0
movgt r4, #0x6
mov r1, #0x1
mov r2, r1, lsl r4
ldr r0, [r7, #0x4]
sub r2, r2, #0x1
add r0, r4, r0, lsl #0x5
ldr r3, _02092C24 ; =UNK_02106170
str r2, [sp, #0x0]
ldr r2, [r3, r4, lsl #0x2]
mov r1, r4
sub r0, r0, #0x1
str r2, [sp, #0x4]
mov r6, #0x0
bl _s32_div_f
mov r12, #0x0
mov r0, r0, lsl #0x1
add r0, r0, #0x2
mov r8, r6
add r1, r5, r0
strb r8, [r5, r0]
strb r8, [r1, #-0x1]
ldr r0, [r7, #0x0]
ldr r2, [r7, #0x4]
ldr r7, [r0, #0x0]
add lr, r0, #0x4
cmp r2, #0x1
sub r9, r1, #0x2
ldrgt r8, [lr], #0x4
mov r10, r7
mov r0, r12
str r12, [sp, #0x8]
mov r1, #0xff
mov r11, r12
_02092AEC:
ldr r3, [sp, #0x0]
and r3, r10, r3
ldr r10, [sp, #0x4]
ldrb r10, [r10, r3]
cmp r10, #0x0
beq _02092B4C
add r12, r12, r10
add r6, r6, r10
cmp r6, #0x20
blo _02092B34
cmp r2, #0x1
ble _02092B4C
sub r2, r2, #0x1
mov r7, r8
cmp r2, #0x1
movle r8, r11
ldrgt r8, [lr], #0x4
sub r6, r6, #0x20
_02092B34:
cmp r6, #0x0
moveq r10, r7
movne r10, r7, lsr r6
rsbne r3, r6, #0x20
orrne r10, r10, r8, lsl r3
b _02092AEC
_02092B4C:
cmp r3, #0x0
beq _02092BD0
strb r12, [r9, #0x0]
strb r3, [r9, #-0x1]
cmp r12, #0x100
sub r9, r9, #0x2
blo _02092B88
cmp r12, #0x100
blo _02092B88
_02092B70:
strb r1, [r9, #0x0]
sub r12, r12, #0x100
strb r0, [r9, #-0x1]
sub r9, r9, #0x2
cmp r12, #0x100
bhs _02092B70
_02092B88:
mov r12, r4
add r6, r6, r4
cmp r6, #0x20
blo _02092BB8
cmp r2, #0x1
ble _02092BD0
sub r2, r2, #0x1
mov r7, r8
cmp r2, #0x1
ldrle r8, [sp, #0x8]
sub r6, r6, #0x20
ldrgt r8, [lr], #0x4
_02092BB8:
cmp r6, #0x0
moveq r10, r7
movne r10, r7, lsr r6
rsbne r3, r6, #0x20
orrne r10, r10, r8, lsl r3
b _02092AEC
_02092BD0:
add r9, r9, #0x1
mov r0, #0x2
b _02092BF4
_02092BDC:
strb r2, [r5, #0x0]
ldrb r1, [r9, #0x1]
add r9, r9, #0x2
add r0, r0, #0x2
strb r1, [r5, #0x1]
add r5, r5, #0x2
_02092BF4:
ldrb r2, [r9, #0x0]
cmp r2, #0x0
bne _02092BDC
ldrb r1, [r9, #0x1]
cmp r1, #0x0
bne _02092BDC
mov r1, #0x0
strb r1, [r5, #0x0]
strb r1, [r5, #0x1]
add sp, sp, #0xc
ldmia sp!, {r4-r11,lr}
bx lr
.balign 4
_02092C24: .word UNK_02106170
arm_func_start FUN_02092C28
FUN_02092C28:
stmdb sp!, {r4-r9,lr}
sub sp, sp, #0x4
ldr r5, [r3], #0x4
mov r2, #0x14
mla r4, r5, r2, r3
mov r9, r0
ldr r0, [r9, #0x4]
mov r8, r1
cmp r0, #0x0
mov r5, #0x0
mov r1, r0, lsl #0x5
addeq sp, sp, #0x4
moveq r0, r5
ldmeqia sp!, {r4-r9,lr}
bxeq lr
cmp r0, #0x1
bne _02092CC8
cmp r0, #0x1
bne _02092C8C
ldr r2, [r9, #0x0]
ldr r1, _02092D8C ; =0x00010001
ldr r2, [r2, #0x0]
cmp r2, r1
ldreq r5, _02092D90 ; =UNK_020FF500
beq _02092CB8
_02092C8C:
ldr r1, [r9, #0x0]
ldr r1, [r1, #0x0]
cmp r1, #0x11
bne _02092CA8
cmp r0, #0x1
ldreq r5, _02092D94 ; =UNK_020FF518
beq _02092CB8
_02092CA8:
cmp r1, #0x3
bne _02092CB8
cmp r0, #0x1
ldreq r5, _02092D98 ; =UNK_020FF50C
_02092CB8:
mov r7, #0x1
mov r6, r7
mov r1, #0x20
b _02092CF8
_02092CC8:
cmp r1, #0x100
movge r7, #0x5
movge r6, #0x10
movge r1, #0x7
bge _02092CF8
cmp r1, #0x80
movge r6, #0x8
movge r1, r6
movge r7, #0x4
movlt r7, #0x3
movlt r6, #0x4
movlt r1, #0xb
_02092CF8:
mul r1, r0, r1
mov r0, r1, lsl #0x1
add r1, r0, #0x7
mov r0, r1, asr #0x1
add r0, r1, r0, lsr #0x1e
cmp r5, #0x0
mov r1, r0, asr #0x2
bne _02092D74
ldr r0, [r4, #0x8]
cmp r1, r0
movle r0, r4
ble _02092D30
mov r0, r4
bl FUN_02094EBC
_02092D30:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r9,lr}
bxeq lr
ldr r5, [r4, #0x0]
mov r1, r9
mov r2, r7
add r0, r5, #0x4
bl FUN_02092A50
add r1, r0, #0x2
mov r0, r1, asr #0x8
strb r0, [r5, #0x0]
strb r1, [r5, #0x1]
strb r7, [r5, #0x2]
strb r6, [r5, #0x3]
b _02092D78
_02092D74:
mov r1, #0x8
_02092D78:
str r5, [r8, #0x0]
add r0, r1, #0x2
add sp, sp, #0x4
ldmia sp!, {r4-r9,lr}
bx lr
.balign 4
_02092D8C: .word 0x00010001
_02092D90: .word UNK_020FF500
_02092D94: .word UNK_020FF518
_02092D98: .word UNK_020FF50C
arm_func_start FUN_02092D9C
FUN_02092D9C: ; 0x02092D9C
stmdb sp!, {r4-r10,lr}
mov r10, r0
mov r1, r10
rsb r0, r10, #0x0
bl _u32_div_f
movs r8, r1
mov r7, r10
mov r5, #0x0
mov r6, #0x1
mvn r4, #0x0
beq _02092E04
_02092DC8:
mov r0, r7
mov r1, r8
bl _u32_div_f
mov r9, r1
mov r0, r7
mov r1, r8
bl _u32_div_f
mla r1, r0, r6, r5
mov r5, r6
mov r7, r8
mov r6, r1
mov r8, r9
cmp r9, #0x0
rsb r4, r4, #0x0
bne _02092DC8
_02092E04:
cmp r4, #0x0
sublt r5, r10, r5
cmp r7, #0x1
movne r1, #0x0
bne _02092E24
mov r0, r5
mov r1, r10
bl _u32_div_f
_02092E24:
mov r0, r1
ldmia sp!, {r4-r10,lr}
bx lr
arm_func_start FUN_02092E30
FUN_02092E30: ; 0x02092E30
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0xc
mov r7, r3
mov r9, r1
mov r6, #0x0
mov r10, r0
mov r8, r2
mov r4, r6
cmp r7, #0x0
add r5, r9, r7, lsl #0x2
ldr r11, [sp, #0x30]
ble _02092EC0
mov r0, #0x1
str r6, [sp, #0x4]
str r0, [sp, #0x0]
_02092E6C:
ldr r1, [r9, #0x0]
mov r0, r9
mul r3, r1, r11
mov r1, r8
mov r2, r7
bl FUN_020948AC
add r1, r0, r6
ldr r0, [r5, #0x0]
cmp r1, r6
ldrcc r6, [sp, #0x0]
add r0, r0, r1
str r0, [r5, #0x0]
ldr r0, [r5, #0x0]
ldrcs r6, [sp, #0x4]
cmp r0, r1
add r4, r4, #0x1
addcc r6, r6, #0x1
cmp r4, r7
add r9, r9, #0x4
add r5, r5, #0x4
blt _02092E6C
_02092EC0:
cmp r6, #0x0
sub r2, r7, #0x1
bne _02092F14
ldr r1, [r9, r2, lsl #0x2]
ldr r0, [r8, r2, lsl #0x2]
cmp r1, r0
bne _02092F00
cmp r2, #0x0
ble _02092F00
_02092EE4:
ldr r1, [r9, r2, lsl #0x2]
ldr r0, [r8, r2, lsl #0x2]
cmp r1, r0
bne _02092F00
sub r2, r2, #0x1
cmp r2, #0x0
bgt _02092EE4
_02092F00:
ldr r1, [r9, r2, lsl #0x2]
ldr r0, [r8, r2, lsl #0x2]
cmp r1, r0
movcs r6, #0x1
movcc r6, #0x0
_02092F14:
cmp r6, #0x0
beq _02092F3C
mov r0, r10
mov r1, r9
mov r2, r8
mov r3, r7
bl FUN_02094354
add sp, sp, #0xc
ldmia sp!, {r4-r11,lr}
bx lr
_02092F3C:
cmp r7, #0x0
addle sp, sp, #0xc
mov r1, #0x0
ldmleia sp!, {r4-r11,lr}
bxle lr
_02092F50:
ldr r0, [r9, r1, lsl #0x2]
str r0, [r10, r1, lsl #0x2]
add r1, r1, #0x1
cmp r1, r7
blt _02092F50
add sp, sp, #0xc
ldmia sp!, {r4-r11,lr}
bx lr
arm_func_start FUN_02092F70
FUN_02092F70:
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0x4
mov r11, r2
mov r6, r11, lsl #0x1
mov r10, r0
mov r7, r11
mov r9, r1
sub r7, r7, #0x1
sub r2, r6, #0x1
mov r0, #0x0
str r0, [r10, r2, lsl #0x2]
ldr r0, [r10, r2, lsl #0x2]
str r3, [sp, #0x0]
mov r5, r9
str r0, [r10, #0x0]
cmp r7, #0x0
add r4, r10, #0x4
ble _02092FD8
add r5, r5, #0x4
ldr r3, [r9, #0x0]
mov r0, r4
mov r1, r5
mov r2, r7
bl FUN_0209470C
str r0, [r4, r7, lsl #0x2]
add r4, r4, #0x8
_02092FD8:
sub r8, r11, #0x2
cmp r8, #0x0
ble _02093018
_02092FE4:
mov r0, r5
sub r7, r7, #0x1
add r5, r5, #0x4
ldr r3, [r0, #0x0]
mov r0, r4
mov r1, r5
mov r2, r7
bl FUN_020948AC
sub r8, r8, #0x1
str r0, [r4, r7, lsl #0x2]
cmp r8, #0x0
add r4, r4, #0x8
bgt _02092FE4
_02093018:
mov r0, r10
mov r1, r10
mov r2, r10
mov r3, r6
bl FUN_02094468
ldr r0, [sp, #0x0]
mov r1, r9
mov r2, r11
bl FUN_020945B8
ldr r2, [sp, #0x0]
mov r0, r10
mov r1, r10
mov r3, r6
bl FUN_02094468
add sp, sp, #0x4
ldmia sp!, {r4-r11,lr}
bx lr
arm_func_start FUN_0209305C
FUN_0209305C:
stmdb sp!, {r4-r9,lr}
sub sp, sp, #0x64
ldr r5, [r2, #0x0]
mov r9, r0
mov r8, r1
cmp r8, r9
add r3, r2, #0x4
mov r2, #0x14
movne r7, r9
addeq r0, r5, #0x1
mla r4, r5, r2, r3
mlaeq r7, r0, r2, r3
ldr r5, [r8, #0x4]
cmp r5, #0x0
movle r0, #0x0
strle r0, [r9, #0x4]
addle sp, sp, #0x64
movle r0, #0x1
ldmleia sp!, {r4-r9,lr}
bxle lr
ldr r0, [r7, #0x8]
mov r6, r5, lsl #0x1
cmp r6, r0
movle r0, r7
ble _020930CC
mov r0, r7
mov r1, r6
bl FUN_02094EBC
_020930CC:
cmp r0, #0x0
addeq sp, sp, #0x64
moveq r0, #0x0
ldmeqia sp!, {r4-r9,lr}
bxeq lr
str r6, [r7, #0x4]
mov r0, #0x0
str r0, [r7, #0xc]
cmp r5, #0x4
bne _0209310C
ldr r0, [r7, #0x0]
ldr r1, [r8, #0x0]
add r3, sp, #0x0
mov r2, #0x4
bl FUN_02092F70
b _02093170
_0209310C:
cmp r5, #0x8
bne _0209312C
ldr r0, [r7, #0x0]
ldr r1, [r8, #0x0]
add r3, sp, #0x20
mov r2, #0x8
bl FUN_02092F70
b _02093170
_0209312C:
ldr r0, [r4, #0x8]
cmp r6, r0
movle r0, r4
ble _02093148
mov r0, r4
mov r1, r6
bl FUN_02094EBC
_02093148:
cmp r0, #0x0
addeq sp, sp, #0x64
moveq r0, #0x0
ldmeqia sp!, {r4-r9,lr}
bxeq lr
ldr r0, [r7, #0x0]
ldr r1, [r8, #0x0]
ldr r3, [r4, #0x0]
mov r2, r5
bl FUN_02092F70
_02093170:
cmp r6, #0x0
ble _02093194
ldr r1, [r7, #0x0]
sub r0, r6, #0x1
ldr r0, [r1, r0, lsl #0x2]
cmp r0, #0x0
ldreq r0, [r7, #0x4]
subeq r0, r0, #0x1
streq r0, [r7, #0x4]
_02093194:
cmp r7, r9
beq _020931A8
mov r0, r9
mov r1, r7
bl FUN_02094E24
_020931A8:
mov r0, #0x1
add sp, sp, #0x64
ldmia sp!, {r4-r9,lr}
bx lr
arm_func_start FUN_020931B8
FUN_020931B8:
stmdb sp!, {lr}
sub sp, sp, #0xc
ldr r12, [r3, #0x4]
cmp r12, #0x0
ble _020931FC
ldr r12, [r3, #0x0]
ldr r12, [r12, #0x0]
ands r12, r12, #0x1
beq _020931FC
ldr lr, [sp, #0x10]
mov r12, #0x0
str lr, [sp, #0x0]
str r12, [sp, #0x4]
bl FUN_020916C8
add sp, sp, #0xc
ldmia sp!, {lr}
bx lr
_020931FC:
ldr r12, [sp, #0x10]
str r12, [sp, #0x0]
bl FUN_02091ECC
add sp, sp, #0xc
ldmia sp!, {lr}
bx lr
arm_func_start FUN_02093214
FUN_02093214:
stmdb sp!, {lr}
sub sp, sp, #0x4
mov lr, r1
mov r12, r2
str r3, [sp, #0x0]
mov r1, r0
mov r2, lr
mov r3, r12
mov r0, #0x0
bl FUN_02093248
add sp, sp, #0x4
ldmia sp!, {lr}
bx lr
arm_func_start FUN_02093248
FUN_02093248:
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0x4c
mov r6, r3
ldr r3, [r6, #0x4]
mov r8, r0
str r1, [sp, #0x0]
str r2, [sp, #0x4]
cmp r3, #0x0
ldr r4, [sp, #0x70]
beq _02093288
cmp r3, #0x1
bne _02093298
ldr r0, [r6, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
bne _02093298
_02093288:
add sp, sp, #0x4c
mov r0, #0x0
ldmia sp!, {r4-r11,lr}
bx lr
_02093298:
ldr r0, [sp, #0x4]
mov r1, r6
bl FUN_02094B98
cmp r0, #0x0
bge _020932F8
ldr r0, [sp, #0x0]
cmp r0, #0x0
beq _020932D4
ldr r1, [sp, #0x4]
bl FUN_02094E24
cmp r0, #0x0
addeq sp, sp, #0x4c
moveq r0, #0x0
ldmeqia sp!, {r4-r11,lr}
bxeq lr
_020932D4:
cmp r8, #0x0
beq _020932E8
mov r0, r8
mov r1, #0x0
bl FUN_02094D7C
_020932E8:
add sp, sp, #0x4c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_020932F8:
ldr r3, [r4, #0x0]
add r0, r4, #0x4
mov r2, #0x14
mla r1, r3, r2, r0
mov r3, #0x0
str r3, [r1, #0xc]
ldr r5, [r4, #0x0]
str r1, [sp, #0x14]
add r4, r5, #0x1
mla r1, r4, r2, r0
add r3, r5, #0x2
str r1, [sp, #0x18]
mla r1, r3, r2, r0
cmp r8, #0x0
str r1, [sp, #0x1c]
addeq r1, r5, #0x3
mlaeq r8, r1, r2, r0
mov r0, r6
bl FUN_02095188
mov r1, r0, lsr #0x1f
rsb r0, r1, r0, lsl #0x1b
add r0, r1, r0, ror #0x1b
rsb r0, r0, #0x20
str r0, [sp, #0x8]
ldr r0, [sp, #0x1c]
ldr r2, [sp, #0x8]
mov r1, r6
bl FUN_02094250
cmp r0, #0x0
addeq sp, sp, #0x4c
moveq r0, #0x0
ldmeqia sp!, {r4-r11,lr}
bxeq lr
ldr r2, [sp, #0x8]
ldr r0, [sp, #0x18]
ldr r1, [sp, #0x4]
ldr r3, [sp, #0x1c]
mov r4, #0x0
add r2, r2, #0x20
str r4, [r3, #0xc]
bl FUN_02094250
cmp r0, #0x0
addeq sp, sp, #0x4c
moveq r0, r4
ldmeqia sp!, {r4-r11,lr}
bxeq lr
ldr r0, [sp, #0x18]
mov r1, r4
str r1, [r0, #0xc]
ldr r0, [sp, #0x1c]
ldr r0, [r0, #0x4]
str r0, [sp, #0x28]
ldr r0, [sp, #0x18]
ldr r1, [sp, #0x28]
ldr r4, [r0, #0x4]
add r0, sp, #0x38
sub r1, r4, r1
str r1, [sp, #0x10]
bl FUN_0209502C
ldr r0, [sp, #0x18]
ldr r2, [r0, #0x0]
ldr r0, [sp, #0x28]
sub r1, r0, #0x1
ldr r0, [sp, #0x10]
add r0, r2, r0, lsl #0x2
str r0, [sp, #0x38]
ldr r0, [sp, #0x28]
str r0, [sp, #0x3c]
ldr r0, [sp, #0x18]
ldr r2, [r0, #0x8]
ldr r0, [sp, #0x28]
cmp r0, #0x1
add r0, r2, #0x1
str r0, [sp, #0x40]
ldr r0, [sp, #0x1c]
moveq r5, #0x0
ldr r2, [r0, #0x0]
ldr r0, [r2, r1, lsl #0x2]
str r0, [sp, #0x24]
ldrne r0, [sp, #0x28]
subne r0, r0, #0x2
ldrne r5, [r2, r0, lsl #0x2]
ldr r0, [sp, #0x18]
ldr r2, [r8, #0x8]
ldr r1, [r0, #0x0]
sub r0, r4, #0x1
add r7, r1, r0, lsl #0x2
ldr r0, [sp, #0x10]
add r1, r0, #0x1
cmp r1, r2
movle r0, r8
ble _02093470
mov r0, r8
bl FUN_02094EBC
_02093470:
cmp r0, #0x0
beq _020937D4
ldr r0, [sp, #0x4]
ldr r1, [r6, #0xc]
ldr r3, [r0, #0xc]
ldr r0, [sp, #0x10]
sub r2, r0, #0x1
eor r0, r3, r1
str r0, [r8, #0xc]
ldr r0, [sp, #0x10]
str r0, [r8, #0x4]
ldr r0, [sp, #0x28]
ldr r3, [r8, #0x0]
add r1, r0, #0x1
add r0, r3, r2, lsl #0x2
str r0, [sp, #0x20]
ldr r0, [sp, #0x14]
ldr r0, [r0, #0x8]
cmp r1, r0
ldrle r0, [sp, #0x14]
ble _020934CC
ldr r0, [sp, #0x14]
bl FUN_02094EBC
_020934CC:
cmp r0, #0x0
beq _020937D4
ldr r1, [sp, #0x1c]
add r0, sp, #0x38
bl FUN_02094B98
cmp r0, #0x0
blt _02093520
add r0, sp, #0x38
ldr r2, [sp, #0x1c]
mov r1, r0
bl FUN_02093B50
cmp r0, #0x0
beq _020937D4
ldr r0, [sp, #0x20]
mov r2, #0x1
str r2, [r0, #0x0]
ldr r0, [r8, #0x4]
ldr r1, [r8, #0x0]
sub r0, r0, #0x1
str r2, [r1, r0, lsl #0x2]
b _0209352C
_02093520:
ldr r0, [r8, #0x4]
sub r0, r0, #0x1
str r0, [r8, #0x4]
_0209352C:
ldr r0, [sp, #0x10]
sub r1, r0, #0x1
ldr r0, [sp, #0x20]
cmp r1, #0x0
sub r0, r0, #0x4
str r0, [sp, #0x20]
mov r0, #0x0
str r0, [sp, #0xc]
ble _0209377C
ldr r8, _020937E4 ; =0x0000FFFF
cmp r1, #0x0
and r0, r5, r8
str r0, [sp, #0x2c]
and r0, r8, r5, lsr #0x10
str r0, [sp, #0x30]
ldr r0, [sp, #0x24]
and r4, r0, r8
ble _0209377C
and r9, r8, r0, lsr #0x10
mvn r0, #0x0
str r0, [sp, #0x34]
_02093580:
ldr r1, [sp, #0x38]
ldr r0, [sp, #0x3c]
sub r1, r1, #0x4
add r0, r0, #0x1
str r0, [sp, #0x3c]
str r1, [sp, #0x38]
ldr r11, [r7, #0x0]
ldr r0, [sp, #0x24]
ldr r5, [r7, #-0x4]
cmp r11, r0
ldreq r6, [sp, #0x34]
beq _020935C4
ldr r2, [sp, #0x24]
mov r0, r11
mov r1, r5
bl FUN_02092260
mov r6, r0
_020935C4:
ldr r0, [sp, #0x2c]
and r2, r6, r8
mul r12, r0, r2
ldr r0, [sp, #0x30]
and lr, r8, r6, lsr #0x10
ldr r1, [sp, #0x30]
mul r0, r2, r0
mul r3, r1, lr
ldr r1, [sp, #0x2c]
mul r10, r9, lr
mla r1, lr, r1, r0
cmp r1, r0
addcc r3, r3, #0x10000
and r0, r8, r1, lsr #0x10
add r3, r3, r0
and r0, r1, r8
add r12, r12, r0, lsl #0x10
cmp r12, r0, lsl #0x10
mul r0, r2, r9
mul r1, r4, r2
mla r2, lr, r4, r0
addcc r3, r3, #0x1
cmp r2, r0
addcc r10, r10, #0x10000
and r0, r8, r2, lsr #0x10
add r10, r10, r0
and r0, r2, r8
add r1, r1, r0, lsl #0x10
cmp r1, r0, lsl #0x10
addcc r10, r10, #0x1
sub r1, r5, r1
cmp r1, r5
addhi r10, r10, #0x1
subs r0, r11, r10
bne _02093674
cmp r3, r1
blo _02093674
cmp r3, r1
bne _0209366C
ldr r0, [r7, #-0x8]
cmp r12, r0
bls _02093674
_0209366C:
sub r6, r6, #0x1
b _020935C4
_02093674:
ldr r0, [sp, #0x14]
ldr r1, [sp, #0x1c]
ldr r0, [r0, #0x0]
ldr r1, [r1, #0x0]
ldr r2, [sp, #0x28]
mov r3, r6
bl FUN_0209470C
ldr r1, [sp, #0x14]
ldr r2, [sp, #0x28]
ldr r3, [r1, #0x0]
ldr r1, [sp, #0x28]
str r0, [r3, r2, lsl #0x2]
add r1, r1, #0x1
cmp r1, #0x0
ble _020936D4
ldr r0, [sp, #0x14]
ldr r2, [r0, #0x0]
_020936B8:
sub r0, r1, #0x1
ldr r0, [r2, r0, lsl #0x2]
cmp r0, #0x0
bne _020936D4
sub r1, r1, #0x1
cmp r1, #0x0
bgt _020936B8
_020936D4:
ldr r0, [sp, #0x14]
ldr r2, [sp, #0x14]
str r1, [r0, #0x4]
add r0, sp, #0x38
mov r1, r0
ldr r5, [sp, #0x3c]
bl FUN_02093A0C
ldr r0, [sp, #0x18]
ldr r1, [r0, #0x4]
ldr r0, [sp, #0x3c]
add r0, r1, r0
sub r1, r0, r5
ldr r0, [sp, #0x18]
str r1, [r0, #0x4]
ldr r0, [sp, #0x44]
cmp r0, #0x0
beq _0209374C
add r0, sp, #0x38
ldr r2, [sp, #0x1c]
mov r1, r0
sub r6, r6, #0x1
ldr r5, [sp, #0x3c]
bl FUN_02093DD0
ldr r0, [sp, #0x18]
ldr r1, [r0, #0x4]
ldr r0, [sp, #0x3c]
sub r0, r0, r5
add r1, r1, r0
ldr r0, [sp, #0x18]
str r1, [r0, #0x4]
_0209374C:
ldr r0, [sp, #0x20]
sub r7, r7, #0x4
str r6, [r0], #-0x4
str r0, [sp, #0x20]
ldr r0, [sp, #0xc]
add r0, r0, #0x1
str r0, [sp, #0xc]
ldr r0, [sp, #0x10]
sub r1, r0, #0x1
ldr r0, [sp, #0xc]
cmp r0, r1
blt _02093580
_0209377C:
ldr r0, [sp, #0x18]
bl FUN_02095040
ldr r0, [sp, #0x0]
cmp r0, #0x0
beq _020937C4
ldr r2, [sp, #0x8]
ldr r3, [sp, #0x4]
ldr r1, [sp, #0x18]
add r2, r2, #0x20
ldr r4, [r3, #0xc]
bl FUN_02094134
cmp r0, #0x0
addeq sp, sp, #0x4c
moveq r0, #0x0
ldmeqia sp!, {r4-r11,lr}
bxeq lr
ldr r0, [sp, #0x0]
str r4, [r0, #0xc]
_020937C4:
add sp, sp, #0x4c
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_020937D4:
mov r0, #0x0
add sp, sp, #0x4c
ldmia sp!, {r4-r11,lr}
bx lr
.balign 4
_020937E4: .word 0x0000FFFF
arm_func_start FUN_020937E8
FUN_020937E8: ; 0x020937E8
stmdb sp!, {r4-r9,lr}
sub sp, sp, #0x4
ldr r5, [sp, #0x20]
mov r7, r2
mov r9, r0
mov r8, r1
mov r6, r3
cmp r7, r5
bge _02093824
mov r1, r7
mov r0, r8
mov r7, r5
mov r8, r6
mov r5, r1
mov r6, r0
_02093824:
ldr r3, [r6, #0x0]
mov r0, r9
mov r1, r8
mov r2, r7
add r4, r9, r7, lsl #0x2
bl FUN_0209470C
str r0, [r9, r7, lsl #0x2]
_02093840:
sub r0, r5, #0x1
cmp r0, #0x0
addle sp, sp, #0x4
ldmleia sp!, {r4-r9,lr}
bxle lr
ldr r3, [r6, #0x4]
mov r1, r8
mov r2, r7
add r0, r9, #0x4
bl FUN_020948AC
sub r1, r5, #0x2
cmp r1, #0x0
addle sp, sp, #0x4
str r0, [r4, #0x4]
ldmleia sp!, {r4-r9,lr}
bxle lr
ldr r3, [r6, #0x8]
mov r1, r8
mov r2, r7
add r0, r9, #0x8
bl FUN_020948AC
sub r1, r5, #0x3
cmp r1, #0x0
addle sp, sp, #0x4
str r0, [r4, #0x8]
ldmleia sp!, {r4-r9,lr}
bxle lr
ldr r3, [r6, #0xc]
mov r1, r8
mov r2, r7
add r0, r9, #0xc
bl FUN_020948AC
sub r5, r5, #0x4
cmp r5, #0x0
addle sp, sp, #0x4
str r0, [r4, #0xc]
ldmleia sp!, {r4-r9,lr}
bxle lr
ldr r3, [r6, #0x10]
mov r1, r8
mov r2, r7
add r0, r9, #0x10
bl FUN_020948AC
str r0, [r4, #0x10]
add r4, r4, #0x10
add r9, r9, #0x10
add r6, r6, #0x10
b _02093840
add sp, sp, #0x4
ldmia sp!, {r4-r9,lr}
bx lr
arm_func_start FUN_0209390C
FUN_0209390C:
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0x4
mov r9, r1
ldr r6, [r9, #0x4]
mov r8, r2
mov r10, r0
cmp r6, #0x0
ldr r5, [r8, #0x4]
beq _02093938
cmp r5, #0x0
bne _02093954
_02093938:
mov r0, r10
mov r1, #0x0
bl FUN_02094D7C
add sp, sp, #0x4
mov r0, #0x1
ldmia sp!, {r4-r11,lr}
bx lr
_02093954:
ldr r1, [r9, #0xc]
ldr r0, [r8, #0xc]
cmp r10, r9
add r7, r6, r5
eor r11, r1, r0
beq _02093974
cmp r10, r8
bne _0209398C
_02093974:
ldr r0, [r3, #0x0]
add r2, r3, #0x4
add r1, r0, #0x1
mov r0, #0x14
mla r4, r1, r0, r2
b _02093990
_0209398C:
mov r4, r10
_02093990:
ldr r0, [r4, #0x8]
cmp r7, r0
movle r0, r4
ble _020939AC
mov r0, r4
mov r1, r7
bl FUN_02094EBC
_020939AC:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r11,lr}
bxeq lr
str r7, [r4, #0x4]
str r5, [sp, #0x0]
ldr r0, [r4, #0x0]
ldr r1, [r9, #0x0]
ldr r3, [r8, #0x0]
mov r2, r6
bl FUN_020937E8
mov r0, r4
str r11, [r10, #0xc]
bl FUN_02095040
cmp r10, r4
beq _020939FC
mov r0, r10
mov r1, r4
bl FUN_02094E24
_020939FC:
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r11,lr}
bx lr
arm_func_start FUN_02093A0C
FUN_02093A0C: ; 0x02093A0C
stmdb sp!, {r4-r7,lr}
sub sp, sp, #0x4
mov r6, r1
ldr r1, [r6, #0xc]
mov r3, #0x0
mov r7, r0
mov r5, r2
mov r4, r3
cmp r1, #0x0
beq _02093A54
ldr r0, [r5, #0xc]
cmp r0, #0x0
movne r0, r6
moveq r3, #0x1
movne r6, r5
movne r5, r0
moveq r4, r3
b _02093A60
_02093A54:
ldr r0, [r5, #0xc]
cmp r0, #0x0
movne r3, #0x1
_02093A60:
cmp r3, #0x0
beq _02093A94
mov r0, r7
mov r1, r6
mov r2, r5
bl FUN_02093CB4
cmp r0, #0x0
moveq r0, #0x0
add sp, sp, #0x4
strne r4, [r7, #0xc]
movne r0, #0x1
ldmia sp!, {r4-r7,lr}
bx lr
_02093A94:
ldr r0, [r5, #0x4]
ldr r1, [r6, #0x4]
cmp r1, r0
movle r1, r0
ldr r0, [r7, #0x8]
cmp r1, r0
movle r0, r7
ble _02093ABC
mov r0, r7
bl FUN_02094EBC
_02093ABC:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
mov r0, r6
mov r1, r5
bl FUN_02094B98
cmp r0, #0x0
bge _02093B14
mov r0, r7
mov r1, r5
mov r2, r6
bl FUN_02093B50
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
mov r0, #0x1
str r0, [r7, #0xc]
b _02093B40
_02093B14:
mov r0, r7
mov r1, r6
mov r2, r5
bl FUN_02093B50
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
mov r0, #0x0
str r0, [r7, #0xc]
_02093B40:
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r7,lr}
bx lr
arm_func_start FUN_02093B50
FUN_02093B50:
stmdb sp!, {r4-r10,lr}
mov r8, r1
mov r7, r2
ldr r5, [r7, #0x4]
ldr r6, [r8, #0x4]
mov r4, r0
cmp r6, r5
movlt r0, #0x0
ldmltia sp!, {r4-r10,lr}
bxlt lr
ldr r1, [r4, #0x8]
cmp r6, r1
ble _02093B8C
mov r1, r6
bl FUN_02094EBC
_02093B8C:
cmp r0, #0x0
moveq r0, #0x0
ldmeqia sp!, {r4-r10,lr}
bxeq lr
mov r3, #0x0
mov r0, r3
cmp r5, #0x0
ldr r2, [r8, #0x0]
ldr r9, [r7, #0x0]
ldr r1, [r4, #0x0]
ble _02093C0C
mov r12, r3
mov r7, r3
mov lr, #0x1
_02093BC4:
cmp r3, #0x0
ldr r10, [r2], #0x4
ldr r8, [r9], #0x4
beq _02093BEC
cmp r10, r8
movls r3, lr
sub r8, r10, r8
movhi r3, r12
sub r10, r8, #0x1
b _02093BFC
_02093BEC:
cmp r10, r8
movcc r3, lr
movcs r3, r7
sub r10, r10, r8
_02093BFC:
add r0, r0, #0x1
cmp r0, r5
str r10, [r1], #0x4
blt _02093BC4
_02093C0C:
cmp r3, #0x0
beq _02093C3C
cmp r0, r6
bge _02093C3C
_02093C1C:
ldr r5, [r2], #0x4
add r0, r0, #0x1
sub r3, r5, #0x1
cmp r5, r3
str r3, [r1], #0x4
bhi _02093C3C
cmp r0, r6
blt _02093C1C
_02093C3C:
cmp r1, r2
beq _02093C9C
_02093C44:
cmp r0, r6
bge _02093C9C
ldr r5, [r2, #0x0]
add r3, r0, #0x1
str r5, [r1, #0x0]
cmp r3, r6
bge _02093C9C
ldr r5, [r2, #0x4]
add r3, r0, #0x2
str r5, [r1, #0x4]
cmp r3, r6
bge _02093C9C
ldr r5, [r2, #0x8]
add r3, r0, #0x3
str r5, [r1, #0x8]
cmp r3, r6
ldrlt r3, [r2, #0xc]
add r0, r0, #0x4
strlt r3, [r1, #0xc]
addlt r2, r2, #0x10
addlt r1, r1, #0x10
blt _02093C44
_02093C9C:
mov r0, r4
str r6, [r4, #0x4]
bl FUN_02095040
mov r0, #0x1
ldmia sp!, {r4-r10,lr}
bx lr
arm_func_start FUN_02093CB4
FUN_02093CB4:
stmdb sp!, {r4-r9,lr}
sub sp, sp, #0x4
mov r4, r1
mov r8, r2
ldr r2, [r4, #0x4]
ldr r1, [r8, #0x4]
mov r9, r0
cmp r2, r1
movlt r0, r4
movlt r4, r8
movlt r8, r0
ldr r6, [r4, #0x4]
ldr r0, [r9, #0x8]
add r1, r6, #0x1
cmp r1, r0
ldr r7, [r8, #0x4]
movle r0, r9
ble _02093D04
mov r0, r9
bl FUN_02094EBC
_02093D04:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r9,lr}
bxeq lr
str r6, [r9, #0x4]
ldr r5, [r4, #0x0]
ldr r4, [r9, #0x0]
ldr r2, [r8, #0x0]
mov r0, r4
mov r1, r5
mov r3, r7
bl FUN_02094468
cmp r0, #0x0
add r4, r4, r7, lsl #0x2
add r5, r5, r7, lsl #0x2
beq _02093D9C
cmp r7, r6
bge _02093D7C
_02093D50:
ldr r2, [r5], #0x4
mov r3, r4
add r1, r2, #0x1
str r1, [r4], #0x4
ldr r1, [r3, #0x0]
add r7, r7, #0x1
cmp r1, r2
movcs r0, #0x0
bhs _02093D7C
cmp r7, r6
blt _02093D50
_02093D7C:
cmp r7, r6
blt _02093D9C
cmp r0, #0x0
movne r0, #0x1
strne r0, [r4], #0x4
ldrne r0, [r9, #0x4]
addne r0, r0, #0x1
strne r0, [r9, #0x4]
_02093D9C:
cmp r4, r5
beq _02093DC0
cmp r7, r6
bge _02093DC0
_02093DAC:
ldr r0, [r5], #0x4
add r7, r7, #0x1
cmp r7, r6
str r0, [r4], #0x4
blt _02093DAC
_02093DC0:
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r9,lr}
bx lr
arm_func_start FUN_02093DD0
FUN_02093DD0: ; 0x02093DD0
stmdb sp!, {r4-r6,lr}
mov r5, r1
mov r4, r2
ldr r2, [r5, #0xc]
ldr r1, [r4, #0xc]
mov r6, r0
eors r0, r2, r1
beq _02093E74
cmp r2, #0x0
movne r0, r5
movne r5, r4
movne r4, r0
mov r0, r5
mov r1, r4
bl FUN_02094B98
cmp r0, #0x0
bge _02093E40
mov r0, r6
mov r1, r4
mov r2, r5
bl FUN_02093B50
cmp r0, #0x0
moveq r0, #0x0
ldmeqia sp!, {r4-r6,lr}
bxeq lr
mov r0, #0x1
str r0, [r6, #0xc]
b _02093E68
_02093E40:
mov r0, r6
mov r1, r5
mov r2, r4
bl FUN_02093B50
cmp r0, #0x0
moveq r0, #0x0
ldmeqia sp!, {r4-r6,lr}
bxeq lr
mov r0, #0x0
str r0, [r6, #0xc]
_02093E68:
mov r0, #0x1
ldmia sp!, {r4-r6,lr}
bx lr
_02093E74:
cmp r2, #0x0
movne r0, #0x1
strne r0, [r6, #0xc]
moveq r0, #0x0
streq r0, [r6, #0xc]
mov r0, r6
mov r1, r5
mov r2, r4
bl FUN_02093CB4
cmp r0, #0x0
moveq r0, #0x0
movne r0, #0x1
ldmia sp!, {r4-r6,lr}
bx lr
arm_func_start FUN_02093EAC
FUN_02093EAC: ; 0x02093EAC
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
movs r4, r1
mov r5, r0
addeq sp, sp, #0x4
moveq r0, #0x1
ldmeqia sp!, {r4-r5,lr}
bxeq lr
ldr r2, [r5, #0xc]
cmp r2, #0x0
beq _02093EF8
mov r2, #0x0
str r2, [r5, #0xc]
bl FUN_0209400C
mov r1, #0x1
add sp, sp, #0x4
str r1, [r5, #0xc]
ldmia sp!, {r4-r5,lr}
bx lr
_02093EF8:
ldr r1, [r5, #0x4]
cmp r1, #0x1
bgt _02093F9C
cmp r1, #0x0
bne _02093F54
ldr r1, [r5, #0x8]
cmp r1, #0x1
bge _02093F20
mov r1, #0x1
bl FUN_02094EBC
_02093F20:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
bxeq lr
ldr r1, [r5, #0x0]
mov r0, #0x1
str r4, [r1, #0x0]
str r0, [r5, #0xc]
add sp, sp, #0x4
str r0, [r5, #0x4]
ldmia sp!, {r4-r5,lr}
bx lr
_02093F54:
ldr r2, [r5, #0x0]
ldr r1, [r2, #0x0]
cmp r1, r4
moveq r0, #0x0
streq r0, [r5, #0x4]
beq _02093F8C
cmp r1, r4
subhi r0, r1, r4
strhi r0, [r2, #0x0]
movls r0, #0x1
strls r0, [r5, #0xc]
ldrls r0, [r5, #0x0]
subls r1, r4, r1
strls r1, [r0, #0x0]
_02093F8C:
add sp, sp, #0x4
mov r0, #0x1
ldmia sp!, {r4-r5,lr}
bx lr
_02093F9C:
mov r0, #0x0
mov r1, #0x1
_02093FA4:
ldr r12, [r5, #0x0]
mov r3, r0, lsl #0x2
ldr r2, [r12, r0, lsl #0x2]
cmp r2, r4
ldrcs r1, [r12, r3]
subcs r1, r1, r4
strcs r1, [r12, r3]
bhs _02093FDC
ldr r2, [r12, r3]
add r0, r0, #0x1
sub r2, r2, r4
mov r4, r1
str r2, [r12, r3]
b _02093FA4
_02093FDC:
ldr r1, [r5, #0x0]
ldr r1, [r1, r3]
cmp r1, #0x0
bne _02093FFC
ldr r1, [r5, #0x4]
sub r1, r1, #0x1
cmp r0, r1
streq r1, [r5, #0x4]
_02093FFC:
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_0209400C
FUN_0209400C:
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
movs r4, r1
mov r5, r0
addeq sp, sp, #0x4
moveq r0, #0x1
ldmeqia sp!, {r4-r5,lr}
bxeq lr
ldr r2, [r5, #0xc]
cmp r2, #0x0
beq _020940B4
ldr r2, [r5, #0x4]
cmp r2, #0x1
ble _02094064
mov r2, #0x0
str r2, [r5, #0xc]
bl FUN_02093EAC
mov r1, #0x1
add sp, sp, #0x4
str r1, [r5, #0xc]
ldmia sp!, {r4-r5,lr}
bx lr
_02094064:
ldr r2, [r5, #0x0]
ldr r1, [r2, #0x0]
cmp r1, r4
subhi r0, r1, r4
strhi r0, [r2, #0x0]
bhi _020940A4
cmp r1, r4
movcs r0, #0x0
strcs r0, [r5, #0xc]
strcs r0, [r5, #0x4]
bhs _020940A4
mov r0, #0x0
str r0, [r5, #0xc]
ldr r0, [r5, #0x0]
sub r1, r4, r1
str r1, [r0, #0x0]
_020940A4:
add sp, sp, #0x4
mov r0, #0x1
ldmia sp!, {r4-r5,lr}
bx lr
_020940B4:
ldr r1, [r5, #0x4]
ldr r2, [r5, #0x8]
add r1, r1, #0x1
cmp r1, r2
ble _020940CC
bl FUN_02094EBC
_020940CC:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
bxeq lr
ldr r1, [r5, #0x0]
ldr r0, [r5, #0x4]
mov r3, #0x0
str r3, [r1, r0, lsl #0x2]
mov r0, #0x1
_020940F4:
ldr r2, [r5, #0x0]
ldr r1, [r2, r3, lsl #0x2]
add r1, r4, r1
cmp r4, r1
str r1, [r2, r3, lsl #0x2]
movhi r4, r0
addhi r3, r3, #0x1
bhi _020940F4
ldr r0, [r5, #0x4]
cmp r3, r0
addge r0, r0, #0x1
strge r0, [r5, #0x4]
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_02094134
FUN_02094134:
stmdb sp!, {r4-r8,lr}
mov r7, r1
mov r1, r2, asr #0x4
mov r3, r2, lsr #0x1f
add r1, r2, r1, lsr #0x1b
rsb r2, r3, r2, lsl #0x1b
add r4, r3, r2, ror #0x1b
ldr r2, [r7, #0x4]
mov r6, r1, asr #0x5
mov r8, r0
cmp r6, r2
rsb r5, r4, #0x20
ble _0209417C
mov r1, #0x0
bl FUN_02094D7C
mov r0, #0x1
ldmia sp!, {r4-r8,lr}
bx lr
_0209417C:
cmp r8, r7
beq _020941B4
sub r1, r2, r6
ldr r2, [r8, #0x8]
add r1, r1, #0x2
cmp r1, r2
ble _0209419C
bl FUN_02094EBC
_0209419C:
cmp r0, #0x0
moveq r0, #0x0
ldmeqia sp!, {r4-r8,lr}
bxeq lr
ldr r0, [r7, #0xc]
str r0, [r8, #0xc]
_020941B4:
ldr r0, [r7, #0x0]
ldr r1, [r7, #0x4]
add r2, r0, r6, lsl #0x2
ldr r0, [r8, #0x0]
sub r7, r1, r6
mov r6, r2
str r7, [r8, #0x4]
cmp r4, #0x0
bne _020941FC
add r2, r7, #0x1
cmp r2, #0x0
ble _0209423C
_020941E4:
ldr r1, [r6], #0x4
sub r2, r2, #0x1
cmp r2, #0x0
str r1, [r0], #0x4
bgt _020941E4
b _0209423C
_020941FC:
cmp r7, #0x1
add r6, r2, #0x4
ldr r3, [r2, #0x0]
mov r2, #0x1
ble _0209422C
_02094210:
mov r1, r3, lsr r4
ldr r3, [r6], #0x4
add r2, r2, #0x1
orr r1, r1, r3, lsl r5
cmp r2, r7
str r1, [r0], #0x4
blt _02094210
_0209422C:
mov r1, r3, lsr r4
str r1, [r0, #0x0]
mov r1, #0x0
str r1, [r0, #0x4]
_0209423C:
mov r0, r8
bl FUN_02095040
mov r0, #0x1
ldmia sp!, {r4-r8,lr}
bx lr
arm_func_start FUN_02094250
FUN_02094250:
stmdb sp!, {r4-r10,lr}
mov r4, r1
mov r7, r2
mov r1, r7, asr #0x4
mov r5, r0
add r2, r7, r1, lsr #0x1b
ldr r1, [r4, #0x4]
ldr r3, [r5, #0x8]
add r1, r1, r2, asr #0x5
add r1, r1, #0x1
cmp r1, r3
mov r6, r2, asr #0x5
ble _02094288
bl FUN_02094EBC
_02094288:
cmp r0, #0x0
moveq r0, #0x0
ldmeqia sp!, {r4-r10,lr}
bxeq lr
ldr r0, [r4, #0xc]
mov r1, r7, lsr #0x1f
str r0, [r5, #0xc]
ldr r3, [r4, #0x4]
rsb r0, r1, r7, lsl #0x1b
adds r12, r1, r0, ror #0x1b
ldr r2, [r4, #0x0]
ldr r0, [r5, #0x0]
add r1, r3, r6
mov r3, #0x0
str r3, [r0, r1, lsl #0x2]
rsb r3, r12, #0x20
bne _020942F0
ldr r1, [r4, #0x4]
subs r7, r1, #0x1
bmi _02094324
_020942D8:
ldr r3, [r2, r7, lsl #0x2]
add r1, r6, r7
str r3, [r0, r1, lsl #0x2]
subs r7, r7, #0x1
bpl _020942D8
b _02094324
_020942F0:
ldr r1, [r4, #0x4]
subs r1, r1, #0x1
bmi _02094324
_020942FC:
add r9, r6, r1
add r8, r9, #0x1
ldr r10, [r2, r1, lsl #0x2]
ldr lr, [r0, r8, lsl #0x2]
mov r7, r10, lsl r12
orr lr, lr, r10, lsr r3
str lr, [r0, r8, lsl #0x2]
str r7, [r0, r9, lsl #0x2]
subs r1, r1, #0x1
bpl _020942FC
_02094324:
mov r2, r6, lsl #0x2
mov r1, #0x0
bl MI_CpuFill8
ldr r1, [r4, #0x4]
mov r0, r5
add r1, r1, r6
add r1, r1, #0x1
str r1, [r5, #0x4]
bl FUN_02095040
mov r0, #0x1
ldmia sp!, {r4-r10,lr}
bx lr
arm_func_start FUN_02094354
FUN_02094354: ; 0x02094354
stmdb sp!, {r4-r10,lr}
cmp r3, #0x0
movle r0, #0x0
ldmleia sp!, {r4-r10,lr}
bxle lr
mov r6, #0x0
mov r4, r6
mov lr, r6
mov r12, r6
mov r7, r6
mov r5, #0x1
_02094380:
ldr r10, [r1, #0x0]
ldr r9, [r2, #0x0]
sub r8, r10, r9
sub r8, r8, r6
str r8, [r0, #0x0]
cmp r10, r9
beq _020943A8
cmp r10, r9
movcc r6, r5
movcs r6, r4
_020943A8:
sub r8, r3, #0x1
cmp r8, #0x0
ble _0209445C
ldr r10, [r1, #0x4]
ldr r9, [r2, #0x4]
sub r8, r10, r9
sub r8, r8, r6
str r8, [r0, #0x4]
cmp r10, r9
beq _020943DC
cmp r10, r9
movcc r6, r5
movcs r6, lr
_020943DC:
sub r8, r3, #0x2
cmp r8, #0x0
ble _0209445C
ldr r10, [r1, #0x8]
ldr r9, [r2, #0x8]
sub r8, r10, r9
sub r8, r8, r6
str r8, [r0, #0x8]
cmp r10, r9
beq _02094410
cmp r10, r9
movcc r6, r5
movcs r6, r12
_02094410:
sub r8, r3, #0x3
cmp r8, #0x0
ble _0209445C
ldr r10, [r1, #0xc]
ldr r9, [r2, #0xc]
sub r8, r10, r9
sub r8, r8, r6
str r8, [r0, #0xc]
cmp r10, r9
beq _02094444
cmp r10, r9
movcc r6, r5
movcs r6, r7
_02094444:
sub r3, r3, #0x4
cmp r3, #0x0
addgt r1, r1, #0x10
addgt r2, r2, #0x10
addgt r0, r0, #0x10
bgt _02094380
_0209445C:
mov r0, r6
ldmia sp!, {r4-r10,lr}
bx lr
arm_func_start FUN_02094468
FUN_02094468:
stmdb sp!, {r4-r11,lr}
sub sp, sp, #0xc
cmp r3, #0x0
addle sp, sp, #0xc
movle r0, #0x0
ldmleia sp!, {r4-r11,lr}
bxle lr
mov r12, #0x0
mov r7, r12
mov r6, r12
mov r5, r12
mov r4, r12
mov lr, r12
mov r11, r12
str r12, [sp, #0x0]
str r12, [sp, #0x4]
mov r8, #0x1
_020944AC:
ldr r9, [r1, #0x0]
add r10, r9, r12
ldr r9, [r2, #0x0]
cmp r10, r12
movcc r12, r8
add r9, r10, r9
movcs r12, r7
cmp r9, r10
movcc r10, r8
movcs r10, r6
str r9, [r0, #0x0]
sub r9, r3, #0x1
add r12, r12, r10
cmp r9, #0x0
ble _020945A8
ldr r9, [r1, #0x4]
ldr r10, [r2, #0x4]
add r9, r9, r12
cmp r9, r12
movcc r12, r8
add r10, r9, r10
movcs r12, r5
cmp r10, r9
movcc r9, r8
movcs r9, r4
add r12, r12, r9
sub r9, r3, #0x2
str r10, [r0, #0x4]
cmp r9, #0x0
ble _020945A8
ldr r9, [r1, #0x8]
ldr r10, [r2, #0x8]
add r9, r9, r12
cmp r9, r12
movcc r12, r8
add r10, r9, r10
movcs r12, lr
cmp r10, r9
movcc r9, r8
movcs r9, r11
add r12, r12, r9
sub r9, r3, #0x3
str r10, [r0, #0x8]
cmp r9, #0x0
ble _020945A8
ldr r9, [r1, #0xc]
ldr r10, [r2, #0xc]
add r9, r9, r12
cmp r9, r12
movcc r12, r8
add r10, r9, r10
ldrcs r12, [sp, #0x0]
cmp r10, r9
movcc r9, r8
ldrcs r9, [sp, #0x4]
sub r3, r3, #0x4
cmp r3, #0x0
str r10, [r0, #0xc]
add r12, r12, r9
addgt r1, r1, #0x10
addgt r2, r2, #0x10
addgt r0, r0, #0x10
bgt _020944AC
_020945A8:
mov r0, r12
add sp, sp, #0xc
ldmia sp!, {r4-r11,lr}
bx lr
arm_func_start FUN_020945B8
FUN_020945B8: ; 0x020945B8
stmdb sp!, {r4-r8,lr}
cmp r2, #0x0
ldmleia sp!, {r4-r8,lr}
bxle lr
mov r3, #0x8000
ldr lr, _02094708 ; =0x0000FFFF
rsb r12, r3, #0x0
_020945D4:
ldr r5, [r1, #0x0]
mov r3, #0x8000
and r4, r5, lr
and r7, lr, r5, lsr #0x10
mul r6, r4, r7
mul r5, r4, r4
and r4, r6, lr
add r8, r5, r4, lsl #0x11
rsb r3, r3, #0x0
mul r5, r7, r7
and r3, r6, r3
add r3, r5, r3, lsr #0xf
cmp r8, r4, lsl #0x11
addcc r3, r3, #0x1
str r8, [r0, #0x0]
str r3, [r0, #0x4]
subs r3, r2, #0x1
ldmeqia sp!, {r4-r8,lr}
bxeq lr
ldr r4, [r1, #0x4]
and r7, lr, r4, lsr #0x10
and r3, r4, lr
mul r6, r3, r7
mul r4, r3, r3
and r3, r6, lr
add r8, r4, r3, lsl #0x11
mul r5, r7, r7
and r4, r6, r12
cmp r8, r3, lsl #0x11
add r3, r5, r4, lsr #0xf
addcc r3, r3, #0x1
str r8, [r0, #0x8]
str r3, [r0, #0xc]
subs r3, r2, #0x2
ldmeqia sp!, {r4-r8,lr}
bxeq lr
ldr r5, [r1, #0x8]
mov r3, #0x8000
and r4, r5, lr
and r7, lr, r5, lsr #0x10
mul r6, r4, r7
mul r5, r4, r4
and r4, r6, lr
add r8, r5, r4, lsl #0x11
rsb r3, r3, #0x0
mul r5, r7, r7
and r3, r6, r3
add r3, r5, r3, lsr #0xf
cmp r8, r4, lsl #0x11
addcc r3, r3, #0x1
str r8, [r0, #0x10]
str r3, [r0, #0x14]
subs r3, r2, #0x3
ldmeqia sp!, {r4-r8,lr}
bxeq lr
ldr r5, [r1, #0xc]
mov r3, #0x8000
and r4, r5, lr
and r7, lr, r5, lsr #0x10
mul r6, r4, r7
mul r5, r4, r4
and r4, r6, lr
add r8, r5, r4, lsl #0x11
rsb r3, r3, #0x0
mul r5, r7, r7
and r3, r6, r3
add r3, r5, r3, lsr #0xf
cmp r8, r4, lsl #0x11
addcc r3, r3, #0x1
str r8, [r0, #0x18]
subs r2, r2, #0x4
str r3, [r0, #0x1c]
addne r1, r1, #0x10
addne r0, r0, #0x20
bne _020945D4
ldmia sp!, {r4-r8,lr}
bx lr
.balign 4
_02094708: .word 0x0000FFFF
arm_func_start FUN_0209470C
FUN_0209470C: ; 0x0209470C
stmdb sp!, {r4-r9,lr}
sub sp, sp, #0x4
cmp r2, #0x0
mov r4, #0x0
addle sp, sp, #0x4
movle r0, r4
ldmleia sp!, {r4-r9,lr}
bxle lr
ldr r5, _020948A8 ; =0x0000FFFF
and lr, r3, r5
and r12, r5, r3, lsr #0x10
_02094738:
ldr r3, [r1, #0x0]
and r7, r5, r3, lsr #0x10
mul r6, lr, r7
and r3, r3, r5
mla r9, r12, r3, r6
mul r8, r3, lr
mul r3, r7, r12
cmp r9, r6
and r6, r9, r5
addcc r3, r3, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r3, r3, r7
add r6, r8, r4
addcc r3, r3, #0x1
cmp r6, r4
addcc r3, r3, #0x1
str r6, [r0, #0x0]
mov r4, r3
subs r6, r2, #0x1
beq _02094898
ldr r4, [r1, #0x4]
and r7, r5, r4, lsr #0x10
mul r6, lr, r7
and r4, r4, r5
mla r9, r12, r4, r6
mul r8, r4, lr
mul r4, r7, r12
cmp r9, r6
and r6, r9, r5
addcc r4, r4, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r4, r4, r7
add r6, r8, r3
addcc r4, r4, #0x1
cmp r6, r3
addcc r4, r4, #0x1
str r6, [r0, #0x4]
subs r3, r2, #0x2
beq _02094898
ldr r3, [r1, #0x8]
and r7, r5, r3, lsr #0x10
mul r6, lr, r7
and r3, r3, r5
mla r9, r12, r3, r6
mul r8, r3, lr
mul r3, r7, r12
cmp r9, r6
and r6, r9, r5
addcc r3, r3, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r3, r3, r7
add r6, r8, r4
addcc r3, r3, #0x1
cmp r6, r4
addcc r3, r3, #0x1
str r6, [r0, #0x8]
mov r4, r3
subs r6, r2, #0x3
beq _02094898
ldr r4, [r1, #0xc]
and r7, r5, r4, lsr #0x10
mul r6, lr, r7
and r4, r4, r5
mla r9, r12, r4, r6
mul r8, r4, lr
mul r4, r7, r12
cmp r9, r6
and r6, r9, r5
addcc r4, r4, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r4, r4, r7
add r6, r8, r3
addcc r4, r4, #0x1
cmp r6, r3
addcc r4, r4, #0x1
subs r2, r2, #0x4
str r6, [r0, #0xc]
addne r1, r1, #0x10
addne r0, r0, #0x10
bne _02094738
_02094898:
mov r0, r4
add sp, sp, #0x4
ldmia sp!, {r4-r9,lr}
bx lr
.balign 4
_020948A8: .word 0x0000FFFF
arm_func_start FUN_020948AC
FUN_020948AC: ; 0x020948AC
stmdb sp!, {r4-r9,lr}
sub sp, sp, #0x4
cmp r2, #0x0
mov r12, #0x0
addle sp, sp, #0x4
movle r0, r12
ldmleia sp!, {r4-r9,lr}
bxle lr
ldr r5, _02094A88 ; =0x0000FFFF
and r4, r3, r5
and lr, r5, r3, lsr #0x10
_020948D8:
ldr r3, [r1, #0x0]
and r7, r5, r3, lsr #0x10
mul r6, r4, r7
and r3, r3, r5
mla r9, lr, r3, r6
mul r8, r3, r4
mul r3, r7, lr
cmp r9, r6
and r6, r9, r5
addcc r3, r3, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r3, r3, r7
ldr r6, [r0, #0x0]
addcc r3, r3, #0x1
add r7, r8, r12
cmp r7, r12
add r7, r7, r6
addcc r3, r3, #0x1
cmp r7, r6
addcc r3, r3, #0x1
mov r12, r3
str r7, [r0, #0x0]
subs r6, r2, #0x1
beq _02094A78
ldr r12, [r1, #0x4]
and r7, r5, r12, lsr #0x10
mul r6, r4, r7
and r12, r12, r5
mla r9, lr, r12, r6
mul r8, r12, r4
mul r12, r7, lr
cmp r9, r6
and r6, r9, r5
addcc r12, r12, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r12, r12, r7
add r6, r8, r3
addcc r12, r12, #0x1
cmp r6, r3
ldr r3, [r0, #0x4]
addcc r12, r12, #0x1
add r6, r6, r3
cmp r6, r3
addcc r12, r12, #0x1
str r6, [r0, #0x4]
subs r3, r2, #0x2
beq _02094A78
ldr r3, [r1, #0x8]
and r7, r5, r3, lsr #0x10
mul r6, r4, r7
and r3, r3, r5
mla r9, lr, r3, r6
mul r8, r3, r4
mul r3, r7, lr
cmp r9, r6
and r6, r9, r5
addcc r3, r3, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r3, r3, r7
ldr r6, [r0, #0x8]
addcc r3, r3, #0x1
add r7, r8, r12
cmp r7, r12
add r7, r7, r6
addcc r3, r3, #0x1
cmp r7, r6
addcc r3, r3, #0x1
mov r12, r3
str r7, [r0, #0x8]
subs r6, r2, #0x3
beq _02094A78
ldr r12, [r1, #0xc]
and r7, r5, r12, lsr #0x10
mul r6, r4, r7
and r12, r12, r5
mla r9, lr, r12, r6
mul r8, r12, r4
mul r12, r7, lr
cmp r9, r6
and r6, r9, r5
addcc r12, r12, #0x10000
and r7, r5, r9, lsr #0x10
add r8, r8, r6, lsl #0x10
cmp r8, r6, lsl #0x10
add r12, r12, r7
add r6, r8, r3
addcc r12, r12, #0x1
cmp r6, r3
ldr r3, [r0, #0xc]
addcc r12, r12, #0x1
add r6, r6, r3
cmp r6, r3
addcc r12, r12, #0x1
subs r2, r2, #0x4
str r6, [r0, #0xc]
addne r1, r1, #0x10
addne r0, r0, #0x10
bne _020948D8
_02094A78:
mov r0, r12
add sp, sp, #0x4
ldmia sp!, {r4-r9,lr}
bx lr
.balign 4
_02094A88: .word 0x0000FFFF
arm_func_start FUN_02094A8C
FUN_02094A8C:
stmdb sp!, {lr}
sub sp, sp, #0x4
cmp r1, #0x0
addlt sp, sp, #0x4
movlt r0, #0x0
ldmltia sp!, {lr}
bxlt lr
mov r2, r1, asr #0x4
add r2, r1, r2, lsr #0x1b
mov r3, r1, lsr #0x1f
ldr r12, [r0, #0x4]
mov lr, r2, asr #0x5
cmp r12, lr
rsb r1, r3, r1, lsl #0x1b
addle sp, sp, #0x4
add r2, r3, r1, ror #0x1b
movle r0, #0x0
ldmleia sp!, {lr}
bxle lr
ldr r1, [r0, #0x0]
mov r0, #0x1
mov r2, r0, lsl r2
ldr r1, [r1, lr, lsl #0x2]
ands r1, r2, r1
moveq r0, #0x0
add sp, sp, #0x4
ldmia sp!, {lr}
bx lr
arm_func_start FUN_02094AFC
FUN_02094AFC:
stmdb sp!, {r4-r6,lr}
mov r6, r0
mov r2, r1, asr #0x4
add r2, r1, r2, lsr #0x1b
mov r3, r1, lsr #0x1f
rsb r1, r3, r1, lsl #0x1b
ldr r4, [r6, #0x4]
mov r5, r2, asr #0x5
cmp r4, r5
add r4, r3, r1, ror #0x1b
bgt _02094B7C
ldr r2, [r6, #0x8]
add r1, r5, #0x1
cmp r1, r2
ble _02094B3C
bl FUN_02094EBC
_02094B3C:
cmp r0, #0x0
moveq r0, #0x0
ldmeqia sp!, {r4-r6,lr}
bxeq lr
ldr r3, [r6, #0x4]
add r2, r5, #0x1
cmp r3, r2
bge _02094B74
mov r1, #0x0
_02094B60:
ldr r0, [r6, #0x0]
str r1, [r0, r3, lsl #0x2]
add r3, r3, #0x1
cmp r3, r2
blt _02094B60
_02094B74:
add r0, r5, #0x1
str r0, [r6, #0x4]
_02094B7C:
ldr r2, [r6, #0x0]
mov r0, #0x1
ldr r1, [r2, r5, lsl #0x2]
orr r1, r1, r0, lsl r4
str r1, [r2, r5, lsl #0x2]
ldmia sp!, {r4-r6,lr}
bx lr
arm_func_start FUN_02094B98
FUN_02094B98:
ldr r3, [r0, #0x4]
ldr r2, [r1, #0x4]
subs r2, r3, r2
movne r0, r2
bxne lr
subs r2, r3, #0x1
ldr r12, [r0, #0x0]
ldr r3, [r1, #0x0]
bmi _02094BE4
_02094BBC:
ldr r1, [r12, r2, lsl #0x2]
ldr r0, [r3, r2, lsl #0x2]
cmp r1, r0
beq _02094BDC
cmp r1, r0
movhi r0, #0x1
mvnls r0, #0x0
bx lr
_02094BDC:
subs r2, r2, #0x1
bpl _02094BBC
_02094BE4:
mov r0, #0x0
bx lr
arm_func_start FUN_02094BEC
FUN_02094BEC: ; 0x02094BEC
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
mov r5, r0
mov r4, r1
bl FUN_02095188
add r1, r0, #0x7
mov r0, r1, asr #0x2
add r0, r1, r0, lsr #0x1d
mov r0, r0, asr #0x3
cmp r0, #0x0
addle sp, sp, #0x4
sub r12, r0, #0x1
ldmleia sp!, {r4-r5,lr}
bxle lr
_02094C24:
mov r3, r12, lsr #0x1f
mov r1, r12, asr #0x1
rsb r2, r3, r12, lsl #0x1e
add r1, r12, r1, lsr #0x1e
add r2, r3, r2, ror #0x1e
ldr r3, [r5, #0x0]
mov r1, r1, asr #0x2
ldr r3, [r3, r1, lsl #0x2]
mov r1, r2, lsl #0x3
mov r1, r3, lsr r1
cmp r12, #0x0
strb r1, [r4], #0x1
sub r12, r12, #0x1
bgt _02094C24
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_02094C68
FUN_02094C68:
stmdb sp!, {r4-r7,lr}
sub sp, sp, #0x4
movs r5, r2
mov r7, r0
mov r6, r1
bne _02094C88
bl FUN_02094FE0
mov r5, r0
_02094C88:
cmp r5, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
cmp r6, #0x0
mov r4, #0x0
addeq sp, sp, #0x4
moveq r0, r5
streq r4, [r5, #0x4]
ldmeqia sp!, {r4-r7,lr}
bxeq lr
add r0, r6, #0x2
mov r2, r0, lsl #0x3
add r1, r2, #0x1f
mov r0, r1, asr #0x4
add r0, r1, r0, lsr #0x1b
ldr r1, [r5, #0x8]
mov r0, r0, asr #0x5
cmp r0, r1
movle r0, r5
ble _02094CF8
mov r0, r2, asr #0x4
add r0, r2, r0, lsr #0x1b
mov r1, r0, asr #0x5
mov r0, r5
add r1, r1, #0x1
bl FUN_02094EBC
_02094CF8:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r7,lr}
bxeq lr
sub r0, r6, #0x1
mov r1, r0, lsr #0x2
add r12, r1, #0x1
cmp r6, #0x0
str r12, [r5, #0x4]
and r3, r0, #0x3
sub r6, r6, #0x1
beq _02094D64
mov r1, #0x0
mov r0, #0x3
_02094D34:
ldrb r2, [r7], #0x1
cmp r3, #0x0
sub r3, r3, #0x1
orr r4, r2, r4, lsl #0x8
ldreq r2, [r5, #0x0]
subeq r12, r12, #0x1
streq r4, [r2, r12, lsl #0x2]
moveq r4, r1
moveq r3, r0
cmp r6, #0x0
sub r6, r6, #0x1
bne _02094D34
_02094D64:
mov r0, r5
bl FUN_02095040
mov r0, r5
add sp, sp, #0x4
ldmia sp!, {r4-r7,lr}
bx lr
arm_func_start FUN_02094D7C
FUN_02094D7C:
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
mov r4, r0
ldr r2, [r4, #0x8]
mov r5, r1
cmp r2, #0x1
bge _02094DA0
mov r1, #0x2
bl FUN_02094EBC
_02094DA0:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
bxeq lr
mov r0, #0x0
str r0, [r4, #0xc]
str r0, [r4, #0x4]
ldr r0, [r4, #0x0]
str r5, [r0, #0x0]
ldr r0, [r4, #0x0]
ldr r0, [r0, #0x0]
cmp r0, #0x0
movne r0, #0x1
strne r0, [r4, #0x4]
mov r0, #0x1
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_02094DEC
FUN_02094DEC: ; 0x02094DEC
stmdb sp!, {r4,lr}
mov r4, r0
ldr r0, [r4, #0x0]
cmp r0, #0x0
beq _02094E10
ldr r2, [r4, #0x8]
mov r1, #0x0
mov r2, r2, lsl #0x2
bl MI_CpuFill8
_02094E10:
mov r0, #0x0
str r0, [r4, #0x4]
str r0, [r4, #0xc]
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02094E24
FUN_02094E24:
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
mov r5, r0
mov r4, r1
cmp r5, r4
addeq sp, sp, #0x4
ldmeqia sp!, {r4-r5,lr}
bxeq lr
ldr r1, [r4, #0x4]
ldr r2, [r5, #0x8]
cmp r1, r2
ble _02094E58
bl FUN_02094EBC
_02094E58:
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {r4-r5,lr}
bxeq lr
ldr r2, [r4, #0x4]
ldr r0, [r4, #0x0]
ldr r1, [r5, #0x0]
mov r2, r2, lsl #0x2
bl MI_CpuCopy8
ldr r0, [r4, #0x4]
str r0, [r5, #0x4]
ldr r0, [r5, #0x4]
cmp r0, #0x0
bne _02094EA4
ldr r1, [r5, #0x0]
cmp r1, #0x0
movne r0, #0x0
strne r0, [r1, #0x0]
_02094EA4:
ldr r1, [r4, #0xc]
mov r0, r5
str r1, [r5, #0xc]
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_02094EBC
FUN_02094EBC:
stmdb sp!, {r4-r6,lr}
mov r5, r0
ldr r0, [r5, #0x8]
mov r4, r1
cmp r4, r0
ble _02094F30
ldr r0, [r5, #0x10]
ands r0, r0, #0x2
movne r0, #0x0
ldmneia sp!, {r4-r6,lr}
bxne lr
add r0, r4, #0x1
mov r0, r0, lsl #0x2
bl CallCustomAllocator
movs r6, r0
moveq r0, #0x0
ldmeqia sp!, {r4-r6,lr}
bxeq lr
ldr r0, [r5, #0x0]
cmp r0, #0x0
beq _02094F28
ldr r2, [r5, #0x4]
mov r1, r6
mov r2, r2, lsl #0x2
bl MI_CpuCopy8
ldr r0, [r5, #0x0]
bl CallCustomDestructor
_02094F28:
str r6, [r5, #0x0]
str r4, [r5, #0x8]
_02094F30:
mov r0, r5
ldmia sp!, {r4-r6,lr}
bx lr
arm_func_start FUN_02094F3C
FUN_02094F3C: ; 0x02094F3C
stmdb sp!, {r4-r6,lr}
mov r6, r0
add r4, r6, #0x4
mov r5, #0x0
_02094F4C:
mov r0, r4
bl FUN_02095164
add r5, r5, #0x1
cmp r5, #0xc
add r4, r4, #0x14
blt _02094F4C
ldr r0, [r6, #0x108]
ands r0, r0, #0x1
ldmeqia sp!, {r4-r6,lr}
bxeq lr
mov r0, r6
bl CallCustomDestructor
ldmia sp!, {r4-r6,lr}
bx lr
arm_func_start FUN_02094F84
FUN_02094F84: ; 0x02094F84
stmdb sp!, {r4,lr}
mov r1, #0x0
mov r2, #0x110
mov r4, r0
bl MI_CpuFill8
mov r0, #0x0
str r0, [r4, #0x0]
str r0, [r4, #0x108]
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02094FAC
FUN_02094FAC: ; 0x02094FAC
stmdb sp!, {r4,lr}
mov r0, #0x110
bl CallCustomAllocator
movs r4, r0
moveq r0, #0x0
ldmeqia sp!, {r4,lr}
bxeq lr
bl FUN_02094F84
mov r1, #0x1
mov r0, r4
str r1, [r4, #0x108]
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02094FE0
FUN_02094FE0: ; 0x02094FE0
stmdb sp!, {lr}
sub sp, sp, #0x4
mov r0, #0x14
bl CallCustomAllocator
cmp r0, #0x0
addeq sp, sp, #0x4
moveq r0, #0x0
ldmeqia sp!, {lr}
bxeq lr
mov r1, #0x1
str r1, [r0, #0x10]
mov r1, #0x0
str r1, [r0, #0x4]
str r1, [r0, #0xc]
str r1, [r0, #0x8]
str r1, [r0, #0x0]
add sp, sp, #0x4
ldmia sp!, {lr}
bx lr
arm_func_start FUN_0209502C
FUN_0209502C:
ldr ip, _0209503C ; =MI_CpuFill8
mov r1, #0x0
mov r2, #0x14
bx r12
.balign 4
_0209503C: .word MI_CpuFill8
arm_func_start FUN_02095040
FUN_02095040:
ldr r3, [r0, #0x4]
cmp r3, #0x0
bxle lr
ldr r2, [r0, #0x0]
sub r1, r3, #0x1
cmp r3, #0x0
add r3, r2, r1, lsl #0x2
bxle lr
add r2, r0, #0x4
_02095064:
ldr r1, [r3], #-0x4
cmp r1, #0x0
bxne lr
ldr r1, [r2, #0x0]
sub r1, r1, #0x1
str r1, [r2, #0x0]
ldr r1, [r0, #0x4]
cmp r1, #0x0
bgt _02095064
bx lr
arm_func_start FUN_0209508C
FUN_0209508C:
stmdb sp!, {r4-r5,lr}
sub sp, sp, #0x4
mov r5, r0
ldr r2, [r5, #0x4]
mov r4, r1
cmp r2, r4
addge sp, sp, #0x4
ldmgeia sp!, {r4-r5,lr}
bxge lr
ldr r2, [r5, #0x8]
cmp r4, r2
ble _020950C0
bl FUN_02094EBC
_020950C0:
ldr r0, [r5, #0x0]
cmp r0, #0x0
addeq sp, sp, #0x4
ldmeqia sp!, {r4-r5,lr}
bxeq lr
ldr r2, [r5, #0x4]
cmp r2, r4
addge sp, sp, #0x4
ldmgeia sp!, {r4-r5,lr}
bxge lr
mov r1, #0x0
_020950EC:
ldr r0, [r5, #0x0]
str r1, [r0, r2, lsl #0x2]
add r2, r2, #0x1
cmp r2, r4
blt _020950EC
add sp, sp, #0x4
ldmia sp!, {r4-r5,lr}
bx lr
arm_func_start FUN_0209510C
FUN_0209510C:
stmdb sp!, {r4,lr}
movs r4, r0
ldmeqia sp!, {r4,lr}
bxeq lr
ldr r0, [r4, #0x0]
cmp r0, #0x0
beq _02095138
ldr r1, [r4, #0x10]
ands r1, r1, #0x2
bne _02095138
bl CallCustomDestructor
_02095138:
ldr r0, [r4, #0x10]
orr r0, r0, #0x8000
str r0, [r4, #0x10]
ldr r0, [r4, #0x10]
ands r0, r0, #0x1
ldmeqia sp!, {r4,lr}
bxeq lr
mov r0, r4
bl CallCustomDestructor
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02095164
FUN_02095164: ; 0x02095164
stmdb sp!, {r4,lr}
movs r4, r0
ldmeqia sp!, {r4,lr}
bxeq lr
bl FUN_02094DEC
mov r0, r4
bl FUN_0209510C
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_02095188
FUN_02095188: ; 0x02095188
stmdb sp!, {r4,lr}
ldr r1, [r0, #0x4]
cmp r1, #0x0
moveq r0, #0x0
ldmeqia sp!, {r4,lr}
bxeq lr
ldr r0, [r0, #0x0]
sub r4, r1, #0x1
ldr r0, [r0, r4, lsl #0x2]
bl FUN_020951BC
add r0, r0, r4, lsl #0x5
ldmia sp!, {r4,lr}
bx lr
arm_func_start FUN_020951BC
FUN_020951BC: ; 0x020951BC
mov r1, #0x10000
rsb r1, r1, #0x0
ands r1, r0, r1
beq _020951DC
ands r1, r0, #0xff000000
movne r2, #0x18
moveq r2, #0x10
b _020951E8
_020951DC:
ands r1, r0, #0xff00
movne r2, #0x8
moveq r2, #0x0
_020951E8:
mov r1, r0, lsr r2
ands r0, r1, #0xf0
ldreq r0, _02095218 ; =UNK_020FF524
ldreqsb r0, [r0, r1]
addeq r0, r0, r2
bxeq lr
ldr r0, _02095218 ; =UNK_020FF524
mov r1, r1, lsr #0x4
ldrsb r0, [r0, r1]
add r0, r0, r2
add r0, r0, #0x4
bx lr
.balign 4
_02095218: .word UNK_020FF524
arm_func_start FUN_0209521C
FUN_0209521C: ; 0x0209521C
stmdb sp!, {r4-r7,lr}
sub sp, sp, #0x4
mov r3, #0x0
strb r3, [r0, #0x0]
cmp r2, #0x10
strb r3, [r0, #0x1]
movhi r2, #0x10
add r0, r0, #0x4
_0209523C:
strb r3, [r0, r3]
add r3, r3, #0x1
cmp r3, #0x100
blt _0209523C
mov r6, #0x0
mov r7, r6
mov r4, r6
mov r3, r6
and r12, r2, #0xff
_02095260:
ldrb r5, [r0, r4]
ldrb lr, [r1, r7]
add r2, r7, #0x1
and r7, r2, #0xff
add r2, r5, lr
add r2, r6, r2
and r6, r2, #0xff
ldrb r2, [r0, r6]
add lr, r0, r4
add r4, r4, #0x1
strb r2, [lr, #0x0]
cmp r7, r12
moveq r7, r3
cmp r4, #0x100
strb r5, [r0, r6]
blt _02095260
add sp, sp, #0x4
ldmia sp!, {r4-r7,lr}
bx lr
arm_func_start FUN_020952AC
FUN_020952AC: ; 0x020952AC
stmdb sp!, {r4-r9,lr}
ldrb r7, [r0, #0x0]
ldrb r6, [r0, #0x1]
add r0, r0, #0x4
mov lr, #0x1000000
add r7, lr, r7, lsl #0x18
mov r6, r6, lsl #0x18
ldrb r9, [r0, r7, lsr #0x18]
subs r2, r2, #0x1
bmi _0209530C
_020952D4:
add r6, r6, r9, lsl #0x18
subs r2, r2, #0x1
ldrb r8, [r0, r6, lsr #0x18]
ldrb r5, [r1], #0x1
strb r8, [r0, r7, lsr #0x18]
strb r9, [r0, r6, lsr #0x18]
add r4, r9, r8
and r4, r4, #0xff
add r7, r7, lr
ldrb r4, [r0, r4]
ldrb r9, [r0, r7, lsr #0x18]
eor r5, r5, r4
strb r5, [r3], #0x1
bge _020952D4
_0209530C:
sub r7, r7, lr
mov r7, r7, lsr #0x18
mov r6, r6, lsr #0x18
strb r7, [r0, #-0x4]
strb r6, [r0, #-0x3]
ldmia sp!, {r4-r9,pc}
|