forked from trevor403/xd-asm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.py
157 lines (152 loc) · 14 KB
/
check.py
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
a = [
(u'FUN_80014d74', [['0x80014d74', '0x80014f8b'], ['0x80014f90', '0x80014fdb']]),
(u'FUN_8001e7e4', [['0x8001e7e4', '0x8001e83f'], ['0x8001e844', '0x8001e8a3']]),
(u'FUN_8003a7c0', [['0x8003a7c0', '0x8003a7e3'], ['0x8003a7e8', '0x8003a817']]),
(u'FUN_8006f9b0', [['0x8006f9b0', '0x8006fe03'], ['0x8006fe08', '0x80071663'], ['0x80071668', '0x80071c03']]),
(u'FUN_8007b520', [['0x8007b520', '0x8007b943'], ['0x8007b948', '0x8007bc17']]),
(u'FUN_8008b2e0', [['0x8008b2e0', '0x8008b9d3'], ['0x8008b9d8', '0x8008ba83'], ['0x8008ba88', '0x8008bb47'], ['0x8008bb4c', '0x8008bd2b'], ['0x8008bd30', '0x8008bddb'], ['0x8008bde0', '0x8008be9f'], ['0x8008bea4', '0x8008c0af'], ['0x8008c0b4', '0x8008c15f'], ['0x8008c164', '0x8008c223'], ['0x8008c228', '0x8008c5e3']]),
(u'FUN_8008c5e4', [['0x8008c5e4', '0x8008ca73'], ['0x8008ca78', '0x8008cb23'], ['0x8008cb28', '0x8008cbe7'], ['0x8008cbec', '0x8008d067']]),
(u'FUN_8008d068', [['0x8008d068', '0x8008d1cf'], ['0x8008d1d4', '0x8008d27f'], ['0x8008d284', '0x8008d343'], ['0x8008d348', '0x8008d637'], ['0x8008d63c', '0x8008d6e7'], ['0x8008d6ec', '0x8008d7ab'], ['0x8008d7b0', '0x8008d8ef']]),
(u'FUN_8008e2a0', [['0x8008e2a0', '0x8008e87f'], ['0x8008e884', '0x8008e92f'], ['0x8008e934', '0x8008e9f3'], ['0x8008e9f8', '0x8008ed67'], ['0x8008ed6c', '0x8008ee17'], ['0x8008ee1c', '0x8008eedb'], ['0x8008eee0', '0x8008f137'], ['0x8008f13c', '0x8008f1e7'], ['0x8008f1ec', '0x8008f2ab'], ['0x8008f2b0', '0x8008f4e7'], ['0x8008f4ec', '0x8008f597'], ['0x8008f59c', '0x8008f65b'], ['0x8008f660', '0x8008f907'], ['0x8008f90c', '0x8008f9b7'], ['0x8008f9bc', '0x8008fa7b'], ['0x8008fa80', '0x8009124f'], ['0x80091254', '0x800912ff'], ['0x80091304', '0x800913c3'], ['0x800913c8', '0x8009151b']]),
(u'FUN_800937d4', [['0x800937d4', '0x80093b0f'], ['0x80093b14', '0x80093bab'], ['0x80093bb0', '0x80093c67'], ['0x80093c6c', '0x800941ff'], ['0x80094204', '0x8009429b'], ['0x800942a0', '0x80094357'], ['0x8009435c', '0x8009481f'], ['0x80094824', '0x800948bb'], ['0x800948c0', '0x80094977'], ['0x8009497c', '0x80094f27']]),
(u'FUN_80097368', [['0x80097368', '0x8009744b'], ['0x80097450', '0x800974e7'], ['0x800974ec', '0x800975a3'], ['0x800975a8', '0x80097737'], ['0x8009773c', '0x800977d3'], ['0x800977d8', '0x8009788f'], ['0x80097894', '0x800979ff']]),
(u'GXSetChanAmbColor', [['0x800caf8c', '0x800cb03b'], ['0x800cb040', '0x800cb073']]),
(u'GXSetChanMatColor', [['0x800cb074', '0x800cb123'], ['0x800cb128', '0x800cb15b']]),
(u'GXSetGPMetric', [['0x800cf82c', '0x800cf85f'], ['0x800cf864', '0x800cf8e3'], ['0x800cf8e8', '0x800d0073']]),
(u'TRKSwapAndGo', [['0x800d6764', '0x800d687b'], ['0x800d6fe4', '0x800d708f']]),
(u'TRKSaveExtended1Block', [['0x800d80a0', '0x800d81ab'], ['0x800d81f0', '0x800d822b']]),
(u'TRKRestoreExtended1Block', [['0x800d8258', '0x800d82c7'], ['0x800d82e0', '0x800d831b'], ['0x800d834c', '0x800d840f']]),
(u'InitMetroTRK_BBA', [['0x800d84a8', '0x800d8537'], ['0x800d8a4c', '0x800d8aa3']]),
(u'TRKLoadContext', [['0x800d6534', '0x800d6763'], ['0x800d8aa4', '0x800d8b2b']]),
(u'__two_exp', [['0x800dccb8', '0x800dcdef'], ['0x800dcdf4', '0x800dceeb'], ['0x800dcef0', '0x800dcfe7'], ['0x800dcfec', '0x800dd0e3'], ['0x800dd0e8', '0x800dd1df'], ['0x800dd1e4', '0x800dd2db'], ['0x800dd2e0', '0x800dd3d7'], ['0x800dd3dc', '0x800dd4d3'], ['0x800dd4d8', '0x800dd5cf'], ['0x800dd5d4', '0x800dd6cb'], ['0x800dd6d0', '0x800dd7c7'], ['0x800dd7cc', '0x800dd8c3'], ['0x800dd8c8', '0x800dd9bb'], ['0x800dd9c0', '0x800ddab3'], ['0x800ddab8', '0x800ddbab'], ['0x800ddbb0', '0x800ddca3'], ['0x800ddca8', '0x800ddd9f'], ['0x800ddda4', '0x800dde9b'], ['0x800ddea0', '0x800ddf97'], ['0x800ddf9c', '0x800de093'], ['0x800de098', '0x800de18f'], ['0x800de194', '0x800de43b']]),
(u'__strtold', [['0x800e1df4', '0x800e229b'], ['0x800e22e0', '0x800e2deb']]),
(u'FUN_800e3804', [['0x800e3804', '0x800e38c3'], ['0x800e38c8', '0x800e3a93']]),
(u'__ieee754_rem_pio2', [['0x800e4aa0', '0x800e4d13'], ['0x800e4d18', '0x800e4e3f']]),
(u'SIGetTypeAsync', [['0x800eb008', '0x800eb0ff'], ['0x800eb104', '0x800eb143']]),
(u'FUN_800eb144', [['0x800eb144', '0x800eb1d7'], ['0x800eb1dc', '0x800eb21b'], ['0x800eb220', '0x800eb28f']]),
(u'FUN_800eef54', [['0x800eef54', '0x800eefff'], ['0x800ef004', '0x800ef08f']]),
(u'FUN_800ef52c', [['0x800ef52c', '0x800ef58b'], ['0x800ef590', '0x800ef6df'], ['0x800ef6e4', '0x800ef883'], ['0x800ef888', '0x800ef907']]),
(u'FUN_800f9414', [['0x800f9414', '0x800f94b3'], ['0x800f94b8', '0x800f9543']]),
(u'FUN_800feee0', [['0x800feee0', '0x800ff117'], ['0x800ff11c', '0x800ff16b']]),
(u'FUN_80101584', [['0x80101584', '0x801016af'], ['0x801016b4', '0x801016d3']]),
(u'FUN_80101e54', [['0x80101e54', '0x80102353'], ['0x80102358', '0x80102403']]),
(u'Maybe_GStextureInit', [['0x80102404', '0x80102b1f'], ['0x80102b24', '0x80102bcb']]),
(u'FUN_80102bcc', [['0x80102bcc', '0x80102e37'], ['0x80102e3c', '0x80103057']]),
(u'FUN_8010643c', [['0x8010643c', '0x801066ef'], ['0x801066f4', '0x8010682f']]),
(u'FUN_80106830', [['0x80106830', '0x80106abb'], ['0x80106ac0', '0x80106b67'], ['0x80106b6c', '0x80106c8b']]),
(u'FUN_8010b320', [['0x8010b320', '0x8010b383'], ['0x8010b388', '0x8010b457']]),
(u'FUN_801132ec', [['0x801132ec', '0x8011332f'], ['0x80113334', '0x80113563']]),
(u'FUN_801162b8', [['0x801162b8', '0x801162c7'], ['0x801162cc', '0x801162ef']]),
(u'FUN_801173a8', [['0x801173a8', '0x801173eb'], ['0x801173f0', '0x8011743b']]),
(u'FUN_8011e6c8', [['0x8011e6c8', '0x8011e717'], ['0x8011e71c', '0x8011e73f']]),
(u'FUN_8012239c', [['0x8012239c', '0x801223bb'], ['0x801223c0', '0x801223eb']]),
(u'FUN_80128000', [['0x80128000', '0x8012804f'], ['0x80128054', '0x80128107']]),
(u'FUN_80129140', [['0x80129140', '0x80129163'], ['0x80129168', '0x8012917f']]),
(u'FUN_8012dc3c', [['0x8012dc3c', '0x8012de5b'], ['0x8012de60', '0x8012decf']]),
(u'FUN_8012e930', [['0x8012e930', '0x8012ec0b'], ['0x8012ec10', '0x8012ec63']]),
(u'FUN_8012ec64', [['0x8012ec64', '0x8012ee37'], ['0x8012ee3c', '0x8012ee9b']]),
(u'FUN_80132368', [['0x80132368', '0x801323b3'], ['0x801323b8', '0x801323fb']]),
(u'FUN_80132b40', [['0x80132b40', '0x80132b63'], ['0x80132b68', '0x80132b9b']]),
(u'FUN_80135de8', [['0x80135de8', '0x80135df7'], ['0x80135dfc', '0x80135e3f']]),
(u'FUN_80137628', [['0x80137628', '0x8013776f'], ['0x80137774', '0x8013783b']]),
(u'FUN_8013ed18', [['0x8013ed18', '0x8013eed7'], ['0x8013eedc', '0x8013ef0b']]),
(u'FUN_80152a50', [['0x80152a50', '0x80152aa3'], ['0x80152aa8', '0x80152ad7']]),
(u'FUN_801533b8', [['0x801533b8', '0x801533ff'], ['0x80153404', '0x80153457']]),
(u'FUN_801585c8', [['0x801585c8', '0x80158673'], ['0x80158678', '0x801586bf']]),
(u'FUN_80185464', [['0x80185464', '0x801854cf'], ['0x801854d4', '0x8018550f'], ['0x80185514', '0x8018558f']]),
(u'FUN_801a120c', [['0x801a120c', '0x801a13c3'], ['0x801a13c8', '0x801a14e7']]),
(u'FUN_801a5cd0', [['0x801a5cd0', '0x801a5dbb'], ['0x801a5dc0', '0x801a6ea7']]),
(u'FUN_801b9520', [['0x801b9520', '0x801b9557'], ['0x801b955c', '0x801b959b']]),
(u'FUN_801c7984', [['0x801c7984', '0x801c79a3'], ['0x801c79a8', '0x801c79d3']]),
(u'FUN_801d1ad4', [['0x801d1ad4', '0x801d1aeb'], ['0x801d1af0', '0x801d1b1f']]),
(u'FUN_801d1b20', [['0x801d1b20', '0x801d1b3b'], ['0x801d1b40', '0x801d1ba3'], ['0x801d1ba8', '0x801d1c1f']]),
(u'FUN_801d1c20', [['0x801d1c20', '0x801d1c43'], ['0x801d1c48', '0x801d1ca3']]),
(u'FUN_801d1ca4', [['0x801d1ca4', '0x801d1cc7'], ['0x801d1ccc', '0x801d1d27']]),
(u'FUN_801d1d28', [['0x801d1d28', '0x801d1d4b'], ['0x801d1d50', '0x801d1dab']]),
(u'FUN_801d1dac', [['0x801d1dac', '0x801d1dcf'], ['0x801d1dd4', '0x801d1e1b']]),
(u'FUN_801d1e1c', [['0x801d1e1c', '0x801d1e3f'], ['0x801d1e44', '0x801d1e8b']]),
(u'FUN_801d1e8c', [['0x801d1e8c', '0x801d1eaf'], ['0x801d1eb4', '0x801d1efb']]),
(u'FUN_801d1efc', [['0x801d1efc', '0x801d1f1b'], ['0x801d1f20', '0x801d1f7b']]),
(u'FUN_801d1f7c', [['0x801d1f7c', '0x801d1f9b'], ['0x801d1fa0', '0x801d1ffb']]),
(u'FUN_801d1ffc', [['0x801d1ffc', '0x801d2013'], ['0x801d2018', '0x801d2063']]),
(u'FUN_801d2064', [['0x801d2064', '0x801d2083'], ['0x801d2088', '0x801d20e3']]),
(u'FUN_801d20e4', [['0x801d20e4', '0x801d2103'], ['0x801d2108', '0x801d2163']]),
(u'FUN_801d2164', [['0x801d2164', '0x801d2183'], ['0x801d2188', '0x801d21bf']]),
(u'FUN_801d21c0', [['0x801d21c0', '0x801d21df'], ['0x801d21e4', '0x801d223f']]),
(u'FUN_801d2240', [['0x801d2240', '0x801d225f'], ['0x801d2264', '0x801d22c3']]),
(u'FUN_801d22c4', [['0x801d22c4', '0x801d22db'], ['0x801d22e0', '0x801d2357']]),
(u'FUN_801d2358', [['0x801d2358', '0x801d2383'], ['0x801d2388', '0x801d23cb']]),
(u'FUN_801d23cc', [['0x801d23cc', '0x801d23ef'], ['0x801d23f4', '0x801d242f']]),
(u'FUN_801d2430', [['0x801d2430', '0x801d2453'], ['0x801d2458', '0x801d24ab']]),
(u'FUN_801d24ac', [['0x801d24ac', '0x801d24cf'], ['0x801d24d4', '0x801d252b']]),
(u'FUN_801d252c', [['0x801d252c', '0x801d254f'], ['0x801d2554', '0x801d25ab']]),
(u'FUN_801d25ac', [['0x801d25ac', '0x801d25d3'], ['0x801d25d8', '0x801d262b'], ['0x801d2630', '0x801d2687']]),
(u'FUN_801d2688', [['0x801d2688', '0x801d26ab'], ['0x801d26b0', '0x801d2707']]),
(u'FUN_801d2708', [['0x801d2708', '0x801d272b'], ['0x801d2730', '0x801d2787']]),
(u'FUN_801d2788', [['0x801d2788', '0x801d27ab'], ['0x801d27b0', '0x801d2807']]),
(u'FUN_801d2808', [['0x801d2808', '0x801d282b'], ['0x801d2830', '0x801d2887']]),
(u'FUN_801d2888', [['0x801d2888', '0x801d28ab'], ['0x801d28b0', '0x801d28f7']]),
(u'FUN_801d2fc0', [['0x801d2fc0', '0x801d2feb'], ['0x801d2ff0', '0x801d3057']]),
(u'FUN_801d31c0', [['0x801d31c0', '0x801d31d3'], ['0x801d31d8', '0x801d31fb']]),
(u'FUN_801d31fc', [['0x801d31fc', '0x801d320f'], ['0x801d3214', '0x801d324b']]),
(u'FUN_801d41e8', [['0x801d41e8', '0x801d420b'], ['0x801d4210', '0x801d426b']]),
(u'FUN_801da0b0', [['0x801da0b0', '0x801da12b'], ['0x801da130', '0x801da187']]),
(u'FUN_801db490', [['0x801db490', '0x801db8ef'], ['0x801db950', '0x801db9af']]),
(u'FUN_801dc4f4', [['0x801dc4f4', '0x801dc537'], ['0x801dc53c', '0x801dc583']]),
(u'FUN_801dc584', [['0x801dc584', '0x801dc5bb'], ['0x801dc5c0', '0x801dc69b']]),
(u'FUN_801ddd54', [['0x801ddd54', '0x801dde7b'], ['0x801dde80', '0x801ddefb']]),
(u'FUN_801e25a8', [['0x801e25a8', '0x801e2683'], ['0x801e2688', '0x801e2b03']]),
(u'GSmovieDaemonThread__movieDaemon__Fv', [['0x801e2b04', '0x801e327b'], ['0x801e3280', '0x801e3513']]),
(u'__THPDecompressYUV', [['0x801e61fc', '0x801e62c7'], ['0x801e62cc', '0x801e6307']]),
(u'FUN_801f88b8', [['0x801f88b8', '0x801f8947'], ['0x801f894c', '0x801f8983']]),
(u'FUN_801f9898', [['0x801f9898', '0x801f98cb'], ['0x801f98d0', '0x801f9937']]),
(u'FUN_8020128c', [['0x8020128c', '0x802012df'], ['0x802012e4', '0x8020139f']]),
(u'FUN_802017f8', [['0x802017f8', '0x80201857'], ['0x8020185c', '0x802018e7']]),
(u'FUN_8020cd70', [['0x8020cd70', '0x8020ce93'], ['0x8020ce98', '0x8020ceb7']]),
(u'FUN_8020ed04', [['0x8020ed04', '0x8020f043'], ['0x8020f048', '0x8020f0d3']]),
(u'FUN_80216a48', [['0x80216a48', '0x80216ad7'], ['0x80216adc', '0x80216c6b']]),
(u'FUN_80223db8', [['0x80223db8', '0x802247bb'], ['0x802247c0', '0x802247f3']]),
(u'FUN_80241a1c', [['0x80241a1c', '0x80241ac3'], ['0x80241ac8', '0x80241ecf']]),
(u'FUN_8024c088', [['0x8024c088', '0x8024c0ff'], ['0x8024c104', '0x8024c187']]),
(u'FUN_8024cb9c', [['0x8024cb9c', '0x8024cd43'], ['0x8024cd48', '0x8024cf3b'], ['0x8024cf40', '0x8024d06f']]),
(u'FUN_8024f6f0', [['0x8024f6f0', '0x8024f773'], ['0x8024f778', '0x8024f8a3']]),
(u'FUN_8024f9f0', [['0x8024f9f0', '0x8024fa8f'], ['0x8024fa94', '0x8024fc53']]),
(u'FUN_80259958', [['0x80259958', '0x802599f3'], ['0x802599f8', '0x80259c3f']]),
(u'FUN_8025bd44', [['0x8025bd44', '0x8025bdb3'], ['0x8025bdb8', '0x8025bf0f']]),
(u'FUN_8025c048', [['0x8025c048', '0x8025c23b'], ['0x8025c240', '0x8025c303']]),
(u'FUN_8025d930', [['0x8025d930', '0x8025da0f'], ['0x8025da14', '0x8025dad7']]),
(u'FUN_8025eb28', [['0x8025eb28', '0x8025eb4f'], ['0x8025eb54', '0x8025eb93']]),
(u'FUN_8025eb94', [['0x8025eb94', '0x8025ebbb'], ['0x8025ebc0', '0x8025ec17']]),
(u'FUN_8025edb4', [['0x8025edb4', '0x8025edc3'], ['0x8025edc8', '0x8025ee0b']]),
(u'FUN_8025f518', [['0x8025f518', '0x8025f573'], ['0x8025f578', '0x8025f5ab']]),
(u'FUN_80260240', [['0x80260240', '0x802602c7'], ['0x802602cc', '0x8026043f']]),
(u'FUN_8026b5f0', [['0x8026b5f0', '0x8026b81b'], ['0x8026b820', '0x8026baaf']]),
(u'FUN_8027333c', [['0x8027333c', '0x802733f7'], ['0x802733fc', '0x80273ab3']]),
(u'FUN_8028a1d4', [['0x8028a1d4', '0x8028a25f'], ['0x8028a264', '0x8028a6ef']]),
(u'FUN_80291464', [['0x80291464', '0x8029150b'], ['0x80291510', '0x802916d3']]),
(u'FUN_80291984', [['0x80291984', '0x80291b3b'], ['0x80291b40', '0x80291d03']]),
(u'FUN_8029af30', [['0x8029af30', '0x8029b11b'], ['0x8029b120', '0x8029b6c3']]),
(u'FUN_802aa1c4', [['0x802aa1c4', '0x802aa253'], ['0x802aa258', '0x802aa2d7'], ['0x802aa2dc', '0x802aa2f3']]),
(u'FUN_802b10f4', [['0x802b10f4', '0x802b124b'], ['0x802b1250', '0x802b126b']]),
(u'FUN_802ba770', [['0x802ba770', '0x802ba7bf'], ['0x802ba7c4', '0x802baa33']]),
(u'FUN_802baa34', [['0x802baa34', '0x802baaab'], ['0x802baab0', '0x802bab17'], ['0x802bab1c', '0x802bad0b']]),
(u'FUN_802c38fc', [['0x802c38fc', '0x802c3a63'], ['0x802c3a68', '0x802c3ab3']]),
(u'FUN_802c960c', [['0x802c960c', '0x802c981f'], ['0x802c9824', '0x802c9893']]),
(u'FUN_802c9f1c', [['0x802c9f1c', '0x802c9fc3'], ['0x802c9fc8', '0x802ca26f']]),
(u'FUN_802ca270', [['0x802ca270', '0x802ca48f'], ['0x802ca494', '0x802ca623']]),
(u'FUN_802ca6c0', [['0x802ca6c0', '0x802ca743'], ['0x802ca748', '0x802ca837']]),
]
for name, b in a:
x = []
for i, pair in enumerate(b):
if i == len(b) - 1:
continue
curr_end = int(pair[1], 16) + 1
next_start = int(b[i+1][0], 16)
if next_start - curr_end == 4:
x.append(True)
else:
x.append(False)
if all(x):
print(name)
# break