Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2010
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 220.90 KB | None | 0 0
  1. 00002a10 sub_2A10:
  2. 00002a18 return 0;
  3.  
  4. 00002efc sub_2EFC:
  5. 00002efc /* Low-level instruction of type 44 */
  6. 00002f00 /* Low-level instruction of type 33 */
  7. 00002f04 R10 = R10 + R0;
  8. 00002f08 R11 = R11 + R0;
  9. 00002f0c R7 = R10 - 1;
  10.  
  11. 00002f10 loc_2F10:
  12. 00002f10 Cond = R10 - R11;
  13. 00002f14 if (Cond != 0) goto loc_2F1C;
  14.  
  15. 00002f18 sub_BFD8(R0, R1, R2, R3);
  16.  
  17. 00002f1c loc_2F1C:
  18. 00002f1c /* Low-level instruction of type 33 */
  19. 00002f20 /* Low-level instruction of type 44 */
  20. 00002f24 Cond = R3 & 1;
  21. 00002f28 if (Cond == 0) goto loc_2F2C;
  22.  
  23. 00002f9c sub_2F9C:
  24. 00002f9c /* Low-level instruction of type 43 */
  25. 00002fa2 Cond = 0;
  26. 00002fa2 R5 = 0;
  27. 00002fa4 Cond = 0;
  28. 00002fa6 Cond = 0;
  29. 00002faa R9 = R5;
  30. 00002fac R5 = 0x8f310000;
  31. 00002fae /* Low-level instruction of type 283 */
  32. 00002fb0 R8 = 1;
  33. 00002fba Cond = * (* 0x8700bc78 + 4) - 0x200;
  34. 00002fbe if (Cond != 0) goto loc_2FCA;
  35.  
  36. 00002fc4 /* Low-level instruction of type 255 */
  37. 00002fc8 goto loc_2FFA;
  38.  
  39. 00002fca loc_2FCA:
  40. 00002fce /* Low-level instruction of type 255 */
  41. 00002fd2 goto loc_2FFA;
  42.  
  43. 00002fd4 loc_2FD4:
  44. 00002fd4 Cond = R4 - 1;
  45. 00002fd6 if (Cond != 0) goto loc_2FFA;
  46.  
  47. 00002fd8 R8 = 6;
  48. 00002fe2 Cond = * (* 0x8700bc78 + 4) - 0x200;
  49. 00002fe6 if (Cond != 0) goto loc_2FF2;
  50.  
  51. 00002fec /* Low-level instruction of type 255 */
  52. 00002ff0 goto loc_2FFA;
  53.  
  54. 00002ff2 loc_2FF2:
  55. 00002ff6 /* Low-level instruction of type 255 */
  56.  
  57. 00002ffa loc_2FFA:
  58. 00003002 R10 = sub_4AEA(R8, R9, R2, R3);
  59. 00003004 R7 = R8;
  60. 00003006 goto loc_303A;
  61.  
  62. 00003008 loc_3008:
  63. 00003008 Cond = 0;
  64. 00003008 R6 = 0;
  65. 0000300a goto loc_3026;
  66.  
  67. 0000300c loc_300C:
  68. 0000300c Cond = 0;
  69. 00003018 R10 = sub_6AB0(R7, R6, R5, 0) & 0xff;
  70. 00003022 R5 = R5 + * (* 0x8700bc78 + 4);
  71. 00003024 Cond = R6 + 1;
  72. 00003024 R6 = R6 + 1;
  73.  
  74. 00003026 loc_3026:
  75. 0000302a R0 = * (* 0x8700bc78 + 12);
  76. 0000302c Cond = R0 - 1;
  77. 0000302e Cond = R0 - 1 - R6;
  78. 00003030 if (Cond < 0) goto loc_3038;
  79.  
  80. 00003032 Cond = R10;
  81. 00003036 if (Cond == 0) goto loc_300C;
  82.  
  83. 00003038 loc_3038:
  84. 00003038 Cond = R7 + 1;
  85. 00003038 R7 = R7 + 1;
  86.  
  87. 0000303a loc_303A:
  88. 0000303a Cond = R7 - R9;
  89. 0000303c if (Cond > 0) goto loc_3044;
  90.  
  91. 0000303e Cond = R10;
  92. 00003042 if (Cond == 0) goto loc_3008;
  93.  
  94. 0000304a sub_304A:
  95. 0000304a /* Low-level instruction of type 43 */
  96. 0000304e R4 = R0;
  97. 00003050 Cond = 0x58;
  98. 00003050 R5 = 0x58;
  99. 00003052 Cond = 0;
  100. 00003052 R7 = 0;
  101. 0000305e R0 = sub_6ED0(R4, R1, R2, R3);
  102. 00003062 /* Low-level instruction of type 251 */
  103. 00003064 Cond = R4 - 0x68;
  104. 00003066 if (Cond == 0) goto loc_306E;
  105.  
  106. 00003068 Cond = R4 - 0x69;
  107. 0000306a if (Cond != 0) goto loc_30A2;
  108.  
  109. 0000306c goto loc_3088;
  110.  
  111. 0000306e loc_306E:
  112. 0000306e R8 = 0x87000780;
  113. 00003072 Cond = R8;
  114. 00003076 if (Cond == 0) goto loc_3086;
  115.  
  116. 00003078 R0 = * (R8 + 4);
  117. 0000307c Cond = R0 - 0xb1;
  118. 0000307e if (Cond != 0) goto loc_3086;
  119.  
  120. 00003080 R7 = * (R8 + 0x24);
  121. 00003084 Cond = 0x23;
  122. 00003084 R5 = 0x23;
  123.  
  124. 00003086 loc_3086:
  125. 00003086 goto loc_30A6;
  126.  
  127. 00003088 loc_3088:
  128. 00003088 R9 = 0x8f311000;
  129. 0000308c Cond = R9;
  130. 00003090 if (Cond == 0) goto loc_30A0;
  131.  
  132. 00003092 R0 = * (R9 + 4);
  133. 00003096 Cond = R0 - 0xb1;
  134. 00003098 if (Cond != 0) goto loc_30A0;
  135.  
  136. 0000309a R7 = * (R9 + 0x24);
  137. 0000309e Cond = 0x23;
  138. 0000309e R5 = 0x23;
  139.  
  140. 000030a0 loc_30A0:
  141. 000030a0 goto loc_30A6;
  142.  
  143. 000030a2 loc_30A2:
  144. 000030a2 Cond = 0x58;
  145. 000030a2 R5 = 0x58;
  146. 000030a4 /* Low-level instruction of type 2 */
  147.  
  148. 000030a6 loc_30A6:
  149. 000030a6 /* Low-level instruction of type 2 */
  150. 000030a8 Cond = R5 - 0x23;
  151. 000030aa if (Cond != 0) goto loc_30C4;
  152.  
  153. 000030ac R0 = sub_6DEE(R0, R1, R2, R3);
  154. 000030b0 Cond = R0 - 2;
  155. 000030b2 if (Cond != 0) goto loc_30C4;
  156.  
  157. 000030b4 sub_6E1C(R0, R1, R2, R3);
  158. 000030b8 /* Low-level instruction of type 283 */
  159. 000030ba Cond = R7 - R6;
  160. 000030bc if (Cond < 0) goto loc_30C2;
  161.  
  162. 000030be Cond = 0x23;
  163. 000030c0 goto loc_30C4;
  164.  
  165. 000030c2 loc_30C2:
  166. 000030c2 Cond = 0x58;
  167.  
  168. 000030ca sub_30CA:
  169. 000030ca /* Low-level instruction of type 43 */
  170. 000030ce R0 = * 0x8700b6a0;
  171. 000030d0 var_10 = R0;
  172. 000030d2 Cond = 0;
  173. 000030d4 R4 = 0x8f311000;
  174. 000030da var_10 = sub_7026(R0, R1, R2, R3);
  175. 000030e0 Cond = var_10 - 0xf0;
  176. 000030e2 if (Cond != 0) goto loc_30EE;
  177.  
  178. 000030ec var_10 = sub_718E(0x870008d0, 0x870008e0, R2, R3);
  179.  
  180. 000030ee loc_30EE:
  181. 000030f2 Cond = var_10 - 0xf0;
  182. 000030f4 if (Cond != 0) goto loc_312E;
  183.  
  184. 000030f6 Cond = 0x39;
  185. 000030f8 var_10 = 0x39;
  186. 000030fe Cond = * (R4 + 8) - 0x80000000;
  187. 00003102 if (Cond < 0) goto loc_312E;
  188.  
  189. 00003106 Cond = * (R4 + 8) - 0x90000000;
  190. 0000310a if (Cond >= 0) goto loc_312E;
  191.  
  192. 00003110 Cond = 0;
  193. 00003114 Cond = 1;
  194. 0000311a var_10 = sub_7098(1, R4 + 8, 0, R3);
  195. 00003120 Cond = var_10 - 0xf0;
  196. 00003122 if (Cond != 0) goto loc_312E;
  197.  
  198. 00003124 Cond = 4;
  199. 0000312c var_10 = sub_711A(0x8f311000, 4, R2, R3);
  200.  
  201. 0000312e loc_312E:
  202. 00003132 Cond = var_10[1] - 1;
  203. 00003134 if (Cond != 0) goto loc_313C;
  204.  
  205. 00003136 Cond = 0xf0;
  206. 00003138 var_10 = 0xf0;
  207.  
  208. 00003140 sub_3140:
  209. 00003140 /* Low-level instruction of type 43 */
  210. 00003146 Cond = 0;
  211. 00003148 Cond = 0;
  212. 0000314a R0 = 0x8700b6a0;
  213. 0000314c Cond = R0 - 4;
  214. 00003150 var_1C = * (R0 - 4);
  215. 00003152 Cond = 0;
  216. 00003156 /* Low-level instruction of type 283 */
  217. 0000315e Cond = * (* 0x8700bc78 + 4) - 0x200;
  218. 00003162 if (Cond != 0) goto loc_316A;
  219.  
  220. 00003164 Cond = 8;
  221. 00003164 R5 = 8;
  222. 00003166 Cond = R5 << 14;
  223. 00003166 R7 = R5 << 14;
  224. 00003168 goto loc_316E;
  225.  
  226. 0000316a loc_316A:
  227. 0000316a Cond = 2;
  228. 0000316a R5 = 2;
  229. 0000316c Cond = R5 << 0x11;
  230. 0000316c R7 = R5 << 0x11;
  231.  
  232. 0000316e loc_316E:
  233. 0000316e Cond = 0;
  234. 00003174 Cond = 1;
  235. 00003176 var_20 = R7;
  236. 0000317c sub_4B44(1, R5, 0x8f310000, 0);
  237. 0000317e goto loc_31D0;
  238.  
  239. 00003180 loc_3180:
  240. 00003180 Cond = R4 - 1;
  241. 00003182 if (Cond != 0) goto loc_31D0;
  242.  
  243. 0000318a Cond = * (* 0x8700bc78 + 4) - 0x200;
  244. 0000318e if (Cond != 0) goto loc_3198;
  245.  
  246. 00003190 Cond = 13;
  247. 00003190 R6 = 13;
  248. 00003192 R7 = 0x20000;
  249. 00003196 goto loc_319E;
  250.  
  251. 00003198 loc_3198:
  252. 00003198 Cond = 7;
  253. 00003198 R6 = 7;
  254. 0000319a R7 = 0x40000;
  255.  
  256. 0000319e loc_319E:
  257. 0000319e Cond = 0;
  258. 000031a4 Cond = 6;
  259. 000031a6 var_20 = R7;
  260. 000031a8 R0 = sub_4B44(6, R6, 0x8f310000, 0);
  261. 000031b2 var_1C = sub_30CA(R0, R1, R2, R3);
  262. 000031b4 Cond = R0;
  263. 000031b8 if (Cond != 0) goto loc_31CC;
  264.  
  265. 000031be Cond = var_1C - 0xf0;
  266. 000031c0 if (Cond != 0) goto loc_31CC;
  267.  
  268. 000031c8 * 0x8700baa8 = 0xdead;
  269. 000031ca goto loc_31D0;
  270.  
  271. 000031cc loc_31CC:
  272.  
  273. 000031d6 sub_31D6:
  274. 000031d6 /* Low-level instruction of type 43 */
  275. 000031da Cond = 0x58;
  276. 000031dc Cond = 0xd9;
  277. 000031de Cond = 0;
  278. 000031e0 Cond = 0;
  279. 000031e2 Cond = 0x69;
  280. 000031e8 R4 = sub_304A(0x69, R1, R2, R3);
  281. 000031ea Cond = R4 - 0x23;
  282. 000031ec if (Cond != 0) goto loc_3242;
  283.  
  284. 000031f2 R1 = * 0x8700baa8 - 0xde00;
  285. 000031f6 Cond = R1 - 0xad;
  286. 000031f6 R1 = R1 - 0xad;
  287. 000031f8 if (Cond != 0) goto loc_3202;
  288.  
  289. 000031fa Cond = 0;
  290. 000031fc sub_2F9C(0, R1, R2, R3);
  291. 00003200 goto loc_3272;
  292.  
  293. 00003202 loc_3202:
  294. 00003208 Cond = * (* 0x8700bc78 + 4) - 0x200;
  295. 0000320c if (Cond != 0) goto loc_321E;
  296.  
  297. 0000320e Cond = 0;
  298. 00003212 Cond = 8;
  299. 00003214 Cond = 6;
  300. 0000321a sub_6BC2(6, 8, 0x81000000, 0);
  301. 0000321c goto loc_322C;
  302.  
  303. 0000321e loc_321E:
  304. 0000321e Cond = 0;
  305. 00003222 Cond = 2;
  306. 00003224 Cond = 6;
  307. 0000322a sub_6BC2(6, 2, 0x81000000, 0);
  308.  
  309. 0000322c loc_322C:
  310. 0000322c /* Low-level instruction of type 283 */
  311. 00003234 R1 = * (0x8f311000 + 0x1e);
  312. 00003236 Cond = * (0x81000000 + 0x1e) - R1;
  313. 00003238 if (Cond == 0) goto loc_3272;
  314.  
  315. 0000323a Cond = 1;
  316. 0000323c sub_2F9C(1, R1, R2, R3);
  317. 00003240 goto loc_3272;
  318.  
  319. 00003242 loc_3242:
  320. 00003242 Cond = R4 - 0x58;
  321. 00003244 if (Cond != 0) goto loc_3272;
  322.  
  323. 00003248 R0 = * 0x8700baa8;
  324. 0000324a R1 = R0 - 0xde00;
  325. 0000324e Cond = R1 - 0xad;
  326. 0000324e R1 = R1 - 0xad;
  327. 00003250 if (Cond == 0) goto loc_326E;
  328.  
  329. 00003252 Cond = 1;
  330. 00003254 sub_3140(1, R1, R2, R3);
  331. 00003258 /* Low-level instruction of type 283 */
  332. 0000325a Cond = 0;
  333. 0000325c sub_2F9C(0, R1, R2, R3);
  334. 00003260 Cond = 0x69;
  335. 00003266 Cond = sub_304A(0x69, R1, R2, R3) - 0x23;
  336. 00003268 if (Cond != 0) goto loc_3272;
  337.  
  338. 0000326a Cond = 0x23;
  339. 0000326c goto loc_3272;
  340.  
  341. 0000326e loc_326E:
  342. 0000326e sub_64A8(R0, R1, R2, R3);
  343.  
  344. 00003278 sub_3278:
  345. 00003278 R1 = 0x8f311000;
  346. 0000327c Cond = * (R1 + 4) - 0xb1;
  347. 0000327e if (Cond != 0) goto loc_3296;
  348.  
  349. 00003282 Cond = * R1 - 0x80000000;
  350. 00003286 if (Cond < 0) goto loc_3296;
  351.  
  352. 0000328e Cond = * R1 - 0x8fffffff;
  353. 00003290 if (Cond >= 0) goto loc_3296;
  354.  
  355. 00003292 Cond = 1;
  356. 00003292 R0 = 1;
  357. 00003294 goto loc_3298;
  358.  
  359. 00003296 loc_3296:
  360. 00003296 Cond = 0;
  361. 00003296 R0 = 0;
  362.  
  363. 00003298 loc_3298:
  364. 00003298 /* Low-level instruction of type 251 */
  365. 0000329a return R0;
  366.  
  367. 0000329c sub_329C:
  368. 0000329c /* Low-level instruction of type 43 */
  369. 0000329e Cond = 2;
  370. 000032a0 sub_4AC6(R0, R1, R2, R3);
  371. 000032a4 /* Low-level instruction of type 283 */
  372. 000032a6 Cond = 1;
  373.  
  374. 000032ac sub_32AC:
  375. 000032ac /* Low-level instruction of type 43 */
  376. 000032ae R0 = 0x8700b6a0;
  377. 000032b0 Cond = R0 + 4;
  378. 000032b2 R0 = * (R0 + 4);
  379. 000032b4 var_18 = R0;
  380. 000032b6 Cond = 0;
  381. 000032b6 R5 = 0;
  382. 000032b8 sub_3686(R0, R1, R2, R3);
  383. 000032c8 R0 = sub_3BCE(0x190, 0xff87, 0xffff, R3);
  384. 000032cc R0 = sub_6F0A(R0, R1, R2, R3);
  385. 000032d0 /* Low-level instruction of type 251 */
  386. 000032d2 R0 = sub_6DEE(R0, R1, R2, R3);
  387. 000032d6 R6 = R0;
  388. 000032d8 Cond = R6 - 2;
  389. 000032da if (Cond != 0) goto loc_32F0;
  390.  
  391. 000032dc sub_6E1C(R0, R1, R2, R3);
  392. 000032e0 /* Low-level instruction of type 283 */
  393. 000032e2 Cond = 0x68;
  394. 000032e4 R0 = sub_304A(0x68, R1, R2, R3);
  395. 000032e8 Cond = R0 - 0x23;
  396. 000032ea if (Cond != 0) goto loc_32F2;
  397.  
  398. 000032ec Cond = 1;
  399. 000032ec R5 = 1;
  400. 000032ee goto loc_32F2;
  401.  
  402. 000032f0 loc_32F0:
  403. 000032f0 Cond = 1;
  404. 000032f0 R5 = 1;
  405.  
  406. 000032f2 loc_32F2:
  407. 000032f2 Cond = R5 - 1;
  408. 000032f4 if (Cond != 0) goto loc_32FC;
  409.  
  410. 000032fa R5 = sub_329C(R0, R1, R2, R3);
  411.  
  412. 000032fc loc_32FC:
  413. 000032fc Cond = R5 - 1;
  414. 000032fe if (Cond != 0) goto loc_3356;
  415.  
  416. 00003300 Cond = 0;
  417. 00003300 R5 = 0;
  418. 00003302 Cond = 0;
  419. 00003304 R0 = sub_3140(0, R1, R2, R3);
  420. 00003308 Cond = R0;
  421. 0000330a if (Cond != 0) goto loc_3356;
  422.  
  423. 0000330c Cond = R6 - 1;
  424. 0000330e if (Cond != 0) goto loc_3318;
  425.  
  426. 00003310 R0 = sub_3278(R0, R1, R2, R3);
  427. 00003314 Cond = R0 - 1;
  428. 00003316 if (Cond == 0) goto loc_331C;
  429.  
  430. 00003318 loc_3318:
  431. 00003318 Cond = R6 - 2;
  432. 0000331a if (Cond != 0) goto loc_3338;
  433.  
  434. 0000331c loc_331C:
  435. 00003320 var_18 = sub_30CA(R0, R1, R2, R3);
  436. 00003322 R0 = var_18;
  437. 00003326 Cond = R0 - 0xf0;
  438. 00003328 if (Cond == 0) goto loc_3336;
  439.  
  440. 0000332a Cond = 1;
  441. 0000332c R0 = sub_3140(1, R1, R2, R3);
  442. 00003330 /* Low-level instruction of type 283 */
  443. 00003332 Cond = 1;
  444. 00003332 R5 = 1;
  445. 00003334 goto loc_3338;
  446.  
  447. 00003336 loc_3336:
  448. 00003336 Cond = 1;
  449. 00003336 R5 = 1;
  450.  
  451. 00003338 loc_3338:
  452. 00003338 Cond = R6 - 2;
  453. 0000333a if (Cond != 0) goto loc_3346;
  454.  
  455. 0000333c R0 = sub_31D6(R0, R1, R2, R3);
  456. 00003340 Cond = R0 - 0x23;
  457. 00003342 if (Cond == 0) goto loc_3346;
  458.  
  459. 00003344 Cond = 0;
  460. 00003344 R5 = 0;
  461.  
  462. 00003346 loc_3346:
  463. 00003346 Cond = R5 - 1;
  464. 00003348 if (Cond != 0) goto loc_3356;
  465.  
  466. 0000334a Cond = 0;
  467. 0000334c /* Low-level instruction of type 44 */
  468. 0000334e R0 = sub_4486(R0, 0, R2, R3);
  469. 00003352 sub_DBE0(R0, R1, R2, R3);
  470.  
  471. 0000355c sub_355C:
  472. 0000355c /* Low-level instruction of type 43 */
  473. 0000355e R3 = R0;
  474. 00003560 R4 = R1;
  475. 00003562 goto loc_356E;
  476.  
  477. 00003564 loc_3564:
  478. 00003566 * R3 = * R4;
  479. 00003568 Cond = R3 + 1;
  480. 00003568 R3 = R3 + 1;
  481. 0000356a Cond = R4 + 1;
  482. 0000356a R4 = R4 + 1;
  483. 0000356c Cond = R2 - 1;
  484. 0000356c R2 = R2 - 1;
  485.  
  486. 0000356e loc_356E:
  487. 0000356e Cond = R2;
  488. 00003570 if (Cond != 0) goto loc_3564;
  489.  
  490. 00003574 sub_3574:
  491. 00003574 /* Low-level instruction of type 43 */
  492. 00003578 R4 = R0;
  493. 0000357a R3 = R1;
  494. 0000357c Cond = 0;
  495. 0000357c R0 = 0;
  496. 0000357e goto loc_358C;
  497.  
  498. 00003580 loc_3580:
  499. 00003580 R6 = * R4;
  500. 00003582 R7 = * R3;
  501. 00003584 Cond = R6 - R7;
  502. 00003584 R0 = R6 - R7;
  503. 00003586 Cond = R4 + 1;
  504. 00003586 R4 = R4 + 1;
  505. 00003588 Cond = R3 + 1;
  506. 00003588 R3 = R3 + 1;
  507. 0000358a Cond = R2 - 1;
  508. 0000358a R2 = R2 - 1;
  509.  
  510. 0000358c loc_358C:
  511. 0000358c /* Low-level instruction of type 282 */
  512. 0000358e Cond = R0;
  513. 00003590 if (Cond == 0) goto loc_3580;
  514.  
  515. 00003594 sub_3594:
  516. 00003594 /* Low-level instruction of type 43 */
  517. 00003596 R3 = R2;
  518. 00003598 R2 = R0;
  519. 0000359a goto loc_35A2;
  520.  
  521. 0000359c loc_359C:
  522. 0000359c * R2 = R1;
  523. 0000359e Cond = R2 + 1;
  524. 0000359e R2 = R2 + 1;
  525. 000035a0 Cond = R3 - 1;
  526. 000035a0 R3 = R3 - 1;
  527.  
  528. 000035a2 loc_35A2:
  529. 000035a2 Cond = R3;
  530. 000035a4 if (Cond != 0) goto loc_359C;
  531.  
  532. 00003608 sub_3608:
  533. 00003608 /* Low-level instruction of type 43 */
  534. 0000360e R4 = R0;
  535. 00003610 R5 = R1;
  536. 00003612 R6 = R2;
  537. 00003614 R7 = R3;
  538. 00003616 R8 = 0x40000000;
  539. 0000361e Cond = R6 - 0x20;
  540. 00003620 if (Cond >= 0) goto loc_364C;
  541.  
  542. 00003624 /* Low-level instruction of type 44 */
  543. 00003626 /* Low-level instruction of type 33 */
  544. 00003628 /* Low-level instruction of type 46 */
  545. 0000362c /* Low-level instruction of type 71 */
  546. 0000363a /* Low-level instruction of type 71 */
  547. 00003640 R0 = var_30;
  548. 00003642 /* Low-level instruction of type 46 */
  549. 00003646 /* Low-level instruction of type 71 */
  550. 0000364a goto loc_364E;
  551.  
  552. 0000364c loc_364C:
  553. 0000364c Cond = 0;
  554. 0000364c R0 = 0;
  555.  
  556. 0000364e loc_364E:
  557. 0000364e R9 = R0;
  558. 00003650 goto loc_3656;
  559.  
  560. 00003652 loc_3652:
  561. 00003652 R8 = R8 - 1;
  562.  
  563. 00003656 loc_3656:
  564. 00003660 Cond = (* R4 & R9) - (R7 << R5);
  565. 00003662 if (Cond == 0) goto loc_366A;
  566.  
  567. 00003664 Cond = R8;
  568. 00003668 if (Cond != 0) goto loc_3652;
  569.  
  570. 0000366a loc_366A:
  571. 00003674 Cond = (* R4 & R9) - (R7 << R5);
  572. 00003676 if (Cond != 0) goto loc_367C;
  573.  
  574. 000036c2 sub_36C2:
  575. 000036c2 /* Low-level instruction of type 43 */
  576. 000036c4 goto loc_36DC;
  577.  
  578. 000036c6 loc_36C6:
  579. 000036ca R0 = * 0x48307250 & ~ 4;
  580. 000036ce Cond = R0 + 4;
  581. 000036d0 R1 = 0x48307000;
  582. 000036d2 * (R1 + 0x250) = R0 + 4;
  583. 000036d6 Cond = 0x64;
  584. 000036d8 sub_36B6(0x64, R1, R2, R3);
  585.  
  586. 000036dc loc_36DC:
  587. 000036dc goto loc_36C6;
  588.  
  589. 000036de sub_36DE:
  590. 000036de /* Low-level instruction of type 2 */
  591.  
  592. 000036e0 loc_36E0:
  593. 000036e0 goto loc_36E0;
  594.  
  595. 00003a4e sub_3A4E:
  596. 00003a4e /* Low-level instruction of type 43 */
  597. 00003a50 Cond = 0x10;
  598. 00003a52 R1 = 0x6e000000;
  599. 00003a56 * (R1 + 0x10) = 0x10;
  600. 00003a58 Cond = 0;
  601. 00003a58 R0 = 0;
  602. 00003a5a * (R1 + 0x1c) = R0;
  603. 00003a5c * (R1 + 0x40) = R0;
  604. 00003a5e Cond = 1;
  605. 00003a60 * (R1 + 0x50) = 1;
  606. 00003a62 Cond = 0x11;
  607. 00003a64 * (R1 + 0x50) = 0x11;
  608. 00003a66 Cond = 0;
  609. 00003a68 * (R1 + 0x78) = 0;
  610. 00003a6a Cond = 10;
  611. 00003a6c sub_36E2(10, R1, R2, R3);
  612. 00003a70 Cond = 0;
  613. 00003a72 R1 = 0x6e0000a8;
  614. 00003a74 * R1 = 0;
  615. 00003a76 Cond = 10;
  616. 00003a78 sub_36E2(10, R1, R2, R3);
  617. 00003a7c Cond = 0;
  618. 00003a7e R1 = 0x6e000000;
  619. 00003a82 * (R1 + 0xd8) = 0;
  620. 00003a86 Cond = 10;
  621. 00003a88 sub_36E2(10, R1, R2, R3);
  622. 00003a8c Cond = 0;
  623. 00003a8e R1 = 0x6e0000a8;
  624. 00003a90 Cond = R1 + 0x60;
  625. 00003a90 R1 = R1 + 0x60;
  626. 00003a92 * R1 = 0;
  627. 00003a94 Cond = 10;
  628. 00003a96 sub_36E2(10, R1, R2, R3);
  629. 00003a9a Cond = 0;
  630. 00003a9c R1 = 0x6e000000;
  631. 00003aa0 * (R1 + 0x138) = 0;
  632. 00003aa4 Cond = 10;
  633. 00003aa6 sub_36E2(10, R1, R2, R3);
  634. 00003aaa Cond = 0;
  635. 00003aac R1 = 0x6e0000a8;
  636. 00003aae Cond = R1 + 0xc0;
  637. 00003aae R1 = R1 + 0xc0;
  638. 00003ab0 * R1 = 0;
  639. 00003ab2 Cond = 10;
  640. 00003ab4 sub_36E2(10, R1, R2, R3);
  641. 00003ab8 Cond = 0;
  642. 00003aba R1 = 0x6e000000;
  643. 00003abe * (R1 + 0x198) = 0;
  644. 00003ac2 Cond = 10;
  645. 00003ac4 sub_36E2(10, R1, R2, R3);
  646. 00003ac8 Cond = 0;
  647. 00003aca R1 = 0x6e000000;
  648. 00003ace * (R1 + 0x1c8) = 0;
  649. 00003ad2 Cond = 10;
  650. 00003ad4 sub_36E2(10, R1, R2, R3);
  651. 00003adc R1 = 0x6e000000;
  652. 00003ae0 * (R1 + 0x60) = 0x1800;
  653. 00003ae2 R0 = 0x141400;
  654. 00003ae4 * (R1 + 0x64) = R0;
  655. 00003ae6 * (R1 + 0x68) = R0;
  656. 00003aea * (R1 + 0x6c) = 0xf010f01;
  657. 00003aee * (R1 + 0x70) = 0x10c1414;
  658. 00003af4 * (R1 + 0x74) = 0xa80;
  659. 00003af6 Cond = 0x50;
  660. 00003af8 * (R1 + 0x78) = 0x50;
  661. 00003afa Cond = 10;
  662. 00003afc sub_36E2(10, R1, R2, R3);
  663. 00003b04 goto loc_3B58;
  664.  
  665. 00003bce sub_3BCE:
  666. 00003bce /* Low-level instruction of type 43 */
  667.  
  668. 00003bd4 loc_3BD4:
  669.  
  670. 00003bd8 loc_3BD8:
  671. 00003bd8 Cond = 0;
  672. 00003bd8 R0 = 0;
  673. 00003bda var_1C = R0;
  674.  
  675. 00003bdc loc_3BDC:
  676. 00003bdc Cond = 0;
  677. 00003bde var_20 = R0;
  678.  
  679. 00004398 sub_4398:
  680. 00004398 /* Low-level instruction of type 43 */
  681. 0000439c Cond = 0;
  682. 0000439e Cond = 0;
  683. 000043a0 Cond = 0;
  684. 000043a2 Cond = 0;
  685. 000043a4 Cond = 0;
  686. 000043a6 Cond = 0;
  687. 000043a8 Cond = R0 - 1;
  688. 000043aa if (Cond != 0) goto loc_43BA;
  689.  
  690. 000043ae R4 = 0x48004a00;
  691. 000043b0 Cond = R4 + 0x10;
  692. 000043b2 R5 = 0x48002180;
  693. 000043b4 Cond = R5 - 4;
  694. 000043b6 Cond = 13;
  695. 000043b8 goto loc_43C8;
  696.  
  697. 000043ba loc_43BA:
  698. 000043bc R4 = 0x48005000;
  699. 000043be Cond = R4 + 0x10;
  700. 000043c0 R5 = 0x48002180;
  701. 000043c2 Cond = R5 + 0x1c;
  702. 000043c2 R5 = R5 + 0x1c;
  703. 000043c4 Cond = R5 + 4;
  704. 000043c6 Cond = 11;
  705.  
  706. 000043f2 sub_43F2:
  707. 000043f2 /* Low-level instruction of type 43 */
  708. 000043f6 Cond = 0x32;
  709. 000043f6 R2 = 0x32;
  710. 000043f8 Cond = 0;
  711. 000043fa Cond = R0 - 1;
  712. 000043fc if (Cond != 0) goto loc_4402;
  713.  
  714. 000043fe R3 = 0x4806a000;
  715. 00004400 goto loc_4404;
  716.  
  717. 00004402 loc_4402:
  718. 00004402 R3 = 0x49020000;
  719.  
  720. 00004404 loc_4404:
  721. 00004404 Cond = 2;
  722. 00004406 * (R3 + 0x54) = 2;
  723. 00004408 /* Low-level instruction of type 2 */
  724.  
  725. 0000440a loc_440A:
  726. 0000440c Cond = * (R3 + 0x58) & 1;
  727. 00004410 if (Cond == 0) goto loc_441A;
  728.  
  729. 00004412 Cond = R2;
  730. 00004414 R2 = R2 - 1;
  731. 00004418 if (Cond != 0) goto loc_440A;
  732.  
  733. 0000441a loc_441A:
  734. 0000441a /* Low-level instruction of type 282 */
  735. 0000441c Cond = 0x80;
  736. 0000441e * (R3 + 12) = 0x80;
  737. 00004420 Cond = 0x1a;
  738. 00004422 * R3 = 0x1a;
  739. 00004424 Cond = 0;
  740. 00004426 * (R3 + 4) = 0;
  741. 00004428 Cond = 3;
  742. 0000442a * (R3 + 12) = 3;
  743. 0000442c Cond = 0;
  744. 0000442e * (R3 + 0x20) = 0;
  745. 00004430 Cond = 1;
  746.  
  747. 00004432 locret_4432:
  748. 00004432 /* Low-level instruction of type 42 */
  749.  
  750. 00004434 loc_4434:
  751. 00004434 Cond = 0;
  752. 00004436 goto locret_4432;
  753.  
  754. 00004438 sub_4438:
  755. 00004438 /* Low-level instruction of type 43 */
  756. 0000443c R4 = R0;
  757. 00004444 R5 = sub_BE10(R4, R1, R2, R3);
  758. 00004446 R6 = 0x9c40;
  759. 0000444a Cond = 0;
  760. 0000444a R7 = 0;
  761. 0000444c goto loc_447C;
  762.  
  763. 0000444e loc_444E:
  764. 0000444e /* Low-level instruction of type 2 */
  765.  
  766. 00004450 loc_4450:
  767. 00004454 /* Low-level instruction of type 282 */
  768. 00004456 Cond = R6;
  769. 00004458 R6 = R6 - 1;
  770. 0000445c if (Cond != 0) goto loc_4450;
  771.  
  772. 0000445e loc_445E:
  773. 00004462 * 0x49020000 = * (R4 + R7);
  774. 00004464 /* Low-level instruction of type 2 */
  775.  
  776. 00004466 loc_4466:
  777. 0000446a /* Low-level instruction of type 282 */
  778. 0000446c Cond = R6;
  779. 0000446e R6 = R6 - 1;
  780. 00004472 if (Cond != 0) goto loc_4466;
  781.  
  782. 00004474 loc_4474:
  783. 00004478 * 0x4806a000 = * (R4 + R7);
  784. 0000447a Cond = R7 + 1;
  785. 0000447a R7 = R7 + 1;
  786.  
  787. 0000447c loc_447C:
  788. 0000447c Cond = R7 - R5;
  789. 0000447e if (Cond < 0) goto loc_444E;
  790.  
  791. 00004486 sub_4486:
  792. 00004486 /* Low-level instruction of type 43 */
  793. 00004488 /* Low-level instruction of type 43 */
  794. 00004490 /* Low-level instruction of type 282 */
  795. 00004494 var_E0 = & var_C;
  796. 0000449c sub_BD84(& var_DC, var_10, var_E0, R3);
  797. 000044a2 sub_4438(& var_DC, R1, R2, R3);
  798. 000044a6 /* Low-level instruction of type 2 */
  799.  
  800. 000044c8 sub_44C8:
  801. 000044c8 /* Low-level instruction of type 43 */
  802. 000044d4 * (0x48004000 + 0xa00) = * 0x48004a00 | 0x40000;
  803. 000044d8 R1 = 0x48004a00;
  804. 000044da Cond = R1 + 0x10;
  805. 000044e2 R2 = 0x48004a00;
  806. 000044e4 Cond = R2 + 0x10;
  807. 000044e6 * (R2 + 0x10) = * (R1 + 0x10) | 0x40000;
  808. 000044ee * 0x480021c8 = 0x1000100;
  809. 000044f4 * (0x48002000 + 0x1cc) = 0x1000108;
  810. 00004506 * (* 0x8700bb10 + 0x10) = * (* 0x8700bb10 + 0x10) | 2;
  811. 00004508 /* Low-level instruction of type 2 */
  812.  
  813. 0000450a loc_450A:
  814. 00004514 Cond = (* (* 0x8700bb10 + 0x14) & 1) - 1;
  815. 00004516 if (Cond != 0) goto loc_450A;
  816.  
  817. 00004518 Cond = 0;
  818. 00004518 R0 = 0;
  819. 0000451a goto loc_4636;
  820.  
  821. 0000451c loc_451C:
  822. 00004538 * (* (0x8700bb10 + * (0x8700b70c + R0 + (R0 << 3))) + 0x10) = * (0x8700b70c + (R0 + (R0 << 3) << 2) + 4);
  823. 00004556 * (* (0x8700bb10 + * (0x8700b70c + R0 + (R0 << 3))) + 0x1c) = * (0x8700b70c + (R0 + (R0 << 3) << 2) + 8);
  824. 00004574 * (* (0x8700bb10 + * (0x8700b70c + R0 + (R0 << 3))) + 0x20) = * (0x8700b70c + (R0 + (R0 << 3) << 2) + 12);
  825. 00004592 * (* (0x8700bb10 + * (0x8700b70c + R0 + (R0 << 3))) + 0x24) = * (0x8700b70c + (R0 + (R0 << 3) << 2) + 0x10);
  826.  
  827. 00004594 loc_4594:
  828. 000045b0 * (* (0x8700bb10 + * (0x8700b70c + R0 + (R0 << 3))) + 0x28) = * (0x8700b70c + (R0 + (R0 << 3) << 2) + 0x14);
  829. 000045ce * (* (0x8700bb10 + * (0x8700b70c + R0 + (R0 << 3))) + 0x7c) = * (0x8700b70c + (R0 + (R0 << 3) << 2) + 0x18);
  830. 000045e8 R1 = * (0x8700bb10 + * (0x8700b70c + R0 + (R0 << 3)));
  831. 000045ec Cond = R1 + 0x2c;
  832. 000045f2 R4 = 0x8700b70c;
  833. 000045fe * (R1 + 0x2c + * (R4 + (R0 + (R0 << 3) << 2) + 1) + (R3 << 2)) = * (0x8700b70c + (R0 + (R0 << 3) << 2) + 0x1c);
  834. 0000461a R1 = * (0x8700bb10 + * (R4 + R0 + (R0 << 3)));
  835. 0000461e Cond = R1 + 0x2c;
  836. 00004632 * (R1 + 0x2c + (* (R4 + (R0 + (R0 << 3) << 2) + 1) + (R3 << 2) << 2) + 8) = * (R4 + (R0 + (R0 << 3) << 2) + 0x20);
  837. 00004634 Cond = R0 + 1;
  838. 00004634 R0 = R0 + 1;
  839.  
  840. 00004636 loc_4636:
  841. 00004636 Cond = R0;
  842. 00004638 if (Cond == 0) goto loc_451C;
  843.  
  844. Running The Desquirr decompiler plugin
  845. -> Creating instruction list
  846. 000047EA: Analysis: Instruction Type 5
  847. 000047EA: Analysis: Instruction Type 6
  848. Enter OnPush
  849. 000047EA Unknown PUSH type
  850. ea=000047EA, itype="PUSH" (43), condition=E
  851. Operands[0]={type=o_idpspec1, dtyp=2, reg/phrase=R0/0, specval=00004070}
  852. 000047EC: Analysis: Instruction Type 6
  853. 000047EE: Analysis: Instruction Type 6
  854. 000047F2: Analysis: Instruction Type 6
  855. 000047F4: Analysis: Instruction Type 6
  856. 000047F4 setting conditional for MOVS
  857. 000047F6: Analysis: Instruction Type 6
  858. 000047FA: Analysis: Instruction Type 6
  859. 000047FA setting conditional for MOVS
  860. 000047FC: Analysis: Instruction Type 6
  861. 000047FC TryAnd
  862. 000047FC setting conditional for operator
  863. 000047FE: Analysis: Instruction Type 6
  864. 000047FE setting conditional for operator
  865. 00004800: Analysis: Instruction Type 6
  866. 00004802: Analysis: Instruction Type 6
  867. 00004806: Analysis: Instruction Type 6
  868. 00004808: Analysis: Instruction Type 6
  869. 0000480A: Analysis: Instruction Type 6
  870. 0000480E: Analysis: Instruction Type 6
  871. 0000480E setting conditional for operator
  872. 00004810: Analysis: Instruction Type 6
  873. 00004814: Analysis: Instruction Type 6
  874. 00004818: Analysis: Instruction Type 6
  875. 0000481A: Analysis: Instruction Type 6
  876. 0000481C: Analysis: Instruction Type 6
  877. 0000481C Unhandled instruction
  878. ea=0000481C, itype="NOP" (2), condition=E
  879. 0000481E: Analysis: Instruction Type 5
  880. 0000481E: Analysis: Instruction Type 6
  881. 00004820: Analysis: Instruction Type 6
  882. 00004824: Analysis: Instruction Type 6
  883. 00004826: Analysis: Instruction Type 6
  884. 00004826 setting conditional for MOVS
  885. 00004828: Analysis: Instruction Type 6
  886. 0000482C: Analysis: Instruction Type 6
  887. 0000482C setting conditional for MOVS
  888. 0000482E: Analysis: Instruction Type 6
  889. 0000482E TryAnd
  890. 0000482E setting conditional for operator
  891. 00004830: Analysis: Instruction Type 6
  892. 00004830 setting conditional for operator
  893. 00004832: Analysis: Instruction Type 6
  894. 00004832 setting conditional for MOVS
  895. 00004834: Analysis: Instruction Type 6
  896. 00004838: Analysis: Instruction Type 6
  897. 00004838 setting conditional for MOVS
  898. 0000483A: Analysis: Instruction Type 6
  899. 0000483A TryAnd
  900. 0000483A setting conditional for operator
  901. 0000483C: Analysis: Instruction Type 6
  902. 0000483E: Analysis: Instruction Type 6
  903. 00004840: Analysis: Instruction Type 6
  904. 00004840 Unhandled instruction
  905. ea=00004840, itype="NOP" (2), condition=E
  906. 00004842: Analysis: Instruction Type 5
  907. 00004842: Analysis: Instruction Type 6
  908. 00004844: Analysis: Instruction Type 6
  909. 00004848: Analysis: Instruction Type 6
  910. 0000484A: Analysis: Instruction Type 6
  911. 0000484E: Analysis: Instruction Type 6
  912. 00004850: Analysis: Instruction Type 6
  913. 00004852: Analysis: Instruction Type 6
  914. 00004856: Analysis: Instruction Type 6
  915. 00004856 setting conditional for operator
  916. 00004858: Analysis: Instruction Type 6
  917. 0000485C: Analysis: Instruction Type 6
  918. 00004860: Analysis: Instruction Type 6
  919. 00004862: Analysis: Instruction Type 6
  920. 00004864: Analysis: Instruction Type 6
  921. 00004866: Analysis: Instruction Type 6
  922. 0000486A: Analysis: Instruction Type 6
  923. 0000486C: Analysis: Instruction Type 6
  924. 00004870: Analysis: Instruction Type 6
  925. 00004872: Analysis: Instruction Type 6
  926. 00004876: Analysis: Instruction Type 6
  927. 00004878: Analysis: Instruction Type 6
  928. 00004878 Unknown PUSH type
  929. ea=00004878, itype="POP" (42), condition=E
  930. Operands[0]={type=o_idpspec1, dtyp=2, reg/phrase=R0/0, specval=00008070}
  931. -> Creating node list
  932. 00004842 Unable to find successor block with address 00004850
  933. -> Update uses and definitions
  934. -> Live register analysis
  935. -> Finding DU chains
  936. -> Data flow analysis
  937. Basic block list:
  938. 000047ea sub_47EA:
  939. 000047ea /* Low-level instruction of type 43 */
  940. 000047f2 R5 = * (* (0x8700bb10 + R0) + 0x18);
  941. 000047f4 Cond = 0;
  942. 000047f6 R6 = 0 + (R1 << 2);
  943. 000047fa Cond = 1;
  944. 000047fa R4 = 1;
  945. 000047fc Cond = R4 << R6;
  946. 000047fc R4 = R4 << R6;
  947. 000047fe Cond = R5 | R4;
  948. 00004806 * (* (0x8700bb10 + R0) + 0x18) = R5 | R4;
  949. 0000480a R4 = * (0x8700bb10 + R0);
  950. 0000480e Cond = R4 + 0x2c;
  951. 0000481a * (R4 + 0x2c + (R1 + (R1 << 2) << 2) + 12) = * R2;
  952. 0000481c /* Low-level instruction of type 2 */
  953.  
  954. 0000481e loc_481E:
  955. 00004824 R4 = * (* (0x8700bb10 + R0) + 0x18);
  956. 00004826 Cond = 0;
  957. 00004828 R6 = 0 + (R1 << 2);
  958. 0000482c Cond = 1;
  959. 0000482c R5 = 1;
  960. 0000482e Cond = R5 << R6;
  961. 0000482e R5 = R5 << R6;
  962. 00004830 Cond = R4 & R5;
  963. 00004832 Cond = 0;
  964. 00004834 R6 = 0 + (R1 << 2);
  965. 00004838 Cond = 1;
  966. 00004838 R5 = 1;
  967. 0000483a Cond = R5 << R6;
  968. 0000483c Cond = (R4 & R5 << R6) - (R5 << R6);
  969. 0000483e if (Cond != 0) goto loc_481E;
  970.  
  971. 00004840 /* Low-level instruction of type 2 */
  972.  
  973. 00004842 loc_4842:
  974. 0000484a Cond = * (* (0x8700bb10 + R0) + 0x18) & 4;
  975. 0000484e if (Cond == 0) goto loc_4842;
  976.  
  977. 00004ac6 sub_4AC6:
  978. 00004ac6 /* Low-level instruction of type 43 */
  979. 00004ac8 Cond = 0xd9;
  980. 00004ace /* Low-level instruction of type 283 */
  981. 00004ad0 Cond = 1;
  982. 00004ad0 R0 = 1;
  983. 00004ad2 R1 = 0x8700bb21;
  984. 00004ad4 * R1 = R0;
  985. 00004ad6 R0 = sub_69C2(R0, R1, R2, R3);
  986. 00004ada Cond = R0;
  987. 00004adc if (Cond != 0) goto loc_4AE6;
  988.  
  989. 00004ade Cond = 3;
  990. 00004ae4 sub_69C2(3, R1, R2, R3);
  991.  
  992. 00004aea sub_4AEA:
  993. 00004aea /* Low-level instruction of type 43 */
  994. 00004aee R4 = R0;
  995. 00004af0 R5 = R1;
  996. 00004af2 Cond = 0;
  997. 00004af2 R6 = 0;
  998. 00004af4 Cond = 0;
  999. 00004af6 Cond = R4 - R5;
  1000. 00004af8 if (Cond > 0) goto loc_4B1E;
  1001.  
  1002. 00004afe Cond = R4 - 0xffd;
  1003. 00004b00 if (Cond >= 0) goto loc_4B06;
  1004.  
  1005. 00004b02 Cond = 1;
  1006. 00004b02 R0 = 1;
  1007. 00004b04 goto loc_4B08;
  1008.  
  1009. 00004b06 loc_4B06:
  1010. 00004b06 Cond = 0;
  1011. 00004b06 R0 = 0;
  1012.  
  1013. 00004b08 loc_4B08:
  1014. 00004b08 Cond = R0 - 1;
  1015. 00004b0a if (Cond != 0) goto loc_4B1E;
  1016.  
  1017. 00004b10 Cond = R5 - 0xffd;
  1018. 00004b12 if (Cond >= 0) goto loc_4B18;
  1019.  
  1020. 00004b14 Cond = 1;
  1021. 00004b14 R0 = 1;
  1022. 00004b16 goto loc_4B1A;
  1023.  
  1024. 00004b18 loc_4B18:
  1025. 00004b18 Cond = 0;
  1026. 00004b18 R0 = 0;
  1027.  
  1028. 00004b1a loc_4B1A:
  1029. 00004b1a Cond = R0 - 1;
  1030. 00004b1c if (Cond == 0) goto loc_4B20;
  1031.  
  1032. 00004b1e loc_4B1E:
  1033. 00004b1e Cond = 0x83;
  1034. 00004b1e R6 = 0x83;
  1035.  
  1036. 00004b20 loc_4B20:
  1037. 00004b20 R7 = R4;
  1038. 00004b22 goto loc_4B34;
  1039.  
  1040. 00004b24 loc_4B24:
  1041. 00004b26 sub_6B88(R7, R1, R2, R3);
  1042. 00004b2a /* Low-level instruction of type 282 */
  1043. 00004b2c Cond = 0xd7;
  1044. 00004b2e goto loc_4B3C;
  1045.  
  1046. 00004b30 loc_4B30:
  1047. 00004b30 Cond = R7 + 1;
  1048. 00004b32 /* Low-level instruction of type 255 */
  1049.  
  1050. 00004b34 loc_4B34:
  1051. 00004b34 Cond = R7 - R5;
  1052. 00004b36 if (Cond > 0) goto loc_4B3C;
  1053.  
  1054. 00004b38 Cond = R6;
  1055. 00004b3a if (Cond == 0) goto loc_4B24;
  1056.  
  1057. 00004b44 sub_4B44:
  1058. 00004b44 /* Low-level instruction of type 43 */
  1059. 00004b48 R4 = R0;
  1060. 00004b4a R5 = R1;
  1061. 00004b4c R6 = R2;
  1062. 00004b50 R8 = arg_0;
  1063. 00004b54 R9 = 0;
  1064. 00004b58 Cond = 0;
  1065. 00004b58 R0 = 0;
  1066. 00004b5a var_2C = R0;
  1067. 00004b5c var_30 = R0;
  1068. 00004b5e /* Low-level instruction of type 282 */
  1069. 00004b68 var_2C = * (* 0x8700bc78 + 4) + R6;
  1070.  
  1071. 00004b6a loc_4B6A:
  1072. 00004b6a R10 = R4;
  1073. 00004b6c goto loc_4BDE;
  1074.  
  1075. 00004b6e loc_4B6E:
  1076. 00004b6e R11 = 0;
  1077. 00004b72 goto loc_4BCC;
  1078.  
  1079. 00004b74 loc_4B74:
  1080. 00004b76 Cond = var_30 - R8;
  1081. 00004b78 if (Cond < 0) goto loc_4B7C;
  1082.  
  1083. 00004b7a goto loc_4BD6;
  1084.  
  1085. 00004b7c loc_4B7C:
  1086. 00004b84 sub_6BC2(R10, R11, R6, var_2C);
  1087. 00004b88 /* Low-level instruction of type 282 */
  1088. 00004b8a R9 = 0xd5;
  1089. 00004b8e goto loc_4BD6;
  1090.  
  1091. 00004b90 loc_4B90:
  1092. 00004ba2 var_30 = * (* 0x8700bc78 + 4) + var_30;
  1093. 00004ba4 /* Low-level instruction of type 282 */
  1094. 00004bac R6 = R6 + * (* 0x8700bc78 + 4) + * (* 0x8700bc78 + 6);
  1095. 00004bb8 var_30 = * (* 0x8700bc78 + 6) + var_30;
  1096. 00004bc2 var_2C = * (* 0x8700bc78 + 4) + R6;
  1097.  
  1098. 00004bc4 loc_4BC4:
  1099. 00004bc8 R11 = R11 + 1 & 0xff;
  1100.  
  1101. 00004bcc loc_4BCC:
  1102. 00004bd2 Cond = * (* 0x8700bc78 + 12) - R11;
  1103. 00004bd4 if (Cond > 0) goto loc_4B74;
  1104.  
  1105. 00004bd6 loc_4BD6:
  1106. 00004bda /* Low-level instruction of type 255 */
  1107.  
  1108. 00004bde loc_4BDE:
  1109. 00004bde Cond = R10 - R5;
  1110. 00004be0 if (Cond > 0) goto loc_4BE8;
  1111.  
  1112. 00004be2 Cond = R9;
  1113. 00004be6 if (Cond == 0) goto loc_4B6E;
  1114.  
  1115. 00004bf8 sub_4BF8:
  1116. 00004bf8 /* Low-level instruction of type 43 */
  1117. 00004bfa R1 = 0x1f400;
  1118. 00004bfe Cond = 0;
  1119. 00004c00 Cond = 0;
  1120. 00004c02 Cond = 0x64;
  1121. 00004c04 goto loc_4C28;
  1122.  
  1123. 00004c06 loc_4C06:
  1124. 00004c06 Cond = R1 - 1;
  1125. 00004c06 R1 = R1 - 1;
  1126. 00004c0c R4 = * (0x6e000000 + 0x54);
  1127. 00004c0e R5 = 0x101;
  1128. 00004c12 Cond = R4 & R5;
  1129. 00004c14 Cond = (R4 & R5) - R5;
  1130. 00004c16 if (Cond != 0) goto loc_4C1C;
  1131.  
  1132. 00004c18 Cond = 1;
  1133. 00004c1a goto loc_4C2C;
  1134.  
  1135. 00004c1c loc_4C1C:
  1136. 00004c1c Cond = 0;
  1137. 00004c1c R2 = 0;
  1138. 00004c1e goto loc_4C24;
  1139.  
  1140. 00004c20 loc_4C20:
  1141. 00004c20 Cond = R2 + 1;
  1142. 00004c22 /* Low-level instruction of type 251 */
  1143.  
  1144. 00004c24 loc_4C24:
  1145. 00004c24 Cond = R2 - 0x64;
  1146. 00004c26 if (Cond < 0) goto loc_4C20;
  1147.  
  1148. 00004c28 loc_4C28:
  1149. 00004c28 Cond = R1;
  1150. 00004c2a if (Cond != 0) goto loc_4C06;
  1151.  
  1152. 00004c30 sub_4C30:
  1153. 00004c30 /* Low-level instruction of type 43 */
  1154. 00004c36 * 0x8700bc74 = R0;
  1155. 00004c38 /* Low-level instruction of type 282 */
  1156. 00004c40 /* Low-level instruction of type 283 */
  1157. 00004c42 /* Low-level instruction of type 2 */
  1158. 00004c44 Cond = 1;
  1159. 00004c44 R0 = 1;
  1160. 00004c46 R1 = 0x6e0001f4;
  1161. 00004c48 * R1 = R0;
  1162. 00004c4a goto loc_4C60;
  1163.  
  1164. 00004c4c loc_4C4C:
  1165. 00004c50 R0 = * (* 0x8700bc78 + 7);
  1166. 00004c52 Cond = R0 - 1;
  1167. 00004c54 if (Cond != 0) goto loc_4C60;
  1168.  
  1169. 00004c56 /* Low-level instruction of type 2 */
  1170. 00004c58 Cond = 0x81;
  1171. 00004c58 R0 = 0x81;
  1172. 00004c5a R1 = 0x6e0001f4;
  1173. 00004c5c * R1 = R0;
  1174. 00004c5e /* Low-level instruction of type 2 */
  1175.  
  1176. 00004c60 loc_4C60:
  1177. 00004c60 sub_4BF8(R0, R1, R2, R3);
  1178. 00004c64 /* Low-level instruction of type 2 */
  1179. 00004c68 R1 = 0x6e0001f4;
  1180. 00004c6a Cond = R1 + 8;
  1181. 00004c6c * (R1 + 8) = 0x3fcff000;
  1182. 00004c6e goto locret_4C7A;
  1183.  
  1184. 00004c70 loc_4C70:
  1185. 00004c70 /* Low-level instruction of type 2 */
  1186. 00004c72 Cond = 0;
  1187. 00004c76 * 0x6e0001f4 = 0;
  1188. 00004c78 /* Low-level instruction of type 2 */
  1189.  
  1190. 00004cb6 sub_4CB6:
  1191. 00004cb6 /* Low-level instruction of type 43 */
  1192. 00004cb8 R4 = R0;
  1193. 00004cba Cond = 0;
  1194. 00004cc0 R0 = * (* 0x8700bc78 + 0x18);
  1195. 00004cc2 Cond = R4 >> R0;
  1196. 00004cc4 /* Low-level instruction of type 2 */
  1197. 00004cc6 /* Low-level instruction of type 251 */
  1198. 00004ccc sub_4C9C(R0, R1, R2, R3);
  1199. 00004cce /* Low-level instruction of type 283 */
  1200. 00004cd0 goto loc_4D38;
  1201.  
  1202. 00004cd2 loc_4CD2:
  1203. 00004cd2 Cond = R4 >> 8;
  1204. 00004cd4 /* Low-level instruction of type 251 */
  1205. 00004cda sub_4C9C(R0, R1, R2, R3);
  1206. 00004cdc /* Low-level instruction of type 283 */
  1207. 00004cde goto loc_4D38;
  1208.  
  1209. 00004ce0 loc_4CE0:
  1210. 00004ce4 R0 = * (* 0x8700bc78 + 4);
  1211. 00004ce6 Cond = R0 - 0x200;
  1212. 00004cea if (Cond != 0) goto loc_4D12;
  1213.  
  1214. 00004cec Cond = R4 >> 8;
  1215. 00004cee /* Low-level instruction of type 251 */
  1216. 00004cf4 sub_4C9C(R0, R1, R2, R3);
  1217. 00004cf6 /* Low-level instruction of type 283 */
  1218. 00004cf8 goto loc_4D38;
  1219.  
  1220. 00004cfa loc_4CFA:
  1221. 00004cfe R0 = * (* 0x8700bc78 + 10);
  1222. 00004d00 Cond = R0 - 4;
  1223. 00004d02 if (Cond < 0) goto loc_4D36;
  1224.  
  1225. 00004d04 Cond = R4 >> 8;
  1226. 00004d06 /* Low-level instruction of type 251 */
  1227. 00004d0c sub_4C9C(R0, R1, R2, R3);
  1228. 00004d0e /* Low-level instruction of type 283 */
  1229. 00004d10 goto loc_4D38;
  1230.  
  1231. 00004d12 loc_4D12:
  1232. 00004d18 Cond = * (* 0x8700bc78 + 4) - 0x800;
  1233. 00004d1c if (Cond != 0) goto loc_4D36;
  1234.  
  1235. 00004d22 R0 = * (* 0x8700bc78 + 10);
  1236. 00004d24 Cond = R0 - 5;
  1237. 00004d26 if (Cond < 0) goto loc_4D36;
  1238.  
  1239. 00004d28 Cond = R4 >> 8;
  1240. 00004d2a /* Low-level instruction of type 251 */
  1241. 00004d30 sub_4C9C(R0, R1, R2, R3);
  1242. 00004d32 /* Low-level instruction of type 283 */
  1243. 00004d34 goto loc_4D38;
  1244.  
  1245. 00004d36 loc_4D36:
  1246. 00004d36 /* Low-level instruction of type 2 */
  1247.  
  1248. 00004d3e sub_4D3E:
  1249. 00004d3e /* Low-level instruction of type 43 */
  1250. 00004d42 Cond = 0;
  1251. 00004d44 /* Low-level instruction of type 2 */
  1252. 00004d46 /* Low-level instruction of type 251 */
  1253. 00004d4c sub_4C9C(R0, R1, R2, R3);
  1254. 00004d4e /* Low-level instruction of type 283 */
  1255. 00004d50 goto loc_4D64;
  1256.  
  1257. 00004d52 loc_4D52:
  1258. 00004d52 Cond = R4 >> 8;
  1259. 00004d5c sub_4C9C(R4 >> 8 & 7, R1, R2, R3);
  1260. 00004d5e /* Low-level instruction of type 283 */
  1261. 00004d60 goto loc_4D64;
  1262.  
  1263. 00004d62 loc_4D62:
  1264. 00004d62 /* Low-level instruction of type 2 */
  1265.  
  1266. 00004d6a sub_4D6A:
  1267. 00004d6a /* Low-level instruction of type 43 */
  1268. 00004d6e Cond = 0;
  1269. 00004d70 /* Low-level instruction of type 2 */
  1270. 00004d76 R0 = * (* 0x8700bc78 + 4);
  1271. 00004d78 Cond = R0 - 0x800;
  1272. 00004d7c if (Cond != 0) goto loc_4DD0;
  1273.  
  1274. 00004d7e /* Low-level instruction of type 251 */
  1275. 00004d84 sub_4C9C(R0, R1, R2, R3);
  1276. 00004d86 /* Low-level instruction of type 283 */
  1277. 00004d88 goto loc_4E18;
  1278.  
  1279. 00004d8a loc_4D8A:
  1280. 00004d8a Cond = R4 >> 8;
  1281. 00004d94 sub_4C9C(R4 >> 8 & 7, R1, R2, R3);
  1282. 00004d96 /* Low-level instruction of type 283 */
  1283. 00004d98 goto loc_4E18;
  1284.  
  1285. 00004d9a loc_4D9A:
  1286. 00004d9a Cond = R4 >> 3;
  1287. 00004d9c /* Low-level instruction of type 251 */
  1288. 00004da2 sub_4C9C(R0, R1, R2, R3);
  1289. 00004da4 /* Low-level instruction of type 283 */
  1290. 00004da6 goto loc_4E18;
  1291.  
  1292. 00004da8 loc_4DA8:
  1293. 00004da8 Cond = R4 >> 8;
  1294. 00004daa /* Low-level instruction of type 251 */
  1295. 00004db0 sub_4C9C(R0, R1, R2, R3);
  1296. 00004db2 /* Low-level instruction of type 283 */
  1297. 00004db4 goto loc_4E18;
  1298.  
  1299. 00004db6 loc_4DB6:
  1300. 00004dba R0 = * (* 0x8700bc78 + 10);
  1301. 00004dbc Cond = R0 - 5;
  1302. 00004dbe if (Cond < 0) goto loc_4E16;
  1303.  
  1304. 00004dc0 Cond = R4 >> 8;
  1305. 00004dc2 /* Low-level instruction of type 251 */
  1306. 00004dca Cond = sub_4C9C(R0, R1, R2, R3);
  1307. 00004dcc if (Cond != 0) goto loc_4E16;
  1308.  
  1309. 00004dce goto loc_4E18;
  1310.  
  1311. 00004dd0 loc_4DD0:
  1312. 00004dd0 /* Low-level instruction of type 251 */
  1313. 00004dd6 sub_4C9C(R0, R1, R2, R3);
  1314. 00004dd8 /* Low-level instruction of type 283 */
  1315. 00004dda goto loc_4E18;
  1316.  
  1317. 00004ddc loc_4DDC:
  1318. 00004de0 R0 = * (* 0x8700bc78 + 0x18);
  1319. 00004de2 Cond = R4 >> R0;
  1320. 00004de4 /* Low-level instruction of type 251 */
  1321. 00004dea sub_4C9C(R0, R1, R2, R3);
  1322. 00004dec /* Low-level instruction of type 283 */
  1323. 00004dee goto loc_4E18;
  1324.  
  1325. 00004df0 loc_4DF0:
  1326. 00004df0 Cond = R4 >> 8;
  1327. 00004df2 /* Low-level instruction of type 251 */
  1328. 00004df8 sub_4C9C(R0, R1, R2, R3);
  1329. 00004dfa /* Low-level instruction of type 283 */
  1330. 00004dfc goto loc_4E18;
  1331.  
  1332. 00004dfe loc_4DFE:
  1333. 00004e02 R0 = * (* 0x8700bc78 + 10);
  1334. 00004e04 Cond = R0 - 4;
  1335. 00004e06 if (Cond < 0) goto loc_4E16;
  1336.  
  1337. 00004e08 Cond = R4 >> 8;
  1338. 00004e0a /* Low-level instruction of type 251 */
  1339. 00004e10 sub_4C9C(R0, R1, R2, R3);
  1340. 00004e12 /* Low-level instruction of type 283 */
  1341. 00004e14 goto loc_4E18;
  1342.  
  1343. 00004e16 loc_4E16:
  1344. 00004e16 /* Low-level instruction of type 2 */
  1345.  
  1346. 00004e2a sub_4E2A:
  1347. 00004e2a /* Low-level instruction of type 43 */
  1348. 00004e2c Cond = 1;
  1349. 00004e2e Cond = 0x70;
  1350. 00004e30 sub_4C84(0x70, R1, R2, R3);
  1351. 00004e34 /* Low-level instruction of type 2 */
  1352.  
  1353. 00004e36 loc_4E36:
  1354. 00004e36 R0 = 0x6e00007c;
  1355. 00004e38 Cond = R0 + 8;
  1356. 00004e3a R4 = * (R0 + 8);
  1357. 00004e40 Cond = (R4 & 0x40) - 0x40;
  1358. 00004e42 if (Cond != 0) goto loc_4E36;
  1359.  
  1360. 00004e44 Cond = R4 - 0xe0;
  1361. 00004e46 if (Cond == 0) goto loc_4E4A;
  1362.  
  1363. 00004e48 Cond = 0;
  1364.  
  1365. 00004e4e sub_4E4E:
  1366. 00004e4e /* Low-level instruction of type 43 */
  1367. 00004e50 R4 = R0;
  1368. 00004e52 R5 = R1;
  1369. 00004e54 Cond = 0;
  1370. 00004e56 /* Low-level instruction of type 282 */
  1371. 00004e58 /* Low-level instruction of type 282 */
  1372. 00004e5a /* Low-level instruction of type 2 */
  1373. 00004e5c Cond = 0x90;
  1374. 00004e64 Cond = sub_4C84(0x90, R1, R2, R3) - 1;
  1375. 00004e66 if (Cond == 0) goto loc_4E6A;
  1376.  
  1377. 00004e68 goto loc_4EB0;
  1378.  
  1379. 00004e6a loc_4E6A:
  1380. 00004e6a Cond = 0;
  1381. 00004e72 Cond = sub_4C9C(0, R1, R2, R3) - 1;
  1382. 00004e74 if (Cond == 0) goto loc_4E78;
  1383.  
  1384. 00004e76 goto loc_4EB0;
  1385.  
  1386. 00004e78 loc_4E78:
  1387. 00004e78 R0 = 0x6e00007c;
  1388. 00004e7a Cond = R0 + 8;
  1389. 00004e7e var_14 = * (R0 + 8);
  1390. 00004e8a var_13 = * (0x6e000000 + 0x84);
  1391. 00004e8e R0 = 0x6e00007c;
  1392. 00004e90 Cond = R0 + 8;
  1393. 00004e94 var_12 = * (R0 + 8);
  1394. 00004e98 R0 = 0x6e00007c;
  1395. 00004e9a Cond = R0 + 8;
  1396. 00004e9e var_11 = * (R0 + 8);
  1397. 00004ea6 * R4 = var_14;
  1398. 00004eac * R5 = var_13;
  1399. 00004eae /* Low-level instruction of type 2 */
  1400.  
  1401. 00004eb0 loc_4EB0:
  1402. 00004eb0 /* Low-level instruction of type 2 */
  1403.  
  1404. 00004ebc sub_4EBC:
  1405. 00004ebc /* Low-level instruction of type 43 */
  1406. 00004ebe Cond = 0;
  1407. 00004ec2 * 0x8700bc78 = 0;
  1408. 00004ecc sub_4E4E(& var_18, SP, R2, R3);
  1409. 00004ece /* Low-level instruction of type 2 */
  1410. 00004ed8 * (0x6e000000 + 0x60) = 0x1800;
  1411. 00004eda /* Low-level instruction of type 2 */
  1412. 00004ee0 Cond = var_18 - 0x2c;
  1413. 00004ee2 if (Cond == 0) goto loc_4EEC;
  1414.  
  1415. 00004ee8 Cond = var_18 - 0x98;
  1416. 00004eea if (Cond != 0) goto loc_4F1C;
  1417.  
  1418. 00004eec loc_4EEC:
  1419. 00004eec /* Low-level instruction of type 2 */
  1420. 00004ef4 * (0x6e000000 + 0x64) = 0x70900;
  1421. 00004ef6 /* Low-level instruction of type 2 */
  1422. 00004ef8 /* Low-level instruction of type 2 */
  1423. 00004f00 * (0x6e000000 + 0x68) = 0x70900;
  1424. 00004f02 /* Low-level instruction of type 2 */
  1425. 00004f04 /* Low-level instruction of type 2 */
  1426. 00004f0c * (0x6e000000 + 0x6c) = 0x5020702;
  1427. 00004f0e /* Low-level instruction of type 2 */
  1428. 00004f10 /* Low-level instruction of type 2 */
  1429. 00004f18 * (0x6e000000 + 0x70) = 0x1070709;
  1430. 00004f1a goto loc_4F4C;
  1431.  
  1432. 00004f1c loc_4F1C:
  1433. 00004f1c /* Low-level instruction of type 2 */
  1434. 00004f24 * (0x6e000000 + 0x64) = 0xa0900;
  1435. 00004f26 /* Low-level instruction of type 2 */
  1436. 00004f28 /* Low-level instruction of type 2 */
  1437. 00004f30 * (0x6e000000 + 0x68) = 0xa0900;
  1438. 00004f32 /* Low-level instruction of type 2 */
  1439. 00004f34 /* Low-level instruction of type 2 */
  1440. 00004f3c * (0x6e000000 + 0x6c) = 0x7020702;
  1441. 00004f3e /* Low-level instruction of type 2 */
  1442. 00004f40 /* Low-level instruction of type 2 */
  1443. 00004f48 * (0x6e000000 + 0x70) = 0x1080a09;
  1444. 00004f4a /* Low-level instruction of type 2 */
  1445.  
  1446. 00004f4c loc_4F4C:
  1447. 00004f4c /* Low-level instruction of type 2 */
  1448. 00004f54 * (0x6e000000 + 0x74) = 0x85030004;
  1449. 00004f56 /* Low-level instruction of type 2 */
  1450. 00004f58 /* Low-level instruction of type 2 */
  1451. 00004f5a Cond = 0x50;
  1452. 00004f60 * (0x6e000000 + 0x78) = 0x50;
  1453. 00004f62 /* Low-level instruction of type 2 */
  1454. 00004f64 Cond = 0;
  1455. 00004f64 R7 = 0;
  1456. 00004f66 goto loc_4FC2;
  1457.  
  1458. 00004f68 loc_4F68:
  1459. 00004f68 Cond = 0;
  1460. 00004f68 R6 = 0;
  1461. 00004f6a goto loc_4FA6;
  1462.  
  1463. 00004f6c loc_4F6C:
  1464. 00004f7a Cond = * (0x8700bb24 + (R6 << 3) - R6) - var_18;
  1465. 00004f7c if (Cond != 0) goto loc_4FA2;
  1466.  
  1467. 00004f8e Cond = * (0x8700bb24 + ((R6 << 3) - R6 << 2) + 1) - var_1C;
  1468. 00004f90 if (Cond != 0) goto loc_4FA2;
  1469.  
  1470. 00004f9e * 0x8700bc78 = 0x8700bb24 + ((R6 << 3) - R6 << 2);
  1471. 00004fa0 goto loc_4FAA;
  1472.  
  1473. 00004fa2 loc_4FA2:
  1474. 00004fa2 Cond = R6 + 1;
  1475. 00004fa4 /* Low-level instruction of type 255 */
  1476.  
  1477. 00004fa6 loc_4FA6:
  1478. 00004fa6 Cond = R6 - 12;
  1479. 00004fa8 if (Cond < 0) goto loc_4F6C;
  1480.  
  1481. 00004faa loc_4FAA:
  1482. 00004faa /* Low-level instruction of type 2 */
  1483. 00004fb0 /* Low-level instruction of type 283 */
  1484. 00004fba var_1C = var_18;
  1485. 00004fbc var_18 = var_1C;
  1486.  
  1487. 00004fbe loc_4FBE:
  1488. 00004fbe Cond = R7 + 1;
  1489. 00004fc0 /* Low-level instruction of type 251 */
  1490.  
  1491. 00004fc2 loc_4FC2:
  1492. 00004fc6 /* Low-level instruction of type 283 */
  1493. 00004fc8 Cond = R7 - 2;
  1494. 00004fca if (Cond < 0) goto loc_4F68;
  1495.  
  1496. 00004fcc loc_4FCC:
  1497. 00004fd0 /* Low-level instruction of type 282 */
  1498. 00004fd2 Cond = 1;
  1499. 00004fd4 goto loc_4FD8;
  1500.  
  1501. 00004fd6 loc_4FD6:
  1502. 00004fd6 Cond = 0;
  1503.  
  1504. 00004fdc sub_4FDC:
  1505. 00004fdc /* Low-level instruction of type 43 */
  1506. 00004fde Cond = 0;
  1507. 00004fe0 /* Low-level instruction of type 2 */
  1508. 00004fe6 /* Low-level instruction of type 283 */
  1509. 00004fee Cond = sub_4EBC(* 0x8700bc78, R1, R2, R3) - 1;
  1510. 00004ff0 if (Cond == 0) goto loc_4FF4;
  1511.  
  1512. 00004ff2 goto loc_5002;
  1513.  
  1514. 00004ff4 loc_4FF4:
  1515. 00004ff4 Cond = 1;
  1516. 00004ff6 /* Low-level instruction of type 282 */
  1517. 00004ff8 Cond = 1;
  1518. 00004ffe * (* 0x8700bc78 + 14) = 1;
  1519.  
  1520. 00005000 loc_5000:
  1521. 00005000 /* Low-level instruction of type 2 */
  1522.  
  1523. 0000500e sub_500E:
  1524. 0000501c R2 = * R0 | * (R0 + 1) << 0x10 | (* (R0 + 2) & 0xf0) << 0x14;
  1525. 00005022 R3 = * (R0 + 2) & 15;
  1526. 00005026 R1 = R2 | R3 << 8;
  1527. 0000502a /* Low-level instruction of type 271 */
  1528. 0000502e Cond = R2 << 7;
  1529. 0000502e R2 = R2 << 7;
  1530. 00005030 goto loc_5068;
  1531.  
  1532. 00005032 Cond = R0;
  1533. 00005032 R0 = R0;
  1534.  
  1535. 00005068 loc_5068:
  1536. 00005068 /* Low-level instruction of type 271 */
  1537. 00005070 /* Low-level instruction of type 271 */
  1538. 00005078 /* Low-level instruction of type 271 */
  1539. 00005080 /* Low-level instruction of type 271 */
  1540. 00005088 /* Low-level instruction of type 271 */
  1541. 00005090 /* Low-level instruction of type 271 */
  1542. 00005094 R2 = R2 | R3 << 6 | R3 << 5 | R3 << 4 | R3 << 3 | R3 << 2 | R3 << 1;
  1543. 00005098 /* Low-level instruction of type 271 */
  1544. 0000509c Cond = R2 | R3;
  1545. 0000509e R2 = ~ (R2 | R3);
  1546. 000050a0 * R0 = R2;
  1547. 000050a2 /* Low-level instruction of type 271 */
  1548. 000050a6 Cond = R2 << 7;
  1549. 000050a6 R2 = R2 << 7;
  1550. 000050a8 /* Low-level instruction of type 271 */
  1551. 000050ac R3 = R2 | R3 << 6;
  1552. 000050b0 /* Low-level instruction of type 271 */
  1553. 000050b8 /* Low-level instruction of type 271 */
  1554. 000050c0 /* Low-level instruction of type 271 */
  1555. 000050c8 /* Low-level instruction of type 271 */
  1556. 000050d0 /* Low-level instruction of type 271 */
  1557. 000050d4 R2 = R2 | R3 << 5 | R3 << 4 | R3 << 3 | R3 << 2 | R3 << 1;
  1558. 000050d8 /* Low-level instruction of type 271 */
  1559. 000050dc Cond = R2 | R3;
  1560. 000050de R2 = ~ (R2 | R3);
  1561. 000050e0 * (R0 + 1) = R2;
  1562. 000050e2 /* Low-level instruction of type 271 */
  1563. 000050e6 Cond = R2 << 7;
  1564. 000050e8 /* Low-level instruction of type 271 */
  1565. 000050f0 /* Low-level instruction of type 271 */
  1566. 000050f8 /* Low-level instruction of type 271 */
  1567. 00005100 /* Low-level instruction of type 271 */
  1568. 00005110 Cond = R1 >> 0x1b;
  1569. 00005110 R3 = R1 >> 0x1b;
  1570. 00005112 R2 = R2 << 7 | (R1 & 1) << 6 | (R1 & 1) << 5 | (R1 & 1) << 4 | (R1 & 1) << 3 | (R1 & 1) << 2 | R3 << 1;
  1571. 00005116 /* Low-level instruction of type 271 */
  1572. 0000511a Cond = R2 | R3;
  1573. 0000511e * (R0 + 2) = ~ (R2 | R3);
  1574. 00005120 return R0;
  1575.  
  1576. 00005122 sub_5122:
  1577. 00005122 /* Low-level instruction of type 43 */
  1578. 00005126 SP = SP - 0x48;
  1579. 00005128 R4 = R0;
  1580. 0000512a R5 = R1;
  1581. 0000512c R6 = R2;
  1582. 0000512e R8 = 0;
  1583. 00005136 R0 = * R4;
  1584. 00005138 R1 = * (R4 + 1);
  1585. 0000513a Cond = R0 & R1;
  1586. 0000513e R1 = * (R4 + 2) & 1;
  1587. 00005142 R11 = R0 & R1 & R1;
  1588. 00005148 sub_500E(R4, R1, R2, R3);
  1589. 0000514e sub_500E(R5, R1, R2, R3);
  1590. 00005152 Cond = 0;
  1591. 00005152 R7 = 0;
  1592. 00005154 goto loc_5164;
  1593.  
  1594. 00005156 loc_5156:
  1595. 0000515a * (R4 + R7) = ~ * (R4 + R7);
  1596. 00005160 * (R5 + R7) = ~ * (R5 + R7);
  1597. 00005162 Cond = R7 + 1;
  1598. 00005162 R7 = R7 + 1;
  1599.  
  1600. 00005164 loc_5164:
  1601. 00005164 Cond = R7 - 2;
  1602. 00005166 if (Cond <= 0) goto loc_5156;
  1603.  
  1604. 00005168 Cond = 0;
  1605. 00005168 R7 = 0;
  1606. 0000516a goto loc_517E;
  1607.  
  1608. 0000516c loc_516C:
  1609. 00005174 * (& var_2C + R7) = * R4 & 1;
  1610. 00005176 R0 = * R4;
  1611. 00005178 Cond = R0 >> 1;
  1612. 0000517a * R4 = R0 >> 1;
  1613. 0000517c Cond = R7 + 1;
  1614. 0000517c R7 = R7 + 1;
  1615.  
  1616. 0000517e loc_517E:
  1617. 0000517e Cond = R7 - 8;
  1618. 00005180 if (Cond < 0) goto loc_516C;
  1619.  
  1620. 00005182 Cond = 0;
  1621. 00005182 R7 = 0;
  1622. 00005184 goto loc_5198;
  1623.  
  1624. 00005186 loc_5186:
  1625. 0000518e * (& var_34 + R7) = * (R4 + 1) & 1;
  1626. 00005190 R0 = * (R4 + 1);
  1627. 00005192 Cond = R0 >> 1;
  1628. 00005194 * (R4 + 1) = R0 >> 1;
  1629. 00005196 Cond = R7 + 1;
  1630. 00005196 R7 = R7 + 1;
  1631.  
  1632. 00005198 loc_5198:
  1633. 00005198 Cond = R7 - 8;
  1634. 0000519a if (Cond < 0) goto loc_5186;
  1635.  
  1636. 0000519c Cond = 0;
  1637. 0000519c R7 = 0;
  1638. 0000519e goto loc_51B2;
  1639.  
  1640. 000051a0 loc_51A0:
  1641. 000051a8 * (& var_3C + R7) = * (R4 + 2) & 1;
  1642. 000051aa R0 = * (R4 + 2);
  1643. 000051ac Cond = R0 >> 1;
  1644. 000051ae * (R4 + 2) = R0 >> 1;
  1645. 000051b0 Cond = R7 + 1;
  1646. 000051b0 R7 = R7 + 1;
  1647.  
  1648. 000051b2 loc_51B2:
  1649. 000051b2 Cond = R7 - 8;
  1650. 000051b4 if (Cond < 0) goto loc_51A0;
  1651.  
  1652. 000051b6 Cond = 0;
  1653. 000051b6 R7 = 0;
  1654. 000051b8 goto loc_51CC;
  1655.  
  1656. 000051ba loc_51BA:
  1657. 000051c2 * (& var_44 + R7) = * R5 & 1;
  1658. 000051c4 R0 = * R5;
  1659. 000051c6 Cond = R0 >> 1;
  1660. 000051c8 * R5 = R0 >> 1;
  1661. 000051ca Cond = R7 + 1;
  1662. 000051ca R7 = R7 + 1;
  1663.  
  1664. 000051cc loc_51CC:
  1665. 000051cc Cond = R7 - 8;
  1666. 000051ce if (Cond < 0) goto loc_51BA;
  1667.  
  1668. 000051d0 Cond = 0;
  1669. 000051d0 R7 = 0;
  1670. 000051d2 goto loc_51E6;
  1671.  
  1672. 000051d4 loc_51D4:
  1673. 000051dc * (& var_4C + R7) = * (R5 + 1) & 1;
  1674. 000051de R0 = * (R5 + 1);
  1675. 000051e0 Cond = R0 >> 1;
  1676. 000051e2 * (R5 + 1) = R0 >> 1;
  1677. 000051e4 Cond = R7 + 1;
  1678. 000051e4 R7 = R7 + 1;
  1679.  
  1680. 000051e6 loc_51E6:
  1681. 000051e6 Cond = R7 - 8;
  1682. 000051e8 if (Cond < 0) goto loc_51D4;
  1683.  
  1684. 000051ea Cond = 0;
  1685. 000051ea R7 = 0;
  1686. 000051ec goto loc_5200;
  1687.  
  1688. 000051ee loc_51EE:
  1689. 000051f6 * (& var_54 + R7) = * (R5 + 2) & 1;
  1690. 000051f8 R0 = * (R5 + 2);
  1691. 000051fa Cond = R0 >> 1;
  1692. 000051fc * (R5 + 2) = R0 >> 1;
  1693. 000051fe Cond = R7 + 1;
  1694. 000051fe R7 = R7 + 1;
  1695.  
  1696. 00005200 loc_5200:
  1697. 00005200 Cond = R7 - 8;
  1698. 00005202 if (Cond < 0) goto loc_51EE;
  1699.  
  1700. 00005204 Cond = 0;
  1701. 00005204 R7 = 0;
  1702. 00005206 goto loc_521A;
  1703.  
  1704. 00005208 loc_5208:
  1705. 0000520a Cond = R7 + 2;
  1706. 0000520a R0 = R7 + 2;
  1707. 0000520c R1 = * (& var_3C + R0);
  1708. 00005210 R0 = * (& var_54 + R0);
  1709. 00005212 Cond = R1 ^ R0;
  1710. 00005216 * (SP + R7) = R1 ^ R0;
  1711. 00005218 Cond = R7 + 1;
  1712. 00005218 R7 = R7 + 1;
  1713.  
  1714. 0000521a loc_521A:
  1715. 0000521a Cond = R7 - 6;
  1716. 0000521c if (Cond < 0) goto loc_5208;
  1717.  
  1718. 0000521e Cond = 0;
  1719. 0000521e R7 = 0;
  1720. 00005220 goto loc_5234;
  1721.  
  1722. 00005222 loc_5222:
  1723. 00005224 R1 = * (& var_2C + R7);
  1724. 00005228 R0 = * (& var_44 + R7);
  1725. 0000522a Cond = R1 ^ R0;
  1726. 0000522e Cond = R7 + 6;
  1727. 00005230 * (SP + R7 + 6) = R1 ^ R0;
  1728. 00005232 Cond = R7 + 1;
  1729. 00005232 R7 = R7 + 1;
  1730.  
  1731. 00005234 loc_5234:
  1732. 00005234 Cond = R7 - 8;
  1733. 00005236 if (Cond < 0) goto loc_5222;
  1734.  
  1735. 00005238 Cond = 0;
  1736. 00005238 R7 = 0;
  1737. 0000523a goto loc_5250;
  1738.  
  1739. 0000523c loc_523C:
  1740. 0000523e R1 = * (& var_34 + R7);
  1741. 00005242 R0 = * (& var_4C + R7);
  1742. 00005244 Cond = R1 ^ R0;
  1743. 0000524c * (SP + R7 + 14) = R1 ^ R0;
  1744. 0000524e Cond = R7 + 1;
  1745. 0000524e R7 = R7 + 1;
  1746.  
  1747. 00005250 loc_5250:
  1748. 00005250 Cond = R7 - 8;
  1749. 00005252 if (Cond < 0) goto loc_523C;
  1750.  
  1751. 00005254 R0 = var_3C;
  1752. 00005258 R1 = var_54;
  1753. 0000525c Cond = R0 ^ R1;
  1754. 0000525e var_56 = R0 ^ R1;
  1755. 00005262 R0 = var_3B;
  1756. 00005266 R1 = var_53;
  1757. 0000526a Cond = R0 ^ R1;
  1758. 0000526c var_55 = R0 ^ R1;
  1759. 00005270 Cond = 0;
  1760. 00005270 R7 = 0;
  1761. 00005272 goto loc_5280;
  1762.  
  1763. 00005274 loc_5274:
  1764. 0000527a R8 = * (SP + R7) + R8 & 0xff;
  1765. 0000527e Cond = R7 + 1;
  1766. 0000527e R7 = R7 + 1;
  1767.  
  1768. 00005280 loc_5280:
  1769. 00005280 Cond = R7 - 0x18;
  1770. 00005282 if (Cond < 0) goto loc_5274;
  1771.  
  1772. 00005284 Cond = R8;
  1773. 00005288 if (Cond == 0) goto loc_5298;
  1774.  
  1775. 0000528a Cond = R8 - 1;
  1776. 0000528e if (Cond == 0) goto loc_52A0;
  1777.  
  1778. 00005290 Cond = R8 - 12;
  1779. 00005294 if (Cond != 0) goto loc_5314;
  1780.  
  1781. 00005296 goto loc_52A4;
  1782.  
  1783. 00005298 loc_5298:
  1784. 00005298 Cond = 1;
  1785.  
  1786. 0000529a loc_529A:
  1787. 0000529c /* Low-level instruction of type 42 */
  1788.  
  1789. 000052a0 loc_52A0:
  1790. 000052a0 Cond = 0;
  1791. 000052a2 goto loc_529A;
  1792.  
  1793. 000052a4 loc_52A4:
  1794. 000052a4 R0 = var_55;
  1795. 000052a8 Cond = R0 << 8;
  1796. 000052e6 R10 = (R0 << 8) + (var_57 << 7) + (var_59 << 6) + (var_5B << 5) + (var_5D << 4) + (var_5F << 3) + (var_61 << 2) + (var_63 << 1) + var_65;
  1797. 000052ea R0 = var_67;
  1798. 000052ee Cond = R0 << 2;
  1799. 00005300 R1 = * (R6 + R10);
  1800. 00005304 Cond = 1;
  1801. 00005306 R0 = 1 << (R0 << 2) + (var_69 << 1) + var_6B;
  1802. 0000530a Cond = R1 ^ R0;
  1803. 0000530c * (R6 + R10) = R1 ^ R0;
  1804. 00005310 Cond = 1;
  1805. 00005312 goto loc_529A;
  1806.  
  1807. 00005314 loc_5314:
  1808. 00005314 Cond = R11;
  1809. 00005318 if (Cond == 0) goto loc_532A;
  1810.  
  1811. 0000531c /* Low-level instruction of type 283 */
  1812. 00005320 /* Low-level instruction of type 283 */
  1813. 00005324 /* Low-level instruction of type 283 */
  1814. 00005326 Cond = 1;
  1815. 00005328 goto loc_529A;
  1816.  
  1817. 0000532a loc_532A:
  1818. 0000532a Cond = 0;
  1819. 0000532c goto loc_529A;
  1820.  
  1821. 0000532e sub_532E:
  1822. 0000532e /* Low-level instruction of type 43 */
  1823. 00005332 R4 = R0;
  1824. 00005334 R5 = R1;
  1825. 00005336 R6 = R2;
  1826. 00005338 Cond = 1;
  1827. 0000533a Cond = 4;
  1828. 0000533c var_28 = 4;
  1829. 0000533e R11 = 0;
  1830. 00005342 goto loc_538A;
  1831.  
  1832. 00005344 loc_5344:
  1833. 00005358 R10 = * (R6 + 2) ^ * (R5 + 2);
  1834. 0000535c R0 = * R6 ^ * R5 | * (R6 + 1) ^ * (R5 + 1);
  1835. 00005360 Cond = R0 | R10;
  1836. 00005364 if (Cond == 0) goto loc_537A;
  1837.  
  1838. 00005370 R7 = sub_5122(R5, R6, R4, R3);
  1839. 00005372 /* Low-level instruction of type 283 */
  1840.  
  1841. 00005376 locret_5376:
  1842. 00005376 /* Low-level instruction of type 42 */
  1843.  
  1844. 0000537a loc_537A:
  1845. 0000537a Cond = R5 + 3;
  1846. 0000537a R5 = R5 + 3;
  1847. 0000537c Cond = R6 + 3;
  1848. 0000537c R6 = R6 + 3;
  1849. 0000537e R4 = R4 + 0x200;
  1850. 00005386 R11 = R11 + 1 & 0xff;
  1851.  
  1852. 0000538a loc_538A:
  1853. 0000538c Cond = R11 - var_28;
  1854. 0000538e if (Cond < 0) goto loc_5344;
  1855.  
  1856. 00005390 Cond = 1;
  1857. 00005392 goto locret_5376;
  1858.  
  1859. 00005394 sub_5394:
  1860. 00005394 /* Low-level instruction of type 43 */
  1861. 0000539a R5 = R1;
  1862. 0000539c R7 = R0;
  1863. 000053a4 /* Low-level instruction of type 282 */
  1864. 000053a6 Cond = R5 >> 2;
  1865. 000053a6 R6 = R5 >> 2;
  1866. 000053a8 goto loc_53DE;
  1867.  
  1868. 000053aa loc_53AA:
  1869. 000053ac R0 = * 0x6e000084;
  1870. 000053ae var_20 = R0;
  1871. 000053b6 Cond = sub_4BF8(R0, R1, R2, R3) - 1;
  1872. 000053ba if (Cond == 0) goto loc_53BE;
  1873.  
  1874. 000053bc goto loc_53E2;
  1875.  
  1876. 000053be loc_53BE:
  1877. 000053be R8 = 0;
  1878. 000053c2 goto loc_53D6;
  1879.  
  1880. 000053c4 loc_53C4:
  1881. 000053ca * R7 = * (SP + R8);
  1882. 000053cc Cond = R7 + 1;
  1883. 000053cc R7 = R7 + 1;
  1884. 000053d2 R8 = R8 + 1 & 0xff;
  1885.  
  1886. 000053d6 loc_53D6:
  1887. 000053d6 Cond = R8 - 4;
  1888. 000053da if (Cond < 0) goto loc_53C4;
  1889.  
  1890. 000053dc Cond = R6 - 1;
  1891. 000053dc R6 = R6 - 1;
  1892.  
  1893. 000053de loc_53DE:
  1894. 000053de Cond = R6;
  1895. 000053e0 if (Cond != 0) goto loc_53AA;
  1896.  
  1897. 000053e2 loc_53E2:
  1898. 000053e2 /* Low-level instruction of type 2 */
  1899.  
  1900. 0000540e sub_540E:
  1901. 0000540e /* Low-level instruction of type 43 */
  1902. 00005418 R6 = R2;
  1903. 0000541a R7 = R3;
  1904. 00005426 R0 = * (* 0x8700bc78 + 0x15) << R0;
  1905. 00005430 R1 = * (* 0x8700bc78 + 0x14) << R1;
  1906. 00005434 R9 = R0 + R1;
  1907. 00005438 Cond = R6;
  1908. 0000543a if (Cond == 0) goto loc_5520;
  1909.  
  1910. 0000543c /* Low-level instruction of type 2 */
  1911. 0000543e Cond = 1;
  1912. 00005440 sub_4C30(1, R1, R2, R3);
  1913. 00005448 Cond = * 0x8700bc74 - 1;
  1914. 0000544a if (Cond != 0) goto loc_5458;
  1915.  
  1916. 0000544c /* Low-level instruction of type 2 */
  1917. 00005452 R1 = 0x6e0001f8;
  1918. 00005454 * R1 = 0x101;
  1919. 00005456 /* Low-level instruction of type 2 */
  1920.  
  1921. 00005458 loc_5458:
  1922. 00005458 Cond = 0;
  1923. 0000545a R0 = sub_4C84(0, R1, R2, R3);
  1924. 00005460 Cond = R0 - 1;
  1925. 00005464 if (Cond == 0) goto loc_5468;
  1926.  
  1927. 00005466 goto loc_55C6;
  1928.  
  1929. 00005468 loc_5468:
  1930. 0000546a R0 = sub_4D6A(R9, R1, R2, R3);
  1931. 00005470 Cond = R0 - 1;
  1932. 00005474 if (Cond == 0) goto loc_5478;
  1933.  
  1934. 00005476 goto loc_55C6;
  1935.  
  1936. 00005478 loc_5478:
  1937. 00005478 Cond = 0x30;
  1938. 0000547a R0 = sub_4C84(0x30, R1, R2, R3);
  1939. 00005480 Cond = R0 - 1;
  1940. 00005484 if (Cond == 0) goto loc_5488;
  1941.  
  1942. 00005486 goto loc_55C6;
  1943.  
  1944. 00005488 loc_5488:
  1945. 00005488 R0 = sub_4BF8(R0, R1, R2, R3);
  1946. 0000548e Cond = R0 - 1;
  1947. 00005492 if (Cond == 0) goto loc_5496;
  1948.  
  1949. 00005494 goto loc_55C6;
  1950.  
  1951. 00005496 loc_5496:
  1952. 0000549e sub_5394(R6, * (* 0x8700bc78 + 4), R2, R3);
  1953. 000054a4 R0 = * 0x8700bc74;
  1954. 000054a6 Cond = R0 - 1;
  1955. 000054a8 if (Cond != 0) goto loc_54E4;
  1956.  
  1957. 000054ae Cond = * 0x8700bc74 - 1;
  1958. 000054b0 if (Cond != 0) goto loc_54B6;
  1959.  
  1960. 000054b2 Cond = 12;
  1961. 000054b2 R0 = 12;
  1962. 000054b4 goto loc_54B8;
  1963.  
  1964. 000054b6 loc_54B6:
  1965. 000054b6 Cond = 0;
  1966. 000054b6 R0 = 0;
  1967.  
  1968. 000054b8 loc_54B8:
  1969. 000054ba Cond = 0xff;
  1970. 000054be R0 = sub_44C8[204](& var_34, 0xff, R0, R3);
  1971. 000054c2 R10 = 0;
  1972. 000054c6 goto loc_54DE;
  1973.  
  1974. 000054c8 loc_54C8:
  1975. 000054c8 R0 = R10 + (R10 << 1);
  1976. 000054cc R2 = & var_34;
  1977. 000054ce Cond = R0 + R2;
  1978. 000054d2 sub_53EA(R10, R0 + R2, R2, R3);
  1979. 000054d6 R0 = R10 + 1;
  1980. 000054da R10 = R0 & 0xff;
  1981.  
  1982. 000054de loc_54DE:
  1983. 000054de Cond = R10 - 4;
  1984. 000054e2 if (Cond < 0) goto loc_54C8;
  1985.  
  1986. 000054e4 loc_54E4:
  1987. 000054e4 Cond = R7;
  1988. 000054e6 if (Cond == 0) goto loc_55C4;
  1989.  
  1990. 000054e8 Cond = 0;
  1991. 000054ea sub_4C30(0, R1, R2, R3);
  1992. 000054ee Cond = 5;
  1993. 000054f0 R0 = sub_4C84(5, R1, R2, R3);
  1994. 000054f6 Cond = R0 - 1;
  1995. 000054fa if (Cond == 0) goto loc_54FE;
  1996.  
  1997. 000054fc goto loc_55C6;
  1998.  
  1999. 000054fe loc_54FE:
  2000. 00005504 /* Low-level instruction of type 283 */
  2001. 0000550a var_28 = 0x800;
  2002. 0000550c goto loc_5526;
  2003.  
  2004. 0000550e loc_550E:
  2005. 00005514 Cond = * (* 0x8700bc78 + 7) - 1;
  2006. 00005516 if (Cond != 0) goto loc_5522;
  2007.  
  2008. 0000551c var_28 = 0x400;
  2009. 0000551e goto loc_5526;
  2010.  
  2011. 00005520 loc_5520:
  2012. 00005520 goto loc_55C8;
  2013.  
  2014. 00005522 loc_5522:
  2015. 00005522 /* Low-level instruction of type 2 */
  2016.  
  2017. 00005524 loc_5524:
  2018. 00005524 goto loc_5524;
  2019.  
  2020. 00005526 loc_5526:
  2021. 00005528 R0 = sub_4D3E(var_28, R1, R2, R3);
  2022. 0000552e Cond = R0 - 1;
  2023. 00005532 if (Cond == 0) goto loc_5536;
  2024.  
  2025. 00005534 goto loc_55C6;
  2026.  
  2027. 00005536 loc_5536:
  2028. 00005536 Cond = 0xe0;
  2029. 00005538 R0 = sub_4C84(0xe0, R1, R2, R3);
  2030. 0000553e Cond = R0 - 1;
  2031. 00005542 if (Cond == 0) goto loc_5546;
  2032.  
  2033. 00005544 goto loc_55C6;
  2034.  
  2035. 00005546 loc_5546:
  2036. 00005546 Cond = 0x40;
  2037. 0000554a sub_5394(R7, 0x40, R2, R3);
  2038. 0000554e Cond = 1;
  2039. 00005550 sub_4C30(1, R1, R2, R3);
  2040. 00005556 R0 = * 0x8700bc74;
  2041. 00005558 Cond = R0 - 1;
  2042. 0000555a if (Cond != 0) goto loc_55C4;
  2043.  
  2044. 0000555c Cond = 12;
  2045. 0000555e Cond = 0xff;
  2046. 00005562 sub_3594(& var_40, 0xff, 12, R3);
  2047. 00005566 /* Low-level instruction of type 283 */
  2048. 00005568 R11 = 2;
  2049. 0000556c Cond = 3;
  2050. 0000556e var_44 = 3;
  2051. 00005570 goto loc_557A;
  2052.  
  2053. 00005572 loc_5572:
  2054. 00005572 R11 = 0x28;
  2055. 00005576 Cond = 3;
  2056. 00005578 var_44 = 3;
  2057.  
  2058. 0000557a loc_557A:
  2059. 0000557a R10 = 0;
  2060. 0000557e goto loc_55A4;
  2061.  
  2062. 00005580 loc_5580:
  2063. 00005586 /* Low-level instruction of type 55 */
  2064. 0000558e R3 = & var_40;
  2065. 00005598 sub_355C(R10 + (R10 << 1) + R3, R1, 3, R3);
  2066. 000055a0 R10 = R10 + 1 & 0xff;
  2067.  
  2068. 000055a4 loc_55A4:
  2069. 000055a4 Cond = R10 - 4;
  2070. 000055a8 if (Cond < 0) goto loc_5580;
  2071.  
  2072. 000055b0 R0 = sub_532E(R6, & var_40, & var_34, R3);
  2073. 000055b4 R8 = R0;
  2074. 000055b6 Cond = R8 - 1;
  2075. 000055ba if (Cond == 0) goto loc_55C4;
  2076.  
  2077. 000055bc R0 = R8;
  2078.  
  2079. 000055be loc_55BE:
  2080. 000055c0 /* Low-level instruction of type 42 */
  2081.  
  2082. 000055c4 loc_55C4:
  2083. 000055c4 /* Low-level instruction of type 2 */
  2084.  
  2085. 000055c6 loc_55C6:
  2086. 000055c6 /* Low-level instruction of type 2 */
  2087.  
  2088. 000055c8 loc_55C8:
  2089. 000055ce R0 = sub_4BF8(R0, R1, R2, R3);
  2090. 000055d0 goto loc_55BE;
  2091.  
  2092. 000055d2 sub_55D2:
  2093. 000055d2 /* Low-level instruction of type 43 */
  2094. 000055d4 R2 = R0;
  2095. 000055d6 /* Low-level instruction of type 282 */
  2096. 000055d8 Cond = R1 >> 2;
  2097. 000055d8 R1 = R1 >> 2;
  2098. 000055da goto loc_5606;
  2099.  
  2100. 000055dc loc_55DC:
  2101. 000055dc Cond = 0;
  2102. 000055dc R3 = 0;
  2103. 000055de goto loc_55EA;
  2104.  
  2105. 000055e0 loc_55E0:
  2106. 000055e4 * (SP + R3) = * R2;
  2107. 000055e6 Cond = R2 + 1;
  2108. 000055e6 R2 = R2 + 1;
  2109. 000055e8 Cond = R3 + 1;
  2110. 000055e8 R3 = R3 + 1;
  2111.  
  2112. 000055ea loc_55EA:
  2113. 000055ea Cond = R3 - 4;
  2114. 000055ec if (Cond < 0) goto loc_55E0;
  2115.  
  2116. 000055ee /* Low-level instruction of type 2 */
  2117. 000055f4 * 0x6e000084 = var_10;
  2118. 000055f6 /* Low-level instruction of type 2 */
  2119. 000055f8 /* Low-level instruction of type 2 */
  2120.  
  2121. 000055fa loc_55FA:
  2122. 00005600 Cond = 0;
  2123. 00005602 Cond = 0;
  2124. 00005604 if (Cond != 0) goto loc_55FA;
  2125.  
  2126. 00005606 loc_5606:
  2127. 00005606 Cond = R1;
  2128. 00005608 R1 = R1 - 1;
  2129. 0000560c if (Cond != 0) goto loc_55DC;
  2130.  
  2131. 00005610 sub_5610:
  2132. 00005610 /* Low-level instruction of type 43 */
  2133. 0000561a R6 = R2;
  2134. 0000561c R7 = R3;
  2135. 0000561e Cond = 0;
  2136. 00005620 var_28 = 0;
  2137. 00005632 R1 = * (* 0x8700bc78 + 0x14) << R1;
  2138. 00005638 var_6C = (* (* 0x8700bc78 + 0x15) << R0) + R1;
  2139. 0000563a Cond = R6;
  2140. 0000563c if (Cond == 0) goto loc_5738;
  2141.  
  2142. 0000563e /* Low-level instruction of type 2 */
  2143. 00005640 Cond = 1;
  2144. 00005642 sub_4C30(1, R1, R2, R3);
  2145. 0000564a Cond = * 0x8700bc74 - 1;
  2146. 0000564c if (Cond != 0) goto loc_566C;
  2147.  
  2148. 0000564e /* Low-level instruction of type 2 */
  2149. 00005654 R1 = 0x6e0001f8;
  2150. 00005656 * R1 = 0x101;
  2151. 00005658 /* Low-level instruction of type 2 */
  2152. 0000565a Cond = 1;
  2153. 0000565c sub_4C30(1, R1, R2, R3);
  2154. 00005660 /* Low-level instruction of type 2 */
  2155. 00005666 R1 = 0x6e0001f8;
  2156. 00005668 * R1 = 0x101;
  2157. 0000566a /* Low-level instruction of type 2 */
  2158.  
  2159. 0000566c loc_566C:
  2160. 0000566c Cond = 0x80;
  2161. 00005672 var_28 = sub_4C84(0x80, R1, R2, R3);
  2162. 00005676 Cond = var_28 - 1;
  2163. 00005678 if (Cond == 0) goto loc_567C;
  2164.  
  2165. 0000567a goto loc_5762;
  2166.  
  2167. 0000567c loc_567C:
  2168. 00005682 var_28 = sub_4D6A(var_6C, R1, R2, R3);
  2169. 00005686 Cond = var_28 - 1;
  2170. 00005688 if (Cond == 0) goto loc_568C;
  2171.  
  2172. 0000568a goto loc_5762;
  2173.  
  2174. 0000568c loc_568C:
  2175. 00005692 sub_55D2(R6, 0x800, R2, R3);
  2176. 00005696 /* Low-level instruction of type 283 */
  2177. 0000569c Cond = * 0x8700bc74 - 1;
  2178. 0000569e if (Cond != 0) goto loc_5752;
  2179.  
  2180. 000056a0 loc_56A0:
  2181. 000056a6 /* Low-level instruction of type 283 */
  2182. 000056a8 R9 = 0x800;
  2183. 000056ac goto loc_56C2;
  2184.  
  2185. 000056ae loc_56AE:
  2186. 000056b4 Cond = * (* 0x8700bc78 + 7) - 1;
  2187. 000056b6 if (Cond != 0) goto loc_56BE;
  2188.  
  2189. 000056b8 R9 = 0x400;
  2190. 000056bc goto loc_56C2;
  2191.  
  2192. 000056be loc_56BE:
  2193. 000056be /* Low-level instruction of type 2 */
  2194.  
  2195. 000056c0 loc_56C0:
  2196. 000056c0 goto loc_56C0;
  2197.  
  2198. 000056c2 loc_56C2:
  2199. 000056c2 /* Low-level instruction of type 282 */
  2200. 000056c4 Cond = 0xff;
  2201. 000056c4 R0 = 0xff;
  2202. 000056c6 var_68 = R0;
  2203. 000056ca var_67 = R0;
  2204. 000056d2 R0 = * (* 0x8700bc78 + 6);
  2205. 000056d4 Cond = R0 - 2;
  2206. 000056dc sub_355C(& var_66, R7, R0 - 2, R3);
  2207. 000056e0 goto loc_56EC;
  2208.  
  2209. 000056e2 loc_56E2:
  2210. 000056e2 Cond = 0xff;
  2211. 000056e2 R2 = 0xff;
  2212. 000056e4 Cond = 0x40;
  2213. 000056e4 R1 = 0x40;
  2214. 000056e8 /* Low-level instruction of type 46 */
  2215.  
  2216. 000056ec loc_56EC:
  2217. 000056f0 Cond = * 0x8700bc74 - 1;
  2218. 000056f2 if (Cond != 0) goto loc_5728;
  2219.  
  2220. 000056f4 /* Low-level instruction of type 283 */
  2221. 000056f6 R10 = 2;
  2222. 000056fe goto loc_5708;
  2223.  
  2224. 00005700 loc_5700:
  2225. 00005700 R10 = 0x28;
  2226.  
  2227. 00005708 loc_5708:
  2228. 00005708 R8 = 0;
  2229. 0000570c goto loc_5722;
  2230.  
  2231. 0000570e loc_570E:
  2232. 00005712 /* Low-level instruction of type 29 */
  2233. 0000571a sub_53EA(R8 & 0xff, R1, R2, R3);
  2234. 0000571e R8 = R8 + 1;
  2235.  
  2236. 00005722 loc_5722:
  2237. 00005722 Cond = R8 - 4;
  2238. 00005726 if (Cond < 0) goto loc_570E;
  2239.  
  2240. 00005728 loc_5728:
  2241. 00005728 Cond = 0x85;
  2242. 0000572e var_28 = sub_4C84(0x85, R1, R2, R3);
  2243. 00005732 Cond = var_28 - 1;
  2244. 00005734 if (Cond == 0) goto loc_573A;
  2245.  
  2246. 00005736 goto loc_5762;
  2247.  
  2248. 00005738 loc_5738:
  2249. 00005738 goto loc_5764;
  2250.  
  2251. 0000573a loc_573A:
  2252. 00005740 var_28 = sub_4D3E(R9, R1, R2, R3);
  2253. 00005744 Cond = var_28 - 1;
  2254. 00005746 if (Cond == 0) goto loc_574A;
  2255.  
  2256. 00005748 goto loc_5762;
  2257.  
  2258. 0000574a loc_574A:
  2259. 0000574a Cond = 0x40;
  2260. 0000574e sub_55D2(& var_68, 0x40, R2, R3);
  2261.  
  2262. 00005752 loc_5752:
  2263. 00005752 Cond = 0x10;
  2264. 00005754 R0 = sub_4C84(0x10, R1, R2, R3);
  2265. 00005758 var_28 = R0;
  2266. 0000575e var_28 = sub_4BF8(R0, R1, R2, R3);
  2267. 00005760 /* Low-level instruction of type 2 */
  2268.  
  2269. 00005762 loc_5762:
  2270. 00005762 /* Low-level instruction of type 2 */
  2271.  
  2272. 00005862 sub_5862:
  2273. 00005862 /* Low-level instruction of type 43 */
  2274. 00005866 Cond = 0;
  2275. 0000586e R0 = * (* 0x8700bc78 + 0x15) << R0;
  2276. 00005876 R2 = * (* 0x8700bc78 + 0x14);
  2277. 00005878 Cond = 0;
  2278. 00005878 R1 = 0;
  2279. 0000587a Cond = R1 << R2;
  2280. 0000587a R1 = R1 << R2;
  2281. 0000587c Cond = R0 + R1;
  2282. 0000587c R6 = R0 + R1;
  2283. 0000587e /* Low-level instruction of type 2 */
  2284. 00005880 Cond = 0x60;
  2285. 00005882 R0 = sub_4C84(0x60, R1, R2, R3);
  2286. 00005886 R5 = R0;
  2287. 00005888 Cond = R5 - 1;
  2288. 0000588a if (Cond == 0) goto loc_588E;
  2289.  
  2290. 0000588c goto loc_58A6;
  2291.  
  2292. 0000588e loc_588E:
  2293. 00005890 R0 = sub_4CB6(R6, R1, R2, R3);
  2294. 00005894 R5 = R0;
  2295. 00005896 Cond = R5 - 1;
  2296. 00005898 if (Cond == 0) goto loc_589C;
  2297.  
  2298. 0000589a goto loc_58A6;
  2299.  
  2300. 0000589c loc_589C:
  2301. 0000589c Cond = 0xd0;
  2302. 0000589e R0 = sub_4C84(0xd0, R1, R2, R3);
  2303. 000058a2 R5 = R0;
  2304. 000058a4 /* Low-level instruction of type 2 */
  2305.  
  2306. 000058a6 loc_58A6:
  2307. 000058a6 /* Low-level instruction of type 2 */
  2308. 000058a8 Cond = R5 - 1;
  2309. 000058aa if (Cond != 0) goto loc_58B2;
  2310.  
  2311. 000058b0 sub_4E2A(R0, R1, R2, R3);
  2312.  
  2313. 00005bc4 sub_5BC4:
  2314. 00005bc4 /* Low-level instruction of type 43 */
  2315. 00005bc6 Cond = R0 << 5;
  2316. 00005bc8 Cond = 0;
  2317. 00005bc8 R2 = 0;
  2318. 00005bca goto loc_5BDC;
  2319.  
  2320. 00005bcc loc_5BCC:
  2321. 00005bcc Cond = 0;
  2322. 00005bcc R1 = 0;
  2323. 00005bce goto loc_5BD4;
  2324.  
  2325. 00005bd0 loc_5BD0:
  2326. 00005bd0 Cond = R3 + 1;
  2327. 00005bd0 R3 = R3 + 1;
  2328. 00005bd2 Cond = R1 + 1;
  2329. 00005bd2 R1 = R1 + 1;
  2330.  
  2331. 00005bd4 loc_5BD4:
  2332. 00005bd4 Cond = R1 - 0x80000;
  2333. 00005bd8 if (Cond < 0) goto loc_5BD0;
  2334.  
  2335. 00005bda Cond = R2 + 1;
  2336. 00005bda R2 = R2 + 1;
  2337.  
  2338. 00005bdc loc_5BDC:
  2339. 00005bdc Cond = R2 - R0;
  2340. 00005bde if (Cond < 0) goto loc_5BCC;
  2341.  
  2342. 00005be2 sub_5BE2:
  2343. 00005be2 /* Low-level instruction of type 2 */
  2344.  
  2345. 00005be4 loc_5BE4:
  2346. 00005be8 Cond = * (0x48318000 + 0x14) & 1;
  2347. 00005bec if (Cond == 0) goto loc_5BE4;
  2348.  
  2349. 00005bf2 R0 = * (0x48318000 + 0x24) | 1;
  2350. 00005bf8 * (0x48318000 + 0x24) = R0;
  2351. 00005bfa return R0;
  2352.  
  2353. 00005c00 sub_5C00:
  2354. 00005c00 /* Low-level instruction of type 43 */
  2355. 00005c04 R4 = R0;
  2356. 00005c06 Cond = 0;
  2357. 00005c08 Cond = 0x64;
  2358. 00005c08 R6 = 0x64;
  2359. 00005c0a R7 = R4 + 15;
  2360. 00005c0e R8 = 1;
  2361. 00005c12 goto loc_5C6E;
  2362.  
  2363. 00005c14 loc_5C14:
  2364. 00005c14 Cond = 10;
  2365. 00005c16 sub_36E2(10, R1, R2, R3);
  2366. 00005c1a Cond = 0;
  2367. 00005c22 sub_3608(0x48004a20, R7, R8, 0);
  2368. 00005c2c R5 = * (* (0x8700bc84 + R4) + 8);
  2369. 00005c2e Cond = R5 & 8;
  2370. 00005c32 if (Cond != 0) goto loc_5C3A;
  2371.  
  2372. 00005c34 Cond = R5 & 0x10;
  2373. 00005c38 if (Cond == 0) goto loc_5C6C;
  2374.  
  2375. 00005c3a loc_5C3A:
  2376. 00005c3a Cond = 0;
  2377. 00005c42 sub_3608(0x48004a20, R7, R8, 0);
  2378. 00005c46 Cond = 8;
  2379. 00005c4e * (* (0x8700bc84 + R4) + 8) = 8;
  2380. 00005c50 Cond = 0;
  2381. 00005c58 sub_3608(0x48004a20, R7, R8, 0);
  2382. 00005c5c Cond = 0x10;
  2383. 00005c60 R1 = * (0x8700bc84 + R4);
  2384. 00005c64 * (R1 + 8) = 0x10;
  2385. 00005c66 Cond = R6 - 1;
  2386. 00005c68 /* Low-level instruction of type 255 */
  2387. 00005c6a goto loc_5C6E;
  2388.  
  2389. 00005c6c loc_5C6C:
  2390. 00005c6c goto loc_5C72;
  2391.  
  2392. 00005c6e loc_5C6E:
  2393. 00005c6e Cond = R6;
  2394. 00005c70 if (Cond > 0) goto loc_5C14;
  2395.  
  2396. 00005cbc sub_5CBC:
  2397. 00005cbc /* Low-level instruction of type 43 */
  2398. 00005cc0 R4 = R0;
  2399. 00005cc2 R5 = R1;
  2400. 00005cc4 R6 = R2;
  2401. 00005cc6 Cond = 0;
  2402. 00005cc8 R8 = R4 + 15;
  2403. 00005ccc R9 = 1;
  2404. 00005cd0 /* Low-level instruction of type 2 */
  2405.  
  2406. 00005cd2 loc_5CD2:
  2407. 00005cd2 Cond = 10;
  2408. 00005cd4 sub_36E2(10, R1, R2, R3);
  2409. 00005cd8 Cond = 0;
  2410. 00005ce0 sub_3608(0x48004a20, R8, R9, 0);
  2411. 00005cec Cond = * (* (0x8700bc84 + R4) + 8) & R5;
  2412. 00005cee if (Cond == 0) goto loc_5CFA;
  2413.  
  2414. 00005cf0 Cond = R6;
  2415. 00005cf2 R1 = R6 - 1;
  2416. 00005cf6 /* Low-level instruction of type 255 */
  2417. 00005cf8 if (Cond != 0) goto loc_5CD2;
  2418.  
  2419. 00005d00 sub_5D00:
  2420. 00005d00 /* Low-level instruction of type 43 */
  2421. 00005d04 R4 = R0;
  2422. 00005d06 Cond = 0x64;
  2423. 00005d06 R5 = 0x64;
  2424. 00005d08 Cond = 0;
  2425. 00005d0e /* Low-level instruction of type 44 */
  2426. 00005d10 /* Low-level instruction of type 33 */
  2427. 00005d12 /* Low-level instruction of type 46 */
  2428. 00005d16 /* Low-level instruction of type 71 */
  2429. 00005d28 /* Low-level instruction of type 44 */
  2430. 00005d2a /* Low-level instruction of type 33 */
  2431. 00005d2c /* Low-level instruction of type 46 */
  2432. 00005d34 /* Low-level instruction of type 71 */
  2433. 00005d38 R0 = 0x48004000;
  2434. 00005d3a * (R0 + 0xa00) = * (0x48004000 + 0xa00) & ~ R0 | R0;
  2435. 00005d42 /* Low-level instruction of type 44 */
  2436. 00005d44 /* Low-level instruction of type 33 */
  2437. 00005d46 /* Low-level instruction of type 46 */
  2438. 00005d4a /* Low-level instruction of type 71 */
  2439. 00005d5c /* Low-level instruction of type 44 */
  2440. 00005d5e /* Low-level instruction of type 33 */
  2441. 00005d60 /* Low-level instruction of type 46 */
  2442. 00005d68 /* Low-level instruction of type 71 */
  2443. 00005d6e * (0x48004000 + 0xa10) = * (0x48004000 + 0xa10) & ~ R0 | R0;
  2444. 00005d72 R7 = R4 + 15;
  2445. 00005d76 R8 = 1;
  2446. 00005d7a Cond = 0;
  2447. 00005d82 sub_3608(0x48004a20, R7, R8, 0);
  2448. 00005d86 Cond = 2;
  2449. 00005d8e * (* (0x8700bc84 + R4) + 0x20) = 2;
  2450. 00005d90 Cond = 0;
  2451. 00005d98 R0 = sub_3608(0x48004a20, R7, R8, 0);
  2452. 00005d9c /* Low-level instruction of type 46 */
  2453. 00005da2 R1 = * (0x8700bc84 + R4);
  2454. 00005da6 * (R1 + 0x24) = R0;
  2455. 00005da8 /* Low-level instruction of type 2 */
  2456.  
  2457. 00005daa loc_5DAA:
  2458. 00005daa Cond = 10;
  2459. 00005dac sub_36E2(10, R1, R2, R3);
  2460. 00005db0 Cond = 0;
  2461. 00005db8 sub_3608(0x48004a20, R7, R8, 0);
  2462. 00005dc4 Cond = * (* (0x8700bc84 + R4) + 0x10) & 1;
  2463. 00005dc8 if (Cond != 0) goto loc_5DD4;
  2464.  
  2465. 00005dca Cond = R5;
  2466. 00005dcc R1 = R5 - 1;
  2467. 00005dd0 /* Low-level instruction of type 255 */
  2468. 00005dd2 if (Cond != 0) goto loc_5DAA;
  2469.  
  2470. 00006090 sub_6090:
  2471. 00006090 /* Low-level instruction of type 43 */
  2472. 00006094 R4 = R0;
  2473. 00006096 R5 = R1;
  2474. 00006098 R6 = R2;
  2475. 0000609a R7 = R3;
  2476. 0000609c R8 = arg_0;
  2477. 000060a8 Cond = 0;
  2478. 000060a8 R0 = 0;
  2479. 000060aa var_30 = R0;
  2480. 000060ac R11 = R0;
  2481. 000060b2 var_28 = R4 + 15;
  2482. 000060b4 Cond = 1;
  2483. 000060b6 var_2C = 1;
  2484. 000060b8 /* Low-level instruction of type 2 */
  2485. 000060ba Cond = 0x64;
  2486. 000060c2 R0 = sub_5CBC(R4, 0x1000, 0x64, R3);
  2487. 000060c8 Cond = R0 & 0x1000;
  2488. 000060cc if (Cond == 0) goto loc_60D4;
  2489.  
  2490. 000060d2 goto loc_61CC;
  2491.  
  2492. 000060d4 loc_60D4:
  2493. 000060d4 Cond = 0;
  2494. 000060d8 /* Low-level instruction of type 49 */
  2495. 000060dc sub_3608(0x48004a20, R1, R2, 0);
  2496. 000060e6 R1 = * (0x8700bc84 + R4);
  2497. 000060ea * (R1 + 0x18) = R8 + 1;
  2498. 000060ec Cond = 0;
  2499. 000060f0 /* Low-level instruction of type 49 */
  2500. 000060f4 sub_3608(0x48004a20, R1, R2, 0);
  2501. 000060fe * (* (0x8700bc84 + R4) + 0x2c) = R5;
  2502. 00006100 Cond = 0;
  2503. 00006104 /* Low-level instruction of type 49 */
  2504. 00006108 sub_3608(0x48004a20, R1, R2, 0);
  2505. 00006116 * (* (0x8700bc84 + R4) + 0x24) = 0x8603;
  2506. 00006118 goto loc_61C2;
  2507.  
  2508. 0000611a loc_611A:
  2509. 0000611a Cond = 0x64;
  2510. 0000611c Cond = 7;
  2511. 00006120 R0 = sub_5CBC(R4, 7, 0x64, R3);
  2512. 00006124 R10 = R0;
  2513. 00006126 Cond = R0 & 7;
  2514. 0000612a if (Cond != 0) goto loc_61BC;
  2515.  
  2516. 0000612c Cond = R10 & 0x10;
  2517. 00006130 if (Cond == 0) goto loc_61B6;
  2518.  
  2519. 00006132 Cond = R11;
  2520. 00006136 if (Cond != 0) goto loc_6166;
  2521.  
  2522. 00006138 Cond = 0;
  2523. 0000613c /* Low-level instruction of type 49 */
  2524. 00006140 sub_3608(0x48004a20, R1, R2, 0);
  2525. 0000614a * (* (0x8700bc84 + R4) + 0x1c) = R6;
  2526. 0000614c R11 = 1;
  2527. 00006150 Cond = 5;
  2528. 00006152 Cond = 2;
  2529. 0000615a Cond = sub_5CBC(R4, 2, 5, R3) & 2;
  2530. 0000615e if (Cond == 0) goto loc_619A;
  2531.  
  2532. 00006164 goto loc_61C8;
  2533.  
  2534. 00006166 loc_6166:
  2535. 00006166 Cond = 0;
  2536. 0000616a /* Low-level instruction of type 49 */
  2537. 0000616e sub_3608(0x48004a20, R1, R2, 0);
  2538. 00006172 R0 = var_30;
  2539. 00006174 Cond = R0 + 1;
  2540. 00006176 /* Low-level instruction of type 251 */
  2541. 00006178 var_30 = R0 + 1;
  2542. 00006182 * (* (0x8700bc84 + R4) + 0x1c) = * (R7 + R0);
  2543. 00006184 Cond = 5;
  2544. 00006186 Cond = 2;
  2545. 0000618e Cond = sub_5CBC(R4, 2, 5, R3) & 2;
  2546. 00006192 if (Cond == 0) goto loc_619A;
  2547.  
  2548. 00006198 goto loc_61C8;
  2549.  
  2550. 0000619a loc_619A:
  2551. 0000619a Cond = 0;
  2552. 0000619e /* Low-level instruction of type 49 */
  2553. 000061a2 sub_3608(0x48004a20, R1, R2, 0);
  2554. 000061a6 Cond = 0x10;
  2555. 000061ae * (* (0x8700bc84 + R4) + 8) = 0x10;
  2556. 000061b4 goto loc_61C2;
  2557.  
  2558. 000061b6 loc_61B6:
  2559. 000061ba goto loc_61C8;
  2560.  
  2561. 000061bc loc_61BC:
  2562. 000061c0 goto loc_61C8;
  2563.  
  2564. 000061c2 loc_61C2:
  2565. 000061c4 Cond = var_30 - R8;
  2566. 000061c6 if (Cond < 0) goto loc_611A;
  2567.  
  2568. 000061c8 loc_61C8:
  2569. 000061c8 /* Low-level instruction of type 2 */
  2570. 000061ca /* Low-level instruction of type 2 */
  2571.  
  2572. 000064a8 sub_64A8:
  2573. 000064a8 /* Low-level instruction of type 43 */
  2574. 000064aa R0 = sub_6DEE(R0, R1, R2, R3);
  2575. 000064ae Cond = R0 - 2;
  2576. 000064b0 if (Cond != 0) goto loc_64B8;
  2577.  
  2578. 000064b2 R0 = sub_6E1C(R0, R1, R2, R3);
  2579. 000064b6 /* Low-level instruction of type 282 */
  2580.  
  2581. 000064b8 loc_64B8:
  2582. 000064b8 /* Low-level instruction of type 2 */
  2583. 000064ba R0 = sub_4FDC(R0, R1, R2, R3);
  2584. 000064be Cond = R0 - 1;
  2585. 000064c0 if (Cond == 0) goto loc_64C4;
  2586.  
  2587. 000064c2 goto loc_64E4;
  2588.  
  2589. 000064c4 loc_64C4:
  2590. 000064c4 Cond = 0;
  2591. 000064c4 R1 = 0;
  2592. 000064c8 R0 = sub_5008(R1, R1, R2, R3);
  2593. 000064cc Cond = R0 - 1;
  2594. 000064ce if (Cond == 0) goto loc_64D2;
  2595.  
  2596. 000064d0 goto loc_64E4;
  2597.  
  2598. 000064d2 loc_64D2:
  2599. 000064d2 Cond = 0;
  2600. 000064d4 R0 = sub_5862(0, R1, R2, R3);
  2601. 000064d8 Cond = R0 - 1;
  2602. 000064da if (Cond == 0) goto loc_64DE;
  2603.  
  2604. 000064dc goto loc_64E4;
  2605.  
  2606. 000064de loc_64DE:
  2607. 000064de R0 = sub_36C2(R0, R1, R2, R3);
  2608. 000064e2 /* Low-level instruction of type 2 */
  2609.  
  2610. 000064e4 loc_64E4:
  2611. 000064e4 /* Low-level instruction of type 2 */
  2612.  
  2613. 000064e6 loc_64E6:
  2614. 000064e6 sub_36DE(R0, R1, R2, R3);
  2615. 000064ea /* Low-level instruction of type 2 */
  2616.  
  2617. 000064ec loc_64EC:
  2618. 000064ec goto loc_64EC;
  2619.  
  2620. 000064f0 sub_64F0:
  2621. 000064f0 /* Low-level instruction of type 43 */
  2622. 000064f4 Cond = 0;
  2623. 000064fa Cond = * 0x8700be12 - 0x200;
  2624. 000064fe if (Cond != 0) goto loc_6540;
  2625.  
  2626. 00006500 R0 = 0x8700be12;
  2627. 00006502 Cond = R0 + 14;
  2628. 00006506 /* Low-level instruction of type 283 */
  2629. 00006508 R0 = * (R1 + 5);
  2630. 0000650a Cond = R0 - 0xff;
  2631. 0000650c if (Cond != 0) goto loc_6512;
  2632.  
  2633. 0000650e Cond = R0;
  2634. 00006510 goto loc_6514;
  2635.  
  2636. 00006512 loc_6512:
  2637. 00006512 Cond = 0;
  2638.  
  2639. 00006514 loc_6514:
  2640. 00006514 /* Low-level instruction of type 251 */
  2641. 00006516 goto loc_6566;
  2642.  
  2643. 00006518 loc_6518:
  2644. 00006518 R0 = 0x8700be12;
  2645. 0000651a Cond = R0 + 14;
  2646. 0000651e Cond = * (R0 + 14) - 1;
  2647. 00006520 if (Cond != 0) goto loc_6566;
  2648.  
  2649. 00006524 R4 = * R1 - 0xff00;
  2650. 00006528 Cond = R4 - 0xff;
  2651. 0000652a if (Cond != 0) goto loc_653A;
  2652.  
  2653. 0000652e R4 = * (R1 + 10) - 0xff00;
  2654. 00006532 Cond = R4 - 0xff;
  2655. 00006534 if (Cond != 0) goto loc_653A;
  2656.  
  2657. 00006536 Cond = 1;
  2658. 00006538 goto loc_653C;
  2659.  
  2660. 0000653a loc_653A:
  2661. 0000653a Cond = 0;
  2662.  
  2663. 0000653c loc_653C:
  2664. 0000653c /* Low-level instruction of type 251 */
  2665. 0000653e goto loc_6566;
  2666.  
  2667. 00006540 loc_6540:
  2668. 00006544 Cond = * 0x8700be12 - 0x800;
  2669. 00006548 if (Cond != 0) goto loc_6566;
  2670.  
  2671. 0000654a R0 = 0x8700be12;
  2672. 0000654c Cond = R0 + 14;
  2673. 00006550 Cond = * (R0 + 14) - 1;
  2674. 00006552 if (Cond != 0) goto loc_6566;
  2675.  
  2676. 00006556 R4 = * R1 - 0xff00;
  2677. 0000655a Cond = R4 - 0xff;
  2678. 0000655c if (Cond != 0) goto loc_6562;
  2679.  
  2680. 0000655e Cond = 1;
  2681. 00006560 goto loc_6564;
  2682.  
  2683. 00006562 loc_6562:
  2684. 00006562 Cond = 0;
  2685.  
  2686. 00006564 loc_6564:
  2687. 00006564 /* Low-level instruction of type 251 */
  2688.  
  2689. 00006566 loc_6566:
  2690. 00006566 /* Low-level instruction of type 283 */
  2691. 00006568 Cond = 1;
  2692. 0000656a goto loc_656E;
  2693.  
  2694. 0000656c loc_656C:
  2695. 0000656c Cond = 0;
  2696.  
  2697. 00006572 sub_6572:
  2698. 00006572 /* Low-level instruction of type 43 */
  2699. 00006574 SP = SP - 0x40;
  2700. 00006576 R4 = R0;
  2701. 00006578 Cond = 0;
  2702. 0000657a Cond = 0x40;
  2703. 0000657e /* Low-level instruction of type 46 */
  2704. 00006582 Cond = 0;
  2705. 00006582 R5 = 0;
  2706. 00006584 goto loc_6594;
  2707.  
  2708. 00006586 loc_6586:
  2709. 0000658c gvar_5772(R4, R5, SP, R3);
  2710. 00006590 Cond = R5 + 1;
  2711. 00006592 /* Low-level instruction of type 251 */
  2712.  
  2713. 00006594 loc_6594:
  2714. 00006594 Cond = R5 - 2;
  2715. 00006596 if (Cond < 0) goto loc_6586;
  2716.  
  2717. 0000659e sub_659E:
  2718. 0000659e /* Low-level instruction of type 43 */
  2719. 000065a2 SP = SP - 0x840;
  2720. 000065a6 R4 = R0;
  2721. 000065a8 R5 = R1;
  2722. 000065aa Cond = 0;
  2723. 000065aa R6 = 0;
  2724. 000065ac Cond = 0;
  2725. 000065b2 Cond = 0;
  2726. 000065b4 * R5 = 0;
  2727. 000065b6 /* Low-level instruction of type 2 */
  2728.  
  2729. 000065b8 loc_65B8:
  2730. 000065c0 sub_540E(R4, R6, & var_818, SP);
  2731. 000065c4 /* Low-level instruction of type 283 */
  2732. 000065c6 Cond = 1;
  2733. 000065c8 * R5 = 1;
  2734. 000065ca goto loc_65E8;
  2735.  
  2736. 000065cc loc_65CC:
  2737. 000065d0 sub_64F0(& var_818, SP, R2, R3);
  2738. 000065d4 /* Low-level instruction of type 282 */
  2739. 000065d6 Cond = 1;
  2740. 000065d8 * R5 = 1;
  2741.  
  2742. 000065da loc_65DA:
  2743. 000065da Cond = R6 + 1;
  2744. 000065dc /* Low-level instruction of type 251 */
  2745. 000065de Cond = R6 - R8;
  2746. 000065e0 if (Cond >= 0) goto loc_65E8;
  2747.  
  2748. 000065e4 Cond = * R5;
  2749. 000065e6 if (Cond == 0) goto loc_65B8;
  2750.  
  2751. 000065f4 sub_65F4:
  2752. 000065f4 /* Low-level instruction of type 43 */
  2753. 000065f8 R4 = R0;
  2754. 000065fa R5 = R1;
  2755. 000065fc Cond = 0;
  2756. 000065fe Cond = 0;
  2757. 00006600 var_28 = 0;
  2758. 00006602 R8 = 0xffff;
  2759. 00006608 R0 = 0x8700be12;
  2760. 0000660a Cond = R0 - 0x14;
  2761. 0000660e Cond = * (R0 - 0x14) - R4;
  2762. 00006610 if (Cond != 0) goto loc_6646;
  2763.  
  2764. 00006612 Cond = R5 - 1;
  2765. 00006614 if (Cond != 0) goto loc_6624;
  2766.  
  2767. 00006616 R0 = 0x8700be12;
  2768. 00006618 Cond = R0 - 0x12;
  2769. 0000661c R1 = * (R0 - 0x12) - 0xff00;
  2770. 00006620 Cond = R1 - 0xff;
  2771. 00006622 if (Cond == 0) goto loc_6646;
  2772.  
  2773. 00006624 loc_6624:
  2774. 00006624 Cond = R5 - 1;
  2775. 00006626 if (Cond != 0) goto loc_671E;
  2776.  
  2777. 00006628 R0 = 0x8700be12;
  2778. 0000662a Cond = R0 - 0x14;
  2779. 0000662e R1 = 0x8700be12;
  2780. 00006630 Cond = R1 - 0x12;
  2781. 00006634 Cond = * (R0 - 0x14) - * (R1 - 0x12);
  2782.  
  2783. 00006636 loc_6636:
  2784. 00006636 if (Cond == 0) goto loc_671E;
  2785.  
  2786. 00006638 R0 = 0x8700be12;
  2787. 0000663a Cond = R0 - 0x14;
  2788. 0000663e R1 = * (R0 - 0x14) - 0xff00;
  2789. 00006642 Cond = R1 - 0xff;
  2790. 00006644 if (Cond == 0) goto loc_6636;
  2791.  
  2792. 00006646 loc_6646:
  2793. 00006646 R0 = 0x8700be12;
  2794. 00006648 Cond = R0 - 14;
  2795. 0000664c R1 = * (R0 - 14) - 0xff00;
  2796. 00006650 Cond = R1 - 0xff;
  2797. 00006652 if (Cond == 0) goto loc_6676;
  2798.  
  2799. 00006654 R0 = 0x8700be12;
  2800. 00006656 Cond = R0 - 0x10;
  2801. 0000665a R1 = * (R0 - 0x10) - 0xff00;
  2802. 0000665e Cond = R1 - 0xff;
  2803. 00006660 if (Cond == 0) goto loc_6676;
  2804.  
  2805. 00006662 R0 = 0x8700be12;
  2806. 00006664 Cond = R0 - 14;
  2807. 00006668 Cond = R4 - * (R0 - 14);
  2808. 0000666a if (Cond < 0) goto loc_6676;
  2809.  
  2810. 0000666c R0 = 0x8700be12;
  2811. 0000666e Cond = R0 - 0x10;
  2812. 00006672 Cond = R4 - * (R0 - 0x10);
  2813. 00006674 if (Cond <= 0) goto loc_6704;
  2814.  
  2815. 00006676 loc_6676:
  2816. 0000667a R1 = 0x8700be12;
  2817. 0000667c Cond = R1 - 0x14;
  2818. 0000667e * (R1 - 0x14) = 0xffff;
  2819. 00006680 Cond = 0;
  2820. 00006684 * 0x8700bc90 = 0;
  2821. 00006686 R0 = 0xffff;
  2822. 0000668a R1 = 0x8700be12;
  2823. 0000668c Cond = R1 - 0x10;
  2824. 0000668c R1 = R1 - 0x10;
  2825. 0000668e * R1 = R0;
  2826. 00006690 Cond = R1 + 2;
  2827. 00006692 * (R1 + 2) = R0;
  2828. 00006694 Cond = 0;
  2829. 00006694 R7 = 0;
  2830. 00006696 goto loc_66FE;
  2831.  
  2832. 00006698 loc_6698:
  2833. 0000669e R1 = * (0x8700bc94 + R7) - 0xff00;
  2834. 000066a2 Cond = R1 - 0xff;
  2835. 000066a4 if (Cond == 0) goto loc_66FA;
  2836.  
  2837. 000066ac Cond = * (0x8700bc94 + R7) - R4;
  2838. 000066ae if (Cond > 0) goto loc_66FA;
  2839.  
  2840. 000066b8 Cond = * (0x8700bc94 + (R7 << 3) + 4) - R4;
  2841. 000066ba if (Cond < 0) goto loc_66FA;
  2842.  
  2843. 000066c4 R1 = 0x8700be12;
  2844. 000066c6 Cond = R1 - 0x10;
  2845. 000066c6 R1 = R1 - 0x10;
  2846. 000066c8 * R1 = * (0x8700bc94 + (R7 << 3) + 4);
  2847. 000066d0 Cond = R1 + 2;
  2848. 000066d0 R1 = R1 + 2;
  2849. 000066d2 * R1 = * (0x8700bc94 + R7);
  2850. 000066d8 Cond = * R1 - 1;
  2851. 000066da if (Cond != 0) goto loc_66E6;
  2852.  
  2853. 000066dc Cond = 5;
  2854. 000066de R1 = 0x8700be12;
  2855. 000066e0 Cond = R1 - 0x10;
  2856. 000066e2 * (R1 - 0x10) = 5;
  2857. 000066e4 goto loc_66F8;
  2858.  
  2859. 000066e6 loc_66E6:
  2860. 000066e6 R0 = 0x8700be12;
  2861. 000066e8 Cond = R0 - 14;
  2862. 000066ec Cond = * (R0 - 14) - 11;
  2863. 000066ee if (Cond != 0) goto loc_66F8;
  2864.  
  2865. 000066f0 Cond = 13;
  2866. 000066f2 R1 = 0x8700be12;
  2867. 000066f4 Cond = R1 - 0x10;
  2868. 000066f6 * (R1 - 0x10) = 13;
  2869.  
  2870. 000066f8 loc_66F8:
  2871. 000066f8 goto loc_6702;
  2872.  
  2873. 000066fa loc_66FA:
  2874. 000066fa Cond = R7 + 1;
  2875. 000066fc /* Low-level instruction of type 251 */
  2876.  
  2877. 000066fe loc_66FE:
  2878. 000066fe Cond = R7 - 0x29;
  2879. 00006700 if (Cond < 0) goto loc_6698;
  2880.  
  2881. 00006702 loc_6702:
  2882. 00006702 /* Low-level instruction of type 2 */
  2883.  
  2884. 00006704 loc_6704:
  2885. 00006704 R9 = R4;
  2886. 00006706 R0 = 0x8700be12;
  2887. 00006708 Cond = R0 - 0x14;
  2888. 0000670c R1 = * (R0 - 0x14) - 0xff00;
  2889. 00006710 Cond = R1 - 0xff;
  2890. 00006712 if (Cond != 0) goto loc_6720;
  2891.  
  2892. 00006714 R0 = 0x8700be12;
  2893. 00006716 Cond = R0 - 14;
  2894. 00006718 R8 = * (R0 - 14);
  2895. 0000671c goto loc_6778;
  2896.  
  2897. 0000671e loc_671E:
  2898. 0000671e goto loc_67FC;
  2899.  
  2900. 00006720 loc_6720:
  2901. 00006720 R0 = 0x8700be12;
  2902. 00006722 Cond = R0 - 0x14;
  2903. 00006726 Cond = R4 - * (R0 - 0x14);
  2904. 00006728 if (Cond <= 0) goto loc_6734;
  2905.  
  2906. 0000672a R0 = 0x8700be12;
  2907. 0000672c Cond = R0 - 0x14;
  2908. 0000672e R8 = * (R0 - 0x14);
  2909. 00006732 goto loc_6778;
  2910.  
  2911. 00006734 loc_6734:
  2912. 00006734 R0 = 0x8700be12;
  2913. 00006736 Cond = R0 - 0x14;
  2914. 0000673a Cond = R4 - * (R0 - 0x14);
  2915. 0000673c if (Cond != 0) goto loc_675A;
  2916.  
  2917. 0000673e Cond = R4 + 1;
  2918. 00006740 /* Low-level instruction of type 255 */
  2919. 00006744 /* Low-level instruction of type 255 */
  2920. 0000674a R0 = * 0x8700bc90;
  2921. 0000674c Cond = R0 + 1;
  2922. 00006750 * 0x8700bc90 = R0 + 1;
  2923. 00006752 R0 = 0x8700be12;
  2924. 00006754 Cond = R0 - 0x12;
  2925. 00006756 * (R0 - 0x12) = R4;
  2926. 00006758 goto loc_6778;
  2927.  
  2928. 0000675a loc_675A:
  2929. 0000675e /* Low-level instruction of type 283 */
  2930. 00006760 R0 = 0x8700be12;
  2931. 00006762 Cond = R0 - 0x14;
  2932. 00006764 R8 = * (R0 - 0x14);
  2933. 00006768 goto loc_6778;
  2934.  
  2935. 0000676a loc_676A:
  2936. 0000676a Cond = 0;
  2937. 0000676e * 0x8700bc90 = 0;
  2938. 00006770 R0 = 0x8700be12;
  2939. 00006772 Cond = R0 - 14;
  2940. 00006774 R8 = * (R0 - 14);
  2941.  
  2942. 00006778 loc_6778:
  2943. 00006778 R10 = R8;
  2944. 0000677a goto loc_67C8;
  2945.  
  2946. 0000677c loc_677C:
  2947. 00006782 /* Low-level instruction of type 255 */
  2948. 00006786 /* Low-level instruction of type 2 */
  2949.  
  2950. 00006788 loc_6788:
  2951. 00006788 Cond = 0;
  2952. 0000678a var_28 = 0;
  2953. 00006794 sub_659E(R11, SP, R2, R3);
  2954. 0000679a Cond = var_28 - 1;
  2955. 0000679c if (Cond != 0) goto loc_67B6;
  2956.  
  2957. 000067a0 sub_6572(R11, R1, R2, R3);
  2958. 000067a6 R0 = * 0x8700bc90;
  2959. 000067a8 Cond = R0 + 1;
  2960. 000067ac * 0x8700bc90 = R0 + 1;
  2961. 000067b2 /* Low-level instruction of type 255 */
  2962.  
  2963. 000067b6 loc_67B6:
  2964. 000067b6 /* Low-level instruction of type 283 */
  2965. 000067bc Cond = var_28 - 1;
  2966. 000067be if (Cond == 0) goto loc_6788;
  2967.  
  2968. 000067c0 loc_67C0:
  2969. 000067c4 /* Low-level instruction of type 255 */
  2970.  
  2971. 000067c8 loc_67C8:
  2972. 000067c8 Cond = R10 - R9;
  2973. 000067ca if (Cond <= 0) goto loc_677C;
  2974.  
  2975. 000067d2 R1 = 0x8700be12;
  2976. 000067d4 Cond = R1 - 0x16;
  2977. 000067d4 R1 = R1 - 0x16;
  2978. 000067d6 * R1 = * 0x8700bc90 + R4;
  2979. 000067dc Cond = R1 + 6;
  2980. 000067e0 Cond = * * (R1 + 6) - * (R1 + 6);
  2981. 000067e2 if (Cond <= 0) goto loc_67EC;
  2982.  
  2983. 000067e4 R0 = 0x8700be12;
  2984. 000067e6 Cond = R0 - 0x10;
  2985. 000067e8 R0 = * (R0 - 0x10);
  2986. 000067ea goto loc_67F2;
  2987.  
  2988. 000067ec loc_67EC:
  2989. 000067ec R0 = 0x8700be12;
  2990. 000067ee Cond = R0 - 0x16;
  2991. 000067f0 R0 = * (R0 - 0x16);
  2992.  
  2993. 000067f2 loc_67F2:
  2994. 000067f2 R1 = 0x8700be12;
  2995. 000067f4 Cond = R1 - 0x16;
  2996. 000067f4 R1 = R1 - 0x16;
  2997. 000067f6 * R1 = R0;
  2998. 000067f8 Cond = R1 + 2;
  2999. 000067fa * (R1 + 2) = R4;
  3000.  
  3001. 00006806 sub_6806:
  3002. 00006806 /* Low-level instruction of type 43 */
  3003. 0000680c R4 = R1;
  3004. 00006810 Cond = 0;
  3005. 00006812 R0 = 0x8700be12;
  3006. 00006814 Cond = R0 - 12;
  3007. 00006818 Cond = * (R0 - 12) - R4;
  3008. 0000681a if (Cond == 0) goto loc_683C;
  3009.  
  3010. 0000681c R0 = 0x8700be12;
  3011. 0000681e Cond = R0 - 12;
  3012. 00006820 * (R0 - 12) = R4;
  3013. 00006822 /* Low-level instruction of type 283 */
  3014. 00006824 Cond = 0xcc;
  3015. 00006826 goto loc_683C;
  3016.  
  3017. 00006828 loc_6828:
  3018. 0000682a sub_6572(R4, R1, R2, R3);
  3019. 0000682e Cond = 1;
  3020. 00006832 R0 = sub_65F4(R4, 1, R2, R3);
  3021. 00006836 R1 = 0x8700be12;
  3022. 00006838 Cond = R1 - 10;
  3023. 0000683a * (R1 - 10) = R0;
  3024.  
  3025. 0000684a sub_684A:
  3026. 0000684a /* Low-level instruction of type 43 */
  3027. 0000684e R4 = R0;
  3028. 00006850 R5 = R1;
  3029. 00006856 R8 = arg_0;
  3030. 00006860 R0 = 0x8700be12;
  3031. 00006862 Cond = R0 + 10;
  3032. 00006864 R11 = * (R0 + 10);
  3033. 00006870 sub_5610(R4, R5, R2, R3);
  3034. 00006874 /* Low-level instruction of type 283 */
  3035. 00006876 R10 = 0xd6;
  3036.  
  3037. 0000687c locret_687C:
  3038. 0000687c /* Low-level instruction of type 42 */
  3039.  
  3040. 00006880 loc_6880:
  3041. 00006880 Cond = R11;
  3042. 00006884 if (Cond == 0) goto loc_68C8;
  3043.  
  3044. 00006886 Cond = R8 - 1;
  3045. 0000688a if (Cond != 0) goto loc_68C8;
  3046.  
  3047. 0000688c R9 = 0;
  3048. 00006890 goto loc_68C2;
  3049.  
  3050. 00006892 loc_6892:
  3051. 000068a0 sub_5610(R4, R9, R11, R11 + * 0x8700be12);
  3052. 000068a4 /* Low-level instruction of type 283 */
  3053. 000068a6 R10 = 0xd6;
  3054. 000068aa goto loc_68C6;
  3055.  
  3056. 000068ac loc_68AC:
  3057. 000068b0 R1 = 0x8700be12;
  3058. 000068b2 Cond = R1 + 8;
  3059. 000068b8 R11 = R11 + * 0x8700be12 + * (R1 + 8);
  3060. 000068be /* Low-level instruction of type 255 */
  3061.  
  3062. 000068c2 loc_68C2:
  3063. 000068c2 Cond = R9 - R5;
  3064. 000068c4 if (Cond < 0) goto loc_6892;
  3065.  
  3066. 000068c6 loc_68C6:
  3067. 000068c6 /* Low-level instruction of type 2 */
  3068.  
  3069. 000068c8 loc_68C8:
  3070. 000068ca goto locret_687C;
  3071.  
  3072. 000069c2 sub_69C2:
  3073. 000069c2 /* Low-level instruction of type 43 */
  3074. 000069c6 Cond = 0;
  3075. 000069c8 /* Low-level instruction of type 2 */
  3076. 000069ce Cond = sub_4EBC(R0, R1, R2, R3) - 1;
  3077. 000069d0 if (Cond == 0) goto loc_69D6;
  3078.  
  3079. 000069d2 Cond = 0xdc;
  3080. 000069d4 goto loc_6AAA;
  3081.  
  3082. 000069d6 loc_69D6:
  3083. 000069dc /* Low-level instruction of type 271 */
  3084. 000069e0 R1 = 0x8700be0c;
  3085. 000069e2 Cond = R1 + 4;
  3086. 000069e2 R1 = R1 + 4;
  3087. 000069e4 * R1 = * (* 0x8700bc78 + 0x10);
  3088. 000069ec Cond = R1 + 2;
  3089. 000069ec R1 = R1 + 2;
  3090. 000069ee * R1 = * (* 0x8700bc78 + 4);
  3091. 000069f6 Cond = R1 + 14;
  3092. 000069f6 R1 = R1 + 14;
  3093. 000069f8 * R1 = * (* 0x8700bc78 + 7);
  3094. 00006a00 /* Low-level instruction of type 283 */
  3095. 00006a02 Cond = 0xd9;
  3096. 00006a04 goto loc_6AAA;
  3097.  
  3098. 00006a06 loc_6A06:
  3099. 00006a0a R1 = * (* 0x8700bc78 + 2);
  3100. 00006a0c Cond = R1 << 10;
  3101. 00006a0e R1 = 0x8700be0c;
  3102. 00006a10 Cond = R1 + 4;
  3103. 00006a14 /* Low-level instruction of type 46 */
  3104. 00006a18 R1 = 0x8700be0c;
  3105. 00006a1a * R1 = R1 << 10;
  3106. 00006a20 Cond = R1 + 12;
  3107. 00006a20 R1 = R1 + 12;
  3108. 00006a22 * R1 = 0xffc;
  3109. 00006a2a Cond = R1 + 2;
  3110. 00006a2a R1 = R1 + 2;
  3111. 00006a2c * R1 = * (* 0x8700bc78 + 6);
  3112. 00006a30 R0 = * 0x8700be0c;
  3113. 00006a32 Cond = R0 << 1;
  3114. 00006a32 R6 = R0 << 1;
  3115. 00006a38 R0 = * (R1 - 10);
  3116. 00006a3a Cond = R0 << 10;
  3117. 00006a3e /* Low-level instruction of type 46 */
  3118. 00006a42 R1 = 0x8700be0c;
  3119. 00006a44 Cond = R1 + 8;
  3120. 00006a44 R1 = R1 + 8;
  3121. 00006a46 * R1 = R6;
  3122. 00006a48 Cond = R1 - 4;
  3123. 00006a4a R0 = * (R1 - 4 + 8);
  3124. 00006a4c Cond = R0 << 10;
  3125. 00006a50 /* Low-level instruction of type 46 */
  3126. 00006a54 /* Low-level instruction of type 282 */
  3127. 00006a56 R0 = 0x8700be0c;
  3128. 00006a58 Cond = R0 + 8;
  3129. 00006a5a R0 = * (R0 + 8);
  3130. 00006a5c Cond = R0 + 1;
  3131. 00006a5e R1 = 0x8700be0c;
  3132. 00006a60 Cond = R1 + 8;
  3133. 00006a62 * (R1 + 8) = R0 + 1;
  3134.  
  3135. 00006a64 loc_6A64:
  3136. 00006a64 R0 = 0x8700be0c;
  3137. 00006a66 Cond = R0 + 8;
  3138. 00006a6a /* Low-level instruction of type 283 */
  3139. 00006a6c Cond = 0xd9;
  3140. 00006a6e goto loc_6AAA;
  3141.  
  3142. 00006a70 loc_6A70:
  3143. 00006a70 R0 = 0x8700be0c;
  3144. 00006a72 Cond = R0 + 8;
  3145. 00006a72 R0 = R0 + 8;
  3146. 00006a76 Cond = R0 - 8;
  3147. 00006a7a /* Low-level instruction of type 46 */
  3148. 00006a7e R1 = 0x8700be0c;
  3149. 00006a80 Cond = R1 + 10;
  3150. 00006a80 R1 = R1 + 10;
  3151. 00006a82 * R1 = * (R0 - 8);
  3152. 00006a88 /* Low-level instruction of type 283 */
  3153. 00006a8a Cond = 0xd9;
  3154. 00006a8c goto loc_6AAA;
  3155.  
  3156. 00006a8e loc_6A8E:
  3157. 00006a92 Cond = sub_4FDC(R0, R1, R2, R3) - 1;
  3158. 00006a94 if (Cond == 0) goto loc_6A9A;
  3159.  
  3160. 00006a96 Cond = 0xd0;
  3161. 00006a98 goto loc_6AAA;
  3162.  
  3163. 00006a9a loc_6A9A:
  3164. 00006a9a /* Low-level instruction of type 282 */
  3165. 00006a9c Cond = R4 - 1;
  3166. 00006a9e if (Cond != 0) goto loc_6AA8;
  3167.  
  3168. 00006aa0 loc_6AA0:
  3169. 00006aa2 R1 = 0x8700be0c;
  3170. 00006aa4 Cond = R1 + 0x10;
  3171. 00006aa6 * (R1 + 0x10) = 0x80080000;
  3172.  
  3173. 00006aa8 loc_6AA8:
  3174. 00006aa8 /* Low-level instruction of type 2 */
  3175.  
  3176. 00006ab0 sub_6AB0:
  3177. 00006ab0 /* Low-level instruction of type 43 */
  3178. 00006ab6 R4 = R0;
  3179. 00006ab8 R5 = R1;
  3180. 00006aba R6 = R2;
  3181. 00006abc R9 = 0;
  3182. 00006ac0 R10 = R9;
  3183. 00006ac2 R0 = 0x8700be0c;
  3184. 00006ac4 Cond = R0 + 0x10;
  3185. 00006ac6 R11 = * (R0 + 0x10);
  3186. 00006aca Cond = 0;
  3187. 00006ad2 R7 = sub_65F4(R4, 0, R2, R3);
  3188. 00006ad4 R0 = R7 - 0xff00;
  3189. 00006ad8 Cond = R0 - 0xff;
  3190. 00006ada if (Cond != 0) goto loc_6AE8;
  3191.  
  3192. 00006adc R9 = 0xd9;
  3193.  
  3194. 00006ae2 loc_6AE2:
  3195. 00006ae4 /* Low-level instruction of type 42 */
  3196.  
  3197. 00006ae8 loc_6AE8:
  3198. 00006ae8 goto loc_6B6E;
  3199.  
  3200. 00006aea loc_6AEA:
  3201. 00006aea Cond = R10;
  3202. 00006aee if (Cond != 0) goto loc_6B40;
  3203.  
  3204. 00006af0 Cond = R5;
  3205. 00006af2 if (Cond <= 0) goto loc_6B40;
  3206.  
  3207. 00006af4 R10 = 1;
  3208. 00006af8 R8 = 0;
  3209. 00006afc goto loc_6B32;
  3210.  
  3211. 00006afe loc_6AFE:
  3212. 00006afe R0 = 0x8700be0c;
  3213. 00006b00 Cond = R0 + 6;
  3214. 00006b0e sub_540E(R7, R8, R11, R11 + * (R0 + 6));
  3215. 00006b12 /* Low-level instruction of type 283 */
  3216. 00006b14 R9 = 0xd5;
  3217. 00006b18 goto loc_6B36;
  3218.  
  3219. 00006b1a loc_6B1A:
  3220. 00006b1a R0 = 0x8700be0c;
  3221. 00006b1c Cond = R0 + 6;
  3222. 00006b20 R1 = 0x8700be0c;
  3223. 00006b22 Cond = R1 + 14;
  3224. 00006b28 R11 = R11 + * (R0 + 6) + * (R1 + 14);
  3225. 00006b2e R8 = R8 + 1 & 0xff;
  3226.  
  3227. 00006b32 loc_6B32:
  3228. 00006b32 Cond = R8 - R5;
  3229. 00006b34 if (Cond < 0) goto loc_6AFE;
  3230.  
  3231. 00006b36 loc_6B36:
  3232. 00006b36 /* Low-level instruction of type 2 */
  3233. 00006b38 Cond = R9;
  3234. 00006b3c if (Cond == 0) goto loc_6B40;
  3235.  
  3236. 00006b3e goto loc_6B82;
  3237.  
  3238. 00006b40 loc_6B40:
  3239. 00006b40 /* Low-level instruction of type 2 */
  3240.  
  3241. 00006b42 loc_6B42:
  3242. 00006b4c R9 = sub_6806(R4, R7, & var_38, R3);
  3243. 00006b4e Cond = R9;
  3244. 00006b52 if (Cond == 0) goto loc_6B56;
  3245.  
  3246. 00006b54 goto loc_6B64;
  3247.  
  3248. 00006b56 loc_6B56:
  3249. 00006b56 R7 = var_38;
  3250. 00006b60 Cond = sub_5862(R7, R1, R2, R3);
  3251. 00006b62 if (Cond == 0) goto loc_6B42;
  3252.  
  3253. 00006b64 loc_6B64:
  3254. 00006b64 /* Low-level instruction of type 2 */
  3255. 00006b66 Cond = R9;
  3256. 00006b6a if (Cond == 0) goto loc_6B6E;
  3257.  
  3258. 00006b6c goto loc_6B82;
  3259.  
  3260. 00006b6e loc_6B6E:
  3261. 00006b6e var_40 = R10;
  3262. 00006b7e Cond = sub_684A(R7, R5, R6, var_28);
  3263. 00006b80 if (Cond != 0) goto loc_6AEA;
  3264.  
  3265. 00006b82 loc_6B82:
  3266. 00006b82 /* Low-level instruction of type 2 */
  3267. 00006b86 goto loc_6AE2;
  3268.  
  3269. 00006b88 sub_6B88:
  3270. 00006b88 /* Low-level instruction of type 43 */
  3271. 00006b8c Cond = 0;
  3272. 00006b8e Cond = 0;
  3273. 00006b90 Cond = 0;
  3274. 00006b92 var_18 = 0;
  3275. 00006b94 /* Low-level instruction of type 2 */
  3276. 00006b9e sub_659E(R0, SP, R2, R3);
  3277. 00006ba0 /* Low-level instruction of type 282 */
  3278. 00006ba2 Cond = 0xd9;
  3279. 00006ba4 goto loc_6BBC;
  3280.  
  3281. 00006ba6 loc_6BA6:
  3282. 00006baa /* Low-level instruction of type 283 */
  3283. 00006bae sub_5862(R4, R1, R2, R3);
  3284. 00006bb2 /* Low-level instruction of type 283 */
  3285. 00006bb6 sub_6572(R4, R1, R2, R3);
  3286.  
  3287. 00006bba loc_6BBA:
  3288. 00006bba /* Low-level instruction of type 2 */
  3289.  
  3290. 00006bc2 sub_6BC2:
  3291. 00006bc2 /* Low-level instruction of type 43 */
  3292. 00006bc8 R5 = R1;
  3293. 00006bca R6 = R2;
  3294. 00006bcc R7 = R3;
  3295. 00006bce R9 = 0;
  3296. 00006bd6 /* Low-level instruction of type 2 */
  3297. 00006bd8 Cond = 0;
  3298. 00006be0 R8 = sub_65F4(R0, 0, R2, R3);
  3299. 00006be2 R1 = R8 - 0xff00;
  3300. 00006be6 Cond = R1 - 0xff;
  3301. 00006be8 if (Cond != 0) goto loc_6BF0;
  3302.  
  3303. 00006bee goto loc_6C26;
  3304.  
  3305. 00006bf0 loc_6BF0:
  3306. 00006bf8 sub_540E(R8, R5, R6, R7);
  3307. 00006bfc /* Low-level instruction of type 283 */
  3308. 00006c02 goto loc_6C26;
  3309.  
  3310. 00006c04 loc_6C04:
  3311. 00006c04 /* Low-level instruction of type 282 */
  3312. 00006c06 R11 = 0x28;
  3313. 00006c0a R10 = R11;
  3314. 00006c0c goto loc_6C1C;
  3315.  
  3316. 00006c0e loc_6C0E:
  3317. 00006c0e Cond = 0xff;
  3318. 00006c10 * (R7 + R10) = 0xff;
  3319. 00006c18 R10 = R10 + 1 & 0xff;
  3320.  
  3321. 00006c1c loc_6C1C:
  3322. 00006c20 Cond = R10 - R11 + 0x18;
  3323. 00006c22 if (Cond < 0) goto loc_6C0E;
  3324.  
  3325. 00006c24 loc_6C24:
  3326. 00006c24 /* Low-level instruction of type 2 */
  3327.  
  3328. 00006c6c sub_6C6C:
  3329. 00006c6c /* Low-level instruction of type 43 */
  3330. 00006c70 R4 = R0;
  3331. 00006c72 Cond = 0;
  3332. 00006c72 R5 = 0;
  3333. 00006c78 /* Low-level instruction of type 2 */
  3334. 00006c7a goto loc_6C86;
  3335.  
  3336. 00006c7c loc_6C7C:
  3337. 00006c7c Cond = 0;
  3338. 00006c80 * (& var_2C + R5) = 0;
  3339. 00006c84 Cond = R5 + 1;
  3340. 00006c84 R5 = R5 + 1;
  3341.  
  3342. 00006c86 loc_6C86:
  3343. 00006c86 Cond = R5 - 4;
  3344. 00006c88 if (Cond <= 0) goto loc_6C7C;
  3345.  
  3346. 00006c8a /* Low-level instruction of type 2 */
  3347. 00006c8c Cond = R4 - 4;
  3348. 00006c8e if (Cond > 0) goto loc_6CA2;
  3349.  
  3350. 00006c92 var_34 = & var_2C;
  3351. 00006c94 Cond = 1;
  3352. 00006c96 Cond = 7;
  3353. 00006c98 Cond = 0;
  3354. 00006c9a Cond = 0x36;
  3355. 00006ca0 sub_882C(0x36, 0, 7, 1);
  3356.  
  3357. 00006ca2 loc_6CA2:
  3358. 00006ca2 /* Low-level instruction of type 283 */
  3359. 00006caa /* Low-level instruction of type 255 */
  3360.  
  3361. 00006cb6 sub_6CB6:
  3362. 00006cb6 R1 = R0;
  3363. 00006cb8 Cond = 0;
  3364. 00006cb8 R2 = 0;
  3365. 00006cba Cond = 0;
  3366. 00006cba R0 = 0;
  3367. 00006cbc /* Low-level instruction of type 2 */
  3368. 00006cbe goto loc_6CD4;
  3369.  
  3370. 00006cc0 loc_6CC0:
  3371. 00006cc8 Cond = (R1 >> R2 & 1) - 1;
  3372. 00006cca if (Cond != 0) goto loc_6CD0;
  3373.  
  3374. 00006ccc Cond = R0 + 1;
  3375. 00006cce /* Low-level instruction of type 251 */
  3376.  
  3377. 00006cd0 loc_6CD0:
  3378. 00006cd0 Cond = R2 + 1;
  3379. 00006cd2 /* Low-level instruction of type 251 */
  3380.  
  3381. 00006cd4 loc_6CD4:
  3382. 00006cd4 Cond = R2 - 0x1f;
  3383. 00006cd6 if (Cond <= 0) goto loc_6CC0;
  3384.  
  3385. 00006cd8 return R0;
  3386.  
  3387. 00006cda sub_6CDA:
  3388. 00006cda /* Low-level instruction of type 43 */
  3389. 00006ce4 Cond = R0 - 0x65 - 0x10;
  3390. 00006ce6 if (Cond >= 0) goto loc_6D90;
  3391.  
  3392. 00006ce8 /* Low-level instruction of type 274 */
  3393.  
  3394. 00006cfc loc_6CFC:
  3395. 00006cfc Cond = 3;
  3396. 00006cfe R0 = sub_6C6C(3, R1, R2, R3);
  3397. 00006d02 Cond = R0 >> 8;
  3398. 00006d0a sub_6CB6(R0 >> 8, R1, R2, R3);
  3399. 00006d0c goto loc_6D92;
  3400.  
  3401. 00006d0e loc_6D0E:
  3402. 00006d0e Cond = 3;
  3403. 00006d10 sub_6C6C(3, R1, R2, R3);
  3404. 00006d14 /* Low-level instruction of type 251 */
  3405. 00006d1c sub_6CB6(R6, R1, R2, R3);
  3406. 00006d1e goto loc_6D92;
  3407.  
  3408. 00006d20 loc_6D20:
  3409. 00006d20 Cond = 2;
  3410. 00006d22 R0 = sub_6C6C(2, R1, R2, R3);
  3411. 00006d2c sub_6CB6(R0, R1, R2, R3);
  3412. 00006d2e goto loc_6D92;
  3413.  
  3414. 00006d30 loc_6D30:
  3415. 00006d30 Cond = 1;
  3416. 00006d32 R0 = sub_6C6C(1, R1, R2, R3);
  3417. 00006d3c sub_6CB6(R0, R1, R2, R3);
  3418. 00006d3e goto loc_6D92;
  3419.  
  3420. 00006d40 loc_6D40:
  3421. 00006d40 Cond = 0;
  3422. 00006d42 R0 = sub_6C6C(0, R1, R2, R3);
  3423. 00006d4c sub_6CB6(R0, R1, R2, R3);
  3424. 00006d4e goto loc_6D92;
  3425.  
  3426. 00006d50 loc_6D50:
  3427. 00006d50 Cond = 4;
  3428. 00006d52 R0 = sub_6C6C(4, R1, R2, R3);
  3429. 00006d56 Cond = R0 >> 15;
  3430. 00006d58 goto loc_6D92;
  3431.  
  3432. 00006d5a loc_6D5A:
  3433. 00006d5a Cond = 4;
  3434. 00006d5c sub_6C6C(4, R1, R2, R3);
  3435. 00006d60 /* Low-level instruction of type 271 */
  3436. 00006d64 goto loc_6D92;
  3437.  
  3438. 00006d66 loc_6D66:
  3439. 00006d66 Cond = 4;
  3440. 00006d68 sub_6C6C(4, R1, R2, R3);
  3441. 00006d6c /* Low-level instruction of type 271 */
  3442. 00006d70 goto loc_6D92;
  3443.  
  3444. 00006d72 loc_6D72:
  3445. 00006d72 Cond = 4;
  3446. 00006d74 sub_6C6C(4, R1, R2, R3);
  3447. 00006d78 /* Low-level instruction of type 271 */
  3448. 00006d82 sub_6CB6(R6, R1, R2, R3);
  3449. 00006d84 goto loc_6D92;
  3450.  
  3451. 00006d86 loc_6D86:
  3452. 00006d8a /* Low-level instruction of type 255 */
  3453. 00006d8c goto loc_6D92;
  3454.  
  3455. 00006d8e loc_6D8E:
  3456. 00006d8e /* Low-level instruction of type 2 */
  3457.  
  3458. 00006d90 loc_6D90:
  3459. 00006d90 /* Low-level instruction of type 2 */
  3460.  
  3461. 00006d98 sub_6D98:
  3462. 00006d98 /* Low-level instruction of type 43 */
  3463. 00006d9e R4 = R0;
  3464. 00006da0 R5 = R1;
  3465. 00006da4 Cond = 0x10;
  3466. 00006daa var_28 = R4;
  3467. 00006dac var_24 = R5;
  3468. 00006dae Cond = 0;
  3469. 00006dae R0 = 0;
  3470. 00006db0 var_2C = R0;
  3471. 00006db2 var_20 = R0;
  3472. 00006db4 Cond = R4 - 0x6f;
  3473. 00006db6 if (Cond != 0) goto loc_6DCE;
  3474.  
  3475. 00006dba R0 = sub_7E4A(R5, R1, R2, R3);
  3476. 00006dbe var_2C = R0;
  3477. 00006dc2 Cond = 1;
  3478. 00006dc8 var_20 = gvar_7480(1, & var_2C, R2, R3);
  3479. 00006dca Cond = 1;
  3480. 00006dcc var_1C = 1;
  3481.  
  3482. 00006dce loc_6DCE:
  3483. 00006dce Cond = 1;
  3484. 00006dd2 var_30 = & var_28;
  3485. 00006dd4 Cond = 1;
  3486. 00006dd6 Cond = 7;
  3487. 00006dd8 Cond = 0;
  3488. 00006dda Cond = 0x31;
  3489. 00006de0 sub_882C(0x31, 0, 7, 1);
  3490. 00006de2 /* Low-level instruction of type 283 */
  3491. 00006de4 Cond = 0;
  3492.  
  3493. 00006dee sub_6DEE:
  3494. 00006dee /* Low-level instruction of type 43 */
  3495. 00006df0 Cond = 2;
  3496. 00006df6 R5 = gvar_740A(R0, R1, R2, R3);
  3497. 00006df8 Cond = R5 - 1;
  3498. 00006dfa if (Cond == 0) goto loc_6E06;
  3499.  
  3500. 00006dfc Cond = R5 - 2;
  3501. 00006dfe if (Cond == 0) goto loc_6E0A;
  3502.  
  3503. 00006e00 Cond = R5 - 8;
  3504. 00006e02 if (Cond != 0) goto loc_6E12;
  3505.  
  3506. 00006e04 goto loc_6E0E;
  3507.  
  3508. 00006e06 loc_6E06:
  3509. 00006e06 Cond = 1;
  3510. 00006e08 goto loc_6E16;
  3511.  
  3512. 00006e0a loc_6E0A:
  3513. 00006e0a Cond = 2;
  3514. 00006e0c goto loc_6E16;
  3515.  
  3516. 00006e0e loc_6E0E:
  3517. 00006e0e Cond = 8;
  3518. 00006e10 goto loc_6E16;
  3519.  
  3520. 00006e12 loc_6E12:
  3521. 00006e12 Cond = 2;
  3522. 00006e14 /* Low-level instruction of type 2 */
  3523.  
  3524. 00006e1c sub_6E1C:
  3525. 00006e1c /* Low-level instruction of type 43 */
  3526. 00006e1e Cond = 0;
  3527. 00006e20 Cond = 0x73;
  3528. 00006e22 sub_6CDA(0x73, R1, R2, R3);
  3529. 00006e26 /* Low-level instruction of type 283 */
  3530. 00006e28 Cond = 1;
  3531.  
  3532. 00006e32 sub_6E32:
  3533. 00006e32 /* Low-level instruction of type 43 */
  3534. 00006e36 R4 = R0;
  3535. 00006e38 R5 = R1;
  3536. 00006e3a Cond = 0x1a;
  3537. 00006e3c Cond = 0;
  3538. 00006e3e /* Low-level instruction of type 282 */
  3539. 00006e42 Cond = 0;
  3540. 00006e46 sub_3594(R4, 0, R5, R3);
  3541. 00006e4a R7 = 0x4830a218;
  3542. 00006e4e var_28 = * R7;
  3543. 00006e52 var_24 = * (R7 + 4);
  3544. 00006e56 var_20 = * (R7 + 8);
  3545. 00006e5a var_1C = * (R7 + 12);
  3546. 00006e5c Cond = R5 - 0x10;
  3547. 00006e5e if (Cond > 0) goto loc_6E6C;
  3548.  
  3549. 00006e66 sub_355C(R4, SP, R5, R3);
  3550. 00006e6a goto loc_6E76;
  3551.  
  3552. 00006e6c loc_6E6C:
  3553. 00006e6c Cond = 0x10;
  3554. 00006e72 sub_355C(R4, SP, 0x10, R3);
  3555.  
  3556. 00006e76 loc_6E76:
  3557. 00006e76 Cond = 0;
  3558.  
  3559. 00006ebe sub_6EBE:
  3560. 00006ebe /* Low-level instruction of type 43 */
  3561. 00006ec0 Cond = 0x10;
  3562. 00006ec2 Cond = 0x6e;
  3563. 00006ec4 sub_6CDA(0x6e, R1, R2, R3);
  3564. 00006ec8 /* Low-level instruction of type 283 */
  3565. 00006eca Cond = 0;
  3566.  
  3567. 00006f60 sub_6F60:
  3568. 00006f60 /* Low-level instruction of type 43 */
  3569. 00006f62 R4 = R0;
  3570. 00006f64 Cond = 0;
  3571. 00006f66 Cond = 0x39;
  3572. 00006f68 Cond = 0xf0;
  3573. 00006f6a Cond = 1;
  3574. 00006f6c var_1C = 1;
  3575. 00006f74 Cond = * * 0x8700be60 - 0xb4;
  3576. 00006f76 if (Cond != 0) goto loc_6F82;
  3577.  
  3578. 00006f7e Cond = * (* 0x8700be60 + 1) - 1;
  3579. 00006f80 if (Cond <= 0) goto loc_6F86;
  3580.  
  3581. 00006f82 loc_6F82:
  3582. 00006f82 Cond = 0x4e;
  3583. 00006f84 goto loc_7022;
  3584.  
  3585. 00006f86 loc_6F86:
  3586. 00006f92 R5 = * (* 0x8700be60 + 3) | * (* 0x8700be60 + 2) << 8;
  3587. 00006f96 Cond = 1;
  3588. 00006f9a var_20 = 1;
  3589. 00006f9c R0 = * 0x8700be60;
  3590. 00006f9e Cond = R0 + R5;
  3591. 00006fa0 Cond = 0;
  3592. 00006fa0 R3 = 0;
  3593. 00006fa4 Cond = 0xff;
  3594. 00006faa R7 = sub_80D6(0xff, R0 + R5, R3, R3);
  3595. 00006fac Cond = R7 - 0xf0;
  3596. 00006fae if (Cond == 0) goto loc_6FB4;
  3597.  
  3598. 00006fb2 goto loc_7022;
  3599.  
  3600. 00006fb4 loc_6FB4:
  3601. 00006fb8 Cond = * (0x81007a14 + 10) - R5;
  3602. 00006fba if (Cond <= 0) goto loc_6FC0;
  3603.  
  3604. 00006fbc Cond = 0;
  3605. 00006fbc R5 = 0;
  3606. 00006fbe goto loc_6FC8;
  3607.  
  3608. 00006fc0 loc_6FC0:
  3609. 00006fc2 R0 = * (0x81007a14 + 10);
  3610. 00006fc4 Cond = R5 - R0;
  3611. 00006fc6 /* Low-level instruction of type 255 */
  3612.  
  3613. 00006fc8 loc_6FC8:
  3614. 00006fc8 Cond = R5 - 6;
  3615. 00006fca if (Cond < 0) goto loc_6FD2;
  3616.  
  3617. 00006fcc Cond = R5 - 0x3e8;
  3618. 00006fd0 if (Cond <= 0) goto loc_6FD6;
  3619.  
  3620. 00006fd2 loc_6FD2:
  3621. 00006fd2 Cond = 0x4d;
  3622. 00006fd4 goto loc_7022;
  3623.  
  3624. 00006fd6 loc_6FD6:
  3625. 00006fde sub_355C(0x8100762c, * 0x8700be60, R5, R3);
  3626. 00006fe2 var_1C = R5;
  3627. 00006fea R7 = sub_7FDC(& var_1C, R1, R2, R3);
  3628. 00006fec Cond = R7 - 0xf0;
  3629. 00006fee if (Cond == 0) goto loc_6FF4;
  3630.  
  3631. 00006ff2 goto loc_7022;
  3632.  
  3633. 00006ff4 loc_6FF4:
  3634. 00006ff6 R0 = 0x8100762c + R5;
  3635. 00006ff8 R1 = var_1C;
  3636. 00006ffa Cond = R0 - R1;
  3637. 00006ffc var_18 = R0 - R1;
  3638. 00006ffe goto loc_7014;
  3639.  
  3640. 00007000 loc_7000:
  3641. 0000700a R7 = sub_84C6(& var_18, & var_1C, R4, R3);
  3642. 0000700c Cond = R7 - 0xf0;
  3643. 0000700e if (Cond == 0) goto loc_7014;
  3644.  
  3645. 00007012 goto loc_701A;
  3646.  
  3647. 00007014 loc_7014:
  3648. 00007016 Cond = var_1C;
  3649. 00007018 if (Cond != 0) goto loc_7000;
  3650.  
  3651. 0000701a loc_701A:
  3652. 0000701a /* Low-level instruction of type 2 */
  3653. 0000701c Cond = R7 - 0xf0;
  3654. 0000701e if (Cond != 0) goto loc_7022;
  3655.  
  3656. 00007020 Cond = 0xf0;
  3657.  
  3658. 00007026 sub_7026:
  3659. 00007026 /* Low-level instruction of type 43 */
  3660. 0000702a R0 = * 0x8700b730;
  3661. 0000702c var_10 = R0;
  3662. 0000702e Cond = 0x39;
  3663. 00007030 Cond = 0;
  3664. 00007030 R4 = 0;
  3665. 00007032 R0 = gvar_740A(R0, R1, R2, R3);
  3666. 00007036 /* Low-level instruction of type 2 */
  3667. 00007038 goto loc_7046;
  3668.  
  3669. 0000703a loc_703A:
  3670. 0000703a Cond = 0;
  3671. 0000703a R0 = 0;
  3672. 0000703e R1 = 0x81007a14 + (R4 << 4);
  3673. 00007042 * (R1 + 12) = R0;
  3674. 00007044 Cond = R4 + 1;
  3675. 00007044 R4 = R4 + 1;
  3676.  
  3677. 00007046 loc_7046:
  3678. 00007046 Cond = R4 - 4;
  3679. 00007048 if (Cond < 0) goto loc_703A;
  3680.  
  3681. 0000704a Cond = 0;
  3682. 0000704a R4 = 0;
  3683. 0000704c goto loc_705A;
  3684.  
  3685. 0000704e loc_704E:
  3686. 0000704e Cond = 0;
  3687. 0000704e R0 = 0;
  3688. 00007052 R1 = 0x81007c54 + (R4 << 4);
  3689. 00007056 * (R1 + 12) = R0;
  3690. 00007058 Cond = R4 + 1;
  3691. 00007058 R4 = R4 + 1;
  3692.  
  3693. 0000705a loc_705A:
  3694. 0000705a Cond = R4;
  3695. 0000705c if (Cond == 0) goto loc_704E;
  3696.  
  3697. 0000705e Cond = 0;
  3698. 0000705e R4 = 0;
  3699. 00007060 goto loc_706C;
  3700.  
  3701. 00007062 loc_7062:
  3702. 00007062 Cond = 0;
  3703. 00007062 R0 = 0;
  3704. 00007064 R1 = 0x81007ce4;
  3705. 00007066 * (R1 + R4) = R0;
  3706. 0000706a Cond = R4 + 1;
  3707. 0000706a R4 = R4 + 1;
  3708.  
  3709. 0000706c loc_706C:
  3710. 0000706c Cond = R4 - 0x40;
  3711. 0000706e if (Cond < 0) goto loc_7062;
  3712.  
  3713. 00007070 R0 = sub_743E(R0, R1, R2, R3);
  3714. 00007076 Cond = R0 - 0xf0;
  3715. 00007078 if (Cond != 0) goto loc_7088;
  3716.  
  3717. 0000707e Cond = gvar_740A(R0, R1, R2, R3) - 1;
  3718. 00007080 if (Cond == 0) goto loc_7086;
  3719.  
  3720. 00007082 /* Low-level instruction of type 2 */
  3721. 00007084 /* Low-level instruction of type 2 */
  3722.  
  3723. 00007086 loc_7086:
  3724. 00007086 Cond = 0xf0;
  3725.  
  3726. 00007098 sub_7098:
  3727. 00007098 /* Low-level instruction of type 43 */
  3728. 000070a2 R0 = 0x8700b730;
  3729. 000070a4 Cond = R0 + 4;
  3730. 000070a8 var_20 = * (R0 + 4);
  3731. 000070ae Cond = 0;
  3732. 000070b4 Cond = 0;
  3733. 000070b8 R0 = sub_3594(0x8100762c, 0, 0x3e8, R3);
  3734. 000070bc /* Low-level instruction of type 282 */
  3735. 000070be Cond = R0 - 2;
  3736. 000070c0 if (Cond > 0) goto loc_70C4;
  3737.  
  3738. 000070c2 /* Low-level instruction of type 283 */
  3739.  
  3740. 000070c4 loc_70C4:
  3741. 000070c4 R8 = 0x8d;
  3742. 000070c8 goto loc_70F6;
  3743.  
  3744. 000070ca loc_70CA:
  3745. 000070ca Cond = 0;
  3746. 000070ca R7 = 0;
  3747. 000070cc goto loc_70EC;
  3748.  
  3749. 000070ce loc_70CE:
  3750. 000070d2 R1 = 0x8700be60;
  3751. 000070d4 * R1 = * (R5 + R7);
  3752. 000070d8 R0 = * R1;
  3753. 000070da /* Low-level instruction of type 283 */
  3754. 000070dc R8 = 0x8d;
  3755. 000070e0 goto loc_70EA;
  3756.  
  3757. 000070e2 loc_70E2:
  3758. 000070e4 R0 = sub_6F60(R6, R1, R2, R3);
  3759. 000070e8 R8 = R0;
  3760.  
  3761. 000070ea loc_70EA:
  3762. 000070ea Cond = R7 + 1;
  3763. 000070ea R7 = R7 + 1;
  3764.  
  3765. 000070ec loc_70EC:
  3766. 000070ec Cond = R8 - 0xf0;
  3767. 000070f0 if (Cond != 0) goto loc_70F6;
  3768.  
  3769. 000070f2 Cond = R7 - R4;
  3770. 000070f4 if (Cond < 0) goto loc_70CE;
  3771.  
  3772. 000070f6 loc_70F6:
  3773. 000070f6 Cond = R8 - 0xf0;
  3774. 000070fa if (Cond != 0) goto loc_7108;
  3775.  
  3776. 00007100 Cond = gvar_740A(R0, R1, R2, R3) - 1;
  3777. 00007102 if (Cond == 0) goto loc_7108;
  3778.  
  3779. 00007104 /* Low-level instruction of type 2 */
  3780. 00007106 /* Low-level instruction of type 2 */
  3781.  
  3782. 0000711a sub_711A:
  3783. 0000711a /* Low-level instruction of type 43 */
  3784. 0000711c R4 = R0;
  3785. 0000711e R5 = R1;
  3786. 00007120 R0 = 0x8700b730;
  3787. 00007122 Cond = R0 + 8;
  3788. 00007126 var_18 = * (R0 + 8);
  3789. 00007128 Cond = 0;
  3790. 00007128 R7 = 0;
  3791. 0000712a Cond = R4;
  3792. 0000712c if (Cond < 0) goto loc_713A;
  3793.  
  3794. 0000712e Cond = R4 + R5;
  3795. 0000712e R0 = R4 + R5;
  3796. 00007130 Cond = R0 - 0x8000;
  3797. 00007134 if (Cond > 0) goto loc_713A;
  3798.  
  3799. 00007136 Cond = 1;
  3800. 00007136 R7 = 1;
  3801. 00007138 goto loc_7164;
  3802.  
  3803. 0000713a loc_713A:
  3804. 0000713a R6 = 0x81007ce4;
  3805. 0000713c goto loc_715C;
  3806.  
  3807. 0000713e loc_713E:
  3808. 0000713e R0 = * R6;
  3809. 00007140 /* Low-level instruction of type 283 */
  3810. 00007142 goto loc_7162;
  3811.  
  3812. 00007144 loc_7144:
  3813. 00007144 R0 = * R6;
  3814. 00007146 Cond = R0 - R4;
  3815. 00007148 if (Cond > 0) goto loc_715A;
  3816.  
  3817. 0000714a /* Low-level instruction of type 49 */
  3818. 0000714e R0 = R0 + R1;
  3819. 00007150 Cond = R4 + R5;
  3820. 00007150 R1 = R4 + R5;
  3821. 00007152 Cond = R0 - R1;
  3822. 00007154 if (Cond < 0) goto loc_715A;
  3823.  
  3824. 00007156 Cond = 1;
  3825. 00007156 R7 = 1;
  3826. 00007158 goto loc_7162;
  3827.  
  3828. 0000715a loc_715A:
  3829. 0000715a Cond = R6 + 8;
  3830. 0000715a R6 = R6 + 8;
  3831.  
  3832. 0000715c loc_715C:
  3833. 0000715c R0 = 0x81007de4;
  3834. 0000715e Cond = R6 - R0;
  3835. 00007160 if (Cond < 0) goto loc_713E;
  3836.  
  3837. 00007162 loc_7162:
  3838. 00007162 /* Low-level instruction of type 2 */
  3839.  
  3840. 00007164 loc_7164:
  3841. 00007164 Cond = R7 - 1;
  3842. 00007166 if (Cond == 0) goto loc_7170;
  3843.  
  3844. 00007168 Cond = 0x55;
  3845. 0000716a var_18 = 0x55;
  3846. 0000716e goto loc_7182;
  3847.  
  3848. 00007170 loc_7170:
  3849. 00007174 Cond = gvar_740A(R0, R1, R2, R3) - 1;
  3850. 00007176 if (Cond == 0) goto loc_717C;
  3851.  
  3852. 00007178 /* Low-level instruction of type 2 */
  3853. 0000717a /* Low-level instruction of type 2 */
  3854.  
  3855. 0000717c loc_717C:
  3856. 0000717c Cond = 0xf0;
  3857. 0000717e var_18 = 0xf0;
  3858.  
  3859. 0000718e sub_718E:
  3860. 0000718e /* Low-level instruction of type 43 */
  3861. 00007192 R6 = R0;
  3862. 00007194 R4 = R1;
  3863. 00007196 R0 = 0x8700b730;
  3864. 00007198 Cond = R0 + 12;
  3865. 0000719c var_18 = * (R0 + 12);
  3866. 0000719e R7 = & var_2C;
  3867. 000071a0 /* Low-level instruction of type 283 */
  3868. 000071a2 R5 = SP - 0x2c;
  3869. 000071a4 goto loc_71A8;
  3870.  
  3871. 000071a6 loc_71A6:
  3872. 000071a6 R5 = R4;
  3873.  
  3874. 000071a8 loc_71A8:
  3875. 000071a8 Cond = R6;
  3876. 000071aa if (Cond == 0) goto loc_7272;
  3877.  
  3878. 000071ac Cond = R5;
  3879. 000071ae if (Cond == 0) goto loc_7272;
  3880.  
  3881. 000071b2 Cond = * (R6 + 8) - 4;
  3882. 000071b4 if (Cond > 0) goto loc_7272;
  3883.  
  3884. 000071b8 Cond = * (R6 + 10) - 0x60;
  3885. 000071ba if (Cond < 0) goto loc_7272;
  3886.  
  3887. 000071be Cond = * (R6 + 10) - 0x80;
  3888. 000071c0 if (Cond > 0) goto loc_7272;
  3889.  
  3890. 000071c4 R1 = 0x81007c54;
  3891. 000071c6 * (R1 + 10) = * (R6 + 10);
  3892. 000071ca * (R1 + 8) = * (R6 + 8);
  3893. 000071ce * (R1 + 4) = 0x81007c64;
  3894. 000071d2 R3 = 0x81007c54;
  3895. 000071d8 sub_355C(* (R3 + 4), * (R6 + 4), * (R6 + 10), R3);
  3896. 000071e2 sub_355C(0x81007c54, R4, * (R6 + 8), R3);
  3897. 000071e6 Cond = 0;
  3898. 000071e8 R1 = 0x81007c54;
  3899. 000071ea * (R1 + 12) = 0;
  3900. 000071ec Cond = 2;
  3901. 000071ee * R7 = 2;
  3902. 000071f0 Cond = R7 + 1;
  3903. 000071f0 R7 = R7 + 1;
  3904. 000071f2 R0 = R1;
  3905. 000071f4 Cond = R0 >> 0x18;
  3906. 000071f6 * R7 = R0 >> 0x18;
  3907. 000071f8 R0 = R1;
  3908. 000071fa Cond = R0 >> 0x10;
  3909. 000071fc * (R7 + 1) = R0 >> 0x10;
  3910. 000071fe R0 = R1;
  3911. 00007200 Cond = R0 >> 8;
  3912. 00007202 * (R7 + 2) = R0 >> 8;
  3913. 00007206 * (R7 + 3) = R1;
  3914. 00007208 Cond = R7 + 4;
  3915. 00007208 R7 = R7 + 4;
  3916. 0000720a Cond = 0;
  3917. 0000720a R0 = 0;
  3918. 0000720c * R7 = R0;
  3919. 0000720e * (R7 + 1) = R0;
  3920. 00007212 R0 = * (R1 + 8);
  3921. 00007214 Cond = R0 >> 8;
  3922. 00007216 * (R7 + 2) = R0 >> 8;
  3923. 0000721c * (R7 + 3) = * (R1 + 8);
  3924. 0000721e Cond = R7 + 4;
  3925. 0000721e R7 = R7 + 4;
  3926. 00007222 R0 = * (R1 + 4);
  3927. 00007224 Cond = R0 >> 0x18;
  3928. 00007226 * R7 = R0 >> 0x18;
  3929. 0000722a R0 = * (R1 + 4);
  3930. 0000722c Cond = R0 >> 0x10;
  3931. 0000722e * (R7 + 1) = R0 >> 0x10;
  3932. 00007232 R0 = * (R1 + 4);
  3933. 00007234 Cond = R0 >> 8;
  3934. 00007236 * (R7 + 2) = R0 >> 8;
  3935. 0000723c * (R7 + 3) = * (R1 + 4);
  3936. 0000723e Cond = R7 + 4;
  3937. 0000723e R7 = R7 + 4;
  3938. 00007240 Cond = 0;
  3939. 00007240 R0 = 0;
  3940. 00007242 * R7 = R0;
  3941. 00007244 * (R7 + 1) = R0;
  3942. 00007248 R0 = * (R1 + 10);
  3943. 0000724a Cond = R0 >> 8;
  3944. 0000724c * (R7 + 2) = R0 >> 8;
  3945. 00007252 * (R7 + 3) = * (R1 + 10);
  3946. 00007254 Cond = R7 + 4;
  3947. 0000725c Cond = 1;
  3948. 00007262 Cond = sub_8296(1, & var_2C, R5, R3) - 0xf0;
  3949. 00007264 if (Cond != 0) goto loc_7272;
  3950.  
  3951. 00007266 Cond = 1;
  3952. 0000726a * (0x81007c54 + 12) = 1;
  3953. 0000726c Cond = 0xf0;
  3954. 0000726e var_18 = 0xf0;
  3955.  
  3956. 000072a0 sub_72A0:
  3957. 000072a0 /* Low-level instruction of type 43 */
  3958. 000072a6 Cond = 0x39;
  3959. 000072a8 /* Low-level instruction of type 282 */
  3960. 000072aa /* Low-level instruction of type 282 */
  3961. 000072ac Cond = 2;
  3962. 000072ae Cond = 7;
  3963. 000072b0 Cond = 0;
  3964. 000072b2 Cond = 0x48;
  3965. 000072b4 /* Low-level instruction of type 71 */
  3966. 000072b8 sub_882C(0x48, 0, 7, 2);
  3967. 000072bc /* Low-level instruction of type 251 */
  3968. 000072be /* Low-level instruction of type 283 */
  3969. 000072c0 Cond = 0xf0;
  3970.  
  3971. 000072c6 sub_72C6:
  3972. 000072c6 /* Low-level instruction of type 43 */
  3973. 000072ca SP = SP - 0x54;
  3974. 000072cc R4 = R0;
  3975. 000072ce Cond = 0x39;
  3976. 000072d0 R8 = SP;
  3977. 000072d2 R9 = 0;
  3978. 000072d6 R10 = 0;
  3979. 000072da Cond = R4;
  3980. 000072dc if (Cond == 0) goto loc_7396;
  3981.  
  3982. 000072de R1 = 0x208d0024;
  3983. 000072e0 R0 = * R4;
  3984. 000072e2 Cond = R0 & R1;
  3985. 000072e4 Cond = (R0 & R1) - R1;
  3986. 000072e6 if (Cond != 0) goto loc_7396;
  3987.  
  3988. 000072ea Cond = * (R4 + 12) - 0x14;
  3989. 000072ec if (Cond != 0) goto loc_7396;
  3990.  
  3991. 000072f0 Cond = * (R4 + 8);
  3992. 000072f2 /* Low-level instruction of type 34 */
  3993. 000072f6 Cond = * (R4 + 0x10);
  3994. 000072f8 if (Cond == 0) goto loc_7394;
  3995.  
  3996. 000072fa R8 = R8 + 1;
  3997. 000072fe /* Low-level instruction of type 2 */
  3998.  
  3999. 00007300 loc_7300:
  4000. 00007300 Cond = R10;
  4001. 00007304 if (Cond != 0) goto loc_730A;
  4002.  
  4003. 00007306 R6 = * (R4 + 8);
  4004. 00007308 goto loc_730C;
  4005.  
  4006. 0000730a loc_730A:
  4007. 0000730a R6 = * (R6 + 8);
  4008.  
  4009. 0000730c loc_730C:
  4010. 0000730c R0 = * (R6 + 4);
  4011. 0000730e Cond = R0 >> 0x18;
  4012. 00007310 * R8 = R0 >> 0x18;
  4013. 00007314 R0 = * (R6 + 4);
  4014. 00007316 Cond = R0 >> 0x10;
  4015. 00007318 * (R8 + 1) = R0 >> 0x10;
  4016. 0000731c R0 = * (R6 + 4);
  4017. 0000731e Cond = R0 >> 8;
  4018. 00007320 * (R8 + 2) = R0 >> 8;
  4019. 00007326 * (R8 + 3) = * (R6 + 4);
  4020. 0000732a R8 = R8 + 4;
  4021. 0000732e R0 = * R6;
  4022. 00007330 Cond = R0 >> 0x18;
  4023. 00007332 * R8 = R0 >> 0x18;
  4024. 00007336 R0 = * R6;
  4025. 00007338 Cond = R0 >> 0x10;
  4026. 0000733a * (R8 + 1) = R0 >> 0x10;
  4027. 0000733e R0 = * R6;
  4028. 00007340 Cond = R0 >> 8;
  4029. 00007342 * (R8 + 2) = R0 >> 8;
  4030. 00007348 * (R8 + 3) = * R6;
  4031. 0000734c R8 = R8 + 4;
  4032. 00007352 R9 = R9 + * R6;
  4033. 00007358 R10 = R10 + 1 & 0xff;
  4034. 0000735e /* Low-level instruction of type 282 */
  4035. 00007360 Cond = R10 - 10;
  4036. 00007364 if (Cond < 0) goto loc_7300;
  4037.  
  4038. 00007366 loc_7366:
  4039. 00007366 var_78 = R10;
  4040. 0000736c Cond = * (R4 + 4) - R9;
  4041. 0000736e if (Cond != 0) goto loc_7396;
  4042.  
  4043. 00007376 Cond = (* R4 & 0x1000000) - 0x1000000;
  4044. 0000737a if (Cond != 0) goto loc_7382;
  4045.  
  4046. 0000737c R11 = * (R4 + 0x10);
  4047. 00007380 goto loc_7388;
  4048.  
  4049. 00007382 loc_7382:
  4050. 00007384 R11 = * (* (R4 + 0x10) + 4);
  4051.  
  4052. 00007388 loc_7388:
  4053. 00007390 sub_72A0(SP, R11, R2, R3);
  4054. 00007392 goto loc_7396;
  4055.  
  4056. 00007394 loc_7394:
  4057. 00007394 Cond = 0x8e;
  4058.  
  4059. 0000739e sub_739E:
  4060. 0000739e /* Low-level instruction of type 43 */
  4061. 000073a0 R2 = R0;
  4062. 000073a2 Cond = 1;
  4063. 000073a4 R5 = * R2;
  4064. 000073a6 Cond = R2 + 1;
  4065. 000073a6 R2 = R2 + 1;
  4066. 000073a8 goto loc_73E6;
  4067.  
  4068. 000073aa loc_73AA:
  4069. 000073aa R6 = * R2;
  4070. 000073ac Cond = R6 << 0x18;
  4071. 000073c0 Cond = R2 + 4;
  4072. 000073c0 R2 = R2 + 4;
  4073. 000073c2 R6 = * R2;
  4074. 000073c4 Cond = R6 << 0x18;
  4075. 000073d4 R4 = R6 << 0x18 | * (R2 + 1) << 0x10 | * (R2 + 2) << 8 | * (R2 + 3);
  4076. 000073d8 Cond = R2 + 4;
  4077. 000073d8 R2 = R2 + 4;
  4078. 000073da Cond = R5 - 1;
  4079. 000073da R5 = R5 - 1;
  4080. 000073dc Cond = (R6 << 0x18 | * (R2 + 1) << 0x10 | * (R2 + 2) << 8 | * (R2 + 3)) & R1;
  4081. 000073de if (Cond != 0) goto loc_73E4;
  4082.  
  4083. 000073e0 Cond = R4 & R1;
  4084. 000073e2 if (Cond == 0) goto loc_73E6;
  4085.  
  4086. 000073e4 loc_73E4:
  4087. 000073e4 Cond = 0;
  4088.  
  4089. 000073e6 loc_73E6:
  4090. 000073e6 Cond = R5;
  4091. 000073e8 if (Cond != 0) goto loc_73AA;
  4092.  
  4093. 000073ec sub_73EC:
  4094. 000073ec /* Low-level instruction of type 43 */
  4095. 000073ee R5 = R0;
  4096. 000073f0 /* Low-level instruction of type 282 */
  4097. 000073f2 Cond = 14;
  4098. 000073f6 R0 = sub_6E32(R5, 14, R2, R3);
  4099. 000073fc /* Low-level instruction of type 282 */
  4100. 000073fe Cond = 14;
  4101. 00007400 Cond = 0xff;
  4102. 00007404 sub_3594(R5, 0xff, 14, R3);
  4103.  
  4104. 0000743e sub_743E:
  4105. 0000743e Cond = 0xf0;
  4106. 00007440 return 0xf0;
  4107.  
  4108. 00007460 sub_7460:
  4109. 00007460 Cond = 0;
  4110. 00007462 return 0;
  4111.  
  4112. 00007464 sub_7464:
  4113. 00007464 /* Low-level instruction of type 43 */
  4114. 00007466 Cond = 0x39;
  4115. 00007468 sub_6EBE(R0, R1, R2, R3);
  4116. 0000746c /* Low-level instruction of type 283 */
  4117. 0000746e Cond = 0xf0;
  4118. 00007470 goto loc_7474;
  4119.  
  4120. 00007472 loc_7472:
  4121. 00007472 Cond = 0x53;
  4122.  
  4123. 00007e4a sub_7E4A:
  4124. 00007e4a /* Low-level instruction of type 43 */
  4125. 00007e4e R2 = R0;
  4126. 00007e52 /* Low-level instruction of type 251 */
  4127. 00007e54 Cond = 0;
  4128. 00007e54 R3 = 0;
  4129. 00007e56 goto loc_7E62;
  4130.  
  4131. 00007e58 loc_7E58:
  4132. 00007e58 Cond = R0 << 8;
  4133. 00007e58 R0 = R0 << 8;
  4134. 00007e5a Cond = R2 >> 8;
  4135. 00007e5a R2 = R2 >> 8;
  4136. 00007e5c /* Low-level instruction of type 251 */
  4137. 00007e5e Cond = R0 | R4;
  4138. 00007e5e R0 = R0 | R4;
  4139. 00007e60 Cond = R3 + 1;
  4140. 00007e60 R3 = R3 + 1;
  4141.  
  4142. 00007e62 loc_7E62:
  4143. 00007e62 Cond = R3 - 3;
  4144. 00007e64 if (Cond < 0) goto loc_7E58;
  4145.  
  4146. 00007e90 sub_7E90:
  4147. 00007e90 /* Low-level instruction of type 43 */
  4148. 00007e94 R4 = R1;
  4149. 00007e96 R5 = R2;
  4150. 00007e98 Cond = 0x8e;
  4151. 00007e9a Cond = 0;
  4152. 00007e9a R0 = 0;
  4153. 00007e9c var_20 = R0;
  4154. 00007ea4 sub_8A74(R0, R4, & var_1C, R3);
  4155. 00007eac Cond = var_1C - 1;
  4156. 00007eae if (Cond != 0) goto loc_7EBE;
  4157.  
  4158. 00007eb4 Cond = 13;
  4159. 00007eb6 sub_8AA0(13, R4, R5, R3);
  4160. 00007eba Cond = 0xf0;
  4161. 00007ebc goto loc_7F0C;
  4162.  
  4163. 00007ebe loc_7EBE:
  4164. 00007ec2 Cond = var_1C - 2;
  4165. 00007ec4 if (Cond != 0) goto loc_7ED4;
  4166.  
  4167. 00007eca Cond = 14;
  4168. 00007ecc sub_8AA0(14, R4, R5, R3);
  4169. 00007ed0 Cond = 0xf0;
  4170. 00007ed2 goto loc_7F0C;
  4171.  
  4172. 00007ed4 loc_7ED4:
  4173. 00007ed8 Cond = var_1C - 3;
  4174. 00007eda if (Cond != 0) goto loc_7EEA;
  4175.  
  4176. 00007ee0 Cond = 15;
  4177. 00007ee2 sub_8AA0(15, R4, R5, R3);
  4178. 00007ee6 Cond = 0xf0;
  4179. 00007ee8 goto loc_7F0C;
  4180.  
  4181. 00007eea loc_7EEA:
  4182. 00007eee Cond = var_1C - 0x41;
  4183. 00007ef0 if (Cond == 0) goto loc_7EFA;
  4184.  
  4185. 00007ef6 Cond = var_1C - 0x62;
  4186. 00007ef8 if (Cond != 0) goto loc_7F0C;
  4187.  
  4188. 00007efa loc_7EFA:
  4189. 00007f06 Cond = sub_8B36(R4, var_1C, R5, R3) - 0xf0;
  4190. 00007f08 if (Cond != 0) goto loc_7F0C;
  4191.  
  4192. 00007f0a Cond = 0xf0;
  4193.  
  4194. 00007f12 sub_7F12:
  4195. 00007f12 /* Low-level instruction of type 43 */
  4196. 00007f16 Cond = R0 + 1;
  4197. 00007f18 R1 = 0x81007ce4;
  4198. 00007f1a goto loc_7F5A;
  4199.  
  4200. 00007f1c loc_7F1C:
  4201. 00007f1c /* Low-level instruction of type 283 */
  4202. 00007f1e goto loc_7F60;
  4203.  
  4204. 00007f20 loc_7F20:
  4205. 00007f22 /* Low-level instruction of type 283 */
  4206. 00007f24 R3 = * R0;
  4207. 00007f26 Cond = R3 << 0x18;
  4208. 00007f30 R3 = R3 << 0x18 | * (R0 + 1) << 0x10 | * (R0 + 2) << 8;
  4209. 00007f34 R4 = * (R0 + 3);
  4210. 00007f36 Cond = R3 | R4;
  4211. 00007f38 * R1 = R3 | R4;
  4212. 00007f3a Cond = R0 + 4;
  4213. 00007f3a R0 = R0 + 4;
  4214. 00007f3c R3 = * R0;
  4215. 00007f3e Cond = R3 << 0x18;
  4216. 00007f48 R3 = R3 << 0x18 | * (R0 + 1) << 0x10 | * (R0 + 2) << 8;
  4217. 00007f4c R4 = * (R0 + 3);
  4218. 00007f4e Cond = R3 | R4;
  4219. 00007f50 * (R1 + 4) = R3 | R4;
  4220. 00007f52 Cond = R0 + 4;
  4221. 00007f54 Cond = R2 - 1;
  4222. 00007f56 /* Low-level instruction of type 255 */
  4223.  
  4224. 00007f58 loc_7F58:
  4225. 00007f58 Cond = R1 + 8;
  4226. 00007f58 R1 = R1 + 8;
  4227.  
  4228. 00007f5a loc_7F5A:
  4229. 00007f5c Cond = R1 - 0x81007de4;
  4230. 00007f5e if (Cond < 0) goto loc_7F1C;
  4231.  
  4232. 00007f64 sub_7F64:
  4233. 00007f64 /* Low-level instruction of type 43 */
  4234. 00007f68 R4 = R0;
  4235. 00007f6a R5 = R1;
  4236. 00007f6c R6 = R2;
  4237. 00007f70 R8 = arg_0;
  4238. 00007f78 R10 = 0;
  4239. 00007f7c /* Low-level instruction of type 283 */
  4240. 00007f82 R11 = sub_7460(R0, R1, R2, R3);
  4241. 00007f84 Cond = R11 - 1;
  4242. 00007f88 if (Cond >= 0) goto loc_7F9E;
  4243.  
  4244. 00007f8c R10 = 0x81007c54 + (R11 << 4);
  4245. 00007f90 goto loc_7F9E;
  4246.  
  4247. 00007f92 loc_7F92:
  4248. 00007f92 Cond = R7 - 4;
  4249. 00007f94 if (Cond > 0) goto loc_7F9E;
  4250.  
  4251. 00007f96 Cond = R7 - 1;
  4252. 00007f98 R1 = 0x81007a14;
  4253. 00007f9a R10 = R1 + (R7 - 1 << 4);
  4254.  
  4255. 00007f9e loc_7F9E:
  4256. 00007f9e Cond = R10;
  4257. 00007fa2 if (Cond != 0) goto loc_7FAA;
  4258.  
  4259. 00007fa4 R9 = 0x87;
  4260. 00007fa8 goto loc_7FCA;
  4261.  
  4262. 00007faa loc_7FAA:
  4263. 00007fae Cond = * (R10 + 12) - 1;
  4264. 00007fb0 if (Cond == 0) goto loc_7FB8;
  4265.  
  4266. 00007fb2 R9 = 0x8b;
  4267. 00007fb6 goto loc_7FCA;
  4268.  
  4269. 00007fb8 loc_7FB8:
  4270. 00007fc0 var_28 = R10;
  4271. 00007fc8 R9 = sub_906A(R4, R5, R8, R6);
  4272.  
  4273. 00007fca loc_7FCA:
  4274. 00007fca Cond = R9 - 0xf0;
  4275. 00007fce if (Cond != 0) goto loc_7FD6;
  4276.  
  4277. 00007fd2 sub_7F12(R5, R1, R2, R3);
  4278.  
  4279. 00007fdc sub_7FDC:
  4280. 00007fdc /* Low-level instruction of type 43 */
  4281. 00007fe4 Cond = 0x35;
  4282. 00007fe6 R6 = * R0;
  4283. 00007fe8 Cond = 4;
  4284. 00007fe8 R7 = 4;
  4285. 00007fee R0 = gvar_740A(R0, R1, R2, R3);
  4286. 00007ff4 Cond = R7 + 1;
  4287. 00007ff4 R7 = R7 + 1;
  4288. 00007ff6 R2 = 0x8100762c;
  4289. 00007ff8 R1 = * (R2 + R7);
  4290. 00007ffa Cond = R0 - R1;
  4291. 00007ffc if (Cond == 0) goto loc_8002;
  4292.  
  4293. 00007ffe Cond = 0x2e;
  4294. 00008000 goto loc_80CE;
  4295.  
  4296. 00008002 loc_8002:
  4297. 00008004 sub_73EC(& var_2C, R1, R2, R3);
  4298. 0000800a Cond = R7 + 1;
  4299. 0000800a R7 = R7 + 1;
  4300. 0000800e R8 = * (0x8100762c + R7);
  4301. 00008016 Cond = R8 + 7 - R6;
  4302. 00008018 if (Cond <= 0) goto loc_801E;
  4303.  
  4304. 0000801a Cond = 0x4d;
  4305. 0000801c goto loc_80CE;
  4306.  
  4307. 0000801e loc_801E:
  4308. 0000801e Cond = R8 - 0x14;
  4309. 00008022 if (Cond != 0) goto loc_8032;
  4310.  
  4311. 00008024 R1 = 0x8100762c;
  4312. 00008026 Cond = R1 + R7;
  4313. 0000802c sub_3574(0x8700b752 + R7, 0x8700b752, R8, R3);
  4314. 00008030 /* Low-level instruction of type 282 */
  4315.  
  4316. 00008032 loc_8032:
  4317. 00008032 Cond = R8 - 14;
  4318. 00008036 if (Cond != 0) goto loc_8046;
  4319.  
  4320. 00008038 R1 = 0x8100762c;
  4321. 0000803a Cond = R1 + R7;
  4322. 00008040 sub_3574(& var_2C + R7, & var_2C, R8, R3);
  4323. 00008044 /* Low-level instruction of type 282 */
  4324.  
  4325. 00008046 loc_8046:
  4326. 00008046 Cond = 0x2d;
  4327. 00008048 goto loc_80CE;
  4328.  
  4329. 0000804a loc_804A:
  4330. 0000804a Cond = R8 - 0x14;
  4331. 0000804e if (Cond == 0) goto loc_805C;
  4332.  
  4333. 00008050 R0 = sub_7464(R0, R1, R2, R3);
  4334. 00008054 Cond = R0 - 0xf0;
  4335. 00008056 if (Cond == 0) goto loc_805C;
  4336.  
  4337. 00008058 Cond = 0x53;
  4338. 0000805a goto loc_80CE;
  4339.  
  4340. 0000805c loc_805C:
  4341. 0000805e R0 = sub_7454(R0, R1, R2, R3);
  4342. 00008066 Cond = R0 - * (0x8100762c + R7 + R8);
  4343. 00008068 if (Cond == 0) goto loc_806E;
  4344.  
  4345. 0000806a Cond = 0x3a;
  4346. 0000806c goto loc_80CE;
  4347.  
  4348. 0000806e loc_806E:
  4349. 0000806e R0 = R6 - R8;
  4350. 00008072 Cond = R0 - 7;
  4351. 00008074 * R4 = R0 - 7;
  4352. 00008076 Cond = 1;
  4353. 00008078 * R9 = 1;
  4354. 0000807c R9 = R9 + 1;
  4355. 00008080 R0 = 0x8100762c;
  4356. 00008082 Cond = R0 >> 0x18;
  4357. 00008084 * R9 = R0 >> 0x18;
  4358. 00008088 R0 = 0x8100762c;
  4359. 0000808a Cond = R0 >> 0x10;
  4360. 0000808c * (R9 + 1) = R0 >> 0x10;
  4361. 00008090 R0 = 0x8100762c;
  4362. 00008092 Cond = R0 >> 8;
  4363. 00008094 * (R9 + 2) = R0 >> 8;
  4364. 0000809a * (R9 + 3) = 0x8100762c;
  4365. 0000809e R9 = R9 + 4;
  4366. 000080a2 Cond = R6 >> 0x18;
  4367. 000080a4 * R9 = R6 >> 0x18;
  4368. 000080a8 Cond = R6 >> 0x10;
  4369. 000080aa * (R9 + 1) = R6 >> 0x10;
  4370. 000080ae Cond = R6 >> 8;
  4371. 000080b0 * (R9 + 2) = R6 >> 8;
  4372. 000080b4 * (R9 + 3) = R6;
  4373. 000080b8 Cond = 0;
  4374. 000080bc var_40 = 0;
  4375. 000080be R0 = * 0x8700be60;
  4376. 000080c0 Cond = R0 + R6;
  4377. 000080c2 Cond = 1;
  4378. 000080c6 Cond = 0x11;
  4379. 000080cc sub_7F64(0x11, & var_38, R0 + R6, 1);
  4380.  
  4381. 000080d6 sub_80D6:
  4382. 000080d6 /* Low-level instruction of type 43 */
  4383. 000080de R5 = R1;
  4384. 000080e0 R6 = R2;
  4385. 000080e4 R8 = arg_0;
  4386. 000080e8 R9 = & var_4C;
  4387. 000080f8 /* Low-level instruction of type 71 */
  4388. 000080fc /* Low-level instruction of type 71 */
  4389. 00008102 var_78 = & var_2C;
  4390. 00008110 Cond = sub_88D0(R0, R5, & var_28, & var_34) - 0xf0;
  4391. 00008112 if (Cond != 0) goto loc_8124;
  4392.  
  4393. 00008114 Cond = R8 - 4;
  4394. 00008118 if (Cond > 0) goto loc_8120;
  4395.  
  4396. 0000811a Cond = R12;
  4397. 0000811e if (Cond != 0) goto loc_8126;
  4398.  
  4399. 00008120 loc_8120:
  4400.  
  4401. 00008124 loc_8124:
  4402. 00008124 goto loc_828E;
  4403.  
  4404. 00008126 loc_8126:
  4405. 0000812c R10 = 0x81007a14 + (R8 - 1 << 4);
  4406. 00008134 Cond = * (R10 + 12) - 1;
  4407. 00008136 if (Cond != 0) goto loc_8178;
  4408.  
  4409. 00008140 Cond = * (R10 + 10) - var_34;
  4410. 00008142 if (Cond != 0) goto loc_8178;
  4411.  
  4412. 0000814c Cond = * (R10 + 8) - var_38;
  4413. 0000814e if (Cond != 0) goto loc_8178;
  4414.  
  4415. 00008150 R2 = var_28;
  4416. 00008152 Cond = R5 + R2;
  4417. 0000815c sub_3574(* (R10 + 4), R5 + var_34, var_34, R3);
  4418. 00008160 /* Low-level instruction of type 283 */
  4419. 00008162 R0 = var_2C;
  4420. 00008164 Cond = R5 + R0;
  4421. 0000816c sub_3574(R10, R5 + R0, var_38, R3);
  4422. 00008170 /* Low-level instruction of type 283 */
  4423. 00008176 goto loc_828E;
  4424.  
  4425. 00008178 loc_8178:
  4426. 00008178 Cond = 1;
  4427. 0000817a * R9 = 1;
  4428. 0000817e R9 = R9 + 1;
  4429. 00008182 Cond = R5 >> 0x18;
  4430. 00008184 * R9 = R5 >> 0x18;
  4431. 00008188 Cond = R5 >> 0x10;
  4432. 0000818a * (R9 + 1) = R5 >> 0x10;
  4433. 0000818e Cond = R5 >> 8;
  4434. 00008190 * (R9 + 2) = R5 >> 8;
  4435. 00008194 * (R9 + 3) = R5;
  4436. 00008198 R9 = R9 + 4;
  4437. 000081a0 R0 = var_30 + var_3C;
  4438. 000081a2 Cond = R0 >> 0x18;
  4439. 000081a4 * R9 = R0 >> 0x18;
  4440. 000081ac R0 = var_30 + var_3C;
  4441. 000081ae Cond = R0 >> 0x10;
  4442. 000081b0 * (R9 + 1) = R0 >> 0x10;
  4443. 000081b8 R0 = var_30 + var_3C;
  4444. 000081ba Cond = R0 >> 8;
  4445. 000081bc * (R9 + 2) = R0 >> 8;
  4446. 000081c6 * (R9 + 3) = var_30 + var_3C;
  4447. 000081ce /* Low-level instruction of type 282 */
  4448. 000081d4 Cond = 1;
  4449. 000081da Cond = sub_7E90(1, & var_4C, & var_60, R3) - 0xf0;
  4450. 000081dc if (Cond != 0) goto loc_81EA;
  4451.  
  4452. 000081de Cond = 0x14;
  4453. 000081e4 sub_3574(R6, & var_60, 0x14, R3);
  4454. 000081e8 /* Low-level instruction of type 282 */
  4455.  
  4456. 000081ea loc_81EA:
  4457. 000081ee goto loc_828E;
  4458.  
  4459. 000081f0 loc_81F0:
  4460. 000081f0 Cond = 1;
  4461. 000081f2 * R9 = 1;
  4462. 000081f6 R9 = R9 + 1;
  4463. 000081fa Cond = R5 >> 0x18;
  4464. 000081fc * R9 = R5 >> 0x18;
  4465. 00008200 Cond = R5 >> 0x10;
  4466. 00008202 * (R9 + 1) = R5 >> 0x10;
  4467. 00008206 Cond = R5 >> 8;
  4468. 00008208 * (R9 + 2) = R5 >> 8;
  4469. 0000820c * (R9 + 3) = R5;
  4470. 00008210 R9 = R9 + 4;
  4471. 00008214 R0 = var_40;
  4472. 00008216 Cond = R0 >> 0x18;
  4473. 00008218 * R9 = R0 >> 0x18;
  4474. 0000821c R0 = var_40;
  4475. 0000821e Cond = R0 >> 0x10;
  4476. 00008220 * (R9 + 1) = R0 >> 0x10;
  4477. 00008224 R0 = var_40;
  4478. 00008226 Cond = R0 >> 8;
  4479. 00008228 * (R9 + 2) = R0 >> 8;
  4480. 0000822e * (R9 + 3) = var_40;
  4481. 00008232 Cond = 0;
  4482. 00008234 var_78 = 0;
  4483. 00008236 R0 = var_30;
  4484. 00008238 Cond = R5 + R0;
  4485. 0000823e Cond = 0x11;
  4486. 00008246 Cond = sub_7F64(0x11, & var_4C, R5 + R0, R7) - 0xf0;
  4487. 0000824a if (Cond == 0) goto loc_828E;
  4488.  
  4489. 00008250 * (R10 + 10) = var_34;
  4490. 00008258 * (R10 + 8) = var_38;
  4491. 00008266 * (R10 + 4) = 0x81007a54 + (R8 - 1 << 7);
  4492. 0000826a R2 = var_28;
  4493. 0000826c Cond = R5 + R2;
  4494. 00008276 sub_355C(* (R10 + 4), R5 + var_34, var_34, R3);
  4495. 0000827a R0 = var_2C;
  4496. 0000827c Cond = R5 + R0;
  4497. 00008284 sub_355C(R10, R5 + R0, var_38, R3);
  4498. 00008288 Cond = 1;
  4499. 0000828a * (R10 + 12) = 1;
  4500.  
  4501. 00008296 sub_8296:
  4502. 00008296 /* Low-level instruction of type 43 */
  4503. 0000829a SP = SP - 0x30;
  4504. 0000829c R4 = R0;
  4505. 0000829e R5 = R1;
  4506. 000082a0 R6 = R2;
  4507. 000082a2 Cond = 0x8e;
  4508. 000082a4 R8 = 0;
  4509. 000082ac Cond = (R4 & 15) - 1;
  4510. 000082ae if (Cond != 0) goto loc_82B6;
  4511.  
  4512. 000082b0 R8 = 0x14;
  4513. 000082b4 goto loc_82D0;
  4514.  
  4515. 000082b6 loc_82B6:
  4516. 000082ba Cond = (R4 & 15) - 2;
  4517. 000082bc if (Cond != 0) goto loc_82C4;
  4518.  
  4519. 000082be R8 = 0x20;
  4520. 000082c2 goto loc_82D0;
  4521.  
  4522. 000082c4 loc_82C4:
  4523. 000082c8 Cond = (R4 & 15) - 3;
  4524. 000082ca if (Cond != 0) goto loc_82D0;
  4525.  
  4526. 000082cc R8 = 0x30;
  4527.  
  4528. 000082d0 loc_82D0:
  4529. 000082da R7 = sub_7E90(R4, R5, SP, R3);
  4530. 000082dc Cond = R7 - 0xf0;
  4531. 000082de if (Cond != 0) goto loc_82EE;
  4532.  
  4533. 000082e6 sub_3574(R6, SP, R8, R3);
  4534. 000082ea /* Low-level instruction of type 282 */
  4535. 000082ec Cond = 0x36;
  4536. 000082ec R7 = 0x36;
  4537.  
  4538. 000082ee loc_82EE:
  4539. 000082ee Cond = R7 - 0xf0;
  4540. 000082f0 if (Cond != 0) goto loc_82F8;
  4541.  
  4542. 000082f4 sub_7F12(R5, R1, R2, R3);
  4543.  
  4544. 00008320 sub_8320:
  4545. 00008320 /* Low-level instruction of type 43 */
  4546. 00008322 R3 = R0;
  4547. 00008324 Cond = 0x66;
  4548. 00008326 Cond = R2 - 0x8000;
  4549. 0000832a if (Cond < 0) goto locret_8368;
  4550.  
  4551. 0000832c /* Low-level instruction of type 2 */
  4552. 0000832e Cond = R3 - 1;
  4553. 00008330 if (Cond != 0) goto loc_833A;
  4554.  
  4555. 00008334 * R2 = * R1;
  4556. 00008336 Cond = 0xf0;
  4557. 00008338 goto locret_8368;
  4558.  
  4559. 0000833a loc_833A:
  4560. 0000833a Cond = R3 - 2;
  4561. 0000833c if (Cond != 0) goto loc_834C;
  4562.  
  4563. 00008346 * R2 = * (R1 + 1) | * R1 << 8;
  4564. 00008348 Cond = 0xf0;
  4565. 0000834a goto locret_8368;
  4566.  
  4567. 0000834c loc_834C:
  4568. 0000834c Cond = R3 - 4;
  4569. 0000834e if (Cond != 0) goto locret_8368;
  4570.  
  4571. 00008350 R4 = * R1;
  4572. 00008352 Cond = R4 << 0x18;
  4573. 0000835c R4 = R4 << 0x18 | * (R1 + 1) << 0x10 | * (R1 + 2) << 8;
  4574. 00008360 R5 = * (R1 + 3);
  4575. 00008362 Cond = R4 | R5;
  4576. 00008364 * R2 = R4 | R5;
  4577. 00008366 Cond = 0xf0;
  4578.  
  4579. 0000836c sub_836C:
  4580. 0000836e Cond = 5;
  4581. 00008374 return 5 + (R0 << 3);
  4582.  
  4583. 00008376 sub_8376:
  4584. 00008376 /* Low-level instruction of type 43 */
  4585. 0000837e R0 = sub_836C(R1, R1, R2, R0);
  4586. 00008382 R5 = R0;
  4587. 00008384 R0 = R3 - 0xc00;
  4588. 00008388 Cond = R0 - 12;
  4589. 00008388 R0 = R0 - 12;
  4590. 0000838a if (Cond == 0) goto loc_839E;
  4591.  
  4592. 0000838c Cond = R0 - 0x24;
  4593. 0000838e if (Cond == 0) goto loc_839C;
  4594.  
  4595. 00008390 R0 = R0 - 0x3000;
  4596. 00008394 Cond = R0 - 0x30;
  4597. 00008396 if (Cond != 0) goto loc_83A2;
  4598.  
  4599. 00008398 Cond = R5 + 10;
  4600. 0000839a goto loc_83A6;
  4601.  
  4602. 0000839c loc_839C:
  4603. 0000839c /* Low-level instruction of type 2 */
  4604.  
  4605. 0000839e loc_839E:
  4606. 0000839e Cond = R5 + 5;
  4607. 000083a0 goto loc_83A6;
  4608.  
  4609. 000083a2 loc_83A2:
  4610. 000083a2 Cond = 0;
  4611. 000083a4 /* Low-level instruction of type 2 */
  4612.  
  4613. 000083bc sub_83BC:
  4614. 000083bc /* Low-level instruction of type 43 */
  4615. 000083be Cond = 0;
  4616. 000083be R4 = 0;
  4617. 000083c4 Cond = (R2 & 15) - 1;
  4618. 000083c6 if (Cond != 0) goto loc_83CC;
  4619.  
  4620. 000083c8 Cond = 0x14;
  4621. 000083c8 R4 = 0x14;
  4622. 000083ca goto loc_83E2;
  4623.  
  4624. 000083cc loc_83CC:
  4625. 000083d0 Cond = (R2 & 15) - 2;
  4626. 000083d2 if (Cond != 0) goto loc_83D8;
  4627.  
  4628. 000083d4 Cond = 0x20;
  4629. 000083d4 R4 = 0x20;
  4630. 000083d6 goto loc_83E2;
  4631.  
  4632. 000083d8 loc_83D8:
  4633. 000083dc Cond = (R2 & 15) - 3;
  4634. 000083de if (Cond != 0) goto loc_83E2;
  4635.  
  4636. 000083e0 Cond = 0x30;
  4637. 000083e0 R4 = 0x30;
  4638.  
  4639. 000083e2 loc_83E2:
  4640. 000083e2 /* Low-level instruction of type 282 */
  4641. 000083e4 Cond = R0 - 1;
  4642. 000083e6 if (Cond != 0) goto loc_84C0;
  4643.  
  4644. 000083e8 goto loc_846C;
  4645.  
  4646. 000083ea loc_83EA:
  4647. 000083ea Cond = 3;
  4648. 000083ec * R3 = 3;
  4649. 000083ee Cond = R3 + 1;
  4650. 000083ee R3 = R3 + 1;
  4651. 000083f0 Cond = R1 >> 0x18;
  4652. 000083f2 * R3 = R1 >> 0x18;
  4653. 000083f4 Cond = R1 >> 0x10;
  4654. 000083f6 * (R3 + 1) = R1 >> 0x10;
  4655. 000083f8 Cond = R1 >> 8;
  4656. 000083fa * (R3 + 2) = R1 >> 8;
  4657. 000083fc * (R3 + 3) = R1;
  4658. 000083fe Cond = R3 + 4;
  4659. 000083fe R3 = R3 + 4;
  4660. 00008400 Cond = R4 >> 0x18;
  4661. 00008402 * R3 = R4 >> 0x18;
  4662. 00008404 Cond = R4 >> 0x10;
  4663. 00008406 * (R3 + 1) = R4 >> 0x10;
  4664. 00008408 Cond = R4 >> 8;
  4665. 0000840a * (R3 + 2) = R4 >> 8;
  4666. 0000840c * (R3 + 3) = R4;
  4667. 0000840e Cond = R3 + 4;
  4668. 0000840e R3 = R3 + 4;
  4669. 00008410 R5 = R1 + 0x30;
  4670. 00008414 Cond = R5 >> 0x18;
  4671. 00008416 * R3 = R5 >> 0x18;
  4672. 00008418 R5 = R1 + 0x30;
  4673. 0000841c Cond = R5 >> 0x10;
  4674. 0000841e * (R3 + 1) = R5 >> 0x10;
  4675. 00008420 R5 = R1 + 0x30;
  4676. 00008424 Cond = R5 >> 8;
  4677. 00008426 * (R3 + 2) = R5 >> 8;
  4678. 0000842c * (R3 + 3) = R1 + 0x30;
  4679. 0000842e Cond = R3 + 4;
  4680. 0000842e R3 = R3 + 4;
  4681. 00008430 Cond = 0;
  4682. 00008430 R5 = 0;
  4683. 00008432 * R3 = R5;
  4684. 00008434 * (R3 + 1) = R5;
  4685. 00008436 * (R3 + 2) = R5;
  4686. 00008438 Cond = 14;
  4687. 0000843a * (R3 + 3) = 14;
  4688. 0000843c Cond = R3 + 4;
  4689. 0000843c R3 = R3 + 4;
  4690. 0000843e R5 = R1 + 0x3e;
  4691. 00008442 Cond = R5 >> 0x18;
  4692. 00008444 * R3 = R5 >> 0x18;
  4693. 00008446 R5 = R1 + 0x3e;
  4694. 0000844a Cond = R5 >> 0x10;
  4695. 0000844c * (R3 + 1) = R5 >> 0x10;
  4696. 0000844e R5 = R1 + 0x3e;
  4697. 00008452 Cond = R5 >> 8;
  4698. 00008454 * (R3 + 2) = R5 >> 8;
  4699. 0000845a * (R3 + 3) = R1 + 0x3e;
  4700. 0000845c Cond = R3 + 4;
  4701. 0000845c R3 = R3 + 4;
  4702. 0000845e Cond = 0;
  4703. 0000845e R5 = 0;
  4704. 00008460 * R3 = R5;
  4705. 00008462 * (R3 + 1) = R5;
  4706. 00008464 * (R3 + 2) = R5;
  4707. 00008466 Cond = 1;
  4708. 00008468 * (R3 + 3) = 1;
  4709. 0000846a goto loc_84C2;
  4710.  
  4711. 0000846c loc_846C:
  4712. 0000846c Cond = 2;
  4713. 0000846e * R3 = 2;
  4714. 00008470 Cond = R3 + 1;
  4715. 00008470 R3 = R3 + 1;
  4716. 00008472 Cond = R1 >> 0x18;
  4717. 00008474 * R3 = R1 >> 0x18;
  4718. 00008476 Cond = R1 >> 0x10;
  4719. 00008478 * (R3 + 1) = R1 >> 0x10;
  4720. 0000847a Cond = R1 >> 8;
  4721. 0000847c * (R3 + 2) = R1 >> 8;
  4722. 0000847e * (R3 + 3) = R1;
  4723. 00008480 Cond = R3 + 4;
  4724. 00008480 R3 = R3 + 4;
  4725. 00008482 Cond = R4 >> 0x18;
  4726. 00008484 * R3 = R4 >> 0x18;
  4727. 00008486 Cond = R4 >> 0x10;
  4728. 00008488 * (R3 + 1) = R4 >> 0x10;
  4729. 0000848a Cond = R4 >> 8;
  4730. 0000848c * (R3 + 2) = R4 >> 8;
  4731. 0000848e * (R3 + 3) = R4;
  4732. 00008490 Cond = R3 + 4;
  4733. 00008490 R3 = R3 + 4;
  4734. 00008492 R5 = R1 + 0x40;
  4735. 00008496 Cond = R5 >> 0x18;
  4736. 00008498 * R3 = R5 >> 0x18;
  4737. 0000849a R5 = R1 + 0x40;
  4738. 0000849e Cond = R5 >> 0x10;
  4739. 000084a0 * (R3 + 1) = R5 >> 0x10;
  4740. 000084a2 R5 = R1 + 0x40;
  4741. 000084a6 Cond = R5 >> 8;
  4742. 000084a8 * (R3 + 2) = R5 >> 8;
  4743. 000084ae * (R3 + 3) = R1 + 0x40;
  4744. 000084b0 Cond = R3 + 4;
  4745. 000084b0 R3 = R3 + 4;
  4746. 000084b2 Cond = 0;
  4747. 000084b2 R5 = 0;
  4748. 000084b4 * R3 = R5;
  4749. 000084b6 * (R3 + 1) = R5;
  4750. 000084b8 * (R3 + 2) = R5;
  4751. 000084ba Cond = 2;
  4752. 000084bc * (R3 + 3) = 2;
  4753. 000084be goto loc_84C2;
  4754.  
  4755. 000084c0 loc_84C0:
  4756. 000084c0 /* Low-level instruction of type 2 */
  4757.  
  4758. 000084c6 sub_84C6:
  4759. 000084c6 /* Low-level instruction of type 43 */
  4760. 000084cc R4 = R0;
  4761. 000084ce R5 = R1;
  4762. 000084d0 R6 = R2;
  4763. 000084d2 Cond = 0;
  4764. 000084d2 R7 = 0;
  4765. 000084d4 R8 = 0xf0f0;
  4766. 000084d8 R9 = R7;
  4767. 000084da Cond = 0;
  4768. 000084dc var_28 = 0;
  4769. 000084de Cond = 0xff;
  4770. 000084e0 var_2C = 0xff;
  4771. 000084e2 Cond = 0;
  4772. 000084e4 var_3C = 0;
  4773. 000084e6 Cond = 0xf0;
  4774. 000084e8 var_40 = 0xf0;
  4775. 000084ec Cond = * R5 - 2;
  4776. 000084ee if (Cond >= 0) goto loc_84F6;
  4777.  
  4778. 000084f0 Cond = 0x8d;
  4779. 000084f2 var_40 = 0x8d;
  4780. 000084f4 goto loc_85C0;
  4781.  
  4782. 000084f6 loc_84F6:
  4783. 000084f6 R7 = * R4;
  4784. 000084fc R8 = * (R7 + 1) | * R7 << 8;
  4785. 00008500 R0 = R8 - 0xf000;
  4786. 00008504 Cond = R0 - 0xf0;
  4787. 00008506 if (Cond == 0) goto loc_851C;
  4788.  
  4789. 0000850a Cond = * R5 - 5;
  4790. 0000850c if (Cond <= 0) goto loc_851C;
  4791.  
  4792. 00008516 var_2C = * (R7 + 3) | * (R7 + 2) << 8;
  4793. 0000851a var_28 = * (R7 + 4);
  4794.  
  4795. 0000851c loc_851C:
  4796. 0000851c R1 = 0x30ff;
  4797. 00008520 R0 = R8 - R1;
  4798. 00008524 Cond = R8 - R1;
  4799. 00008526 if (Cond == 0) goto loc_858C;
  4800.  
  4801. 00008528 if (Cond > 0) goto loc_853C;
  4802.  
  4803. 0000852a R0 = R8 - 0xc00;
  4804. 0000852e Cond = R0 - 3;
  4805. 0000852e R0 = R0 - 3;
  4806. 00008530 if (Cond == 0) goto loc_8568;
  4807.  
  4808. 00008532 Cond = R0 - 9;
  4809. 00008534 if (Cond == 0) goto loc_8556;
  4810.  
  4811. 00008536 Cond = R0 - 0x2d;
  4812. 00008538 if (Cond != 0) goto loc_85A0;
  4813.  
  4814. 0000853a goto loc_8554;
  4815.  
  4816. 0000853c loc_853C:
  4817. 0000853c Cond = R0 - 0x2d0;
  4818. 00008540 if (Cond == 0) goto loc_8598;
  4819.  
  4820. 00008542 R0 = R0 - 0xb00;
  4821. 00008546 Cond = R0 - 0x3d;
  4822. 00008546 R0 = R0 - 0x3d;
  4823. 00008548 if (Cond == 0) goto loc_8558;
  4824.  
  4825. 0000854a R0 = R0 - 0xb400;
  4826. 0000854e Cond = R0 - 0xb4;
  4827. 00008550 if (Cond != 0) goto loc_85A0;
  4828.  
  4829. 00008552 goto loc_8592;
  4830.  
  4831. 00008554 loc_8554:
  4832. 00008554 /* Low-level instruction of type 2 */
  4833.  
  4834. 00008556 loc_8556:
  4835. 00008556 /* Low-level instruction of type 2 */
  4836.  
  4837. 00008558 loc_8558:
  4838. 00008558 Cond = 1;
  4839. 0000855a var_3C = 1;
  4840. 00008564 R9 = sub_8376(R8, var_28, R2, R3);
  4841. 00008566 goto loc_85AA;
  4842.  
  4843. 00008568 loc_8568:
  4844. 00008568 Cond = 1;
  4845. 0000856a var_3C = 1;
  4846. 00008572 Cond = (var_2C & 15) - 1;
  4847. 00008574 if (Cond != 0) goto loc_8582;
  4848.  
  4849. 00008576 Cond = 0x14;
  4850. 0000857e R9 = sub_83AC(var_28, 0x14, R2, R3);
  4851. 00008580 goto loc_858A;
  4852.  
  4853. 00008582 loc_8582:
  4854. 00008582 R9 = 2;
  4855. 00008586 Cond = 0x8e;
  4856. 00008588 var_40 = 0x8e;
  4857.  
  4858. 0000858a loc_858A:
  4859. 0000858a goto loc_85AA;
  4860.  
  4861. 0000858c loc_858C:
  4862. 0000858c R9 = 0x1d;
  4863. 00008590 goto loc_85AA;
  4864.  
  4865. 00008592 loc_8592:
  4866. 00008592 R9 = 2;
  4867. 00008596 goto loc_85AA;
  4868.  
  4869. 00008598 loc_8598:
  4870. 0000859a R9 = * (R7 + 6) + 7;
  4871. 0000859e goto loc_85AA;
  4872.  
  4873. 000085a0 loc_85A0:
  4874. 000085a0 R9 = 2;
  4875. 000085a4 Cond = 0x4b;
  4876. 000085a6 var_40 = 0x4b;
  4877. 000085a8 /* Low-level instruction of type 2 */
  4878.  
  4879. 000085aa loc_85AA:
  4880. 000085aa /* Low-level instruction of type 2 */
  4881. 000085ae Cond = * R5 - R9;
  4882. 000085b0 if (Cond < 0) goto loc_85BC;
  4883.  
  4884. 000085b4 Cond = var_3C - 1;
  4885. 000085b6 if (Cond != 0) goto loc_85C0;
  4886.  
  4887. 000085ba /* Low-level instruction of type 283 */
  4888.  
  4889. 000085bc loc_85BC:
  4890. 000085bc Cond = 0x8d;
  4891. 000085be var_40 = 0x8d;
  4892.  
  4893. 000085c0 loc_85C0:
  4894. 000085c2 Cond = var_40 - 0xf0;
  4895. 000085c4 if (Cond == 0) goto loc_85D4;
  4896.  
  4897. 000085cc * R4 = * R4 + * R5;
  4898. 000085ce Cond = 0;
  4899. 000085d0 * R5 = 0;
  4900. 000085d2 goto loc_8820;
  4901.  
  4902. 000085d4 loc_85D4:
  4903. 000085da * R5 = * R5 - R9;
  4904. 000085e0 * R4 = * R4 + R9;
  4905. 000085e2 R1 = 0x30ff;
  4906. 000085e6 R0 = R8 - R1;
  4907. 000085ea Cond = R8 - R1;
  4908. 000085ec if (Cond == 0) goto loc_86E2;
  4909.  
  4910. 000085ee if (Cond > 0) goto loc_8602;
  4911.  
  4912. 000085f0 R0 = R8 - 0xc00;
  4913. 000085f4 Cond = R0 - 3;
  4914. 000085f4 R0 = R0 - 3;
  4915. 000085f6 if (Cond == 0) goto loc_86E4;
  4916.  
  4917. 000085f8 Cond = R0 - 9;
  4918. 000085fa if (Cond == 0) goto loc_861A;
  4919.  
  4920. 000085fc Cond = R0 - 0x2d;
  4921.  
  4922. 000085fe loc_85FE:
  4923. 000085fe if (Cond != 0) goto loc_86E6;
  4924.  
  4925. 00008600 goto loc_868E;
  4926.  
  4927. 00008602 loc_8602:
  4928. 00008602 Cond = R0 - 0x2d0;
  4929. 00008606 if (Cond == 0) goto loc_86E8;
  4930.  
  4931. 00008608 R0 = R0 - 0xb00;
  4932. 0000860c Cond = R0 - 0x3d;
  4933. 0000860c R0 = R0 - 0x3d;
  4934. 0000860e if (Cond == 0) goto loc_86EC;
  4935.  
  4936. 00008610 R0 = R0 - 0xb400;
  4937. 00008614 Cond = R0 - 0xb4;
  4938. 00008616 if (Cond != 0) goto loc_85FE;
  4939.  
  4940. 00008618 goto loc_87F0;
  4941.  
  4942. 0000861a loc_861A:
  4943. 0000861e Cond = sub_7464(R0, R1, R2, R3) - 0xf0;
  4944. 00008620 if (Cond == 0) goto loc_8628;
  4945.  
  4946. 00008622 Cond = 0x53;
  4947. 00008624 var_40 = 0x53;
  4948. 00008626 goto loc_868C;
  4949.  
  4950. 00008628 loc_8628:
  4951. 0000862a R0 = sub_73EC(& var_54, R1, R2, R3);
  4952. 00008632 var_46 = gvar_740A(R0, R1, R2, R3);
  4953. 0000863a Cond = 0;
  4954. 0000863e sub_83BC(0, & var_84, arg_1D4, & var_A0);
  4955. 0000864c R10 = sub_836C(var_28, R1, R2, R3) + R7;
  4956. 00008654 var_30 = * (R10 + 4);
  4957. 00008656 R0 = * R10;
  4958. 0000865a Cond = R0 << 0x18;
  4959. 00008668 R0 = R0 << 0x18 | * (R10 + 1) << 0x10 | * (R10 + 2) << 8;
  4960. 0000866c R1 = * (R10 + 3);
  4961. 00008670 Cond = R0 | R1;
  4962. 00008670 R0 = R0 | R1;
  4963. 0000867a R3 = & var_A0;
  4964. 0000867c var_A8 = R3;
  4965. 00008682 /* Low-level instruction of type 49 */
  4966. 0000868a var_40 = sub_7F64(R0, R7 + 4, R0 + * 0x8700be60, R3);
  4967.  
  4968. 0000868c loc_868C:
  4969. 0000868c goto loc_881E;
  4970.  
  4971. 0000868e loc_868E:
  4972. 0000868e /* Low-level instruction of type 282 */
  4973. 00008690 Cond = 0x4b;
  4974. 00008692 var_40 = 0x4b;
  4975. 00008694 goto loc_86E0;
  4976.  
  4977. 00008696 loc_8696:
  4978. 000086a0 R10 = sub_836C(var_28, R1, R2, R3) + R7;
  4979. 000086a8 var_30 = * (R10 + 4);
  4980. 000086aa R0 = * R10;
  4981. 000086ae Cond = R0 << 0x18;
  4982. 000086bc R0 = R0 << 0x18 | * (R10 + 1) << 0x10 | * (R10 + 2) << 8;
  4983. 000086c0 R1 = * (R10 + 3);
  4984. 000086c4 Cond = R0 | R1;
  4985. 000086c4 R0 = R0 | R1;
  4986. 000086ce Cond = 0;
  4987. 000086ce R3 = 0;
  4988. 000086d0 var_A8 = R3;
  4989. 000086d6 /* Low-level instruction of type 49 */
  4990. 000086de var_40 = sub_7F64(R0, R7 + 4, R0 + * 0x8700be60, R3);
  4991.  
  4992. 000086e0 loc_86E0:
  4993. 000086e0 goto loc_881E;
  4994.  
  4995. 000086e2 loc_86E2:
  4996. 000086e2 goto loc_87C0;
  4997.  
  4998. 000086e4 loc_86E4:
  4999. 000086e4 goto loc_87A4;
  5000.  
  5001. 000086e6 loc_86E6:
  5002. 000086e6 goto loc_8818;
  5003.  
  5004. 000086e8 loc_86E8:
  5005. 000086e8 goto loc_87F6;
  5006.  
  5007. 000086ea goto loc_86EC;
  5008.  
  5009. 000086ec loc_86EC:
  5010. 000086ec /* Low-level instruction of type 282 */
  5011. 000086ee var_44 = R6;
  5012. 000086f6 Cond = 1;
  5013. 000086fa sub_83BC(1, & var_84, var_2C, & var_A0);
  5014. 00008704 R0 = sub_836C(var_28, R1, R2, R3);
  5015. 00008708 Cond = R0 + 5;
  5016. 0000870a R10 = R0 + 5 + R7;
  5017. 00008712 var_30 = * (R10 + 4);
  5018. 00008714 R0 = * R10;
  5019. 00008718 Cond = R0 << 0x18;
  5020. 00008726 R0 = R0 << 0x18 | * (R10 + 1) << 0x10 | * (R10 + 2) << 8;
  5021. 0000872a R1 = * (R10 + 3);
  5022. 0000872e Cond = R0 | R1;
  5023. 0000872e R0 = R0 | R1;
  5024. 00008738 R3 = & var_A0;
  5025. 0000873a var_A8 = R3;
  5026. 00008740 /* Low-level instruction of type 49 */
  5027. 00008748 var_40 = sub_7F64(R0, R7 + 4, R0 + * 0x8700be60, R3);
  5028. 0000874c Cond = var_40 - 0x35;
  5029. 0000874e if (Cond != 0) goto loc_87A2;
  5030.  
  5031. 00008750 Cond = 0x56;
  5032. 00008752 var_40 = 0x56;
  5033. 00008754 goto loc_87A2;
  5034.  
  5035. 00008756 loc_8756:
  5036. 00008756 goto loc_8758;
  5037.  
  5038. 00008762 R10 = sub_836C(var_28, R1, R2, R3) + R7;
  5039. 0000876a var_30 = * (R10 + 4);
  5040. 0000876c R0 = * R10;
  5041. 00008770 Cond = R0 << 0x18;
  5042. 0000877e R0 = R0 << 0x18 | * (R10 + 1) << 0x10 | * (R10 + 2) << 8;
  5043. 00008782 R1 = * (R10 + 3);
  5044. 00008786 Cond = R0 | R1;
  5045. 00008786 R0 = R0 | R1;
  5046. 00008790 Cond = 0;
  5047. 00008790 R3 = 0;
  5048. 00008792 var_A8 = R3;
  5049. 00008798 /* Low-level instruction of type 49 */
  5050. 000087a0 var_40 = sub_7F64(R0, R7 + 4, R0 + * 0x8700be60, R3);
  5051.  
  5052. 000087a2 loc_87A2:
  5053. 000087a2 goto loc_881E;
  5054.  
  5055. 000087a4 loc_87A4:
  5056. 000087aa R0 = sub_836C(var_28, R1, R2, R3);
  5057. 000087b0 var_34 = R0 + R7;
  5058. 000087bc var_40 = sub_8296(var_2C, R7 + 4, var_34, R3);
  5059. 000087be goto loc_881E;
  5060.  
  5061. 000087c0 loc_87C0:
  5062. 000087c0 R0 = * (R7 + 3);
  5063. 000087c2 Cond = R0 << 0x18;
  5064. 000087cc R1 = * (R7 + 4) << 0x18 | * (R7 + 4) << 0x10 | * (R7 + 5) << 8;
  5065. 000087d0 R0 = * (R7 + 6);
  5066. 000087d2 Cond = R1 | R0;
  5067. 000087da var_38 = * 0x8700be60 + (R1 | R0);
  5068. 000087de var_A8 = * (R7 + 0x1c);
  5069. 000087e4 Cond = R7 + 7;
  5070. 000087ec var_40 = sub_80D6(* (R7 + 2), var_38, R7 + 7, * (R7 + 0x1b));
  5071. 000087ee goto loc_881E;
  5072.  
  5073. 000087f0 loc_87F0:
  5074. 000087f0 Cond = 0xf0;
  5075. 000087f2 var_40 = 0xf0;
  5076. 000087f4 goto loc_881E;
  5077.  
  5078. 000087f6 loc_87F6:
  5079. 000087f6 R1 = * (R7 + 2);
  5080. 000087f8 Cond = R1 << 0x18;
  5081. 00008802 R3 = * (R7 + 3) << 0x18 | * (R7 + 3) << 0x10 | * (R7 + 4) << 8;
  5082. 0000880e Cond = R7 + 7;
  5083. 00008814 var_40 = sub_8320(* (R7 + 6), R7 + 7, R3 | * (R7 + 5), R3);
  5084. 00008816 goto loc_881E;
  5085.  
  5086. 00008818 loc_8818:
  5087. 00008818 Cond = 0x4b;
  5088. 0000881a var_40 = 0x4b;
  5089. 0000881c /* Low-level instruction of type 2 */
  5090.  
  5091. 0000881e loc_881E:
  5092. 0000881e /* Low-level instruction of type 2 */
  5093.  
  5094. 0000885a sub_885A:
  5095. 0000885a /* Low-level instruction of type 43 */
  5096. 0000885c R3 = R0;
  5097. 0000885e Cond = 0xf0;
  5098. 00008860 R2 = * R1;
  5099. 00008864 Cond = R2 + 1;
  5100. 00008864 R2 = R2 + 1;
  5101. 00008866 R4 = * (R3 + R2);
  5102. 00008868 Cond = R4 - 2;
  5103. 0000886a if (Cond == 0) goto loc_888C;
  5104.  
  5105. 0000886c if (Cond > 0) goto loc_8876;
  5106.  
  5107. 0000886e /* Low-level instruction of type 282 */
  5108. 00008870 Cond = R4 - 1;
  5109. 00008872 if (Cond != 0) goto loc_889A;
  5110.  
  5111. 00008874 goto loc_8882;
  5112.  
  5113. 00008876 loc_8876:
  5114. 00008876 Cond = R4 - 0xfe;
  5115. 00008878 if (Cond == 0) goto loc_8896;
  5116.  
  5117. 0000887a Cond = R4 - 0xff;
  5118. 0000887c if (Cond != 0) goto loc_889A;
  5119.  
  5120. 0000887e goto loc_888E;
  5121.  
  5122. 00008880 loc_8880:
  5123. 00008880 goto loc_889E;
  5124.  
  5125. 00008882 loc_8882:
  5126. 00008882 Cond = R2 + 2;
  5127. 00008882 R2 = R2 + 2;
  5128. 00008886 R2 = R2 + * (R3 + R2);
  5129. 00008888 Cond = R2 + 1;
  5130. 0000888a goto loc_889E;
  5131.  
  5132. 0000888c loc_888C:
  5133. 0000888c /* Low-level instruction of type 2 */
  5134.  
  5135. 0000888e loc_888E:
  5136. 00008890 R2 = R2 + * (R3 + R2);
  5137. 00008892 Cond = R2 + 1;
  5138. 00008894 goto loc_889E;
  5139.  
  5140. 00008896 loc_8896:
  5141. 00008896 Cond = R2 + 0x14;
  5142. 00008898 goto loc_889E;
  5143.  
  5144. 0000889a loc_889A:
  5145. 0000889a Cond = 0x33;
  5146. 0000889c /* Low-level instruction of type 2 */
  5147.  
  5148. 000088a4 sub_88A4:
  5149. 000088a4 /* Low-level instruction of type 43 */
  5150. 000088a6 R3 = R0;
  5151. 000088a8 Cond = 0xf0;
  5152. 000088aa R2 = * R1;
  5153. 000088ae Cond = R2 + 1;
  5154. 000088ae R2 = R2 + 1;
  5155. 000088b2 Cond = * (R3 + R2) - 0xff;
  5156. 000088b4 if (Cond != 0) goto loc_88C8;
  5157.  
  5158. 000088b6 R4 = * (R3 + R2);
  5159. 000088b8 Cond = R3 + R2;
  5160. 000088ba R5 = * (R3 + R2 + 1);
  5161. 000088bc Cond = R5 | R4 << 8;
  5162. 000088c0 if (Cond == 0) goto loc_88C4;
  5163.  
  5164. 000088c2 Cond = 0x33;
  5165.  
  5166. 000088c4 loc_88C4:
  5167. 000088c4 Cond = R2 + 2;
  5168. 000088c6 goto loc_88CA;
  5169.  
  5170. 000088c8 loc_88C8:
  5171. 000088c8 /* Low-level instruction of type 2 */
  5172.  
  5173. 000088d0 sub_88D0:
  5174. 000088d0 /* Low-level instruction of type 43 */
  5175. 000088d6 R5 = R1;
  5176. 000088d8 R6 = R2;
  5177. 000088da R7 = R3;
  5178. 000088dc /* Low-level instruction of type 49 */
  5179. 000088e0 /* Low-level instruction of type 49 */
  5180. 000088e4 Cond = 0;
  5181. 000088e6 var_28 = 0;
  5182. 000088e8 Cond = 0x33;
  5183. 000088ea var_2C = 0x33;
  5184. 000088ec Cond = R0 - 0xff;
  5185. 000088ee if (Cond != 0) goto loc_89CA;
  5186.  
  5187. 000088f0 R1 = var_28;
  5188. 000088f2 Cond = R1 + 1;
  5189. 000088f4 var_28 = R1 + 1;
  5190. 000088f8 Cond = * (R5 + R1) - 1;
  5191. 000088fa if (Cond > 0) goto loc_89CA;
  5192.  
  5193. 000088fc R1 = var_28;
  5194. 000088fe Cond = R1 + 1;
  5195. 00008900 var_28 = R1 + 1;
  5196. 00008904 Cond = * (R5 + R1) - 2;
  5197. 00008906 if (Cond != 0) goto loc_89CA;
  5198.  
  5199. 00008910 Cond = sub_885A(R5, & var_28, R2, R3) - 0xf0;
  5200. 00008912 if (Cond != 0) goto loc_89CA;
  5201.  
  5202. 00008914 R0 = var_28;
  5203. 00008916 Cond = R0 + 4;
  5204. 00008918 var_28 = R0 + 4;
  5205. 0000891a R0 = var_28;
  5206. 0000891c Cond = R0 + 4;
  5207. 0000891e var_28 = R0 + 4;
  5208. 00008928 Cond = sub_885A(R5, & var_28, R2, R3) - 0xf0;
  5209. 0000892a if (Cond != 0) goto loc_89CA;
  5210.  
  5211. 0000892c R1 = var_28;
  5212. 0000892e Cond = R1 + 1;
  5213. 00008930 var_28 = R1 + 1;
  5214. 00008934 Cond = * (R5 + R1) - 2;
  5215. 00008936 if (Cond != 0) goto loc_89CA;
  5216.  
  5217. 00008940 Cond = sub_88A4(R5, & var_28, R2, R3) - 0xf0;
  5218. 00008942 if (Cond != 0) goto loc_89CA;
  5219.  
  5220. 00008952 * R9 = * (var_28 + R5 + 1) | * (R5 + var_28) << 8;
  5221. 00008956 R0 = var_28;
  5222. 00008958 Cond = R0 + 2;
  5223. 0000895a var_28 = R0 + 2;
  5224. 0000895e * R8 = var_28;
  5225. 0000896a var_28 = * R9 + var_28;
  5226. 0000897a * R7 = * (var_28 + R5 + 1) | * (R5 + var_28) << 8;
  5227. 0000897c R0 = var_28;
  5228. 0000897e Cond = R0 + 2;
  5229. 00008980 var_28 = R0 + 2;
  5230. 00008984 * R6 = var_28;
  5231. 0000898c var_28 = * R7 + var_28;
  5232. 00008992 Cond = * R9 - 4;
  5233. 00008994 if (Cond > 0) goto loc_89CA;
  5234.  
  5235. 00008998 Cond = * R7 - 0x60;
  5236. 0000899a if (Cond < 0) goto loc_89CA;
  5237.  
  5238. 0000899e Cond = * R7 - 0x80;
  5239. 000089a0 if (Cond > 0) goto loc_89CA;
  5240.  
  5241. 000089a6 * arg_10 = var_28;
  5242. 000089b6 * R11 = * (var_28 + R5 + 1) | * (R5 + var_28) << 8;
  5243. 000089ba R0 = var_28;
  5244. 000089bc Cond = R0 + 2;
  5245. 000089be var_28 = R0 + 2;
  5246. 000089c2 * R10 = var_28;
  5247. 000089c6 Cond = 0xf0;
  5248. 000089c8 var_2C = 0xf0;
  5249.  
  5250. 00008a34 sub_8A34:
  5251. 00008a34 /* Low-level instruction of type 43 */
  5252. 00008a38 R4 = R0;
  5253. 00008a3a R5 = R1;
  5254. 00008a3c Cond = 0;
  5255. 00008a3e R7 = * R4;
  5256. 00008a40 /* Low-level instruction of type 2 */
  5257. 00008a42 Cond = 3;
  5258. 00008a46 R0 = sub_739E(R4, 3, R2, R3);
  5259. 00008a4a Cond = R0 - 1;
  5260. 00008a4c if (Cond != 0) goto loc_8A6E;
  5261.  
  5262. 00008a4e /* Low-level instruction of type 2 */
  5263. 00008a50 Cond = R5 - 1;
  5264. 00008a52 if (Cond == 0) goto loc_8A58;
  5265.  
  5266. 00008a54 Cond = R5 - 2;
  5267. 00008a56 if (Cond != 0) goto loc_8A6E;
  5268.  
  5269. 00008a58 loc_8A58:
  5270. 00008a58 Cond = R7 - 10;
  5271. 00008a5a if (Cond > 0) goto loc_8A6E;
  5272.  
  5273. 00008a60 Cond = gvar_740A(R0, R1, R2, R3) - 1;
  5274. 00008a62 if (Cond == 0) goto loc_8A68;
  5275.  
  5276. 00008a64 /* Low-level instruction of type 2 */
  5277. 00008a66 /* Low-level instruction of type 2 */
  5278.  
  5279. 00008a68 loc_8A68:
  5280. 00008a68 Cond = 0;
  5281. 00008a6a /* Low-level instruction of type 283 */
  5282. 00008a6c Cond = 1;
  5283.  
  5284. 00008a74 sub_8A74:
  5285. 00008a74 /* Low-level instruction of type 43 */
  5286. 00008a7a R4 = R2;
  5287. 00008a84 Cond = sub_8A34(R0, * R4, R2, R3) - 1;
  5288. 00008a86 if (Cond != 0) goto locret_8A9E;
  5289.  
  5290. 00008a8a Cond = * R4 - 1;
  5291. 00008a8c if (Cond != 0) goto loc_8A94;
  5292.  
  5293. 00008a8e Cond = 0x41;
  5294. 00008a90 * R4 = 0x41;
  5295. 00008a92 goto locret_8A9E;
  5296.  
  5297. 00008a94 loc_8A94:
  5298. 00008a96 Cond = * R4 - 2;
  5299. 00008a98 if (Cond != 0) goto locret_8A9E;
  5300.  
  5301. 00008a9a Cond = 0x62;
  5302. 00008a9c * R4 = 0x62;
  5303.  
  5304. 00008aa0 sub_8AA0:
  5305. 00008aa0 /* Low-level instruction of type 43 */
  5306. 00008aa6 R4 = R0;
  5307. 00008aa8 R5 = R1;
  5308. 00008aac R9 = * R5;
  5309. 00008ab2 Cond = 13;
  5310. 00008ab4 * 13 = R0;
  5311. 00008ab6 /* Low-level instruction of type 93 */
  5312. 00008aba Cond = R4 - 13;
  5313. 00008abc if (Cond != 0) goto loc_8AC4;
  5314.  
  5315. 00008abe Cond = 0x14;
  5316. 00008ac0 var_8C = 0x14;
  5317. 00008ac2 goto loc_8AD6;
  5318.  
  5319. 00008ac4 loc_8AC4:
  5320. 00008ac4 Cond = R4 - 14;
  5321. 00008ac6 if (Cond != 0) goto loc_8ACE;
  5322.  
  5323. 00008ac8 Cond = 0x20;
  5324. 00008aca var_8C = 0x20;
  5325. 00008acc goto loc_8AD6;
  5326.  
  5327. 00008ace loc_8ACE:
  5328. 00008ace Cond = R4 - 15;
  5329. 00008ad0 if (Cond != 0) goto loc_8AD6;
  5330.  
  5331. 00008ad2 Cond = 0x30;
  5332. 00008ad4 var_8C = 0x30;
  5333.  
  5334. 00008ad6 loc_8AD6:
  5335. 00008ad6 goto loc_8B1A;
  5336.  
  5337. 00008ad8 loc_8AD8:
  5338. 00008ad8 R0 = * R5;
  5339. 00008ada Cond = R0 << 0x18;
  5340. 00008aee Cond = R5 + 4;
  5341. 00008aee R5 = R5 + 4;
  5342. 00008af0 R0 = * R5;
  5343. 00008af2 Cond = R0 << 0x18;
  5344. 00008b06 Cond = R5 + 4;
  5345. 00008b06 R5 = R5 + 4;
  5346. 00008b0e sub_949A(& var_88, R0 << 0x18 | * (R5 + 1) << 0x10 | * (R5 + 2) << 8 | * (R5 + 3), R0 << 0x18 | * (R5 + 1) << 0x10 | * (R5 + 2) << 8 | * (R5 + 3), R3);
  5347. 00008b16 /* Low-level instruction of type 255 */
  5348.  
  5349. 00008b1a loc_8B1A:
  5350. 00008b1a Cond = R9;
  5351. 00008b1e if (Cond > 0) goto loc_8AD8;
  5352.  
  5353. 00008b36 sub_8B36:
  5354. 00008b36 /* Low-level instruction of type 43 */
  5355. 00008b3c R4 = R0;
  5356. 00008b3e R5 = R1;
  5357. 00008b40 R6 = R2;
  5358. 00008b42 Cond = 0x39;
  5359. 00008b44 var_AC = 0x39;
  5360. 00008b46 R9 = 0;
  5361. 00008b4a R10 = * R4;
  5362. 00008b4e R11 = 0;
  5363. 00008b52 Cond = R6;
  5364. 00008b54 if (Cond == 0) goto loc_8C3E;
  5365.  
  5366. 00008b56 Cond = R5 - 0x41;
  5367. 00008b58 if (Cond != 0) goto loc_8C3E;
  5368.  
  5369. 00008b5a Cond = R10;
  5370. 00008b5e if (Cond <= 0) goto loc_8BEC;
  5371.  
  5372. 00008b60 Cond = R4 + 1;
  5373. 00008b60 R4 = R4 + 1;
  5374. 00008b62 goto loc_8BE6;
  5375.  
  5376. 00008b64 loc_8B64:
  5377. 00008b64 R0 = * R4;
  5378. 00008b66 Cond = R0 << 0x18;
  5379. 00008b7a Cond = R4 + 4;
  5380. 00008b7a R4 = R4 + 4;
  5381. 00008b7c R0 = * R4;
  5382. 00008b7e Cond = R0 << 0x18;
  5383. 00008b8e R8 = R0 << 0x18 | * (R4 + 1) << 0x10 | * (R4 + 2) << 8 | * (R4 + 3);
  5384. 00008b92 Cond = R4 + 4;
  5385. 00008b92 R4 = R4 + 4;
  5386. 00008b98 /* Low-level instruction of type 255 */
  5387. 00008b9c R9 = R9 + R8;
  5388. 00008ba2 R1 = & var_9C;
  5389. 00008ba4 * (R1 + R11 + (R11 << 1)) = R8;
  5390. 00008bb0 * (R1 + (R11 + (R11 << 1) << 2) + 4) = R0 << 0x18 | * (R4 + 1) << 0x10 | * (R4 + 2) << 8 | * (R4 + 3);
  5391. 00008bb2 Cond = R10;
  5392. 00008bb6 if (Cond <= 0) goto loc_8BD4;
  5393.  
  5394. 00008bca R2 = & var_9C;
  5395. 00008bcc R1 = R2 + (R11 + (R11 << 1) << 2);
  5396. 00008bd0 * (R1 + 8) = & var_9C + (R11 + 1 + (R0 << 1) << 2);
  5397. 00008bd2 goto loc_8BE2;
  5398.  
  5399. 00008bd4 loc_8BD4:
  5400. 00008bd4 Cond = 0;
  5401. 00008bda R2 = & var_9C;
  5402. 00008bdc R1 = R2 + (R11 + (R11 << 1) << 2);
  5403. 00008be0 * (R1 + 8) = 0;
  5404.  
  5405. 00008be2 loc_8BE2:
  5406. 00008be2 R11 = R11 + 1;
  5407.  
  5408. 00008be6 loc_8BE6:
  5409. 00008be6 Cond = R10;
  5410. 00008bea if (Cond > 0) goto loc_8B64;
  5411.  
  5412. 00008bec loc_8BEC:
  5413. 00008bec var_A4 = R6;
  5414. 00008bee Cond = 0;
  5415. 00008bf0 var_A0 = 0;
  5416. 00008bf4 var_C4 = 0x208d0024;
  5417. 00008bf6 Cond = 0x14;
  5418. 00008bf8 var_B8 = 0x14;
  5419. 00008bfc var_A8 = var_B8;
  5420. 00008c00 var_BC = & var_9C;
  5421. 00008c02 var_C0 = R9;
  5422. 00008c06 Cond = R9;
  5423. 00008c0a if (Cond == 0) goto loc_8C12;
  5424.  
  5425. 00008c0e var_B4 = & var_A8;
  5426. 00008c10 goto loc_8C1C;
  5427.  
  5428. 00008c12 loc_8C12:
  5429. 00008c18 var_C4 = var_C4 ^ 0x81000000;
  5430. 00008c1a var_B4 = R6;
  5431.  
  5432. 00008c1c loc_8C1C:
  5433. 00008c1c Cond = 0;
  5434. 00008c1e var_B0 = 0;
  5435. 00008c22 R0 = sub_7442(& var_C4, R1, R2, R3);
  5436. 00008c26 Cond = R0 - 0xf0;
  5437. 00008c28 if (Cond != 0) goto loc_8C3E;
  5438.  
  5439. 00008c2e Cond = gvar_740A(R0, R1, R2, R3) - 1;
  5440. 00008c30 if (Cond == 0) goto loc_8C36;
  5441.  
  5442. 00008c32 /* Low-level instruction of type 2 */
  5443. 00008c34 /* Low-level instruction of type 2 */
  5444.  
  5445. 00008c36 loc_8C36:
  5446. 00008c36 Cond = 0;
  5447. 00008c38 /* Low-level instruction of type 283 */
  5448. 00008c3a Cond = 0xf0;
  5449. 00008c3c var_AC = 0xf0;
  5450.  
  5451. 00008c46 sub_8C46:
  5452. 00008c46 /* Low-level instruction of type 43 */
  5453. 00008c4a R4 = R0;
  5454. 00008c4c R5 = R1;
  5455. 00008c4e R6 = R2;
  5456. 00008c50 R9 = 13;
  5457. 00008c54 R10 = 0;
  5458. 00008c58 Cond = R5;
  5459. 00008c5a if (Cond == 0) goto locret_8CD6;
  5460.  
  5461. 00008c5c R0 = R4 & 15;
  5462. 00008c60 Cond = R0 - 1;
  5463. 00008c62 if (Cond == 0) goto loc_8C6E;
  5464.  
  5465. 00008c64 Cond = R0 - 2;
  5466. 00008c66 if (Cond == 0) goto loc_8C78;
  5467.  
  5468. 00008c68 Cond = R0 - 3;
  5469. 00008c6a if (Cond != 0) goto loc_8C8C;
  5470.  
  5471. 00008c6c goto loc_8C82;
  5472.  
  5473. 00008c6e loc_8C6E:
  5474. 00008c6e R9 = 13;
  5475. 00008c72 R10 = 1;
  5476. 00008c76 goto loc_8C8E;
  5477.  
  5478. 00008c78 loc_8C78:
  5479. 00008c78 R9 = 14;
  5480. 00008c7c R10 = 1;
  5481. 00008c80 goto loc_8C8E;
  5482.  
  5483. 00008c82 loc_8C82:
  5484. 00008c82 R9 = 15;
  5485. 00008c86 R10 = 1;
  5486. 00008c8a goto loc_8C8E;
  5487.  
  5488. 00008c8c loc_8C8C:
  5489. 00008c8c /* Low-level instruction of type 2 */
  5490.  
  5491. 00008c8e loc_8C8E:
  5492. 00008c8e /* Low-level instruction of type 2 */
  5493. 00008c90 R0 = * (R5 + 1);
  5494. 00008c92 Cond = R0 << 0x18;
  5495. 00008ca6 R0 = * (R5 + 5);
  5496. 00008ca8 Cond = R0 << 0x18;
  5497. 00008cc2 sub_355C(* (R5 + 2) << 0x18 | * (R5 + 2) << 0x10 | * (R5 + 3) << 8 | * (R5 + 4), R6, * (R5 + 6) << 0x18 | * (R5 + 6) << 0x10 | * (R5 + 7) << 8 | * (R5 + 8), R3);
  5498. 00008cc6 Cond = R10;
  5499. 00008cca if (Cond == 0) goto locret_8CD6;
  5500.  
  5501. 00008cd2 sub_8AA0(R9, R5, R6, R3);
  5502.  
  5503. 00008ce0 sub_8CE0:
  5504. 00008ce0 /* Low-level instruction of type 43 */
  5505. 00008ce6 R4 = R0;
  5506. 00008ce8 R5 = R1;
  5507. 00008cea R6 = R2;
  5508. 00008cee var_30 = * R5;
  5509. 00008cf2 var_34 = * (R5 + 4);
  5510. 00008cf4 Cond = 0;
  5511. 00008cf4 R7 = 0;
  5512. 00008cf6 goto loc_8E28;
  5513.  
  5514. 00008cf8 loc_8CF8:
  5515. 00008cfc var_38 = * (R4 + R7);
  5516. 00008d02 Cond = var_38 - var_30;
  5517. 00008d04 if (Cond != 0) goto loc_8D18;
  5518.  
  5519. 00008d06 R11 = 0xffff;
  5520. 00008d0a Cond = R7 + 1;
  5521. 00008d10 R1 = var_30;
  5522. 00008d14 var_3C = * (R4 + R7 + 1) + R1;
  5523. 00008d16 goto loc_8D3A;
  5524.  
  5525. 00008d18 loc_8D18:
  5526. 00008d18 Cond = R7 + 1;
  5527. 00008d24 var_28 = * (R4 + R7 + 1) + (var_38 << 0x10);
  5528. 00008d2a /* Low-level instruction of type 46 */
  5529. 00008d2e R11 = var_28;
  5530. 00008d30 R1 = var_30;
  5531. 00008d34 /* Low-level instruction of type 279 */
  5532. 00008d38 var_3C = var_28;
  5533.  
  5534. 00008d3a loc_8D3A:
  5535. 00008d3a goto loc_8D48;
  5536.  
  5537. 00008d3c loc_8D3C:
  5538. 00008d3c R11 = R11 - 1;
  5539. 00008d40 R1 = var_3C;
  5540. 00008d46 var_3C = var_30 + R1;
  5541.  
  5542. 00008d48 loc_8D48:
  5543. 00008d48 R0 = var_3C;
  5544. 00008d4a Cond = R0 >> 0x10;
  5545. 00008d4c if (Cond != 0) goto loc_8D64;
  5546.  
  5547. 00008d4e Cond = R7 + 2;
  5548. 00008d56 R1 = * (R4 + R7 + 2) + (var_3C << 0x10);
  5549. 00008d60 Cond = R1 - (var_34 | R11);
  5550. 00008d62 if (Cond < 0) goto loc_8D3C;
  5551.  
  5552. 00008d64 loc_8D64:
  5553. 00008d64 R10 = 0;
  5554. 00008d68 R9 = R6 - 1;
  5555. 00008d6c R8 = R6 + R7;
  5556. 00008d70 goto loc_8DB2;
  5557.  
  5558. 00008d72 loc_8D72:
  5559. 00008d7a var_28 = * (R5 + R9) | R11;
  5560. 00008d80 R0 = * (R4 + R8) + 0x20000;
  5561. 00008d84 R1 = var_28;
  5562. 00008d86 /* Low-level instruction of type 255 */
  5563. 00008d88 Cond = R0 - R1;
  5564. 00008d88 R0 = R0 - R1;
  5565. 00008d8a /* Low-level instruction of type 255 */
  5566. 00008d8e Cond = R0 - R1;
  5567. 00008d90 var_2C = R0 - R1;
  5568. 00008d94 /* Low-level instruction of type 255 */
  5569. 00008d96 * (R4 + R8) = var_2C;
  5570. 00008d9a R0 = var_28;
  5571. 00008d9c Cond = R0 >> 0x10;
  5572. 00008d9e R0 = (R0 >> 0x10) + (R10 >> 0x10);
  5573. 00008da2 Cond = R0 + 2;
  5574. 00008da4 R1 = var_2C;
  5575. 00008da6 R10 = R0 + 2 - (R1 >> 0x10);
  5576. 00008daa R9 = R9 - 1;
  5577. 00008dae R8 = R8 - 1;
  5578.  
  5579. 00008db2 loc_8DB2:
  5580. 00008db2 Cond = R9;
  5581. 00008db6 if (Cond >= 0) goto loc_8D72;
  5582.  
  5583. 00008dbc R0 = * (R4 + R7) + 0x10000;
  5584. 00008dc0 /* Low-level instruction of type 255 */
  5585. 00008dc4 Cond = R0 - R1;
  5586. 00008dc6 var_2C = R0 - R1;
  5587. 00008dca /* Low-level instruction of type 255 */
  5588. 00008dcc * (R4 + R7) = var_2C;
  5589. 00008dd0 Cond = 1;
  5590. 00008ddc Cond = 1 + (R10 >> 0x10) - (var_2C >> 0x10);
  5591. 00008de0 if (Cond == 0) goto loc_8E26;
  5592.  
  5593. 00008de2 R10 = 0;
  5594. 00008de6 R9 = R6 - 1;
  5595. 00008dea R8 = R6 + R7;
  5596. 00008dee goto loc_8E14;
  5597.  
  5598. 00008df0 loc_8DF0:
  5599. 00008dfc var_2C = * (R4 + R8) + * (R5 + R9) + R10;
  5600. 00008e00 /* Low-level instruction of type 255 */
  5601. 00008e02 * (R4 + R8) = var_2C;
  5602. 00008e08 R10 = var_2C >> 0x10;
  5603. 00008e0c R9 = R9 - 1;
  5604. 00008e10 R8 = R8 - 1;
  5605.  
  5606. 00008e14 loc_8E14:
  5607. 00008e14 Cond = R9;
  5608. 00008e18 if (Cond >= 0) goto loc_8DF0;
  5609.  
  5610. 00008e20 /* Low-level instruction of type 255 */
  5611. 00008e22 * (R4 + R7) = * (R4 + R7) + R10;
  5612.  
  5613. 00008e26 loc_8E26:
  5614. 00008e26 Cond = R7 + 1;
  5615. 00008e26 R7 = R7 + 1;
  5616.  
  5617. 00008e28 loc_8E28:
  5618. 00008e28 Cond = R7 - R6;
  5619. 00008e2a if (Cond <= 0) goto loc_8CF8;
  5620.  
  5621. 00008e34 sub_8E34:
  5622. 00008e34 /* Low-level instruction of type 43 */
  5623. 00008e3c R4 = R1;
  5624. 00008e3e R5 = R2;
  5625. 00008e40 R6 = R3;
  5626. 00008e42 R8 = arg_4;
  5627. 00008e46 R7 = arg_0;
  5628. 00008e4a R9 = & var_50;
  5629. 00008e4e Cond = 0;
  5630. 00008e50 var_688 = 0;
  5631. 00008e54 R1 = R5 + (R5 >> 0x1f);
  5632. 00008e58 Cond = R1 >> 1;
  5633. 00008e5a var_68C = R1 >> 1;
  5634. 00008e5c Cond = R5 >> 0x1f;
  5635. 00008e5e R1 = R5 + (R5 >> 0x1f >> 0x1e);
  5636. 00008e62 Cond = R1 >> 2;
  5637. 00008e64 var_690 = R1 >> 2;
  5638. 00008e66 R0 = var_68C;
  5639. 00008e68 Cond = R0 << 2;
  5640. 00008e6a var_694 = R0 << 2;
  5641. 00008e70 /* Low-level instruction of type 282 */
  5642. 00008e72 /* Low-level instruction of type 282 */
  5643. 00008e74 /* Low-level instruction of type 282 */
  5644. 00008e76 Cond = R8;
  5645. 00008e7a if (Cond == 0) goto loc_8EA6;
  5646.  
  5647. 00008e7c Cond = R5 - 4;
  5648. 00008e7e if (Cond < 0) goto loc_8EA6;
  5649.  
  5650. 00008e80 Cond = R5 & 3;
  5651. 00008e84 if (Cond != 0) goto loc_8EA6;
  5652.  
  5653. 00008e86 Cond = R5 - 0x80;
  5654. 00008e88 if (Cond > 0) goto loc_8EA6;
  5655.  
  5656. 00008e8a Cond = R7 - 4;
  5657. 00008e8c if (Cond > 0) goto loc_8EA6;
  5658.  
  5659. 00008e90 Cond = * R4 & 0x80;
  5660. 00008e94 if (Cond == 0) goto loc_8EA4;
  5661.  
  5662. 00008ea2 Cond = sub_3574(var_34, R4, R5, R3);
  5663.  
  5664. 00008ea4 loc_8EA4:
  5665. 00008ea4 if (Cond < 0) goto loc_8EB0;
  5666.  
  5667. 00008ea6 loc_8EA6:
  5668. 00008ea6 Cond = 0x39;
  5669.  
  5670. 00008ea8 loc_8EA8:
  5671. 00008eac /* Low-level instruction of type 42 */
  5672.  
  5673. 00008eb0 loc_8EB0:
  5674. 00008eb0 R0 = var_690;
  5675. 00008eb2 Cond = R0 + 1;
  5676. 00008eb4 * (R9 + 4) = R0 + 1;
  5677. 00008eba * R9 = & var_3D8;
  5678. 00008ec6 sub_9E00(* R9, R4, R5, R3);
  5679. 00008eca Cond = 0;
  5680. 00008ed2 * (* R9 + var_690) = 0;
  5681. 00008ed8 * (R9 + 0x14) = & var_45C;
  5682. 00008ede * (R9 + 0x10) = & var_578;
  5683. 00008ee2 Cond = 0;
  5684. 00008ee4 R1 = * (R9 + 0x14);
  5685. 00008ee8 R2 = var_690;
  5686. 00008eea * (R1 + R2) = 0;
  5687. 00008ef0 sub_971A(R9, R1, R2, R3);
  5688. 00008ef4 R10 = 0;
  5689. 00008ef8 R11 = R10;
  5690. 00008efa goto loc_8F18;
  5691.  
  5692. 00008efc loc_8EFC:
  5693. 00008f0c * (& var_354 + R10) = * (R4 + R11 + 1) | * (R4 + R11) << 8;
  5694. 00008f10 R10 = R10 + 1;
  5695. 00008f14 R11 = R11 + 2;
  5696.  
  5697. 00008f18 loc_8F18:
  5698. 00008f1a Cond = R10 - var_68C;
  5699. 00008f1c if (Cond < 0) goto loc_8EFC;
  5700.  
  5701. 00008f1e R0 = var_694;
  5702. 00008f20 Cond = R0 << 1;
  5703. 00008f22 Cond = 0;
  5704. 00008f28 sub_3594(& var_250, 0, R0 << 1, R3);
  5705. 00008f2c Cond = 1;
  5706. 00008f2e var_254 = 1;
  5707. 00008f3a sub_8CE0(& var_254, & var_354, var_68C, R3);
  5708. 00008f40 R10 = var_68C + 1;
  5709. 00008f44 R11 = 0;
  5710. 00008f48 goto loc_8F70;
  5711.  
  5712. 00008f4a loc_8F4A:
  5713. 00008f52 /* Low-level instruction of type 271 */
  5714. 00008f56 * (R8 + R11) = * (& var_254 + R10);
  5715. 00008f66 * (R8 + R11 + 1) = * (& var_254 + R10);
  5716. 00008f68 R10 = R10 + 1;
  5717. 00008f6c R11 = R11 + 2;
  5718.  
  5719. 00008f70 loc_8F70:
  5720. 00008f70 R0 = var_68C;
  5721. 00008f72 Cond = R0 << 1;
  5722. 00008f74 Cond = (R0 << 1) - R10;
  5723. 00008f76 if (Cond >= 0) goto loc_8F4A;
  5724.  
  5725. 00008f80 sub_9E00(* (R9 + 0x14), R8, R5, R3);
  5726. 00008f84 Cond = R5 - 1;
  5727. 00008f86 Cond = 0;
  5728. 00008f8a sub_3594(R8, 0, R5 - 1, R3);
  5729. 00008f8e Cond = 1;
  5730. 00008f90 Cond = R5 - 1;
  5731. 00008f92 * (R8 + R5 - 1) = 1;
  5732. 00008f96 R10 = 0;
  5733. 00008f9a goto loc_901A;
  5734.  
  5735. 00008f9c loc_8F9C:
  5736. 00008fa0 var_684 = * (R6 + R10);
  5737. 00008fa2 R11 = 0;
  5738. 00008fa6 goto loc_9010;
  5739.  
  5740. 00008fa8 loc_8FA8:
  5741. 00008faa /* Low-level instruction of type 282 */
  5742. 00008fb2 sub_972E(R9, & var_5FC, & var_5FC, R3);
  5743. 00008fb8 Cond = var_684 & 0x80;
  5744. 00008fbc if (Cond == 0) goto loc_9004;
  5745.  
  5746. 00008fc6 sub_9BC6(R9, & var_5FC, & var_5FC, & var_680);
  5747. 00008fca goto loc_9004;
  5748.  
  5749. 00008fcc loc_8FCC:
  5750. 00008fce Cond = var_684 & 0x80;
  5751. 00008fd2 if (Cond == 0) goto loc_9004;
  5752.  
  5753. 00008fdc sub_9E00(& var_680, var_34, R5, R3);
  5754. 00008fe0 Cond = 0;
  5755. 00008fe2 R2 = & var_680;
  5756. 00008fe6 * (R2 + var_690) = 0;
  5757. 00008ff2 sub_9BC6(R9, & var_5FC, R2, * (R9 + 0x14));
  5758. 00008ffc sub_9E7C(R9, & var_680, & var_5FC, R3);
  5759. 00009000 Cond = 1;
  5760. 00009002 var_688 = 1;
  5761.  
  5762. 00009004 loc_9004:
  5763. 00009004 R11 = R11 + 1;
  5764. 00009008 R0 = var_684;
  5765. 0000900a Cond = R0 << 0x19;
  5766. 0000900a R0 = R0 << 0x19;
  5767. 0000900c Cond = R0 >> 0x18;
  5768. 0000900e var_684 = R0 >> 0x18;
  5769.  
  5770. 00009010 loc_9010:
  5771. 00009010 Cond = R11 - 8;
  5772. 00009014 if (Cond < 0) goto loc_8FA8;
  5773.  
  5774. 00009016 R10 = R10 + 1;
  5775.  
  5776. 0000901a loc_901A:
  5777. 0000901a Cond = R10 - R7;
  5778. 0000901c if (Cond < 0) goto loc_8F9C;
  5779.  
  5780. 00009020 /* Low-level instruction of type 282 */
  5781. 00009028 sub_9A3E(R9, & var_5FC, & var_5FC, R3);
  5782. 0000902c R0 = * (R9 + 4);
  5783. 00009030 Cond = R0 - 1;
  5784. 00009036 sub_9E4A(R8, & var_5FC, R0 - 1, R3);
  5785.  
  5786. 0000903a loc_903A:
  5787. 0000903a Cond = 0xf0;
  5788. 0000903c goto loc_8EA8;
  5789.  
  5790. 0000906a sub_906A:
  5791. 0000906a /* Low-level instruction of type 43 */
  5792. 00009070 R4 = R1;
  5793. 00009072 R5 = R2;
  5794. 00009074 R6 = R3;
  5795. 00009076 R7 = arg_0;
  5796. 00009078 Cond = 0x35;
  5797. 0000907a var_38 = 0x35;
  5798. 0000907c R9 = 0;
  5799. 00009080 R11 = 0;
  5800. 00009084 Cond = 0;
  5801. 00009086 var_EC = 0;
  5802. 0000908c Cond = var_34 - 0x11;
  5803. 0000908e if (Cond != 0) goto loc_9096;
  5804.  
  5805. 00009090 Cond = 1;
  5806. 00009092 var_34 = 1;
  5807. 00009094 goto loc_90D2;
  5808.  
  5809. 00009096 loc_9096:
  5810. 0000909a Cond = var_34 - 0xc1;
  5811. 0000909c if (Cond != 0) goto loc_90A4;
  5812.  
  5813. 0000909e Cond = 0x41;
  5814. 000090a0 var_34 = 0x41;
  5815. 000090a2 goto loc_90D2;
  5816.  
  5817. 000090a4 loc_90A4:
  5818. 000090a8 Cond = var_34 - 0x12;
  5819. 000090aa if (Cond != 0) goto loc_90B2;
  5820.  
  5821. 000090ac Cond = 2;
  5822. 000090ae var_34 = 2;
  5823. 000090b0 goto loc_90D2;
  5824.  
  5825. 000090b2 loc_90B2:
  5826. 000090b6 Cond = var_34 - 0x32;
  5827. 000090b8 if (Cond != 0) goto loc_90C0;
  5828.  
  5829. 000090ba Cond = 0x62;
  5830. 000090bc var_34 = 0x62;
  5831. 000090be goto loc_90D2;
  5832.  
  5833. 000090c0 loc_90C0:
  5834. 000090c4 Cond = var_34 - 0x13;
  5835. 000090c6 if (Cond != 0) goto loc_90CE;
  5836.  
  5837. 000090c8 Cond = 3;
  5838. 000090ca var_34 = 3;
  5839. 000090cc goto loc_90D2;
  5840.  
  5841. 000090ce loc_90CE:
  5842. 000090ce Cond = 0xff;
  5843. 000090d0 var_34 = 0xff;
  5844.  
  5845. 000090d2 loc_90D2:
  5846. 000090d8 sub_8A74(R4, & var_EC, & var_34, R3);
  5847. 000090dc R8 = * (R7 + 10);
  5848. 000090e4 /* Low-level instruction of type 71 */
  5849. 000090f4 Cond = sub_903E(R6, * (R7 + 4), R8, R7) - 0xf0;
  5850.  
  5851. 000090f6 loc_90F6:
  5852. 000090f6 if (Cond != 0) goto loc_91DE;
  5853.  
  5854. 000090fa R9 = R9 + 1;
  5855. 00009102 Cond = * (& var_B8 + R9);
  5856. 00009104 if (Cond != 0) goto loc_90F6;
  5857.  
  5858. 00009108 R9 = R9 + 1;
  5859. 00009110 Cond = * (& var_B8 + R9) - 1;
  5860. 00009112 if (Cond != 0) goto loc_90F6;
  5861.  
  5862. 00009114 goto loc_911A;
  5863.  
  5864. 00009116 loc_9116:
  5865. 00009116 R9 = R9 + 1;
  5866.  
  5867. 0000911a loc_911A:
  5868. 0000911a Cond = R9 - R8;
  5869. 0000911c if (Cond >= 0) goto loc_9128;
  5870.  
  5871. 00009124 Cond = * (& var_B8 + R9) - 0xff;
  5872. 00009126 if (Cond == 0) goto loc_9116;
  5873.  
  5874. 00009128 loc_9128:
  5875. 00009128 Cond = R9 - R8;
  5876. 0000912a if (Cond >= 0) goto loc_91DE;
  5877.  
  5878. 0000912c Cond = R9 - 10;
  5879. 00009130 if (Cond < 0) goto loc_91DE;
  5880.  
  5881. 00009138 Cond = * (& var_B8 + R9);
  5882. 0000913a if (Cond != 0) goto loc_90F6;
  5883.  
  5884. 0000913c R9 = R9 + 1;
  5885. 00009140 R10 = R8 - R9;
  5886. 00009148 R0 = var_34 & 15;
  5887. 0000914c Cond = R0 - 1;
  5888. 0000914e if (Cond == 0) goto loc_915A;
  5889.  
  5890. 00009150 Cond = R0 - 2;
  5891. 00009152 if (Cond == 0) goto loc_91CA;
  5892.  
  5893. 00009154 Cond = R0 - 3;
  5894. 00009156 if (Cond != 0) goto loc_923C;
  5895.  
  5896. 00009158 goto loc_923E;
  5897.  
  5898. 0000915a loc_915A:
  5899. 0000915e Cond = var_34 - 1;
  5900. 00009160 if (Cond != 0) goto loc_916E;
  5901.  
  5902. 00009166 Cond = 13;
  5903. 00009168 sub_8AA0(13, R4, & var_E8, R3);
  5904. 0000916c goto loc_9184;
  5905.  
  5906. 0000916e loc_916E:
  5907. 0000917a Cond = sub_8B36(R4, var_34, & var_E8, R3) - 0xf0;
  5908. 0000917c if (Cond == 0) goto loc_9184;
  5909.  
  5910. 0000917e Cond = 0x8e;
  5911. 00009180 var_38 = 0x8e;
  5912. 00009182 goto loc_929C;
  5913.  
  5914. 00009184 loc_9184:
  5915. 0000918c sub_8C46(var_34, R5, & var_E8, R3);
  5916. 00009190 Cond = R10 - 0x14;
  5917. 00009194 if (Cond == 0) goto loc_919A;
  5918.  
  5919. 00009196 R11 = 15;
  5920.  
  5921. 0000919a loc_919A:
  5922. 0000919a R0 = R11 + 0x14;
  5923. 0000919e Cond = R0 - R10;
  5924. 000091a0 if (Cond != 0) goto loc_91C8;
  5925.  
  5926. 000091ac sub_3574(R0, 0x8700b766, R11, R3);
  5927. 000091b0 /* Low-level instruction of type 283 */
  5928. 000091ba Cond = 0x14;
  5929. 000091be sub_3574(& var_B8 + R9 + R11, & var_E8, 0x14, R3);
  5930. 000091c2 /* Low-level instruction of type 283 */
  5931. 000091c4 Cond = 0xf0;
  5932. 000091c6 var_38 = 0xf0;
  5933.  
  5934. 000091c8 loc_91C8:
  5935. 000091c8 goto loc_929C;
  5936.  
  5937. 000091ca loc_91CA:
  5938. 000091ce Cond = var_34 - 2;
  5939. 000091d0 if (Cond != 0) goto loc_91E0;
  5940.  
  5941. 000091d6 Cond = 14;
  5942. 000091d8 sub_8AA0(14, R4, & var_E8, R3);
  5943. 000091dc goto loc_91F6;
  5944.  
  5945. 000091de loc_91DE:
  5946. 000091de goto loc_929E;
  5947.  
  5948. 000091e0 loc_91E0:
  5949. 000091ec Cond = sub_8B36(R4, var_34, & var_E8, R3) - 0xf0;
  5950. 000091ee if (Cond == 0) goto loc_91F6;
  5951.  
  5952. 000091f0 Cond = 0x8e;
  5953. 000091f2 var_38 = 0x8e;
  5954. 000091f4 goto loc_929C;
  5955.  
  5956. 000091f6 loc_91F6:
  5957. 000091fe sub_8C46(var_34, R5, & var_E8, R3);
  5958. 00009202 Cond = R10 - 0x20;
  5959. 00009206 if (Cond == 0) goto loc_920C;
  5960.  
  5961. 00009208 R11 = 0x13;
  5962.  
  5963. 0000920c loc_920C:
  5964. 00009210 Cond = R11 + 0x20 - R10;
  5965. 00009212 if (Cond != 0) goto loc_923A;
  5966.  
  5967. 0000921e sub_3574(& var_B8 + R9, 0x8700b775, R11, R3);
  5968. 00009222 /* Low-level instruction of type 283 */
  5969. 0000922c Cond = 0x20;
  5970. 00009230 sub_3574(& var_B8 + R9 + R11, & var_E8, 0x20, R3);
  5971. 00009234 /* Low-level instruction of type 283 */
  5972. 00009236 Cond = 0xf0;
  5973. 00009238 var_38 = 0xf0;
  5974.  
  5975. 0000923a loc_923A:
  5976. 0000923a goto loc_929C;
  5977.  
  5978. 0000923c loc_923C:
  5979. 0000923c goto loc_9296;
  5980.  
  5981. 0000923e loc_923E:
  5982. 00009242 Cond = var_34 - 3;
  5983. 00009244 if (Cond != 0) goto loc_9250;
  5984.  
  5985. 0000924a Cond = 15;
  5986. 0000924c sub_8AA0(15, R4, & var_E8, R3);
  5987.  
  5988. 00009250 loc_9250:
  5989. 00009258 sub_8C46(var_34, R5, & var_E8, R3);
  5990. 0000925c Cond = R10 - 0x30;
  5991. 00009260 if (Cond == 0) goto loc_9266;
  5992.  
  5993. 00009262 R11 = 0x13;
  5994.  
  5995. 00009266 loc_9266:
  5996. 0000926a Cond = R11 + 0x30 - R10;
  5997. 0000926c if (Cond != 0) goto loc_9294;
  5998.  
  5999. 00009278 sub_3574(& var_B8 + R9, 0x8700b788, R11, R3);
  6000. 0000927c /* Low-level instruction of type 283 */
  6001. 00009286 Cond = 0x30;
  6002. 0000928a sub_3574(& var_B8 + R9 + R11, & var_E8, 0x30, R3);
  6003. 0000928e /* Low-level instruction of type 283 */
  6004. 00009290 Cond = 0xf0;
  6005. 00009292 var_38 = 0xf0;
  6006.  
  6007. 00009294 loc_9294:
  6008. 00009294 goto loc_929C;
  6009.  
  6010. 00009296 loc_9296:
  6011. 00009296 Cond = 0x8e;
  6012. 00009298 var_38 = 0x8e;
  6013. 0000929a /* Low-level instruction of type 2 */
  6014.  
  6015. 0000929c loc_929C:
  6016. 0000929c /* Low-level instruction of type 2 */
  6017.  
  6018. 00009382 sub_9382:
  6019. 00009382 /* Low-level instruction of type 43 */
  6020. 0000938a R5 = R1;
  6021. 0000938c R6 = R2;
  6022. 0000938e R7 = R3;
  6023. 00009394 R9 = R7;
  6024. 00009396 Cond = 0;
  6025. 00009396 R0 = 0;
  6026. 00009398 var_28 = R0;
  6027. 0000939a var_2C = R0;
  6028. 0000939c var_30 = R0;
  6029. 0000939e Cond = R0 - 13;
  6030. 000093a0 if (Cond != 0) goto loc_93AC;
  6031.  
  6032. 000093a6 R10 = 0x40;
  6033. 000093aa goto loc_93AE;
  6034.  
  6035. 000093ac loc_93AC:
  6036. 000093ac /* Low-level instruction of type 2 */
  6037.  
  6038. 000093ae loc_93AE:
  6039. 000093ae /* Low-level instruction of type 45 */
  6040. 000093b2 Cond = * R5 - R10;
  6041. 000093b4 if (Cond >= 0) goto loc_9492;
  6042.  
  6043. 000093b6 Cond = 0;
  6044. 000093b6 R0 = 0;
  6045. 000093b8 /* Low-level instruction of type 71 */
  6046. 000093bc /* Low-level instruction of type 44 */
  6047. 000093be /* Low-level instruction of type 33 */
  6048. 000093c0 R1 = var_44;
  6049. 000093c2 Cond = R2 - R7;
  6050. 000093c2 R2 = R2 - R7;
  6051. 000093c4 Cond = R3 - R1;
  6052. 000093c4 R3 = R3 - R1;
  6053. 000093c6 if (Cond < 0) goto loc_9492;
  6054.  
  6055. 000093c8 /* Low-level instruction of type 44 */
  6056. 000093ca /* Low-level instruction of type 33 */
  6057. 000093cc /* Low-level instruction of type 49 */
  6058. 000093d0 Cond = R2 - R0;
  6059. 000093d0 R2 = R2 - R0;
  6060. 000093d2 Cond = R3 - R1;
  6061. 000093d2 R3 = R3 - R1;
  6062. 000093d4 if (Cond < 0) goto loc_9492;
  6063.  
  6064. 000093d6 Cond = 0;
  6065. 000093d8 /* Low-level instruction of type 71 */
  6066. 000093dc R1 = 0;
  6067. 000093de /* Low-level instruction of type 49 */
  6068. 000093e2 Cond = R7 + R2;
  6069. 000093e4 Cond = R1 + R3;
  6070. 000093e4 R1 = R1 + R3;
  6071. 000093e6 /* Low-level instruction of type 71 */
  6072. 000093ea /* Low-level instruction of type 44 */
  6073. 000093ec /* Low-level instruction of type 33 */
  6074. 000093ee R0 = var_40;
  6075. 000093f0 Cond = R2 - R0;
  6076. 000093f0 R2 = R2 - R0;
  6077. 000093f2 Cond = R3 - R1;
  6078. 000093f2 R3 = R3 - R1;
  6079. 000093f4 if (Cond < 0) goto loc_9492;
  6080.  
  6081. 000093f6 R8 = 0;
  6082. 000093fc /* Low-level instruction of type 282 */
  6083. 00009402 Cond = * R5 + R9 - R10;
  6084. 00009404 if (Cond < 0) goto loc_9438;
  6085.  
  6086. 0000940c var_28 = R10 - * R5;
  6087. 00009410 R9 = R9 - var_28;
  6088. 00009414 Cond = R5 + 4;
  6089. 00009414 R1 = R5 + 4;
  6090. 00009416 R2 = * R5;
  6091. 00009418 Cond = R2 + R1;
  6092. 0000941e sub_355C(var_28 + R6, R6, var_28, R3);
  6093. 00009422 R2 = R5 + 0x44;
  6094. 00009428 Cond = R5 + 4;
  6095. 0000942a /* Low-level instruction of type 47 */
  6096. 0000942c R8 = R5 + 4;
  6097. 0000942e Cond = R8;
  6098. 00009432 if (Cond != 0) goto loc_9438;
  6099.  
  6100. 00009434 Cond = 0;
  6101. 00009436 * R5 = 0;
  6102.  
  6103. 00009438 loc_9438:
  6104. 00009438 goto loc_9452;
  6105.  
  6106. 0000943a loc_943A:
  6107. 0000943a R1 = var_28;
  6108. 0000943c Cond = R6 + R1;
  6109. 0000943e R2 = R5 + 0x44;
  6110. 00009444 /* Low-level instruction of type 47 */
  6111. 00009446 R8 = R6 + R1;
  6112. 0000944c var_28 = var_28 + R10;
  6113. 0000944e R9 = R9 - R10;
  6114.  
  6115. 00009452 loc_9452:
  6116. 00009452 Cond = R8;
  6117. 00009456 if (Cond != 0) goto loc_945C;
  6118.  
  6119. 00009458 Cond = R9 - R10;
  6120. 0000945a if (Cond >= 0) goto loc_943A;
  6121.  
  6122. 0000945c loc_945C:
  6123. 0000945c Cond = R8;
  6124. 00009460 if (Cond != 0) goto loc_9492;
  6125.  
  6126. 00009462 Cond = R9;
  6127. 00009466 if (Cond == 0) goto loc_947E;
  6128.  
  6129. 00009468 R2 = var_28;
  6130. 0000946a Cond = R6 + R2;
  6131. 0000946c Cond = R5 + 4;
  6132. 0000946c R2 = R5 + 4;
  6133. 0000946e R3 = * R5;
  6134. 00009470 Cond = R3 + R2;
  6135. 00009474 sub_355C(R3 + R9, R6 + R9, R9, R3);
  6136. 0000947c * R5 = * R5 + R9;
  6137.  
  6138. 0000947e loc_947E:
  6139. 0000947e Cond = 0;
  6140. 00009480 /* Low-level instruction of type 71 */
  6141. 00009484 R1 = 0;
  6142. 00009486 /* Low-level instruction of type 49 */
  6143. 0000948a Cond = R7 + R2;
  6144. 0000948c Cond = R1 + R3;
  6145. 0000948e /* Low-level instruction of type 71 */
  6146.  
  6147. 0000949a sub_949A:
  6148. 0000949a /* Low-level instruction of type 43 */
  6149. 0000949e R4 = R0;
  6150. 000094a0 R5 = R1;
  6151. 000094a2 R6 = R2;
  6152. 000094a4 Cond = 1;
  6153. 000094a6 R10 = 1;
  6154. 000094a8 /* Low-level instruction of type 282 */
  6155. 000094aa /* Low-level instruction of type 282 */
  6156. 000094ae Cond = * R4 - 13;
  6157. 000094b0 if (Cond != 0) goto loc_94BC;
  6158.  
  6159. 000094b2 R8 = * R4;
  6160. 000094b6 R9 = R4 + 8;
  6161. 000094ba goto loc_94C2;
  6162.  
  6163. 000094bc loc_94BC:
  6164. 000094bc R10 = 0;
  6165. 000094c0 /* Low-level instruction of type 2 */
  6166.  
  6167. 000094c2 loc_94C2:
  6168. 000094c2 /* Low-level instruction of type 2 */
  6169. 000094c4 Cond = R10 - 1;
  6170. 000094c8 if (Cond != 0) goto loc_94D8;
  6171.  
  6172. 000094d6 sub_9382(R8, R9, R5, R6);
  6173.  
  6174. 000094de sub_94DE:
  6175. 000094de /* Low-level instruction of type 43 */
  6176. 000094e4 R4 = R0;
  6177. 000094e6 R5 = R1;
  6178. 000094e8 R6 = R2;
  6179. 000094ea Cond = 1;
  6180. 000094f0 Cond = 1;
  6181. 000094f2 var_34 = 1;
  6182. 000094f4 Cond = 0;
  6183. 000094f6 var_3C = 0;
  6184. 000094f8 Cond = R4 - 13;
  6185. 000094fa if (Cond != 0) goto loc_950E;
  6186.  
  6187. 00009500 R8 = 0x40;
  6188. 00009504 R9 = 0x38;
  6189. 00009508 Cond = 0x14;
  6190. 0000950a var_38 = 0x14;
  6191. 0000950c goto loc_9510;
  6192.  
  6193. 0000950e loc_950E:
  6194. 0000950e /* Low-level instruction of type 2 */
  6195.  
  6196. 00009510 loc_9510:
  6197. 00009510 /* Low-level instruction of type 2 */
  6198. 00009512 R0 = * R5;
  6199. 00009514 Cond = R0 - R8;
  6200. 00009516 if (Cond >= 0) goto loc_9614;
  6201.  
  6202. 00009518 /* Low-level instruction of type 44 */
  6203. 0000951a /* Low-level instruction of type 33 */
  6204. 0000951c /* Low-level instruction of type 49 */
  6205. 00009520 Cond = R2 - R0;
  6206. 00009522 Cond = R3 - R1;
  6207. 00009524 if (Cond < 0) goto loc_9614;
  6208.  
  6209. 00009526 Cond = 0;
  6210. 00009526 R7 = 0;
  6211. 00009528 Cond = 8;
  6212. 0000952a /* Low-level instruction of type 49 */
  6213. 0000952e /* Low-level instruction of type 39 */
  6214. 00009532 /* Low-level instruction of type 29 */
  6215. 00009536 /* Low-level instruction of type 71 */
  6216. 0000953a R1 = * R5;
  6217. 00009540 R3 = R1;
  6218. 00009542 Cond = R5 + 4;
  6219. 00009542 R1 = R5 + 4;
  6220. 00009544 Cond = R3 + R1;
  6221. 00009546 Cond = 0;
  6222. 00009548 sub_3594(R3 + 0, 0, R8 - R1, R3);
  6223. 0000954c Cond = 0x80;
  6224. 0000954c R1 = 0x80;
  6225. 0000954e Cond = R5 + 4;
  6226. 00009550 R2 = * R5;
  6227. 00009552 * (R5 + 4 + R2) = R1;
  6228. 00009554 R0 = * R5;
  6229. 00009556 Cond = R0 - R9;
  6230. 00009558 if (Cond < 0) goto loc_9572;
  6231.  
  6232. 00009560 Cond = R5 + 4;
  6233. 00009562 /* Low-level instruction of type 47 */
  6234. 00009564 R7 = R5 + 4;
  6235. 00009566 /* Low-level instruction of type 283 */
  6236. 0000956a Cond = 0;
  6237. 0000956c Cond = R5 + 4;
  6238. 0000956e R0 = sub_3594(R5 + 4, 0, R8, R3);
  6239.  
  6240. 00009572 loc_9572:
  6241. 00009572 Cond = R7;
  6242. 00009574 if (Cond != 0) goto loc_9614;
  6243.  
  6244. 00009576 goto loc_95AC;
  6245.  
  6246. 00009578 loc_9578:
  6247. 0000957a /* Low-level instruction of type 251 */
  6248. 0000957e R2 = R8 - var_34;
  6249. 00009582 Cond = R5 + 4;
  6250. 00009582 R0 = R5 + 4;
  6251. 00009584 * (R0 + R2) = R1;
  6252. 00009586 /* Low-level instruction of type 49 */
  6253. 0000958a Cond = R0 >> 8;
  6254. 00009590 Cond = R1 >> 8;
  6255. 00009590 R1 = R1 >> 8;
  6256. 00009592 /* Low-level instruction of type 71 */
  6257. 00009596 Cond = R4 - 0x11;
  6258. 00009598 if (Cond != 0) goto loc_95A4;
  6259.  
  6260. 0000959a R0 = var_34;
  6261. 0000959c Cond = R0 - 1;
  6262. 0000959c R0 = R0 - 1;
  6263. 0000959e /* Low-level instruction of type 251 */
  6264. 000095a0 var_34 = R0;
  6265. 000095a2 goto loc_95AC;
  6266.  
  6267. 000095a4 loc_95A4:
  6268. 000095a4 R0 = var_34;
  6269. 000095a6 Cond = R0 + 1;
  6270. 000095a6 R0 = R0 + 1;
  6271. 000095a8 /* Low-level instruction of type 251 */
  6272. 000095aa var_34 = R0;
  6273.  
  6274. 000095ac loc_95AC:
  6275. 000095ac /* Low-level instruction of type 44 */
  6276. 000095ae /* Low-level instruction of type 33 */
  6277. 000095b0 /* Low-level instruction of type 49 */
  6278. 000095b4 Cond = R1 ^ R3;
  6279. 000095b4 R1 = R1 ^ R3;
  6280. 000095b6 Cond = R0 ^ R2;
  6281. 000095b6 R0 = R0 ^ R2;
  6282. 000095b8 Cond = R0 | R1;
  6283. 000095ba if (Cond != 0) goto loc_9578;
  6284.  
  6285. 000095c2 Cond = R5 + 4;
  6286. 000095c4 /* Low-level instruction of type 47 */
  6287. 000095c8 Cond = R5 + 4;
  6288. 000095ca if (Cond != 0) goto loc_9678;
  6289.  
  6290. 000095cc Cond = R4 - 0x11;
  6291. 000095ce if (Cond != 0) goto loc_9626;
  6292.  
  6293. 000095d0 Cond = 0;
  6294. 000095d0 R0 = 0;
  6295. 000095d2 goto loc_961C;
  6296.  
  6297. 000095d4 loc_95D4:
  6298. 000095d8 R1 = * (R5 + 0x44 + R0);
  6299. 000095dc Cond = R1 >> 0x18;
  6300. 000095de Cond = 4;
  6301. 000095e0 /* Low-level instruction of type 29 */
  6302. 000095e4 * (4 + 3) = R1 >> 0x18;
  6303. 000095ea R1 = * (R5 + 0x44 + R0);
  6304. 000095ee Cond = R1 >> 0x10;
  6305. 000095f0 Cond = 4;
  6306. 000095f2 /* Low-level instruction of type 29 */
  6307. 000095f6 * (4 + 2) = R1 >> 0x10;
  6308. 000095fc R1 = * (R5 + 0x44 + R0);
  6309. 00009600 Cond = R1 >> 8;
  6310. 00009602 Cond = 4;
  6311. 00009604 /* Low-level instruction of type 29 */
  6312. 00009608 * (4 + 1) = R1 >> 8;
  6313. 0000960e R1 = * (R5 + 0x44 + R0);
  6314. 00009612 goto loc_9616;
  6315.  
  6316. 00009614 loc_9614:
  6317. 00009614 goto loc_9678;
  6318.  
  6319. 00009616 loc_9616:
  6320. 00009616 * (R6 + R0) = R1;
  6321. 0000961a Cond = R0 + 1;
  6322. 0000961a R0 = R0 + 1;
  6323.  
  6324. 0000961c loc_961C:
  6325. 0000961e Cond = R0 - (var_38 >> 2);
  6326. 00009622 if (Cond < 0) goto loc_95D4;
  6327.  
  6328. 00009624 goto loc_9678;
  6329.  
  6330. 00009626 loc_9626:
  6331. 00009626 Cond = 0;
  6332. 00009626 R0 = 0;
  6333. 00009628 goto loc_966E;
  6334.  
  6335. 0000962a loc_962A:
  6336. 0000962e R1 = * (R5 + 0x44 + R0);
  6337. 00009632 Cond = R1 >> 0x18;
  6338. 00009634 * (R6 + R0) = R1 >> 0x18;
  6339. 0000963c R1 = * (R5 + 0x44 + R0);
  6340. 00009640 Cond = R1 >> 0x10;
  6341. 00009642 Cond = 4;
  6342. 00009644 /* Low-level instruction of type 29 */
  6343. 00009648 * (4 + 1) = R1 >> 0x10;
  6344. 0000964e R1 = * (R5 + 0x44 + R0);
  6345. 00009652 Cond = R1 >> 8;
  6346. 00009654 Cond = 4;
  6347. 00009656 /* Low-level instruction of type 29 */
  6348. 0000965a * (4 + 2) = R1 >> 8;
  6349. 00009664 Cond = 4;
  6350. 00009666 /* Low-level instruction of type 29 */
  6351. 0000966a * (4 + 3) = * (R5 + 0x44 + R0);
  6352. 0000966c Cond = R0 + 1;
  6353. 0000966c R0 = R0 + 1;
  6354.  
  6355. 0000966e loc_966E:
  6356. 00009670 Cond = R0 - (var_38 >> 2);
  6357. 00009674 if (Cond < 0) goto loc_962A;
  6358.  
  6359. 00009676 /* Low-level instruction of type 2 */
  6360.  
  6361. 00009680 sub_9680:
  6362. 00009680 /* Low-level instruction of type 43 */
  6363. 00009688 R6 = R2;
  6364. 0000968a Cond = 1;
  6365. 00009690 /* Low-level instruction of type 282 */
  6366. 00009692 /* Low-level instruction of type 282 */
  6367. 0000969e Cond = * R0 - 13;
  6368. 000096a0 if (Cond != 0) goto loc_96C0;
  6369.  
  6370. 000096a2 Cond = 0x14;
  6371. 000096a4 * R6 = 0x14;
  6372. 000096a6 goto loc_96C6;
  6373.  
  6374. 000096fe sub_96FE:
  6375. 000096fe /* Low-level instruction of type 43 */
  6376. 00009700 R4 = R0;
  6377. 00009702 Cond = 1;
  6378. 00009704 /* Low-level instruction of type 282 */
  6379. 00009706 Cond = 0x68;
  6380. 00009708 Cond = 0;
  6381. 0000970c sub_3594(R4, 0, 0x68, R3);
  6382. 00009710 Cond = 0x18;
  6383. 00009712 * R4 = 0x18;
  6384. 00009714 Cond = 0;
  6385.  
  6386. 0000972e sub_972E:
  6387. 0000972e /* Low-level instruction of type 43 */
  6388. 00009738 var_44 = * (var_30 + 0x10);
  6389. 0000973e R9 = * (var_30 + 4) - 1;
  6390. 00009744 var_38 = var_44;
  6391. 00009746 R0 = R9 << 1;
  6392. 0000974a Cond = R0 + 3;
  6393. 0000974c var_3C = R0 + 3;
  6394. 0000974e Cond = 0;
  6395. 0000974e R4 = 0;
  6396. 00009750 goto loc_975C;
  6397.  
  6398. 00009752 loc_9752:
  6399. 00009752 Cond = 0;
  6400. 00009756 * (var_38 + R4) = 0;
  6401. 0000975a Cond = R4 + 1;
  6402. 0000975a R4 = R4 + 1;
  6403.  
  6404. 0000975c loc_975C:
  6405. 0000975e Cond = R4 - var_3C;
  6406. 00009760 if (Cond < 0) goto loc_9752;
  6407.  
  6408. 00009762 Cond = 0;
  6409. 00009762 R4 = 0;
  6410. 00009764 goto loc_9844;
  6411.  
  6412. 00009766 loc_9766:
  6413. 00009766 Cond = R4 + 1;
  6414. 0000976c var_34 = R9 - R4 + 1;
  6415. 00009770 R11 = * (var_28 + R4);
  6416. 00009774 R8 = 0;
  6417. 0000977a R0 = var_44 + (R4 << 3);
  6418. 0000977e Cond = R0 + 4;
  6419. 00009780 var_38 = R0 + 4;
  6420. 00009782 Cond = 0;
  6421. 00009782 R5 = 0;
  6422. 00009784 goto loc_97FA;
  6423.  
  6424. 00009786 loc_9786:
  6425. 00009786 Cond = R4 + 1;
  6426. 00009790 /* Low-level instruction of type 255 */
  6427. 00009794 /* Low-level instruction of type 255 */
  6428. 0000979c var_48 = R11 >> 0x10;
  6429. 000097a0 LR = * (var_28 + R4 + 1 + R5) >> 0x10;
  6430. 000097a4 R7 = R2 | R3;
  6431. 000097ac R6 = var_48 | LR;
  6432. 000097b0 R0 = R2 | LR;
  6433. 000097bc R1 = (R3 | var_48) + R0;
  6434. 000097be Cond = R1 - R0;
  6435. 000097c0 if (Cond >= 0) goto loc_97C6;
  6436.  
  6437. 000097c2 R6 = R6 + 0x10000;
  6438.  
  6439. 000097c6 loc_97C6:
  6440. 000097c6 Cond = R1 >> 0x10;
  6441. 000097c8 R6 = R6 + (R1 >> 0x10);
  6442. 000097ca Cond = R1 << 0x10;
  6443. 000097ca R1 = R1 << 0x10;
  6444. 000097cc R7 = R7 + R1;
  6445. 000097ce Cond = R7 - R1;
  6446. 000097d0 if (Cond >= 0) goto loc_97D4;
  6447.  
  6448. 000097d2 Cond = R6 + 1;
  6449. 000097d2 R6 = R6 + 1;
  6450.  
  6451. 000097d4 loc_97D4:
  6452. 000097da R7 = R7 + * (var_38 + R5);
  6453. 000097e2 Cond = * (var_38 + R5) - R7;
  6454. 000097e4 if (Cond <= 0) goto loc_97E8;
  6455.  
  6456. 000097e6 Cond = R6 + 1;
  6457. 000097e6 R6 = R6 + 1;
  6458.  
  6459. 000097e8 loc_97E8:
  6460. 000097e8 R7 = R7 + R8;
  6461. 000097ea Cond = R7 - R8;
  6462. 000097ec if (Cond >= 0) goto loc_97F0;
  6463.  
  6464. 000097ee Cond = R6 + 1;
  6465. 000097ee R6 = R6 + 1;
  6466.  
  6467. 000097f0 loc_97F0:
  6468. 000097f0 R8 = R6;
  6469. 000097f4 * (var_38 + R5) = R7;
  6470. 000097f8 Cond = R5 + 1;
  6471. 000097f8 R5 = R5 + 1;
  6472.  
  6473. 000097fa loc_97FA:
  6474. 000097fc Cond = R5 - var_34;
  6475. 000097fe if (Cond < 0) goto loc_9786;
  6476.  
  6477. 0000980c * (var_38 + R5) = * (var_38 + R5) + R8;
  6478. 00009816 Cond = * (var_38 + R5) - R8;
  6479. 00009818 if (Cond >= 0) goto loc_9842;
  6480.  
  6481. 0000981a Cond = R5 + 1;
  6482. 0000981a R5 = R5 + 1;
  6483. 0000981c goto loc_982A;
  6484.  
  6485. 0000981e loc_981E:
  6486. 0000981e Cond = 0;
  6487. 0000981e R2 = 0;
  6488. 00009822 Cond = R5 + 1;
  6489. 00009822 R5 = R5 + 1;
  6490. 00009826 * (var_38 + R5) = R2;
  6491.  
  6492. 0000982a loc_982A:
  6493. 0000982c R0 = * (var_38 + R5);
  6494. 00009830 Cond = R0 + 1;
  6495. 00009832 if (Cond == 0) goto loc_981E;
  6496.  
  6497. 00009836 R0 = * (var_38 + R5);
  6498. 0000983a Cond = R0 + 1;
  6499. 0000983e * (var_38 + R5) = R0 + 1;
  6500.  
  6501. 00009842 loc_9842:
  6502. 00009842 Cond = R4 + 1;
  6503. 00009842 R4 = R4 + 1;
  6504.  
  6505. 00009844 loc_9844:
  6506. 00009848 Cond = R9 - 1 - R4;
  6507. 0000984a if (Cond > 0) goto loc_9766;
  6508.  
  6509. 0000984c Cond = 0;
  6510. 0000984e var_40 = 0;
  6511. 00009854 var_34 = R9 << 1;
  6512. 00009856 Cond = 0;
  6513. 00009856 R4 = 0;
  6514. 00009858 goto loc_987A;
  6515.  
  6516. 0000985a loc_985A:
  6517. 0000985c R10 = * (var_44 + R4);
  6518. 00009870 * (var_44 + R4) = R10 << 1 | var_40;
  6519. 00009874 var_40 = R10 >> 0x1f;
  6520. 00009878 Cond = R4 + 1;
  6521. 00009878 R4 = R4 + 1;
  6522.  
  6523. 0000987a loc_987A:
  6524. 0000987c Cond = R4 - var_34;
  6525. 0000987e if (Cond < 0) goto loc_985A;
  6526.  
  6527. 00009880 Cond = 0;
  6528. 00009880 R0 = 0;
  6529. 00009882 var_34 = R0;
  6530. 00009884 R8 = R0;
  6531. 00009886 Cond = 0;
  6532. 00009886 R4 = 0;
  6533. 00009888 goto loc_9918;
  6534.  
  6535. 0000988a loc_988A:
  6536. 00009892 /* Low-level instruction of type 255 */
  6537. 0000989e R3 = * (var_28 + R4) >> 0x10;
  6538. 000098aa R0 = R2 | R3;
  6539. 000098ae Cond = R0 << 0x11;
  6540. 000098ae R1 = R0 << 0x11;
  6541. 000098b0 Cond = R0 >> 15;
  6542. 000098b2 R6 = (R3 | R3) + (R0 >> 15);
  6543. 000098b4 R7 = (R2 | R2) + R1;
  6544. 000098b6 Cond = R7 - R1;
  6545. 000098b8 if (Cond >= 0) goto loc_98BC;
  6546.  
  6547. 000098ba Cond = R6 + 1;
  6548. 000098ba R6 = R6 + 1;
  6549.  
  6550. 000098bc loc_98BC:
  6551. 000098c4 R7 = R7 + * (var_44 + var_34);
  6552. 000098ce Cond = * (var_44 + var_34) - R7;
  6553. 000098d0 if (Cond <= 0) goto loc_98D4;
  6554.  
  6555. 000098d2 Cond = R6 + 1;
  6556. 000098d2 R6 = R6 + 1;
  6557.  
  6558. 000098d4 loc_98D4:
  6559. 000098d4 R7 = R7 + R8;
  6560. 000098d6 Cond = R7 - R8;
  6561. 000098d8 if (Cond >= 0) goto loc_98DC;
  6562.  
  6563. 000098da Cond = R6 + 1;
  6564. 000098da R6 = R6 + 1;
  6565.  
  6566. 000098dc loc_98DC:
  6567. 000098dc R0 = var_34;
  6568. 000098de Cond = R0 + 1;
  6569. 000098e6 R6 = R6 + * (var_44 + R0 + 1);
  6570. 000098e8 R0 = var_34;
  6571. 000098ea Cond = R0 + 1;
  6572. 000098f2 Cond = * (var_44 + R0 + 1) - R6;
  6573. 000098f4 if (Cond <= 0) goto loc_98FA;
  6574.  
  6575. 000098f6 Cond = 1;
  6576. 000098f6 R0 = 1;
  6577. 000098f8 goto loc_98FC;
  6578.  
  6579. 000098fa loc_98FA:
  6580. 000098fa Cond = 0;
  6581. 000098fa R0 = 0;
  6582.  
  6583. 000098fc loc_98FC:
  6584. 000098fc R8 = R0;
  6585. 00009902 * (var_44 + var_34) = R7;
  6586. 00009906 R0 = var_34;
  6587. 00009908 Cond = R0 + 1;
  6588. 0000990c * (var_44 + R0 + 1) = R6;
  6589. 00009910 R0 = var_34;
  6590. 00009912 Cond = R0 + 2;
  6591. 00009914 var_34 = R0 + 2;
  6592. 00009916 Cond = R4 + 1;
  6593. 00009916 R4 = R4 + 1;
  6594.  
  6595. 00009918 loc_9918:
  6596. 00009918 Cond = R4 - R9;
  6597. 0000991a if (Cond < 0) goto loc_988A;
  6598.  
  6599. 0000991c Cond = 0;
  6600. 0000991c R4 = 0;
  6601. 0000991e goto loc_9A00;
  6602.  
  6603. 00009920 loc_9920:
  6604. 00009922 R0 = * (var_44 + R4);
  6605. 00009928 R1 = * (var_30 + 0x18);
  6606. 0000992a Cond = R0 | R1;
  6607. 0000992c var_40 = R0 | R1;
  6608. 00009934 var_38 = var_44 + (R4 << 2);
  6609. 00009936 R8 = 0;
  6610. 0000993a Cond = 0;
  6611. 0000993a R5 = 0;
  6612. 0000993c goto loc_99B8;
  6613.  
  6614. 0000993e loc_993E:
  6615. 0000994a /* Low-level instruction of type 255 */
  6616. 0000994e /* Low-level instruction of type 255 */
  6617. 0000995a var_48 = var_40 >> 0x10;
  6618. 0000995e LR = * (* var_30 + R5) >> 0x10;
  6619. 00009962 R7 = R2 | R3;
  6620. 0000996a R6 = var_48 | LR;
  6621. 0000996e R0 = R2 | LR;
  6622. 0000997a R1 = (R3 | var_48) + R0;
  6623. 0000997c Cond = R1 - R0;
  6624. 0000997e if (Cond >= 0) goto loc_9984;
  6625.  
  6626. 00009980 R6 = R6 + 0x10000;
  6627.  
  6628. 00009984 loc_9984:
  6629. 00009984 Cond = R1 >> 0x10;
  6630. 00009986 R6 = R6 + (R1 >> 0x10);
  6631. 00009988 Cond = R1 << 0x10;
  6632. 00009988 R1 = R1 << 0x10;
  6633. 0000998a R7 = R7 + R1;
  6634. 0000998c Cond = R7 - R1;
  6635. 0000998e if (Cond >= 0) goto loc_9992;
  6636.  
  6637. 00009990 Cond = R6 + 1;
  6638. 00009990 R6 = R6 + 1;
  6639.  
  6640. 00009992 loc_9992:
  6641. 00009998 R7 = R7 + * (var_38 + R5);
  6642. 000099a0 Cond = * (var_38 + R5) - R7;
  6643. 000099a2 if (Cond <= 0) goto loc_99A6;
  6644.  
  6645. 000099a4 Cond = R6 + 1;
  6646. 000099a4 R6 = R6 + 1;
  6647.  
  6648. 000099a6 loc_99A6:
  6649. 000099a6 R7 = R7 + R8;
  6650. 000099a8 Cond = R7 - R8;
  6651. 000099aa if (Cond >= 0) goto loc_99AE;
  6652.  
  6653. 000099ac Cond = R6 + 1;
  6654. 000099ac R6 = R6 + 1;
  6655.  
  6656. 000099ae loc_99AE:
  6657. 000099ae R8 = R6;
  6658. 000099b2 * (var_38 + R5) = R7;
  6659. 000099b6 Cond = R5 + 1;
  6660. 000099b6 R5 = R5 + 1;
  6661.  
  6662. 000099b8 loc_99B8:
  6663. 000099b8 Cond = R5 - R9;
  6664. 000099ba if (Cond < 0) goto loc_993E;
  6665.  
  6666. 000099c8 * (var_38 + R5) = * (var_38 + R5) + R8;
  6667. 000099d2 Cond = * (var_38 + R5) - R8;
  6668. 000099d4 if (Cond >= 0) goto loc_99FE;
  6669.  
  6670. 000099d6 Cond = R5 + 1;
  6671. 000099d6 R5 = R5 + 1;
  6672. 000099d8 goto loc_99E6;
  6673.  
  6674. 000099da loc_99DA:
  6675. 000099da Cond = 0;
  6676. 000099da R2 = 0;
  6677. 000099de Cond = R5 + 1;
  6678. 000099de R5 = R5 + 1;
  6679. 000099e2 * (var_38 + R5) = R2;
  6680.  
  6681. 000099e6 loc_99E6:
  6682. 000099e8 R0 = * (var_38 + R5);
  6683. 000099ec Cond = R0 + 1;
  6684. 000099ee if (Cond == 0) goto loc_99DA;
  6685.  
  6686. 000099f2 R0 = * (var_38 + R5);
  6687. 000099f6 Cond = R0 + 1;
  6688. 000099fa * (var_38 + R5) = R0 + 1;
  6689.  
  6690. 000099fe loc_99FE:
  6691. 000099fe Cond = R4 + 1;
  6692. 000099fe R4 = R4 + 1;
  6693.  
  6694. 00009a00 loc_9A00:
  6695. 00009a00 Cond = R4 - R9;
  6696. 00009a02 if (Cond < 0) goto loc_9920;
  6697.  
  6698. 00009a04 Cond = 0;
  6699. 00009a04 R4 = 0;
  6700. 00009a06 goto loc_9A1A;
  6701.  
  6702. 00009a08 loc_9A08:
  6703. 00009a14 * (var_2C + R4) = * (var_44 + R4 + R9);
  6704. 00009a18 Cond = R4 + 1;
  6705. 00009a18 R4 = R4 + 1;
  6706.  
  6707. 00009a1a loc_9A1A:
  6708. 00009a1a Cond = R4 - R9;
  6709. 00009a1c if (Cond <= 0) goto loc_9A08;
  6710.  
  6711. 00009a1e R0 = var_30;
  6712. 00009a24 R0 = sub_9E96(R0, var_2C, * R0, R3);
  6713. 00009a28 Cond = R0 + 1;
  6714. 00009a2a if (Cond == 0) goto loc_9A38;
  6715.  
  6716. 00009a2c R0 = var_30;
  6717. 00009a2e Cond = 0;
  6718. 00009a34 sub_9ED6(R0, var_2C, * R0, 0);
  6719.  
  6720. 00009a3e sub_9A3E:
  6721. 00009a3e /* Low-level instruction of type 43 */
  6722. 00009a44 R4 = R0;
  6723. 00009a48 var_44 = * R4;
  6724. 00009a4c var_48 = * (R4 + 0x10);
  6725. 00009a50 R8 = * (R4 + 4) - 1;
  6726. 00009a56 var_3C = var_48;
  6727. 00009a58 R0 = R8 << 1;
  6728. 00009a5c Cond = R0 + 3;
  6729. 00009a5e var_40 = R0 + 3;
  6730. 00009a60 Cond = 0;
  6731. 00009a62 var_34 = 0;
  6732. 00009a64 goto loc_9A7A;
  6733.  
  6734. 00009a66 loc_9A66:
  6735. 00009a66 R1 = var_34;
  6736. 00009a6a R2 = * (var_28 + R1);
  6737. 00009a70 * (var_3C + R1) = R2;
  6738. 00009a74 R0 = var_34;
  6739. 00009a76 Cond = R0 + 1;
  6740. 00009a78 var_34 = R0 + 1;
  6741.  
  6742. 00009a7a loc_9A7A:
  6743. 00009a7c Cond = var_34 - R8;
  6744. 00009a7e if (Cond < 0) goto loc_9A66;
  6745.  
  6746. 00009a80 var_34 = R8;
  6747. 00009a84 goto loc_9A96;
  6748.  
  6749. 00009a86 loc_9A86:
  6750. 00009a86 Cond = 0;
  6751. 00009a88 R2 = var_34;
  6752. 00009a8c * (var_3C + R2) = 0;
  6753. 00009a90 R0 = var_34;
  6754. 00009a92 Cond = R0 + 1;
  6755. 00009a94 var_34 = R0 + 1;
  6756.  
  6757. 00009a96 loc_9A96:
  6758. 00009a9a Cond = var_34 - var_40;
  6759. 00009a9c if (Cond < 0) goto loc_9A86;
  6760.  
  6761. 00009a9e Cond = 0;
  6762. 00009aa0 var_34 = 0;
  6763. 00009aa2 goto loc_9B7A;
  6764.  
  6765. 00009aa4 loc_9AA4:
  6766. 00009aae R9 = * (var_48 + var_34) | * (R4 + 0x18);
  6767. 00009ab2 R1 = var_34;
  6768. 00009aba var_3C = var_48 + (R1 << 2);
  6769. 00009abc Cond = 0;
  6770. 00009abe var_38 = R1;
  6771. 00009ac0 Cond = 0;
  6772. 00009ac0 R5 = 0;
  6773. 00009ac2 goto loc_9B2C;
  6774.  
  6775. 00009ac4 loc_9AC4:
  6776. 00009aca /* Low-level instruction of type 255 */
  6777. 00009ace /* Low-level instruction of type 255 */
  6778. 00009ad2 R12 = R9 >> 0x10;
  6779. 00009ad6 LR = * (var_44 + R5) >> 0x10;
  6780. 00009ada R7 = R2 | R3;
  6781. 00009ade R6 = R12 | LR;
  6782. 00009ae2 R0 = R2 | LR;
  6783. 00009aea R1 = (R3 | R12) + R0;
  6784. 00009aec Cond = R1 - R0;
  6785. 00009aee if (Cond >= 0) goto loc_9AF4;
  6786.  
  6787. 00009af0 R6 = R6 + 0x10000;
  6788.  
  6789. 00009af4 loc_9AF4:
  6790. 00009af4 Cond = R1 >> 0x10;
  6791. 00009af6 R6 = R6 + (R1 >> 0x10);
  6792. 00009af8 Cond = R1 << 0x10;
  6793. 00009af8 R1 = R1 << 0x10;
  6794. 00009afa R7 = R7 + R1;
  6795. 00009afc Cond = R7 - R1;
  6796. 00009afe if (Cond >= 0) goto loc_9B02;
  6797.  
  6798. 00009b00 Cond = R6 + 1;
  6799. 00009b00 R6 = R6 + 1;
  6800.  
  6801. 00009b02 loc_9B02:
  6802. 00009b08 R7 = R7 + * (var_3C + R5);
  6803. 00009b10 Cond = * (var_3C + R5) - R7;
  6804. 00009b12 if (Cond <= 0) goto loc_9B16;
  6805.  
  6806. 00009b14 Cond = R6 + 1;
  6807. 00009b14 R6 = R6 + 1;
  6808.  
  6809. 00009b16 loc_9B16:
  6810. 00009b18 R7 = R7 + var_38;
  6811. 00009b1c Cond = R7 - var_38;
  6812. 00009b1e if (Cond >= 0) goto loc_9B22;
  6813.  
  6814. 00009b20 Cond = R6 + 1;
  6815. 00009b20 R6 = R6 + 1;
  6816.  
  6817. 00009b22 loc_9B22:
  6818. 00009b22 var_38 = R6;
  6819. 00009b26 * (var_3C + R5) = R7;
  6820. 00009b2a Cond = R5 + 1;
  6821. 00009b2a R5 = R5 + 1;
  6822.  
  6823. 00009b2c loc_9B2C:
  6824. 00009b2c Cond = R5 - R8;
  6825. 00009b2e if (Cond < 0) goto loc_9AC4;
  6826.  
  6827. 00009b3c * (var_3C + R5) = * (var_3C + R5) + var_38;
  6828. 00009b48 Cond = * (var_3C + R5) - var_38;
  6829. 00009b4a if (Cond >= 0) goto loc_9B74;
  6830.  
  6831. 00009b4c Cond = R5 + 1;
  6832. 00009b4c R5 = R5 + 1;
  6833. 00009b4e goto loc_9B5C;
  6834.  
  6835. 00009b50 loc_9B50:
  6836. 00009b50 Cond = 0;
  6837. 00009b50 R2 = 0;
  6838. 00009b54 Cond = R5 + 1;
  6839. 00009b54 R5 = R5 + 1;
  6840. 00009b58 * (var_3C + R5) = R2;
  6841.  
  6842. 00009b5c loc_9B5C:
  6843. 00009b5e R0 = * (var_3C + R5);
  6844. 00009b62 Cond = R0 + 1;
  6845. 00009b64 if (Cond == 0) goto loc_9B50;
  6846.  
  6847. 00009b68 R0 = * (var_3C + R5);
  6848. 00009b6c Cond = R0 + 1;
  6849. 00009b70 * (var_3C + R5) = R0 + 1;
  6850.  
  6851. 00009b74 loc_9B74:
  6852. 00009b74 R0 = var_34;
  6853. 00009b76 Cond = R0 + 1;
  6854. 00009b78 var_34 = R0 + 1;
  6855.  
  6856. 00009b7a loc_9B7A:
  6857. 00009b7c Cond = var_34 - R8;
  6858. 00009b7e if (Cond < 0) goto loc_9AA4;
  6859.  
  6860. 00009b80 Cond = 0;
  6861. 00009b82 var_34 = 0;
  6862. 00009b84 goto loc_9BA0;
  6863.  
  6864. 00009b86 loc_9B86:
  6865. 00009b96 * (var_2C + var_34) = * (var_48 + var_34 + R8);
  6866. 00009b9a R0 = var_34;
  6867. 00009b9c Cond = R0 + 1;
  6868. 00009b9e var_34 = R0 + 1;
  6869.  
  6870. 00009ba0 loc_9BA0:
  6871. 00009ba2 Cond = var_34 - R8;
  6872. 00009ba4 if (Cond <= 0) goto loc_9B86;
  6873.  
  6874. 00009bac R0 = sub_9E96(R4, var_2C, var_44, R3);
  6875. 00009bb0 Cond = R0 + 1;
  6876. 00009bb2 if (Cond == 0) goto loc_9BC0;
  6877.  
  6878. 00009bb4 Cond = 0;
  6879. 00009bbc sub_9ED6(R4, var_2C, var_44, 0);
  6880.  
  6881. 00009bc6 sub_9BC6:
  6882. 00009bc6 /* Low-level instruction of type 43 */
  6883. 00009bcc R4 = R0;
  6884. 00009bd0 var_48 = * (R4 + 0x10);
  6885. 00009bd2 R0 = * (R4 + 4);
  6886. 00009bd4 Cond = R0 - 1;
  6887. 00009bd6 var_44 = R0 - 1;
  6888. 00009bd8 R8 = var_48;
  6889. 00009bdc R0 = var_44;
  6890. 00009bde Cond = R0 << 1;
  6891. 00009bde R0 = R0 << 1;
  6892. 00009be0 Cond = R0 + 3;
  6893. 00009be2 var_40 = R0 + 3;
  6894. 00009be4 Cond = 0;
  6895. 00009be6 var_38 = 0;
  6896. 00009be8 goto loc_9BF8;
  6897.  
  6898. 00009bea loc_9BEA:
  6899. 00009bea Cond = 0;
  6900. 00009bee * (R8 + var_38) = 0;
  6901. 00009bf2 R0 = var_38;
  6902. 00009bf4 Cond = R0 + 1;
  6903. 00009bf6 var_38 = R0 + 1;
  6904.  
  6905. 00009bf8 loc_9BF8:
  6906. 00009bfc Cond = var_38 - var_40;
  6907. 00009bfe if (Cond < 0) goto loc_9BEA;
  6908.  
  6909. 00009c00 Cond = 0;
  6910. 00009c02 var_38 = 0;
  6911. 00009c04 goto loc_9DAE;
  6912.  
  6913. 00009c06 loc_9C06:
  6914. 00009c06 Cond = 0;
  6915. 00009c06 R7 = 0;
  6916. 00009c0c R9 = * (var_2C + var_38);
  6917. 00009c14 R8 = var_48 + (var_38 << 2);
  6918. 00009c18 Cond = 0;
  6919. 00009c1a var_3C = 0;
  6920. 00009c1c goto loc_9C88;
  6921.  
  6922. 00009c1e loc_9C1E:
  6923. 00009c26 /* Low-level instruction of type 255 */
  6924. 00009c2a /* Low-level instruction of type 255 */
  6925. 00009c2e R12 = R9 >> 0x10;
  6926. 00009c32 LR = * (var_28 + var_3C) >> 0x10;
  6927. 00009c36 R6 = R2 | R3;
  6928. 00009c3a R5 = R12 | LR;
  6929. 00009c3e R0 = R2 | LR;
  6930. 00009c46 R1 = (R3 | R12) + R0;
  6931. 00009c48 Cond = R1 - R0;
  6932. 00009c4a if (Cond >= 0) goto loc_9C50;
  6933.  
  6934. 00009c4c R5 = R5 + 0x10000;
  6935.  
  6936. 00009c50 loc_9C50:
  6937. 00009c50 Cond = R1 >> 0x10;
  6938. 00009c52 R5 = R5 + (R1 >> 0x10);
  6939. 00009c54 Cond = R1 << 0x10;
  6940. 00009c54 R1 = R1 << 0x10;
  6941. 00009c56 R6 = R6 + R1;
  6942. 00009c58 Cond = R6 - R1;
  6943. 00009c5a if (Cond >= 0) goto loc_9C5E;
  6944.  
  6945. 00009c5c Cond = R5 + 1;
  6946. 00009c5c R5 = R5 + 1;
  6947.  
  6948. 00009c5e loc_9C5E:
  6949. 00009c64 R6 = R6 + * (R8 + var_3C);
  6950. 00009c6c Cond = * (R8 + var_3C) - R6;
  6951. 00009c6e if (Cond <= 0) goto loc_9C72;
  6952.  
  6953. 00009c70 Cond = R5 + 1;
  6954. 00009c70 R5 = R5 + 1;
  6955.  
  6956. 00009c72 loc_9C72:
  6957. 00009c72 R6 = R6 + R7;
  6958. 00009c74 Cond = R6 - R7;
  6959. 00009c76 if (Cond >= 0) goto loc_9C7A;
  6960.  
  6961. 00009c78 Cond = R5 + 1;
  6962. 00009c78 R5 = R5 + 1;
  6963.  
  6964. 00009c7a loc_9C7A:
  6965. 00009c7a R7 = R5;
  6966. 00009c7e * (R8 + var_3C) = R6;
  6967. 00009c82 R0 = var_3C;
  6968. 00009c84 Cond = R0 + 1;
  6969. 00009c86 var_3C = R0 + 1;
  6970.  
  6971. 00009c88 loc_9C88:
  6972. 00009c8c Cond = var_3C - var_44;
  6973. 00009c8e if (Cond < 0) goto loc_9C1E;
  6974.  
  6975. 00009c9a * (R8 + var_3C) = * (R8 + var_3C) + R7;
  6976. 00009ca4 Cond = * (R8 + var_3C) - R7;
  6977. 00009ca6 if (Cond >= 0) goto loc_9CD4;
  6978.  
  6979. 00009ca8 R0 = var_3C;
  6980. 00009caa Cond = R0 + 1;
  6981. 00009cac var_3C = R0 + 1;
  6982. 00009cae goto loc_9CBC;
  6983.  
  6984. 00009cb0 loc_9CB0:
  6985. 00009cb0 Cond = 0;
  6986. 00009cb0 R2 = 0;
  6987. 00009cb2 R0 = var_3C;
  6988. 00009cb4 Cond = R0 + 1;
  6989. 00009cb6 var_3C = R0;
  6990. 00009cb8 * (R8 + R0) = R2;
  6991.  
  6992. 00009cbc loc_9CBC:
  6993. 00009cbe R0 = * (R8 + var_3C);
  6994. 00009cc2 Cond = R0 + 1;
  6995. 00009cc4 if (Cond == 0) goto loc_9CB0;
  6996.  
  6997. 00009cc8 R0 = * (R8 + var_3C);
  6998. 00009ccc Cond = R0 + 1;
  6999. 00009cd0 * (R8 + var_3C) = R0 + 1;
  7000.  
  7001. 00009cd4 loc_9CD4:
  7002. 00009cde R9 = * (var_48 + var_38) | * (R4 + 0x18);
  7003. 00009ce6 R8 = var_48 + (var_38 << 2);
  7004. 00009cea Cond = 0;
  7005. 00009cea R7 = 0;
  7006. 00009cec Cond = 0;
  7007. 00009cee var_3C = 0;
  7008. 00009cf0 goto loc_9D5C;
  7009.  
  7010. 00009cf2 loc_9CF2:
  7011. 00009cfa /* Low-level instruction of type 255 */
  7012. 00009cfe /* Low-level instruction of type 255 */
  7013. 00009d02 R12 = R9 >> 0x10;
  7014. 00009d06 LR = * (* R4 + var_3C) >> 0x10;
  7015. 00009d0a R6 = R2 | R3;
  7016. 00009d0e R5 = R12 | LR;
  7017. 00009d12 R0 = R2 | LR;
  7018. 00009d1a R1 = (R3 | R12) + R0;
  7019. 00009d1c Cond = R1 - R0;
  7020. 00009d1e if (Cond >= 0) goto loc_9D24;
  7021.  
  7022. 00009d20 R5 = R5 + 0x10000;
  7023.  
  7024. 00009d24 loc_9D24:
  7025. 00009d24 Cond = R1 >> 0x10;
  7026. 00009d26 R5 = R5 + (R1 >> 0x10);
  7027. 00009d28 Cond = R1 << 0x10;
  7028. 00009d28 R1 = R1 << 0x10;
  7029. 00009d2a R6 = R6 + R1;
  7030. 00009d2c Cond = R6 - R1;
  7031. 00009d2e if (Cond >= 0) goto loc_9D32;
  7032.  
  7033. 00009d30 Cond = R5 + 1;
  7034. 00009d30 R5 = R5 + 1;
  7035.  
  7036. 00009d32 loc_9D32:
  7037. 00009d38 R6 = R6 + * (R8 + var_3C);
  7038. 00009d40 Cond = * (R8 + var_3C) - R6;
  7039. 00009d42 if (Cond <= 0) goto loc_9D46;
  7040.  
  7041. 00009d44 Cond = R5 + 1;
  7042. 00009d44 R5 = R5 + 1;
  7043.  
  7044. 00009d46 loc_9D46:
  7045. 00009d46 R6 = R6 + R7;
  7046. 00009d48 Cond = R6 - R7;
  7047. 00009d4a if (Cond >= 0) goto loc_9D4E;
  7048.  
  7049. 00009d4c Cond = R5 + 1;
  7050. 00009d4c R5 = R5 + 1;
  7051.  
  7052. 00009d4e loc_9D4E:
  7053. 00009d4e R7 = R5;
  7054. 00009d52 * (R8 + var_3C) = R6;
  7055. 00009d56 R0 = var_3C;
  7056. 00009d58 Cond = R0 + 1;
  7057. 00009d5a var_3C = R0 + 1;
  7058.  
  7059. 00009d5c loc_9D5C:
  7060. 00009d60 Cond = var_3C - var_44;
  7061. 00009d62 if (Cond < 0) goto loc_9CF2;
  7062.  
  7063. 00009d6e * (R8 + var_3C) = * (R8 + var_3C) + R7;
  7064. 00009d78 Cond = * (R8 + var_3C) - R7;
  7065. 00009d7a if (Cond >= 0) goto loc_9DA8;
  7066.  
  7067. 00009d7c R0 = var_3C;
  7068. 00009d7e Cond = R0 + 1;
  7069. 00009d80 var_3C = R0 + 1;
  7070. 00009d82 goto loc_9D90;
  7071.  
  7072. 00009d84 loc_9D84:
  7073. 00009d84 Cond = 0;
  7074. 00009d84 R2 = 0;
  7075. 00009d86 R0 = var_3C;
  7076. 00009d88 Cond = R0 + 1;
  7077. 00009d8a var_3C = R0 + 1;
  7078. 00009d8c * (R8 + R0) = R2;
  7079.  
  7080. 00009d90 loc_9D90:
  7081. 00009d92 R0 = * (R8 + var_3C);
  7082. 00009d96 Cond = R0 + 1;
  7083. 00009d98 if (Cond == 0) goto loc_9D84;
  7084.  
  7085. 00009d9c R0 = * (R8 + var_3C);
  7086. 00009da0 Cond = R0 + 1;
  7087. 00009da4 * (R8 + var_3C) = R0 + 1;
  7088.  
  7089. 00009da8 loc_9DA8:
  7090. 00009da8 R0 = var_38;
  7091. 00009daa Cond = R0 + 1;
  7092. 00009dac var_38 = R0 + 1;
  7093.  
  7094. 00009dae loc_9DAE:
  7095. 00009db2 Cond = var_38 - var_44;
  7096. 00009db4 if (Cond < 0) goto loc_9C06;
  7097.  
  7098. 00009db8 Cond = 0;
  7099. 00009dba var_38 = 0;
  7100. 00009dbc goto loc_9DD8;
  7101.  
  7102. 00009dbe loc_9DBE:
  7103. 00009dce * (var_30 + var_38) = * (var_48 + var_38 + var_44);
  7104. 00009dd2 R0 = var_38;
  7105. 00009dd4 Cond = R0 + 1;
  7106. 00009dd6 var_38 = R0 + 1;
  7107.  
  7108. 00009dd8 loc_9DD8:
  7109. 00009ddc Cond = var_38 - var_44;
  7110. 00009dde if (Cond <= 0) goto loc_9DBE;
  7111.  
  7112. 00009de6 R0 = sub_9E96(R4, var_30, * R4, R3);
  7113. 00009dea Cond = R0 + 1;
  7114. 00009dec if (Cond == 0) goto loc_9DFA;
  7115.  
  7116. 00009dee Cond = 0;
  7117. 00009df6 sub_9ED6(R4, var_30, * R4, 0);
  7118.  
  7119. 00009e00 sub_9E00:
  7120. 00009e00 /* Low-level instruction of type 43 */
  7121. 00009e02 Cond = 0;
  7122. 00009e02 R7 = 0;
  7123. 00009e0e R6 = R2 + (R2 >> 0x1f >> 0x1e) >> 2;
  7124. 00009e12 Cond = 0;
  7125. 00009e12 R3 = 0;
  7126. 00009e14 goto loc_9E44;
  7127.  
  7128. 00009e16 loc_9E16:
  7129. 00009e16 Cond = 0;
  7130. 00009e16 R4 = 0;
  7131. 00009e18 goto loc_9E28;
  7132.  
  7133. 00009e1a loc_9E1A:
  7134. 00009e1a Cond = 4;
  7135. 00009e1c /* Low-level instruction of type 29 */
  7136. 00009e20 R5 = * (R1 + 4);
  7137. 00009e22 Cond = R7 | R5;
  7138. 00009e22 R7 = R7 | R5;
  7139. 00009e24 Cond = R7 << 8;
  7140. 00009e24 R7 = R7 << 8;
  7141. 00009e26 Cond = R4 + 1;
  7142. 00009e26 R4 = R4 + 1;
  7143.  
  7144. 00009e28 loc_9E28:
  7145. 00009e28 Cond = R4 - 3;
  7146. 00009e2a if (Cond < 0) goto loc_9E1A;
  7147.  
  7148. 00009e2c Cond = 4;
  7149. 00009e2e /* Low-level instruction of type 29 */
  7150. 00009e32 R5 = * (R1 + 4);
  7151. 00009e34 Cond = R5 | R7;
  7152. 00009e3e * (R0 + R6 - R3 - 1) = R5 | R7;
  7153. 00009e42 Cond = R3 + 1;
  7154. 00009e42 R3 = R3 + 1;
  7155.  
  7156. 00009e44 loc_9E44:
  7157. 00009e44 Cond = R3 - R6;
  7158. 00009e46 if (Cond < 0) goto loc_9E16;
  7159.  
  7160. 00009e4a sub_9E4A:
  7161. 00009e4a /* Low-level instruction of type 43 */
  7162. 00009e4c Cond = 0;
  7163. 00009e4c R3 = 0;
  7164. 00009e4e goto loc_9E76;
  7165.  
  7166. 00009e50 loc_9E50:
  7167. 00009e50 Cond = R2 - R3;
  7168. 00009e50 R6 = R2 - R3;
  7169. 00009e52 Cond = R6 - 1;
  7170. 00009e54 R5 = * (R1 + R6 - 1);
  7171. 00009e58 Cond = 3;
  7172. 00009e58 R4 = 3;
  7173. 00009e5a goto loc_9E68;
  7174.  
  7175. 00009e5c loc_9E5C:
  7176. 00009e5c Cond = 4;
  7177. 00009e5e /* Low-level instruction of type 29 */
  7178. 00009e62 * (R0 + 4) = R5;
  7179. 00009e64 Cond = R5 >> 8;
  7180. 00009e64 R5 = R5 >> 8;
  7181. 00009e66 Cond = R4 - 1;
  7182. 00009e66 R4 = R4 - 1;
  7183.  
  7184. 00009e68 loc_9E68:
  7185. 00009e68 Cond = R4;
  7186. 00009e6a if (Cond > 0) goto loc_9E5C;
  7187.  
  7188. 00009e6c Cond = 4;
  7189. 00009e6e /* Low-level instruction of type 29 */
  7190. 00009e72 * (R0 + 4) = R5;
  7191. 00009e74 Cond = R3 + 1;
  7192. 00009e74 R3 = R3 + 1;
  7193.  
  7194. 00009e76 loc_9E76:
  7195. 00009e76 Cond = R3 - R2;
  7196. 00009e78 if (Cond < 0) goto loc_9E50;
  7197.  
  7198. 00009e7c sub_9E7C:
  7199. 00009e7c /* Low-level instruction of type 43 */
  7200. 00009e7e R3 = R2;
  7201. 00009e80 R4 = * (R0 + 4);
  7202. 00009e82 Cond = 0;
  7203. 00009e82 R2 = 0;
  7204. 00009e84 goto loc_9E90;
  7205.  
  7206. 00009e86 loc_9E86:
  7207. 00009e8a * (R1 + R2) = * (R3 + R2);
  7208. 00009e8e Cond = R2 + 1;
  7209. 00009e8e R2 = R2 + 1;
  7210.  
  7211. 00009e90 loc_9E90:
  7212. 00009e90 Cond = R2 - R4;
  7213. 00009e92 if (Cond < 0) goto loc_9E86;
  7214.  
  7215. 00009e96 sub_9E96:
  7216. 00009e96 /* Low-level instruction of type 43 */
  7217. 00009e9c /* Low-level instruction of type 226 */
  7218. 00009e9e R0 = R1 + (R4 << 2);
  7219. 00009ea2 Cond = R0 - 4;
  7220. 00009ea2 R1 = R0 - 4;
  7221. 00009ea4 R0 = R2 + (R4 << 2);
  7222. 00009ea8 Cond = R0 - 4;
  7223. 00009ea8 R2 = R0 - 4;
  7224. 00009eaa /* Low-level instruction of type 2 */
  7225.  
  7226. 00009eac loc_9EAC:
  7227. 00009eb0 Cond = * R1 - * R2;
  7228. 00009eb2 if (Cond >= 0) goto loc_9EBA;
  7229.  
  7230.  
  7231. 00009eb8 locret_9EB8:
  7232. 00009eb8 /* Low-level instruction of type 42 */
  7233.  
  7234. 00009eba loc_9EBA:
  7235. 00009ec2 Cond = * (R1 + -4) - * (R2 + -4);
  7236. 00009ec4 if (Cond <= 0) goto loc_9ECA;
  7237.  
  7238. 00009ec6 Cond = 1;
  7239. 00009ec8 goto locret_9EB8;
  7240.  
  7241. 00009eca loc_9ECA:
  7242. 00009eca Cond = R4 - 1;
  7243. 00009eca R0 = R4 - 1;
  7244. 00009ecc /* Low-level instruction of type 226 */
  7245. 00009ece Cond = R0;
  7246. 00009ece R4 = R0;
  7247. 00009ed0 if (Cond != 0) goto loc_9EAC;
  7248.  
  7249. 00009ed2 Cond = 0;
  7250. 00009ed4 goto locret_9EB8;
  7251.  
  7252. 00009ed6 sub_9ED6:
  7253. 00009ed6 /* Low-level instruction of type 43 */
  7254. 00009edc LR = 0;
  7255. 00009ee2 R12 = * (R0 + 4);
  7256. 00009ee6 /* Low-level instruction of type 282 */
  7257. 00009ee8 R8 = 1;
  7258.  
  7259. 00009eec loc_9EEC:
  7260. 00009eec goto loc_9F24;
  7261.  
  7262. 00009eee loc_9EEE:
  7263. 00009eee R6 = * (R1 + LR);
  7264. 00009ef2 R7 = * (R2 + LR);
  7265. 00009ef6 Cond = R8;
  7266. 00009efa if (Cond == 0) goto loc_9F0E;
  7267.  
  7268. 00009efc Cond = R6 - R7;
  7269. 00009efc R0 = R6 - R7;
  7270. 00009efe Cond = R0 - 1;
  7271. 00009efe R5 = R0 - 1;
  7272. 00009f00 Cond = R6 - R7;
  7273. 00009f02 if (Cond > 0) goto loc_9F08;
  7274.  
  7275. 00009f04 Cond = 1;
  7276. 00009f04 R0 = 1;
  7277. 00009f06 goto loc_9F0A;
  7278.  
  7279. 00009f08 loc_9F08:
  7280. 00009f08 Cond = 0;
  7281. 00009f08 R0 = 0;
  7282.  
  7283. 00009f0a loc_9F0A:
  7284. 00009f0a R8 = R0;
  7285. 00009f0c goto loc_9F1C;
  7286.  
  7287. 00009f0e loc_9F0E:
  7288. 00009f0e Cond = R6 - R7;
  7289. 00009f0e R5 = R6 - R7;
  7290. 00009f10 Cond = R6 - R7;
  7291. 00009f12 if (Cond >= 0) goto loc_9F18;
  7292.  
  7293. 00009f14 Cond = 1;
  7294. 00009f14 R0 = 1;
  7295. 00009f16 goto loc_9F1A;
  7296.  
  7297. 00009f18 loc_9F18:
  7298. 00009f18 Cond = 0;
  7299. 00009f18 R0 = 0;
  7300.  
  7301. 00009f1a loc_9F1A:
  7302. 00009f1a R8 = R0;
  7303.  
  7304. 00009f1c loc_9F1C:
  7305. 00009f1c * (R1 + LR) = R5;
  7306. 00009f20 LR = LR + 1;
  7307.  
  7308. 00009f24 loc_9F24:
  7309. 00009f24 Cond = R12;
  7310. 00009f2c /* Low-level instruction of type 255 */
  7311. 00009f30 if (Cond != 0) goto loc_9EEE;
  7312.  
  7313. 00009f3a sub_9F3A:
  7314. 00009f3a /* Low-level instruction of type 43 */
  7315. 00009f3c R4 = R0;
  7316. 00009f3e Cond = R4 & 1;
  7317. 00009f42 if (Cond != 0) goto loc_9F48;
  7318.  
  7319. 00009f44 Cond = 0;
  7320.  
  7321. 00009f46 locret_9F46:
  7322. 00009f46 /* Low-level instruction of type 42 */
  7323.  
  7324. 00009f48 loc_9F48:
  7325. 00009f48 Cond = 1;
  7326. 00009f48 R6 = 1;
  7327. 00009f4a Cond = 2;
  7328. 00009f4a R5 = 2;
  7329. 00009f4c goto loc_9F70;
  7330.  
  7331. 00009f4e loc_9F4E:
  7332. 00009f4e Cond = 1;
  7333. 00009f58 /* Low-level instruction of type 46 */
  7334. 00009f5c Cond = R5 - 1;
  7335. 00009f5c R2 = R5 - 1;
  7336. 00009f5e Cond = 1;
  7337. 00009f5e R0 = 1;
  7338. 00009f60 Cond = R0 << R2;
  7339. 00009f62 Cond = (1 << R5) - (R0 << R2);
  7340. 00009f64 if (Cond < 0) goto loc_9F6E;
  7341.  
  7342. 00009f66 Cond = R5 - 1;
  7343. 00009f66 R1 = R5 - 1;
  7344. 00009f68 Cond = 1;
  7345. 00009f68 R0 = 1;
  7346. 00009f6a Cond = R0 << R1;
  7347. 00009f6c R6 = R6 + (R0 << R1);
  7348.  
  7349. 00009f6e loc_9F6E:
  7350. 00009f6e Cond = R5 + 1;
  7351. 00009f6e R5 = R5 + 1;
  7352.  
  7353. 00009f70 loc_9F70:
  7354. 00009f70 Cond = R5 - 0x1f;
  7355. 00009f72 if (Cond <= 0) goto loc_9F4E;
  7356.  
  7357. 00009f74 Cond = R4 | R6;
  7358. 00009f74 R4 = R4 | R6;
  7359. 00009f76 Cond = R4 - 0x80000000;
  7360. 00009f7a if (Cond < 0) goto loc_9F80;
  7361.  
  7362. 00009f7c R6 = R6 - 0x80000000;
  7363.  
  7364. 00009f80 loc_9F80:
  7365. 00009f82 goto locret_9F46;
  7366.  
  7367. 0000bd5c sub_BD5C:
  7368. 0000bd5c Cond = R2 - 0x20;
  7369. 0000bd60 if (Cond >= 0) goto loc_BD78;
  7370.  
  7371. 0000bd74 return R0;
  7372.  
  7373. 0000bd78 loc_BD78:
  7374. 0000bd80 return 0;
  7375.  
  7376. 0000bdac sub_BDAC:
  7377. 0000bdb8 goto loc_C484;
  7378.  
  7379. 0000bdbc sub_BDBC:
  7380. 0000bdbc R2 = 0;
  7381.  
  7382. 0000bdc0 loc_BDC0:
  7383. 0000bdc0 /* push LR */
  7384. 0000bdd0 Cond = R1 - 0x20;
  7385. 0000bdd0 R1 = R1 - 0x20;
  7386.  
  7387. 0000bdd4 loc_BDD4:
  7388. 0000bdd4 /* Low-level instruction of type 34 */
  7389. 0000bdd8 /* Low-level instruction of type 34 */
  7390. 0000bddc Cond = R1 - 0x20;
  7391. 0000bddc if (Cond < 0) goto loc_BDE0;
  7392.  
  7393. 0000bddc R1 = R1 - 0x20;
  7394.  
  7395. 0000bde0 loc_BDE0:
  7396. 0000bde0 if (Cond >= 0) goto loc_BDD4;
  7397.  
  7398. 0000bde4 Cond = R1 << 0x1c;
  7399. 0000bde4 R1 = R1 << 0x1c;
  7400. 0000bde8 /* Low-level instruction of type 34 */
  7401. 0000bdec /* Low-level instruction of type 34 */
  7402. 0000bdf0 /* pop */
  7403. 0000bdf4 Cond = R1 << 2;
  7404. 0000bdf8 if (Cond < 0) goto loc_BDFC;
  7405.  
  7406. 0000bdf8 * (R0 + 4) = R2;
  7407.  
  7408. 0000bdfc loc_BDFC:
  7409. 0000bdfc if (Cond != 0) goto loc_BE00;
  7410.  
  7411. 0000bdfc return R0;
  7412.  
  7413. 0000be00 loc_BE00:
  7414. 0000be00 if (Cond >= 0) goto loc_BE04;
  7415.  
  7416. 0000be00 * (R0 + 2) = R2;
  7417.  
  7418. 0000be04 loc_BE04:
  7419. 0000be04 Cond = R1 & 0x40000000;
  7420. 0000be08 if (Cond == 0) goto loc_BE0C;
  7421.  
  7422. 0000be08 * (R0 + 1) = R2;
  7423.  
  7424. 0000be0c loc_BE0C:
  7425. 0000be0c return R0;
  7426.  
  7427. 0000be58 sub_BE58:
  7428. 0000be58 Cond = R0 | R1;
  7429. 0000be5c if (Cond < 0) goto loc_BEE8;
  7430.  
  7431. 0000be60 R2 = 0;
  7432. 0000be64 Cond = (R0 >> 1) - R1;
  7433. 0000be68 if (Cond < 0) goto loc_BED8;
  7434.  
  7435. 0000be6c Cond = (R0 >> 4) - R1;
  7436. 0000be70 if (Cond < 0) goto loc_BEB4;
  7437.  
  7438. 0000be74 Cond = (R0 >> 8) - R1;
  7439. 0000be78 if (Cond < 0) goto loc_BE84;
  7440.  
  7441. 0000be7c R3 = 0;
  7442. 0000be80 goto loc_BF08;
  7443.  
  7444. 0000be84 loc_BE84:
  7445. 0000be84 Cond = (R0 >> 7) - R1;
  7446. 0000be88 if (Cond < 0) goto loc_BE8C;
  7447.  
  7448. 0000be88 R0 = R0 - (R1 << 7);
  7449.  
  7450. 0000be8c loc_BE8C:
  7451. 0000be8c R2 = R2 + R2;
  7452. 0000be90 Cond = (R0 >> 6) - R1;
  7453. 0000be94 if (Cond < 0) goto loc_BE98;
  7454.  
  7455. 0000be94 R0 = R0 - (R1 << 6);
  7456.  
  7457. 0000be98 loc_BE98:
  7458. 0000be98 R2 = R2 + R2;
  7459. 0000be9c Cond = (R0 >> 5) - R1;
  7460. 0000bea0 if (Cond < 0) goto loc_BEA4;
  7461.  
  7462. 0000bea0 R0 = R0 - (R1 << 5);
  7463.  
  7464. 0000bea4 loc_BEA4:
  7465. 0000bea4 R2 = R2 + R2;
  7466. 0000bea8 Cond = (R0 >> 4) - R1;
  7467. 0000beac if (Cond < 0) goto loc_BEB0;
  7468.  
  7469. 0000beac R0 = R0 - (R1 << 4);
  7470.  
  7471. 0000beb0 loc_BEB0:
  7472. 0000beb0 R2 = R2 + R2;
  7473.  
  7474. 0000beb4 loc_BEB4:
  7475. 0000beb4 Cond = (R0 >> 3) - R1;
  7476. 0000beb8 if (Cond < 0) goto loc_BEBC;
  7477.  
  7478. 0000beb8 R0 = R0 - (R1 << 3);
  7479.  
  7480. 0000bebc loc_BEBC:
  7481. 0000bebc R2 = R2 + R2;
  7482. 0000bec0 Cond = (R0 >> 2) - R1;
  7483. 0000bec4 if (Cond < 0) goto loc_BEC8;
  7484.  
  7485. 0000bec4 R0 = R0 - (R1 << 2);
  7486.  
  7487. 0000bec8 loc_BEC8:
  7488. 0000bec8 Cond = R2 + R2;
  7489. 0000bec8 R2 = R2 + R2;
  7490. 0000becc Cond = (R0 >> 1) - R1;
  7491. 0000bed0 if (Cond < 0) goto loc_BED4;
  7492.  
  7493. 0000bed0 R0 = R0 - (R1 << 1);
  7494.  
  7495. 0000bed4 loc_BED4:
  7496. 0000bed4 R2 = R2 + R2;
  7497.  
  7498. 0000bed8 loc_BED8:
  7499. 0000bed8 Cond = R0 - R1;
  7500. 0000bedc if (Cond >= 0) goto loc_BEE0;
  7501.  
  7502.  
  7503. 0000bee0 loc_BEE0:
  7504. 0000bee4 return R2 + R2;
  7505.  
  7506. 0000bee8 loc_BEE8:
  7507. 0000bee8 Cond = R1 & 0x80000000;
  7508. 0000bee8 R2 = R1 & 0x80000000;
  7509. 0000beec if (Cond >= 0) goto loc_BEF0;
  7510.  
  7511. 0000beec R1 = 0 - R1;
  7512.  
  7513. 0000bef0 loc_BEF0:
  7514. 0000bef0 Cond = R2 ^ R0 >> 0x20;
  7515. 0000bef0 R3 = R2 ^ R0 >> 0x20;
  7516. 0000bef4 if (Cond < 0) goto loc_BEF8;
  7517.  
  7518. 0000bef4 R0 = 0 - R0;
  7519.  
  7520. 0000bef8 loc_BEF8:
  7521. 0000bef8 Cond = (R0 >> 4) - R1;
  7522. 0000befc if (Cond < 0) goto loc_BF78;
  7523.  
  7524. 0000bf00 Cond = (R0 >> 8) - R1;
  7525. 0000bf04 if (Cond < 0) goto loc_BF48;
  7526.  
  7527. 0000bf08 loc_BF08:
  7528. 0000bf08 R1 = R1 << 6;
  7529. 0000bf0c Cond = (R0 >> 8) - R1;
  7530. 0000bf10 R2 = R2 | 0xfc000000;
  7531. 0000bf14 if (Cond < 0) goto loc_BF48;
  7532.  
  7533. 0000bf18 R1 = R1 << 6;
  7534. 0000bf1c Cond = (R0 >> 8) - R1;
  7535. 0000bf20 R2 = R2 | 0x3f00000;
  7536. 0000bf24 if (Cond < 0) goto loc_C748;
  7537.  
  7538. 0000bf28 R1 = R1 << 6;
  7539. 0000bf2c Cond = (R0 >> 8) - R1;
  7540. 0000bf30 R2 = R2 | 0xfc000;
  7541. 0000bf34 if (Cond < 0) goto loc_BF38;
  7542.  
  7543. 0000bf34 R1 = R1 << 6;
  7544.  
  7545. 0000bf38 loc_BF38:
  7546. 0000bf38 if (Cond < 0) goto loc_BF3C;
  7547.  
  7548. 0000bf38 R2 = R2 | 0x3f00;
  7549.  
  7550. 0000bf3c loc_BF3C:
  7551. 0000bf3c Cond = 0 - R1;
  7552. 0000bf40 if (Cond >= 0) goto loc_BFBC;
  7553.  
  7554. 0000bf44 loc_BF44:
  7555. 0000bf44 if (Cond < 0) goto loc_BF48;
  7556.  
  7557. 0000bf44 R1 = R1 >> 6;
  7558.  
  7559. 0000bf48 loc_BF48:
  7560.  
  7561. 0000bf48 loc_BF48:
  7562. 0000bf48 Cond = (R0 >> 7) - R1;
  7563. 0000bf4c if (Cond < 0) goto loc_BF50;
  7564.  
  7565. 0000bf4c R0 = R0 - (R1 << 7);
  7566.  
  7567. 0000bf50 loc_BF50:
  7568. 0000bf50 R2 = R2 + R2;
  7569. 0000bf54 Cond = (R0 >> 6) - R1;
  7570. 0000bf58 if (Cond < 0) goto loc_BF5C;
  7571.  
  7572. 0000bf58 R0 = R0 - (R1 << 6);
  7573.  
  7574. 0000bf5c loc_BF5C:
  7575. 0000bf5c R2 = R2 + R2;
  7576. 0000bf60 Cond = (R0 >> 5) - R1;
  7577. 0000bf64 if (Cond < 0) goto loc_BF68;
  7578.  
  7579. 0000bf64 R0 = R0 - (R1 << 5);
  7580.  
  7581. 0000bf68 loc_BF68:
  7582. 0000bf68 R2 = R2 + R2;
  7583. 0000bf6c Cond = (R0 >> 4) - R1;
  7584. 0000bf70 if (Cond < 0) goto loc_BF74;
  7585.  
  7586. 0000bf70 R0 = R0 - (R1 << 4);
  7587.  
  7588. 0000bf74 loc_BF74:
  7589. 0000bf74 R2 = R2 + R2;
  7590.  
  7591. 0000bf78 loc_BF78:
  7592. 0000bf78 Cond = (R0 >> 3) - R1;
  7593. 0000bf7c if (Cond < 0) goto loc_BF80;
  7594.  
  7595. 0000bf7c R0 = R0 - (R1 << 3);
  7596.  
  7597. 0000bf80 loc_BF80:
  7598. 0000bf80 R2 = R2 + R2;
  7599. 0000bf84 Cond = (R0 >> 2) - R1;
  7600. 0000bf88 if (Cond < 0) goto loc_BF8C;
  7601.  
  7602. 0000bf88 R0 = R0 - (R1 << 2);
  7603.  
  7604. 0000bf8c loc_BF8C:
  7605. 0000bf8c Cond = R2 + R2;
  7606. 0000bf8c R2 = R2 + R2;
  7607. 0000bf90 if (Cond >= 0) goto loc_BF44;
  7608.  
  7609. 0000bf94 Cond = (R0 >> 1) - R1;
  7610. 0000bf98 if (Cond < 0) goto loc_BF9C;
  7611.  
  7612. 0000bf98 R0 = R0 - (R1 << 1);
  7613.  
  7614. 0000bf9c loc_BF9C:
  7615. 0000bf9c R2 = R2 + R2;
  7616. 0000bfa0 Cond = R0 - R1;
  7617. 0000bfa0 R1 = R0 - R1;
  7618. 0000bfa4 if (Cond >= 0) goto loc_BFA8;
  7619.  
  7620. 0000bfa4 R1 = R0;
  7621.  
  7622. 0000bfa8 loc_BFA8:
  7623. 0000bfa8 R0 = R2 + R2;
  7624. 0000bfac Cond = R3 >> 0x1f;
  7625. 0000bfb0 if (Cond >= 0) goto loc_BFB4;
  7626.  
  7627. 0000bfb0 R0 = 0 - R0;
  7628.  
  7629. 0000bfb4 loc_BFB4:
  7630. 0000bfb4 if (Cond < 0) goto loc_BFB8;
  7631.  
  7632.  
  7633. 0000bfb8 loc_BFB8:
  7634. 0000bfb8 return R0;
  7635.  
  7636. 0000bfbc loc_BFBC:
  7637. 0000bfbc Cond = R3 >> 0x1f;
  7638. 0000bfc0 if (Cond >= 0) goto loc_BFC4;
  7639.  
  7640. 0000bfc0 R0 = 0 - R0;
  7641.  
  7642. 0000bfc4 loc_BFC4:
  7643. 0000bfc4 /* push LR */
  7644. 0000bfc4 /* push R0 */
  7645. 0000bfcc /* Low-level instruction of type 2 */
  7646. 0000bfd0 /* pop */
  7647. 0000bfd0 /* pop */
  7648. 0000bfd4 return 0;
  7649.  
  7650. 0000bfd8 sub_BFD8:
  7651. 0000bfd8 /* Low-level instruction of type 2 */
  7652. 0000bfdc R0 = sub_CE14(R0, R1, R2, R3);
  7653. 0000bfe0 /* push R1 */
  7654. 0000bfe0 /* push R0 */
  7655. 0000bfe4 sub_CF70(R0, R1, R2, R3);
  7656. 0000bfe8 /* pop R0 */
  7657. 0000bfe8 /* pop R1 */
  7658. 0000bfec /* Low-level instruction of type 46 */
  7659. 0000bff0 /* push R3 */
  7660. 0000bff0 /* push R2 */
  7661. 0000bff0 /* push R1 */
  7662. 0000bff0 /* push R0 */
  7663. 0000bff4 sub_CF7C(R0, R1, R2, R3);
  7664. 0000bff8 /* pop */
  7665. 0000bff8 /* pop */
  7666. 0000bff8 /* pop */
  7667. 0000bff8 /* pop */
  7668. 0000c004 Cond = off_DF0C. + PC & 1;
  7669. 0000c008 /* Low-level instruction of type 44 */
  7670. 0000c00c if (Cond != 0) goto loc_C010;
  7671.  
  7672. 0000c040 sub_C040:
  7673. 0000c040 /* Low-level instruction of type 43 */
  7674. 0000c042 R5 = * (R0 + 0x34);
  7675. 0000c044 Cond = R0;
  7676. 0000c044 R4 = R0;
  7677. 0000c046 R0 = * (R0 + 0x18);
  7678. 0000c048 Cond = 0x30;
  7679. 0000c048 R6 = 0x30;
  7680. 0000c04a Cond = R0 << 0x1b;
  7681. 0000c04c if (Cond < 0) goto loc_C050;
  7682.  
  7683. 0000c04e Cond = 0x20;
  7684. 0000c04e R6 = 0x20;
  7685.  
  7686. 0000c050 loc_C050:
  7687. 0000c050 Cond = R0 << 0x1f;
  7688. 0000c052 if (Cond != 0) goto locret_C068;
  7689.  
  7690. 0000c054 goto loc_C064;
  7691.  
  7692. 0000c056 loc_C056:
  7693. 0000c05a Cond = R6;
  7694. 0000c05c /* Low-level instruction of type 47 */
  7695. 0000c05e R0 = * (R4 + 0x3c);
  7696. 0000c060 Cond = R0 + 1;
  7697. 0000c062 * (R4 + 0x3c) = R0 + 1;
  7698.  
  7699. 0000c064 loc_C064:
  7700. 0000c064 Cond = R5 - 1;
  7701. 0000c064 R5 = R5 - 1;
  7702. 0000c066 if (Cond >= 0) goto loc_C056;
  7703.  
  7704. 0000c06a sub_C06A:
  7705. 0000c06a /* Low-level instruction of type 43 */
  7706. 0000c06c R5 = * (R0 + 0x34);
  7707. 0000c06e Cond = R0;
  7708. 0000c06e R4 = R0;
  7709. 0000c070 R0 = * (R0 + 0x18);
  7710. 0000c072 Cond = R0 << 0x1f;
  7711. 0000c074 if (Cond == 0) goto locret_C08A;
  7712.  
  7713. 0000c076 goto loc_C086;
  7714.  
  7715. 0000c078 loc_C078:
  7716. 0000c07c Cond = 0x20;
  7717. 0000c07e /* Low-level instruction of type 47 */
  7718. 0000c080 R0 = * (R4 + 0x3c);
  7719. 0000c082 Cond = R0 + 1;
  7720. 0000c084 * (R4 + 0x3c) = R0 + 1;
  7721.  
  7722. 0000c086 loc_C086:
  7723. 0000c086 Cond = R5 - 1;
  7724. 0000c086 R5 = R5 - 1;
  7725. 0000c088 if (Cond >= 0) goto loc_C078;
  7726.  
  7727. 0000c08c sub_C08C:
  7728. 0000c08c R1 = * (R1 + 0x1c);
  7729. 0000c08e Cond = R1 << 0x15;
  7730. 0000c090 if (Cond >= 0) goto loc_C098;
  7731.  
  7732. 0000c092 Cond = R0 << 0x18;
  7733. 0000c092 R0 = R0 << 0x18;
  7734. 0000c094 Cond = R0 >> 0x18;
  7735. 0000c094 R0 = R0 >> 0x18;
  7736.  
  7737. 0000c096 locret_C096:
  7738. 0000c096 return R0;
  7739.  
  7740. 0000c098 loc_C098:
  7741. 0000c098 Cond = R1 << 0x17;
  7742. 0000c09a if (Cond >= 0) goto locret_C096;
  7743.  
  7744. 0000c09c Cond = R0 << 0x10;
  7745. 0000c09c R0 = R0 << 0x10;
  7746. 0000c09e Cond = R0 >> 0x10;
  7747. 0000c0a0 return R0 >> 0x10;
  7748.  
  7749. 0000c0a2 sub_C0A2:
  7750. 0000c0a2 R1 = * (R1 + 0x18);
  7751. 0000c0a4 Cond = R1 << 0x15;
  7752. 0000c0a6 if (Cond >= 0) goto loc_C0AE;
  7753.  
  7754. 0000c0a8 R0 = R0 & 0xff;
  7755.  
  7756. 0000c0ac locret_C0AC:
  7757. 0000c0ac return R0;
  7758.  
  7759. 0000c0ae loc_C0AE:
  7760. 0000c0ae Cond = R1 << 0x17;
  7761. 0000c0b0 if (Cond >= 0) goto locret_C0AC;
  7762.  
  7763. 0000c0b6 return R0 & 0xffff;
  7764.  
  7765. 0000c0b8 sub_C0B8:
  7766. 0000c0b8 /* Low-level instruction of type 43 */
  7767. 0000c0ba Cond = R0;
  7768. 0000c0ba R5 = R0;
  7769. 0000c0bc R0 = * (R0 + 0x18);
  7770. 0000c0be Cond = R1;
  7771. 0000c0be R6 = R1;
  7772. 0000c0c0 Cond = R0 << 0x1a;
  7773. 0000c0c2 if (Cond >= 0) goto loc_C0DC;
  7774.  
  7775. 0000c0c4 R0 = * (R5 + 0x38);
  7776. 0000c0c6 Cond = 0;
  7777. 0000c0c6 R4 = 0;
  7778. 0000c0c8 goto loc_C0CC;
  7779.  
  7780. 0000c0ca loc_C0CA:
  7781. 0000c0ca Cond = R4 + 1;
  7782. 0000c0ca R4 = R4 + 1;
  7783.  
  7784. 0000c0cc loc_C0CC:
  7785. 0000c0cc Cond = R0 - R4;
  7786. 0000c0ce if (Cond <= 0) goto loc_C0EC;
  7787.  
  7788. 0000c0d0 Cond = R4 - R2;
  7789. 0000c0d2 if (Cond < 0) goto loc_C0CA;
  7790.  
  7791. 0000c0d6 Cond = * (R6 + R4);
  7792. 0000c0d8 if (Cond != 0) goto loc_C0CA;
  7793.  
  7794. 0000c0da goto loc_C0EC;
  7795.  
  7796. 0000c0dc loc_C0DC:
  7797. 0000c0dc Cond = 0;
  7798. 0000c0dc R4 = 0;
  7799. 0000c0de goto loc_C0E2;
  7800.  
  7801. 0000c0e0 loc_C0E0:
  7802. 0000c0e0 Cond = R4 + 1;
  7803. 0000c0e0 R4 = R4 + 1;
  7804.  
  7805. 0000c0e2 loc_C0E2:
  7806. 0000c0e2 Cond = R4 - R2;
  7807. 0000c0e4 if (Cond < 0) goto loc_C0E0;
  7808.  
  7809. 0000c0e8 Cond = * (R6 + R4);
  7810. 0000c0ea if (Cond != 0) goto loc_C0E0;
  7811.  
  7812. 0000c1cc sub_C1CC:
  7813. 0000c1cc /* Low-level instruction of type 43 */
  7814. 0000c1ce Cond = R1;
  7815. 0000c1ce R5 = R1;
  7816. 0000c1d0 /* Low-level instruction of type 43 */
  7817. 0000c1d2 Cond = R2;
  7818. 0000c1d2 R0 = R2;
  7819. 0000c1d8 R1 = off_20. + PC;
  7820. 0000c1da Cond = R5 - 0x58;
  7821. 0000c1dc if (Cond == 0) goto loc_C1E0;
  7822.  
  7823. 0000c1de Cond = R1 - 0x11;
  7824. 0000c1de R1 = R1 - 0x11;
  7825.  
  7826. 0000c1e0 loc_C1E0:
  7827. 0000c1e0 var_2C = R1;
  7828. 0000c1e4 R1 = * (var_28 + 0x18);
  7829. 0000c1e6 Cond = R1 << 0x18;
  7830. 0000c1e8 if (Cond >= 0) goto loc_C1F0;
  7831.  
  7832. 0000c1ea Cond = R0;
  7833. 0000c1ea R4 = R0;
  7834. 0000c1ec Cond = R3;
  7835. 0000c1ec R6 = R3;
  7836. 0000c1ee goto loc_C1FA;
  7837.  
  7838. 0000c1f0 loc_C1F0:
  7839. 0000c1f2 Cond = 0;
  7840. 0000c1f2 R6 = 0;
  7841. 0000c1f4 R0 = sub_C0A2(R0, var_28, R2, R3);
  7842. 0000c1f8 Cond = R0;
  7843. 0000c1f8 R4 = R0;
  7844.  
  7845. 0000c1fa loc_C1FA:
  7846. 0000c1fa Cond = 0;
  7847. 0000c1fc var_50 = 0;
  7848. 0000c200 /* Low-level instruction of type 44 */
  7849. 0000c202 R0 = * (var_28 + 0x18);
  7850. 0000c204 Cond = R0 << 0x1c;
  7851. 0000c206 if (Cond >= 0) goto loc_C230;
  7852.  
  7853. 0000c208 Cond = R5 - 0x70;
  7854. 0000c20a if (Cond != 0) goto loc_C214;
  7855.  
  7856. 0000c20c Cond = 1;
  7857. 0000c20e /* Low-level instruction of type 44 */
  7858. 0000c210 var_50 = 1;
  7859. 0000c212 goto loc_C234;
  7860.  
  7861. 0000c214 loc_C214:
  7862. 0000c214 Cond = 0;
  7863. 0000c214 R3 = 0;
  7864. 0000c216 Cond = R6;
  7865. 0000c216 R1 = R6;
  7866. 0000c218 Cond = R4;
  7867. 0000c218 R0 = R4;
  7868. 0000c21a Cond = R1 ^ R3;
  7869. 0000c21a R1 = R1 ^ R3;
  7870. 0000c21c Cond = R0 ^ R3;
  7871. 0000c21c R0 = R0 ^ R3;
  7872. 0000c21e Cond = R0 | R1;
  7873. 0000c220 if (Cond == 0) goto loc_C242;
  7874.  
  7875. 0000c222 Cond = R5 - 0x78;
  7876. 0000c224 /* Low-level instruction of type 44 */
  7877. 0000c226 if (Cond == 0) goto loc_C22A;
  7878.  
  7879. 0000c228 /* Low-level instruction of type 44 */
  7880.  
  7881. 0000c22a loc_C22A:
  7882. 0000c22a Cond = 2;
  7883. 0000c22c var_50 = 2;
  7884. 0000c22e goto loc_C242;
  7885.  
  7886. 0000c230 loc_C230:
  7887. 0000c230 Cond = R5 - 0x70;
  7888. 0000c232 if (Cond != 0) goto loc_C242;
  7889.  
  7890. 0000c234 loc_C234:
  7891. 0000c234 Cond = 0x20;
  7892. 0000c234 R1 = 0x20;
  7893. 0000c236 Cond = R0 | R1;
  7894. 0000c23a * (var_28 + 0x18) = R0 | R1;
  7895. 0000c23e Cond = 8;
  7896. 0000c240 * (var_28 + 0x38) = 8;
  7897.  
  7898. 0000c242 loc_C242:
  7899. 0000c242 Cond = 0;
  7900. 0000c242 R5 = 0;
  7901. 0000c244 goto loc_C25C;
  7902.  
  7903. 0000c246 loc_C246:
  7904. 0000c248 Cond = R4 << 0x1c;
  7905. 0000c248 R0 = R4 << 0x1c;
  7906. 0000c24a Cond = R4 >> 4;
  7907. 0000c24a R4 = R4 >> 4;
  7908. 0000c24c Cond = R0 >> 0x1c;
  7909. 0000c252 * (& var_4C + R5) = * (var_2C + (R0 >> 0x1c));
  7910. 0000c254 Cond = R6 << 0x1c;
  7911. 0000c254 R0 = R6 << 0x1c;
  7912. 0000c256 Cond = R5 + 1;
  7913. 0000c256 R5 = R5 + 1;
  7914. 0000c258 Cond = R4 | R0;
  7915. 0000c258 R4 = R4 | R0;
  7916. 0000c25a Cond = R6 >> 4;
  7917. 0000c25a R6 = R6 >> 4;
  7918.  
  7919. 0000c25c loc_C25C:
  7920. 0000c25c Cond = 0;
  7921. 0000c25c R3 = 0;
  7922. 0000c25e Cond = R6;
  7923. 0000c25e R1 = R6;
  7924. 0000c260 Cond = R4;
  7925. 0000c260 R0 = R4;
  7926. 0000c262 Cond = R1 ^ R3;
  7927. 0000c262 R1 = R1 ^ R3;
  7928. 0000c264 Cond = R0 ^ R3;
  7929. 0000c264 R0 = R0 ^ R3;
  7930. 0000c266 Cond = R0 | R1;
  7931. 0000c268 if (Cond != 0) goto loc_C246;
  7932.  
  7933. 0000c294 sub_C294:
  7934. 0000c294 /* Low-level instruction of type 43 */
  7935. 0000c296 Cond = R0;
  7936. 0000c296 R7 = R0;
  7937. 0000c298 Cond = R2;
  7938. 0000c298 R0 = R2;
  7939. 0000c29a R1 = * (R7 + 0x18);
  7940. 0000c29e Cond = R1 << 0x18;
  7941. 0000c2a0 if (Cond >= 0) goto loc_C2A8;
  7942.  
  7943. 0000c2a2 Cond = R0;
  7944. 0000c2a2 R4 = R0;
  7945. 0000c2a4 Cond = R3;
  7946. 0000c2a4 R6 = R3;
  7947. 0000c2a6 goto loc_C2B2;
  7948.  
  7949. 0000c2a8 loc_C2A8:
  7950. 0000c2a8 Cond = 0;
  7951. 0000c2a8 R6 = 0;
  7952. 0000c2aa Cond = R7;
  7953. 0000c2ac R0 = sub_C0A2(R0, R7, R2, R3);
  7954. 0000c2b0 Cond = R0;
  7955. 0000c2b0 R4 = R0;
  7956.  
  7957. 0000c2b2 loc_C2B2:
  7958. 0000c2b2 /* Low-level instruction of type 44 */
  7959. 0000c2b4 var_18 = R0;
  7960. 0000c2b6 Cond = 0;
  7961. 0000c2b8 var_3C = 0;
  7962. 0000c2ba R0 = * (R7 + 0x18);
  7963. 0000c2bc Cond = R0 << 0x1c;
  7964. 0000c2be if (Cond >= 0) goto loc_C2E0;
  7965.  
  7966. 0000c2c0 Cond = R0 << 0x1a;
  7967. 0000c2c0 R0 = R0 << 0x1a;
  7968. 0000c2c2 if (Cond < 0) goto loc_C2D2;
  7969.  
  7970. 0000c2c4 Cond = 0;
  7971. 0000c2c4 R3 = 0;
  7972. 0000c2c6 Cond = R6;
  7973. 0000c2c6 R1 = R6;
  7974. 0000c2c8 Cond = R4;
  7975. 0000c2c8 R0 = R4;
  7976. 0000c2ca Cond = R1 ^ R3;
  7977. 0000c2ca R1 = R1 ^ R3;
  7978. 0000c2cc Cond = R0 ^ R3;
  7979. 0000c2cc R0 = R0 ^ R3;
  7980. 0000c2ce Cond = R0 | R1;
  7981. 0000c2ce R0 = R0 | R1;
  7982. 0000c2d0 if (Cond == 0) goto loc_C2E0;
  7983.  
  7984. 0000c2d2 loc_C2D2:
  7985. 0000c2d2 /* Low-level instruction of type 44 */
  7986. 0000c2d4 var_18 = R0;
  7987. 0000c2d6 Cond = 1;
  7988. 0000c2d8 var_3C = 1;
  7989. 0000c2da R0 = * (R7 + 0x38);
  7990. 0000c2dc Cond = R0 - 1;
  7991. 0000c2de * (R7 + 0x38) = R0 - 1;
  7992.  
  7993. 0000c2e0 loc_C2E0:
  7994. 0000c2e0 Cond = 0;
  7995. 0000c2e0 R5 = 0;
  7996. 0000c2e2 goto loc_C2F8;
  7997.  
  7998. 0000c2e4 loc_C2E4:
  7999. 0000c2e4 Cond = R4 << 0x1d;
  8000. 0000c2e4 R0 = R4 << 0x1d;
  8001. 0000c2e8 Cond = R0 >> 0x1d;
  8002. 0000c2e8 R0 = R0 >> 0x1d;
  8003. 0000c2ea Cond = R0 + 0x30;
  8004. 0000c2ec * (& var_38 + R5) = R0 + 0x30;
  8005. 0000c2ee Cond = R6 << 0x1d;
  8006. 0000c2ee R0 = R6 << 0x1d;
  8007. 0000c2f0 Cond = R4 >> 3;
  8008. 0000c2f0 R4 = R4 >> 3;
  8009. 0000c2f2 Cond = R5 + 1;
  8010. 0000c2f2 R5 = R5 + 1;
  8011. 0000c2f4 Cond = R4 | R0;
  8012. 0000c2f4 R4 = R4 | R0;
  8013. 0000c2f6 Cond = R6 >> 3;
  8014. 0000c2f6 R6 = R6 >> 3;
  8015.  
  8016. 0000c2f8 loc_C2F8:
  8017. 0000c2f8 Cond = 0;
  8018. 0000c2f8 R3 = 0;
  8019. 0000c2fa Cond = R6;
  8020. 0000c2fa R1 = R6;
  8021. 0000c2fc Cond = R4;
  8022. 0000c2fc R0 = R4;
  8023. 0000c2fe Cond = R1 ^ R3;
  8024. 0000c2fe R1 = R1 ^ R3;
  8025. 0000c300 Cond = R0 ^ R3;
  8026. 0000c300 R0 = R0 ^ R3;
  8027. 0000c302 Cond = R0 | R1;
  8028. 0000c304 if (Cond != 0) goto loc_C2E4;
  8029.  
  8030. 0000c324 sub_C324:
  8031. 0000c324 /* Low-level instruction of type 43 */
  8032. 0000c326 Cond = R2;
  8033. 0000c326 R0 = R2;
  8034. 0000c328 Cond = 0;
  8035. 0000c32c Cond = R1 - 0x75;
  8036. 0000c32e R1 = var_20;
  8037. 0000c330 /* Low-level instruction of type 44 */
  8038. 0000c332 if (Cond == 0) goto loc_C358;
  8039.  
  8040. 0000c334 R0 = sub_C08C(R0, R1, R2, R3);
  8041. 0000c338 Cond = R0;
  8042. 0000c33a if (Cond >= 0) goto loc_C342;
  8043.  
  8044. 0000c33c R0 = - R0;
  8045. 0000c33e /* Low-level instruction of type 44 */
  8046. 0000c340 goto loc_C354;
  8047.  
  8048. 0000c342 loc_C342:
  8049. 0000c344 R1 = * (var_20 + 0x18);
  8050. 0000c346 Cond = R1 << 0x1e;
  8051. 0000c348 if (Cond >= 0) goto loc_C34E;
  8052.  
  8053. 0000c34a /* Low-level instruction of type 44 */
  8054. 0000c34c goto loc_C354;
  8055.  
  8056. 0000c34e loc_C34E:
  8057. 0000c34e Cond = R1 << 0x1d;
  8058. 0000c34e R1 = R1 << 0x1d;
  8059. 0000c350 if (Cond >= 0) goto loc_C35C;
  8060.  
  8061. 0000c352 /* Low-level instruction of type 44 */
  8062.  
  8063. 0000c354 loc_C354:
  8064. 0000c354 Cond = 1;
  8065. 0000c356 goto loc_C35C;
  8066.  
  8067. 0000c358 loc_C358:
  8068. 0000c358 R0 = sub_C0A2(R0, R1, R2, R3);
  8069.  
  8070. 0000c35c loc_C35C:
  8071. 0000c35c Cond = 0;
  8072. 0000c35c R4 = 0;
  8073. 0000c35e R7 = & var_40;
  8074. 0000c360 goto loc_C36C;
  8075.  
  8076. 0000c362 loc_C362:
  8077. 0000c362 /* Low-level instruction of type 46 */
  8078. 0000c366 Cond = R1 + 0x30;
  8079. 0000c366 R1 = R1 + 0x30;
  8080. 0000c368 * (R7 + R4) = R1;
  8081. 0000c36a Cond = R4 + 1;
  8082. 0000c36a R4 = R4 + 1;
  8083.  
  8084. 0000c36c loc_C36C:
  8085. 0000c36c Cond = R0;
  8086. 0000c36e if (Cond != 0) goto loc_C362;
  8087.  
  8088. 0000c394 sub_C394:
  8089. 0000c394 /* Low-level instruction of type 43 */
  8090. 0000c396 Cond = R2;
  8091. 0000c396 R6 = R2;
  8092. 0000c398 /* Low-level instruction of type 43 */
  8093. 0000c39a Cond = 0;
  8094. 0000c39e Cond = R3;
  8095. 0000c39e R7 = R3;
  8096. 0000c3a0 Cond = R1 - 0x75;
  8097. 0000c3a2 /* Low-level instruction of type 44 */
  8098. 0000c3a4 var_4C = 0;
  8099. 0000c3a6 if (Cond == 0) goto loc_C3D2;
  8100.  
  8101. 0000c3a8 Cond = 0;
  8102. 0000c3a8 R3 = 0;
  8103. 0000c3aa Cond = R7;
  8104. 0000c3aa R1 = R7;
  8105. 0000c3ac Cond = R6 - R3;
  8106. 0000c3ae Cond = R1 - R3;
  8107. 0000c3b0 if (Cond >= 0) goto loc_C3BC;
  8108.  
  8109. 0000c3b2 R6 = - R6;
  8110. 0000c3b4 Cond = R2 - R2;
  8111. 0000c3b4 R2 = R2 - R2;
  8112. 0000c3b6 Cond = R2 - R7;
  8113. 0000c3b6 R7 = R2 - R7;
  8114. 0000c3b8 /* Low-level instruction of type 44 */
  8115. 0000c3ba goto loc_C3CE;
  8116.  
  8117. 0000c3bc loc_C3BC:
  8118. 0000c3be R0 = * (var_28 + 0x18);
  8119. 0000c3c0 Cond = R0 << 0x1e;
  8120. 0000c3c2 if (Cond >= 0) goto loc_C3C8;
  8121.  
  8122. 0000c3c4 /* Low-level instruction of type 44 */
  8123. 0000c3c6 goto loc_C3CE;
  8124.  
  8125. 0000c3c8 loc_C3C8:
  8126. 0000c3c8 Cond = R0 << 0x1d;
  8127. 0000c3ca if (Cond >= 0) goto loc_C3D2;
  8128.  
  8129. 0000c3cc /* Low-level instruction of type 44 */
  8130.  
  8131. 0000c3ce loc_C3CE:
  8132. 0000c3ce Cond = 1;
  8133. 0000c3d0 var_4C = 1;
  8134.  
  8135. 0000c3d2 loc_C3D2:
  8136. 0000c3d2 Cond = 0;
  8137. 0000c3d2 R4 = 0;
  8138. 0000c3d4 goto loc_C3EA;
  8139.  
  8140. 0000c3d6 loc_C3D6:
  8141. 0000c3d6 Cond = R7;
  8142. 0000c3d6 R1 = R7;
  8143. 0000c3d8 Cond = R6;
  8144. 0000c3d8 R0 = R6;
  8145. 0000c3da /* Low-level instruction of type 46 */
  8146. 0000c3e0 Cond = R2 + 0x30;
  8147. 0000c3e0 R2 = R2 + 0x30;
  8148. 0000c3e2 * (& var_48 + R4) = R2;
  8149. 0000c3e4 Cond = R4 + 1;
  8150. 0000c3e4 R4 = R4 + 1;
  8151. 0000c3e6 Cond = R0;
  8152. 0000c3e6 R6 = R0;
  8153. 0000c3e8 Cond = R1;
  8154. 0000c3e8 R7 = R1;
  8155.  
  8156. 0000c3ea loc_C3EA:
  8157. 0000c3ea Cond = 0;
  8158. 0000c3ea R3 = 0;
  8159. 0000c3ec Cond = R7;
  8160. 0000c3ec R1 = R7;
  8161. 0000c3ee Cond = R6;
  8162. 0000c3ee R0 = R6;
  8163. 0000c3f0 Cond = R1 ^ R3;
  8164. 0000c3f0 R1 = R1 ^ R3;
  8165. 0000c3f2 Cond = R0 ^ R3;
  8166. 0000c3f2 R0 = R0 ^ R3;
  8167. 0000c3f4 Cond = R0 | R1;
  8168. 0000c3f6 if (Cond != 0) goto loc_C3D6;
  8169.  
  8170. 0000c41c sub_C41C:
  8171. 0000c41c R2 = * (R0 + 0x18);
  8172. 0000c41e R0 = * (R0 + 0x3c);
  8173. 0000c420 Cond = R2 << 0x15;
  8174. 0000c422 if (Cond >= 0) goto loc_C428;
  8175.  
  8176. 0000c424 * R1 = R0;
  8177. 0000c426 return R0;
  8178.  
  8179. 0000c428 loc_C428:
  8180. 0000c428 Cond = R2 << 0x17;
  8181. 0000c42a if (Cond >= 0) goto loc_C430;
  8182.  
  8183. 0000c42c * R1 = R0;
  8184. 0000c42e return R0;
  8185.  
  8186. 0000c430 loc_C430:
  8187. 0000c430 Cond = R2 << 0x18;
  8188. 0000c432 if (Cond >= 0) goto loc_C43A;
  8189.  
  8190. 0000c434 Cond = R0 >> 0x1f;
  8191. 0000c436 /* Low-level instruction of type 34 */
  8192. 0000c438 return R0;
  8193.  
  8194. 0000c43a loc_C43A:
  8195. 0000c43a Cond = R2 << 0x19;
  8196. 0000c43c * R1 = R0;
  8197. 0000c43e return R0;
  8198.  
  8199. 0000c474 sub_C474:
  8200. 0000c474 R2 = * R1;
  8201. 0000c476 * R2 = R0;
  8202. 0000c478 Cond = R2 + 1;
  8203. 0000c47a * R1 = R2 + 1;
  8204. 0000c47c return R0;
  8205.  
  8206. 0000c4c0 sub_C4C0:
  8207. 0000c4c0 /* push LR */
  8208. 0000c4c0 /* push R5 */
  8209. 0000c4c0 /* push R4 */
  8210. 0000c4c4 Cond = R0 - 10;
  8211. 0000c4c4 R2 = R0 - 10;
  8212. 0000c4cc Cond = R1 - 0;
  8213. 0000c4cc R3 = R1 - 0;
  8214. 0000c4d0 LR = R0 >> 2 | R1 << 0x1e;
  8215. 0000c4d4 Cond = R0 - LR;
  8216. 0000c4d4 R0 = R0 - LR;
  8217. 0000c4d8 R1 = R1 - (R1 >> 2);
  8218. 0000c4e0 LR = R0 >> 4 | R1 << 0x1c;
  8219. 0000c4e4 Cond = R0 + LR;
  8220. 0000c4e4 R0 = R0 + LR;
  8221. 0000c4e8 R1 = R1 + (R1 >> 4);
  8222. 0000c4f0 LR = R0 >> 8 | R1 << 0x18;
  8223. 0000c4f4 Cond = R0 + LR;
  8224. 0000c4f4 R0 = R0 + LR;
  8225. 0000c4f8 R1 = R1 + (R1 >> 8);
  8226. 0000c500 LR = R0 >> 0x10 | R1 << 0x10;
  8227. 0000c504 Cond = R0 + LR;
  8228. 0000c504 R0 = R0 + LR;
  8229. 0000c508 R1 = R1 + (R1 >> 0x10);
  8230. 0000c50c Cond = R0 + R1;
  8231. 0000c510 R1 = R1 + 0;
  8232. 0000c518 R0 = R0 + R1 >> 3 | R1 << 0x1d;
  8233. 0000c51c R1 = R1 >> 3;
  8234. 0000c520 Cond = R0 + (R0 << 2);
  8235. 0000c520 R5 = R0 + (R0 << 2);
  8236. 0000c530 Cond = R5 + R5;
  8237. 0000c530 R5 = R5 + R5;
  8238. 0000c534 R4 = (R1 << 2 | R0 >> 0x1e) + R1 + R4;
  8239. 0000c538 Cond = R2 - R5;
  8240. 0000c538 R2 = R2 - R5;
  8241. 0000c53c Cond = R3 - R4;
  8242. 0000c544 /* pop */
  8243. 0000c544 /* pop */
  8244. 0000c544 /* pop */
  8245. 0000c548 if (Cond >= 0) goto loc_C54C;
  8246.  
  8247.  
  8248. 0000c54c loc_C54C:
  8249. 0000c54c if (Cond >= 0) goto loc_C550;
  8250.  
  8251. 0000c54c return R0;
  8252.  
  8253. 0000c550 loc_C550:
  8254. 0000c550 /* pop */
  8255. 0000c550 /* pop */
  8256. 0000c550 /* pop */
  8257. 0000c554 Cond = R0 + 1;
  8258. 0000c55c return R0 + 1;
  8259.  
  8260. 0000cd74 /* Low-level instruction of type 43 */
  8261. 0000cd76 Cond = R0;
  8262. 0000cd76 R5 = R0;
  8263. 0000cd78 Cond = R1;
  8264. 0000cd78 R4 = R1;
  8265. 0000cd7a Cond = R2;
  8266. 0000cd7a R6 = R2;
  8267. 0000cd7c goto loc_CD88;
  8268.  
  8269. 0000cd7e loc_CD7E:
  8270. 0000cd84 Cond = R4 + 1;
  8271. 0000cd84 R4 = R4 + 1;
  8272. 0000cd86 /* Low-level instruction of type 47 */
  8273.  
  8274. 0000cd88 loc_CD88:
  8275. 0000cd88 Cond = R4 - R6;
  8276. 0000cd8a if (Cond < 0) goto loc_CD7E;
  8277.  
  8278. 0000cd8e R1 = * R0;
  8279. 0000cd90 Cond = R1 + 1;
  8280. 0000cd92 * R0 = R1 + 1;
  8281. 0000cd96 return * R1;
  8282.  
  8283. 0000cde8 sub_CDE8:
  8284. 0000cde8 R1 = R0 - 10;
  8285. 0000cdfc R0 = R0 - (R0 >> 2) + (R0 >> 4) + (R0 >> 8) + (R0 >> 0x10) >> 3;
  8286. 0000ce00 R2 = R0 + (R0 << 2);
  8287. 0000ce04 Cond = R1 - (R2 << 1);
  8288. 0000ce04 R1 = R1 - (R2 << 1);
  8289. 0000ce08 if (Cond < 0) goto loc_CE0C;
  8290.  
  8291. 0000ce08 R0 = R0 + 1;
  8292.  
  8293. 0000ce0c loc_CE0C:
  8294. 0000ce0c if (Cond >= 0) goto loc_CE10;
  8295.  
  8296.  
  8297. 0000ce10 loc_CE10:
  8298. 0000ce10 return R0;
  8299.  
  8300. 0000ce14 sub_CE14:
  8301. 0000ce18 R0 = sub_CF8C(R0, R1, R2, R3);
  8302. 0000ce20 /* push LR */
  8303. 0000ce20 /* push R0 */
  8304. 0000ce24 R0 = sub_D004(R0, R1, R2, R3);
  8305. 0000ce28 Cond = R0;
  8306. 0000ce2c /* pop R0 */
  8307. 0000ce2c /* pop */
  8308. 0000ce30 Cond = R0;
  8309. 0000ce34 * R0 = R0;
  8310. 0000ce38 return R0;
  8311.  
  8312. 0000cf70 sub_CF70:
  8313. 0000cf78 return -1;
  8314.  
  8315. 0000cf7c sub_CF7C:
  8316. 0000cf7c /* push LR */
  8317. 0000cf7c /* push R4 */
  8318. 0000cf80 /* Low-level instruction of type 2 */
  8319. 0000cf84 /* pop */
  8320. 0000cf84 /* pop */
  8321. 0000cf88 return R0;
  8322.  
  8323. 0000cf8c sub_CF8C:
  8324. 0000cf90 R0 = off_D0E9.(R0, R1, R2, R3);
  8325. 0000cf98 Cond = R0;
  8326. 0000cf98 R5 = R0;
  8327. 0000cfa4 R0 = R0 & ~ 7;
  8328. 0000cfb0 /* push LR */
  8329. 0000cfb0 /* push R5 */
  8330. 0000cfb4 R0 = sub_2A10(R0, SP, R2, R10);
  8331. 0000cfb8 /* pop R5 */
  8332. 0000cfb8 /* pop */
  8333. 0000cfd4 /* Low-level instruction of type 34 */
  8334. 0000cfd8 /* Low-level instruction of type 34 */
  8335. 0000cfdc /* Low-level instruction of type 34 */
  8336. 0000cfe0 /* Low-level instruction of type 34 */
  8337. 0000cfe8 return R0;
  8338.  
  8339. 0000d004 sub_D004:
  8340. 0000d008 return 0x81007df4;
  8341.  
  8342. 0000d014 sub_D014:
  8343. 0000d018 return 0x81007e04;
  8344.  
  8345. 0000d0f8 sub_D0F8:
  8346. 0000d0f8 Cond = R0 & 3;
  8347. 0000d0fc if (Cond != 0) goto loc_D100;
  8348.  
  8349. 0000d0fc Cond = R1 & 3;
  8350.  
  8351. 0000d100 loc_D100:
  8352. 0000d100 if (Cond != 0) goto loc_D164;
  8353.  
  8354. 0000d104 /* push LR */
  8355. 0000d108 LR = 0x1010101;
  8356.  
  8357. 0000d10c loc_D10C:
  8358. 0000d10c R2 = * (R0 + 4);
  8359. 0000d110 R3 = * (R1 + 4);
  8360. 0000d118 R12 = R2 - LR & ~ R2;
  8361. 0000d11c Cond = R12 & LR << 7;
  8362. 0000d11c R12 = R12 & LR << 7;
  8363. 0000d120 if (Cond != 0) goto loc_D124;
  8364.  
  8365. 0000d120 Cond = R2 - R3;
  8366.  
  8367. 0000d124 loc_D124:
  8368. 0000d124 if (Cond == 0) goto loc_D10C;
  8369.  
  8370. 0000d128 /* pop */
  8371. 0000d12c R0 = R3 << 0x18;
  8372. 0000d130 Cond = R0 - (R2 << 0x18);
  8373. 0000d130 R0 = R0 - (R2 << 0x18);
  8374. 0000d134 if (Cond != 0) goto loc_D138;
  8375.  
  8376. 0000d134 Cond = R12 & 0xff0;
  8377.  
  8378. 0000d138 loc_D138:
  8379. 0000d138 if (Cond != 0) goto loc_D15C;
  8380.  
  8381. 0000d13c R0 = R3 << 0x10;
  8382. 0000d140 Cond = R0 - (R2 << 0x10);
  8383. 0000d140 R0 = R0 - (R2 << 0x10);
  8384. 0000d144 if (Cond != 0) goto loc_D148;
  8385.  
  8386. 0000d144 Cond = R12 & 0xff00;
  8387.  
  8388. 0000d148 loc_D148:
  8389. 0000d148 if (Cond != 0) goto loc_D15C;
  8390.  
  8391. 0000d14c R0 = R3 << 8;
  8392. 0000d150 Cond = R0 - (R2 << 8);
  8393. 0000d154 if (Cond != 0) goto loc_D158;
  8394.  
  8395. 0000d154 Cond = R12 & 0xff0000;
  8396.  
  8397. 0000d158 loc_D158:
  8398. 0000d158 Cond = R3 - R2;
  8399. 0000d158 if (Cond != 0) goto loc_D15C;
  8400.  
  8401. 0000d158 R0 = R3 - R2;
  8402.  
  8403. 0000d15c loc_D15C:
  8404.  
  8405. 0000d15c loc_D15C:
  8406. 0000d15c if (Cond == 0) goto loc_D160;
  8407.  
  8408. 0000d15c R0 = R0 >> 1;
  8409.  
  8410. 0000d160 loc_D160:
  8411. 0000d160 return R0;
  8412.  
  8413. 0000d164 loc_D164:
  8414. 0000d164 R2 = * (R0 + 1);
  8415. 0000d168 R3 = * (R1 + 1);
  8416. 0000d16c Cond = R2 - 1;
  8417. 0000d170 if (Cond < 0) goto loc_D174;
  8418.  
  8419. 0000d170 Cond = R2 - R3;
  8420.  
  8421. 0000d174 loc_D174:
  8422. 0000d174 if (Cond != 0) goto loc_D18C;
  8423.  
  8424. 0000d178 R2 = * (R0 + 1);
  8425. 0000d17c R3 = * (R1 + 1);
  8426. 0000d180 Cond = R2 - 1;
  8427. 0000d184 if (Cond < 0) goto loc_D188;
  8428.  
  8429. 0000d184 Cond = R2 - R3;
  8430.  
  8431. 0000d188 loc_D188:
  8432. 0000d188 if (Cond == 0) goto loc_D164;
  8433.  
  8434. 0000d18c loc_D18C:
  8435. 0000d190 return R2 - R3;
  8436.  
  8437. 0000d198 sub_D198:
  8438. 0000d198 Cond = (R0 >> 4) - R1;
  8439. 0000d1a0 if (Cond < 0) goto sub_BE58[92];
  8440.  
  8441. 0000d1a4 Cond = (R0 >> 8) - R1;
  8442. 0000d1a8 if (Cond < 0) goto sub_BE58[44];
  8443.  
  8444. 0000d1b0 goto sub_BE58[176];
  8445.  
  8446. 0000d9a0 sub_D9A0:
  8447. 0000d9a0 /* Low-level instruction of type 89 */
  8448. 0000d9a4 Cond = R0 & 0x7000000;
  8449. 0000d9a8 R3 = (R0 & 0x7000000) >> 0x17;
  8450. 0000d9ac if (Cond == 0) goto loc_DA1C;
  8451.  
  8452. 0000d9b0 R10 = 0;
  8453.  
  8454. 0000d9b4 loc_D9B4:
  8455. 0000d9bc R1 = R0 >> 0 & 7;
  8456. 0000d9c0 Cond = R1 - 2;
  8457. 0000d9c4 if (Cond < 0) goto loc_DA10;
  8458.  
  8459. 0000d9c8 /* Low-level instruction of type 91 */
  8460. 0000d9cc /* Low-level instruction of type 286 */
  8461. 0000d9d0 /* Low-level instruction of type 89 */
  8462. 0000d9dc R4 = 0x3ff;
  8463. 0000d9e0 Cond = R4 & R1 >> 3;
  8464. 0000d9e0 R4 = R4 & R1 >> 3;
  8465. 0000d9e4 /* Low-level instruction of type 48 */
  8466. 0000d9e8 R7 = 0x7fff;
  8467. 0000d9ec Cond = R7 & R1 >> 13;
  8468. 0000d9ec R7 = R7 & R1 >> 13;
  8469.  
  8470. 0000d9f0 loc_D9F0:
  8471. 0000d9f0 R9 = R4;
  8472.  
  8473. 0000d9f4 loc_D9F4:
  8474. 0000d9fc /* Low-level instruction of type 91 */
  8475. 0000da00 Cond = R9 - 1;
  8476. 0000da00 R9 = R9 - 1;
  8477. 0000da04 if (Cond >= 0) goto loc_D9F4;
  8478.  
  8479. 0000da08 Cond = R7 - 1;
  8480. 0000da08 R7 = R7 - 1;
  8481. 0000da0c if (Cond >= 0) goto loc_D9F0;
  8482.  
  8483. 0000da10 loc_DA10:
  8484. 0000da10 R10 = R10 + 2;
  8485. 0000da14 Cond = R3 - R10;
  8486. 0000da18 if (Cond > 0) goto loc_D9B4;
  8487.  
  8488. 0000da1c loc_DA1C:
  8489. 0000da20 /* Low-level instruction of type 91 */
  8490. 0000da24 /* Low-level instruction of type 286 */
  8491. 0000da28 return R0;
  8492.  
  8493. 0000da2c sub_DA2C:
  8494. 0000da2c /* push LR */
  8495. 0000da2c /* push R12 */
  8496. 0000da2c /* push R11 */
  8497. 0000da2c /* push R10 */
  8498. 0000da2c /* push R9 */
  8499. 0000da2c /* push R8 */
  8500. 0000da2c /* push R7 */
  8501. 0000da2c /* push R6 */
  8502. 0000da2c /* push R5 */
  8503. 0000da2c /* push R4 */
  8504. 0000da2c /* push R3 */
  8505. 0000da2c /* push R2 */
  8506. 0000da2c /* push R1 */
  8507. 0000da2c /* push R0 */
  8508. 0000da44 /* Low-level instruction of type 44 */
  8509. 0000da48 /* Low-level instruction of type 91 */
  8510. 0000da4c /* Low-level instruction of type 91 */
  8511. 0000da50 /* Low-level instruction of type 267 */
  8512. 0000da54 /* pop R0 */
  8513. 0000da54 /* pop */
  8514. 0000da54 /* pop */
  8515. 0000da54 /* pop */
  8516. 0000da54 /* pop */
  8517. 0000da54 /* pop */
  8518. 0000da54 /* pop */
  8519. 0000da54 /* pop */
  8520. 0000da54 /* pop */
  8521. 0000da54 /* pop */
  8522. 0000da54 /* pop */
  8523. 0000da54 /* pop */
  8524. 0000da54 /* pop */
  8525. 0000da54 return R0;
  8526.  
  8527. 0000da60 sub_DA60:
  8528. 0000da60 /* push LR */
  8529. 0000da60 /* push R12 */
  8530. 0000da60 /* push R11 */
  8531. 0000da60 /* push R10 */
  8532. 0000da60 /* push R9 */
  8533. 0000da60 /* push R8 */
  8534. 0000da60 /* push R7 */
  8535. 0000da60 /* push R6 */
  8536. 0000da60 /* push R5 */
  8537. 0000da60 /* push R4 */
  8538. 0000da60 /* push R3 */
  8539. 0000da60 /* push R2 */
  8540. 0000da60 /* push R1 */
  8541. 0000da60 /* push R0 */
  8542. 0000da78 /* Low-level instruction of type 44 */
  8543. 0000da7c /* Low-level instruction of type 91 */
  8544. 0000da80 /* Low-level instruction of type 91 */
  8545. 0000da84 /* Low-level instruction of type 267 */
  8546. 0000da88 /* pop R0 */
  8547. 0000da88 /* pop */
  8548. 0000da88 /* pop */
  8549. 0000da88 /* pop */
  8550. 0000da88 /* pop */
  8551. 0000da88 /* pop */
  8552. 0000da88 /* pop */
  8553. 0000da88 /* pop */
  8554. 0000da88 /* pop */
  8555. 0000da88 /* pop */
  8556. 0000da88 /* pop */
  8557. 0000da88 /* pop */
  8558. 0000da88 /* pop */
  8559. 0000da88 return R0;
  8560.  
  8561. 0000da94 sub_DA94:
  8562. 0000da94 /* push LR */
  8563. 0000da94 /* push R11 */
  8564. 0000da94 /* push R10 */
  8565. 0000da94 /* push R9 */
  8566. 0000da94 /* push R7 */
  8567. 0000da94 /* push R5 */
  8568. 0000da94 /* push R4 */
  8569. 0000da98 sub_D9A0(R0, R1, R2, R3);
  8570. 0000daa0 /* Low-level instruction of type 91 */
  8571. 0000daa4 /* pop */
  8572. 0000daa4 /* pop */
  8573. 0000daa4 /* pop */
  8574. 0000daa4 /* pop */
  8575. 0000daa4 /* pop */
  8576. 0000daa4 /* pop */
  8577. 0000daa4 /* pop */
  8578. 0000daa8 return 0;
  8579.  
  8580. 0000daac sub_DAAC:
  8581. 0000daac /* push LR */
  8582. 0000daac /* push R12 */
  8583. 0000daac /* push R11 */
  8584. 0000daac /* push R10 */
  8585. 0000daac /* push R9 */
  8586. 0000daac /* push R8 */
  8587. 0000daac /* push R7 */
  8588. 0000daac /* push R6 */
  8589. 0000daac /* push R5 */
  8590. 0000daac /* push R4 */
  8591. 0000dab8 /* Low-level instruction of type 91 */
  8592. 0000dabc /* Low-level instruction of type 91 */
  8593. 0000dac0 /* Low-level instruction of type 267 */
  8594. 0000dac4 goto loc_DAD4;
  8595.  
  8596. 0000dac8 /* Low-level instruction of type 2 */
  8597. 0000dad0 /* Low-level instruction of type 267 */
  8598.  
  8599. 0000dad4 loc_DAD4:
  8600. 0000dad4 /* pop */
  8601. 0000dad4 /* pop */
  8602. 0000dad4 /* pop */
  8603. 0000dad4 /* pop */
  8604. 0000dad4 /* pop */
  8605. 0000dad4 /* pop */
  8606. 0000dad4 /* pop */
  8607. 0000dad4 /* pop */
  8608. 0000dad4 /* pop */
  8609. 0000dad4 /* pop */
  8610. 0000dad8 return R0;
  8611.  
  8612. 0000dbf0 sub_DBF0:
  8613. 0000dbf0 /* push LR */
  8614. 0000dbf0 /* push R4 */
  8615. 0000dbf4 Cond = R1;
  8616. 0000dbf8 if (Cond == 0) goto loc_DC28;
  8617.  
  8618. 0000dc00 Cond = * R1;
  8619. 0000dc04 if (Cond == 0) goto loc_DC28;
  8620.  
  8621. 0000dc14 Cond = sub_D0F8(PC + off_20., R1, R2, R3);
  8622. 0000dc18 if (Cond == 0) goto loc_DC28;
  8623.  
  8624. 0000dc1c /* pop */
  8625. 0000dc1c /* pop */
  8626. 0000dc20 Cond = 0;
  8627. 0000dc24 return 0;
  8628.  
  8629. 0000dc28 loc_DC28:
  8630. 0000dc30 /* pop */
  8631. 0000dc30 /* pop */
  8632. 0000dc34 return PC + off_20.;
  8633.  
  8634. 0000dc40 sub_DC40:
  8635. 0000dc40 /* push LR */
  8636. 0000dc40 /* push R4 */
  8637. 0000dc44 Cond = R1;
  8638. 0000dc48 if (Cond == 0) goto loc_DC78;
  8639.  
  8640. 0000dc50 Cond = * R1;
  8641. 0000dc54 if (Cond == 0) goto loc_DC78;
  8642.  
  8643. 0000dc64 Cond = sub_D0F8(PC + off_20., R1, R2, R3);
  8644. 0000dc68 if (Cond == 0) goto loc_DC78;
  8645.  
  8646. 0000dc6c /* pop */
  8647. 0000dc6c /* pop */
  8648. 0000dc70 Cond = 0;
  8649. 0000dc74 return 0;
  8650.  
  8651. 0000dc78 loc_DC78:
  8652. 0000dc80 /* pop */
  8653. 0000dc80 /* pop */
  8654. 0000dc84 return PC + off_20.;
  8655.  
  8656. 0000dc98 sub_DC98:
  8657. 0000dc98 goto sub_DAF4;
  8658.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement