1 #include "conf.h" 2 3 void change_video_tables(__attribute__ ((unused))int a, __attribute__ ((unused))int b){} 4 5 void set_quality(int *x){ // -17 highest; +12 lowest 6 if (conf.video_mode) 7 *x=12-((conf.video_quality-1)*(12+17)/(99-1)); 8 } 9 10 //** movie_record_task @ 0xFF95B70C 11 12 void __attribute__((naked,noinline)) movie_record_task( ) { 13 asm volatile ( 14 "STMFD SP!, {R2-R10,LR}\n" 15 "LDR R6, =0xFF95ABA4\n" 16 "LDR R7, =0xFF95B0D0\n" //This function was used to take values for set_quality --> 17 "LDR R4, =0x6318\n" 18 "LDR R9, =0x69B\n" 19 "LDR R10, =0x2710\n" 20 "MOV R8, #1\n" 21 "MOV R5, #0\n" 22 "loc_FF95B72C:\n" 23 "LDR R0, [R4, #0x24]\n" 24 "MOV R2, #0\n" 25 "ADD R1, SP, #4\n" 26 "BL sub_003F7218\n" 27 "LDR R0, [R4, #0x2C]\n" 28 "CMP R0, #0\n" 29 "LDRNE R0, [R4, #0xC]\n" 30 "CMPNE R0, #2\n" 31 "LDRNE R0, [R4, #0x44]\n" 32 "CMPNE R0, #6\n" 33 "BNE loc_FF95B850\n" 34 "LDR R0, [SP, #4]\n" 35 "LDR R1, [R0]\n" 36 "SUB R1, R1, #2\n" 37 "CMP R1, #0xB\n" 38 "ADDCC PC, PC, R1, LSL #2\n" 39 "B loc_FF95B850\n" 40 "B loc_FF95B800\n" //(01) 41 "B loc_FF95B824\n" //(02) 42 "B loc_FF95B834\n" //(03) 43 "B loc_FF95B83C\n" //(04) 44 "B loc_FF95B808\n" //(05) 45 "B loc_FF95B844\n" //(06) 46 "B loc_FF95B814\n" //(07) 47 "B loc_FF95B850\n" //(08) 48 "B loc_FF95B84C\n" //(09) 49 "B loc_FF95B7CC\n" //(10) 50 "B loc_FF95B79C\n" //(11) 51 "loc_FF95B79C:\n" //Jump Table entry 11 52 "STR R5, [R4, #0x40]\n" 53 "STR R5, [R4, #0x30]\n" 54 "STR R5, [R4, #0x34]\n" 55 "STRH R5, [R4, #6]\n" 56 "STR R6, [R4, #0xB4]\n" 57 "STR R7, [R4, #0xD0]\n" 58 "LDR R0, [R4, #0xC]\n" 59 "ADD R0, R0, #1\n" 60 "STR R0, [R4, #0xC]\n" 61 "MOV R0, #6\n" 62 "STR R0, [R4, #0x44]\n" 63 "B loc_FF95B7EC\n" 64 "loc_FF95B7CC:\n" //Jump Table entry 10 65 "STR R5, [R4, #0x40]\n" 66 "STR R5, [R4, #0x30]\n" 67 "STR R6, [R4, #0xB4]\n" 68 "STR R7, [R4, #0xD0]\n" 69 "LDR R0, [R4, #0xC]\n" 70 "ADD R0, R0, #1\n" 71 "STR R0, [R4, #0xC]\n" 72 "STR R8, [R4, #0x44]\n" 73 "loc_FF95B7EC:\n" 74 "LDR R2, =0xFF95A304\n" 75 "LDR R1, =0xAD018\n" 76 "LDR R0, =0xFF95A418\n" 77 "BL sub_FF84B05C\n" 78 "B loc_FF95B850\n" 79 "loc_FF95B800:\n" //Jump Table entry 01 80 "BL unlock_optical_zoom \n" //added 81 "BL sub_FF95AD04\n" 82 "B loc_FF95B850\n" 83 "loc_FF95B808:\n" //Jump Table entry 05 84 "LDR R1, [R4, #0xD0]\n" 85 "BLX R1\n" 86 //begin patch 87 "LDR R0, =0x639C \n" // added, 0x63A0-0x4 taken from "loc_FF95B5F4" see commented function below. 88 "BL set_quality \n" // added 89 //end patch 90 "B loc_FF95B850\n" 91 "loc_FF95B814:\n" //Jump Table entry 07 92 "LDR R1, [R0, #0x18]\n" 93 "LDR R0, [R0, #4]\n" 94 "BL sub_FFA6B050\n" 95 "B loc_FF95B850\n" 96 "loc_FF95B824:\n" //Jump Table entry 02 97 "LDR R0, [R4, #0x44]\n" 98 "CMP R0, #5\n" 99 "STRNE R8, [R4, #0x34]\n" 100 "B loc_FF95B850\n" 101 "loc_FF95B834:\n" //Jump Table entry 03 102 "BL sub_FF95A804\n" 103 "B loc_FF95B850\n" 104 "loc_FF95B83C:\n" //Jump Table entry 04 105 "BL sub_FF95A464\n" 106 "B loc_FF95B850\n" 107 "loc_FF95B844:\n" //Jump Table entry 06 108 "BL sub_FF95A290\n" 109 "B loc_FF95B850\n" 110 "loc_FF95B84C:\n" //Jump Table entry 09 111 "BL sub_FF95BD28\n" 112 "loc_FF95B850:\n" 113 "LDR R1, [SP, #4]\n" 114 "LDR R3, =0xFF959FF0\n" 115 "STR R5, [R1]\n" 116 "STR R9, [SP]\n" 117 "LDR R0, [R4, #0x28]\n" 118 "MOV R2, R10\n" 119 "BL sub_003F7B90\n" 120 "B loc_FF95B72C\n" 121 ); 122 } 123 124 //This function was used to take values for set_quality 125 //** sub_FF95AB0D0_my @ 0xFF95B0D0 126 /* 127 void __attribute__((naked,noinline)) sub_FF95AB0D0_my( ) { 128 asm volatile ( 129 "STMFD SP!, {R4-R11,LR}\n" 130 "SUB SP, SP, #0x64\n" 131 "MOV R9, #0\n" 132 "LDR R6, =0x6318\n" 133 "STR R9, [SP, #0x54]\n" 134 "STR R9, [SP, #0x4C]\n" 135 "STR R9, [R6, #0xB8]\n" 136 "STR R9, [R6, #0xBC]\n" 137 "STR R9, [R6, #0xC0]\n" 138 "STR R9, [R6, #0xC4]\n" 139 "MOV R4, R0\n" 140 "STR R9, [R6, #0xC8]\n" 141 "LDR R0, [R6, #0x44]\n" 142 "MOV R11, #4\n" 143 "CMP R0, #3\n" 144 "STREQ R11, [R6, #0x44]\n" 145 "LDR R0, [R6, #0xB4]\n" 146 "MOV R8, R9\n" 147 "MOV R5, #1\n" 148 "MOV R7, R9\n" 149 "BLX R0\n" 150 "LDR R0, [R6, #0x44]\n" 151 "CMP R0, #6\n" 152 "BEQ loc_FF95B144\n" 153 "LDR R1, [R6, #0xC]\n" 154 "CMP R1, #2\n" 155 "BNE loc_FF95B16C\n" 156 "CMP R0, #5\n" 157 "BEQ loc_FF95B17C\n" 158 "loc_FF95B144:\n" 159 "LDR R2, =0xFF95AFA4\n" 160 "LDR R1, =0xFF95B008\n" 161 "LDR R0, =0xFF95B06C\n" 162 "MOV R7, #1\n" 163 "ADD R3, SP, #0x30\n" 164 "BL sub_FF84BBA4\n" 165 "LDR R0, [R6, #0x44]\n" 166 "CMP R0, #4\n" 167 "MOVNE R5, #0\n" 168 "B loc_FF95B18C\n" 169 "loc_FF95B16C:\n" 170 "CMP R0, #4\n" 171 "BEQ loc_FF95B18C\n" 172 "CMP R1, #2\n" 173 "BNE loc_FF95B184\n" 174 "loc_FF95B17C:\n" 175 "MOV R0, #0\n" 176 "BL sub_FF84BC10\n" 177 "loc_FF95B184:\n" 178 "ADD SP, SP, #0x64\n" 179 "LDMFD SP!, {R4-R11,PC}\n" 180 "loc_FF95B18C:\n" 181 "LDRH R0, [R6, #6]\n" 182 "CMP R0, #3\n" 183 "BNE loc_FF95B1C0\n" 184 "LDR R0, [R6, #0xCC]\n" 185 "CMP R0, #0\n" 186 "LDREQ R1, =0x8E8\n" 187 "LDREQ R0, =0xFF959FF0\n" 188 "BLEQ _DebugAssert\n" 189 "LDR R0, [R6, #0x6C]\n" 190 "LDR R1, [R6, #0xCC]\n" 191 "BL sub_003FC934\n" 192 "CMP R1, #0\n" 193 "MOVNE R5, #0\n" 194 "loc_FF95B1C0:\n" 195 "LDR R0, [R6, #0x44]\n" 196 "CMP R0, #6\n" 197 "CMPNE R0, #1\n" 198 "CMPNE R0, #3\n" 199 "BNE loc_FF95B204\n" 200 "CMP R7, #1\n" 201 "CMPEQ R5, #0\n" 202 "BNE loc_FF95B204\n" 203 "BL sub_FF84BBC8\n" 204 "LDR R0, [R6, #0x18]\n" 205 "MOV R1, #0x3E8\n" 206 "BL _TakeSemaphore\n" 207 "CMP R0, #9\n" 208 "BNE loc_FF95B670\n" 209 "MOV R0, #0x90000\n" 210 "BL sub_FF836004\n" 211 "B loc_FF95B184\n" 212 "loc_FF95B204:\n" 213 "CMP R5, #1\n" 214 "MOV R10, #1\n" 215 "BNE loc_FF95B22C\n" 216 "ADD R3, SP, #0x4C\n" 217 "ADD R2, SP, #0x50\n" 218 "ADD R1, SP, #0x54\n" 219 "ADD R0, SP, #0x58\n" 220 "BL sub_FFA6B128\n" 221 "MOVS R9, R0\n" 222 "BNE loc_FF95B248\n" 223 "loc_FF95B22C:\n" 224 "LDR R0, [R6, #0x34]\n" 225 "CMP R0, #1\n" 226 "BNE loc_FF95B3C4\n" 227 "LDR R0, [R6, #0x6C]\n" 228 "LDR R1, [R6, #0x48]\n" 229 "CMP R0, R1\n" 230 "BCC loc_FF95B3C4\n" 231 "loc_FF95B248:\n" 232 "CMP R9, #0x80000001\n" 233 "STREQ R11, [R6, #0x70]\n" 234 "BEQ loc_FF95B280\n" 235 "CMP R9, #0x80000003\n" 236 "STREQ R10, [R6, #0x70]\n" 237 "BEQ loc_FF95B280\n" 238 "CMP R9, #0x80000005\n" 239 "MOVEQ R0, #2\n" 240 "BEQ loc_FF95B27C\n" 241 "CMP R9, #0x80000007\n" 242 "STRNE R8, [R6, #0x70]\n" 243 "BNE loc_FF95B280\n" 244 "MOV R0, #3\n" 245 "loc_FF95B27C:\n" 246 "STR R0, [R6, #0x70]\n" 247 "loc_FF95B280:\n" 248 "LDR R0, [R6, #0xC]\n" 249 "CMP R0, #2\n" 250 "BNE loc_FF95B2E4\n" 251 "LDR R0, =0xFF95AF98\n" 252 "MOV R1, #0\n" 253 "BL sub_FFA36804\n" 254 "LDR R1, [R6, #0x64]\n" 255 "LDR R2, =0xAD064\n" 256 "ADD R3, SP, #0x5C\n" 257 "ADD R0, SP, #0x30\n" 258 "STRD R0, [SP, #0x10]\n" 259 "STRD R2, [SP, #0x18]\n" 260 "LDR R1, [R6, #0x84]\n" 261 "LDR R2, [R6, #0x88]\n" 262 "MVN R3, #1\n" 263 "ADD R0, SP, #0x60\n" 264 "STMEA SP, {R0-R3}\n" 265 "MOV R3, #0\n" 266 "LDR R0, =0xAD0C4\n" 267 "MOV R2, R3\n" 268 "MOV R1, #0x40\n" 269 "BL sub_FFA36758\n" 270 "B loc_FF95B33C\n" 271 "loc_FF95B2DC:\n" 272 "MOV R1, #1\n" 273 "B loc_FF95B5B4\n" 274 "loc_FF95B2E4:\n" 275 "BL sub_FF95BDF8\n" 276 "LDR R2, [R6, #0x64]\n" 277 "ADD R3, SP, #0x5C\n" 278 "MVN R1, #1\n" 279 "MOV R0, #0\n" 280 "ADD R5, SP, #0x1C\n" 281 "STMIA R5, {R0-R3}\n" 282 "LDR R3, [R4, #0x1C]\n" 283 "LDR R1, [R6, #0x84]\n" 284 "LDR R2, [R6, #0x88]\n" 285 "ADD R0, SP, #0x60\n" 286 "ADD R4, SP, #0xC\n" 287 "STMIA R4, {R0-R3}\n" 288 "MOV R3, #0\n" 289 "MOV R1, #0x40\n" 290 "STMEA SP, {R1,R3}\n" 291 "MOV R2, #0\n" 292 "STR R3, [SP, #8]\n" 293 "LDR R3, =0xAD0C4\n" 294 "MOV R1, R2\n" 295 "MOV R0, R2\n" 296 "BL sub_FFA35448\n" 297 "loc_FF95B33C:\n" 298 "LDR R0, [R6, #0x18]\n" 299 "LDR R1, [R6, #0x60]\n" 300 "BL _TakeSemaphore\n" 301 "CMP R0, #9\n" 302 "BEQ loc_FF95B2DC\n" 303 "LDR R0, [SP, #0x5C]\n" 304 "CMP R0, #0\n" 305 "BEQ loc_FF95B364\n" 306 "loc_FF95B35C:\n" 307 "MOV R1, #1\n" 308 "B loc_FF95B5CC\n" 309 "loc_FF95B364:\n" 310 "LDR R0, [R6, #0xC]\n" 311 "MOV R4, #5\n" 312 "CMP R0, #2\n" 313 "MOV R0, #1\n" 314 "BNE loc_FF95B3B0\n" 315 "BL sub_FFA367CC\n" 316 "BL sub_FFA367E8\n" 317 "BL sub_FF84BBEC\n" 318 "MOV R0, #0\n" 319 "BL sub_FF84BC10\n" 320 "BL sub_FF84BC40\n" 321 "STR R4, [R6, #0x44]\n" 322 "LDR R0, [R6, #0x64]\n" 323 "CMP R0, #1\n" 324 "BLEQ sub_FFA36828\n" 325 "BL sub_FF95BDF8\n" 326 "BL sub_FF84BC9C\n" 327 "STR R10, [R6, #0x44]\n" 328 "B loc_FF95B3BC\n" 329 "loc_FF95B3B0:\n" 330 "BL sub_FFA354F4\n" 331 "BL sub_FFA3553C\n" 332 "STR R4, [R6, #0x44]\n" 333 "loc_FF95B3BC:\n" 334 "STR R8, [R6, #0x34]\n" 335 "B loc_FF95B184\n" 336 "loc_FF95B3C4:\n" 337 "CMP R5, #1\n" 338 "BNE loc_FF95B668\n" 339 "STR R10, [R6, #0x38]\n" 340 "LDR R0, [R6, #0x6C]\n" 341 "LDR R11, [R4, #0xC]\n" 342 "CMP R0, #0\n" 343 "LDRNE R9, [SP, #0x58]\n" 344 "LDRNE R10, [SP, #0x54]\n" 345 "BNE loc_FF95B4EC\n" 346 "LDR R0, [R6, #0xC]\n" 347 "CMP R0, #2\n" 348 "BNE loc_FF95B444\n" 349 "LDR R0, =0xFF95AF98\n" 350 "MOV R1, #0\n" 351 "BL sub_FFA36804\n" 352 "LDR R1, [R6, #0x64]\n" 353 "LDR R2, =0xAD064\n" 354 "ADD R3, SP, #0x5C\n" 355 "ADD R0, SP, #0x30\n" 356 "STRD R0, [SP, #0x10]\n" 357 "STRD R2, [SP, #0x18]\n" 358 "LDR R1, [R6, #0x84]\n" 359 "LDR R2, [R6, #0x88]\n" 360 "MVN R3, #0\n" 361 "ADD R0, SP, #0x60\n" 362 "STMEA SP, {R0-R3}\n" 363 "LDR R0, [SP, #0x58]\n" 364 "LDR R1, [SP, #0x54]\n" 365 "LDR R2, [SP, #0x50]\n" 366 "LDR R3, [SP, #0x4C]\n" 367 "BL sub_FFA36758\n" 368 "B loc_FF95B498\n" 369 "loc_FF95B444:\n" 370 "LDR R0, [R4, #0x20]\n" 371 "LDR R2, [R6, #0x64]\n" 372 "ADD R3, SP, #0x5C\n" 373 "MVN R1, #0\n" 374 "ADD R9, SP, #0x1C\n" 375 "STMIA R9, {R0-R3}\n" 376 "LDR R3, [R4, #0x1C]\n" 377 "LDR R1, [R6, #0x84]\n" 378 "LDR R2, [R6, #0x88]\n" 379 "ADD R0, SP, #0x60\n" 380 "ADD R9, SP, #0xC\n" 381 "STMIA R9, {R0-R3}\n" 382 "LDR R1, [SP, #0x50]\n" 383 "LDR R2, [SP, #0x54]\n" 384 "LDR R3, [SP, #0x4C]\n" 385 "STMFA SP, {R1,R3}\n" 386 "STR R2, [SP]\n" 387 "LDMIB R4, {R0,R1}\n" 388 "LDR R3, [SP, #0x58]\n" 389 "MOV R2, R11\n" 390 "BL sub_FFA35448\n" 391 "loc_FF95B498:\n" 392 "LDR R0, [R6, #0x18]\n" 393 "LDR R1, [R6, #0x60]\n" 394 "BL _TakeSemaphore\n" 395 "CMP R0, #9\n" 396 "BEQ loc_FF95B2DC\n" 397 "LDR R0, [SP, #0x5C]\n" 398 "CMP R0, #0\n" 399 "BNE loc_FF95B35C\n" 400 "LDR R0, [R6, #0xC]\n" 401 "CMP R0, #2\n" 402 "MOV R0, #1\n" 403 "BNE loc_FF95B4D0\n" 404 "BL sub_FFA367CC\n" 405 "B loc_FF95B4D4\n" 406 "loc_FF95B4D0:\n" 407 "BL sub_FFA354F4\n" 408 "loc_FF95B4D4:\n" 409 "STR R8, [R6, #0xC4]\n" 410 "LDR R0, [SP, #0x60]\n" 411 "LDR R1, [SP, #0x58]\n" 412 "ADD R9, R1, R0\n" 413 "LDR R1, [SP, #0x54]\n" 414 "SUB R10, R1, R0\n" 415 "loc_FF95B4EC:\n" 416 "LDR R0, [R6, #0xC]\n" 417 "CMP R0, #2\n" 418 "BNE loc_FF95B54C\n" 419 "LDR R0, =0xFF95AC80\n" 420 "MOV R1, #0\n" 421 "BL sub_FFA36804\n" 422 "LDR R1, [R6, #0x64]\n" 423 "LDR R2, =0xAD064\n" 424 "ADD R0, SP, #0x30\n" 425 "ADD R3, SP, #0x5C\n" 426 "STRD R0, [SP, #0x10]\n" 427 "STRD R2, [SP, #0x18]\n" 428 "LDR R1, [R6, #0x84]\n" 429 "LDR R2, [R6, #0x88]\n" 430 "LDR R3, [R6, #0x68]\n" 431 "ADD R0, SP, #0x60\n" 432 "STMEA SP, {R0-R3}\n" 433 "LDR R2, [SP, #0x50]\n" 434 "LDR R3, [SP, #0x4C]\n" 435 "MOV R1, R10\n" 436 "MOV R0, R9\n" 437 "BL sub_FFA36758\n" 438 "BL sub_FF84BBC8\n" 439 "B loc_FF95B59C\n" 440 "loc_FF95B54C:\n" 441 "LDR R0, [R4, #0x20]\n" 442 "LDR R1, [R6, #0x68]\n" 443 "LDR R2, [R6, #0x64]\n" 444 "ADD R3, SP, #0x5C\n" 445 "ADD R12, SP, #0x1C\n" 446 "STMIA R12, {R0-R3}\n" 447 "LDR R3, [R4, #0x1C]\n" 448 "LDR R1, [R6, #0x84]\n" 449 "LDR R2, [R6, #0x88]\n" 450 "ADD R0, SP, #0x60\n" 451 "ADD R12, SP, #0xC\n" 452 "STMIA R12, {R0-R3}\n" 453 "LDR R2, [SP, #0x50]\n" 454 "LDR R3, [SP, #0x4C]\n" 455 "STMFA SP, {R2,R3}\n" 456 "STR R10, [SP]\n" 457 "LDMIB R4, {R0,R1}\n" 458 "MOV R3, R9\n" 459 "MOV R2, R11\n" 460 "BL sub_FFA35448\n" 461 "loc_FF95B59C:\n" 462 "LDR R0, [R6, #0x18]\n" 463 "LDR R1, [R6, #0x60]\n" 464 "BL _TakeSemaphore\n" 465 "CMP R0, #9\n" 466 "BNE loc_FF95B5BC\n" 467 "MOV R1, #0\n" 468 "loc_FF95B5B4:\n" 469 "MOV R0, #0x90000\n" 470 "B loc_FF95B5D0\n" 471 "loc_FF95B5BC:\n" 472 "LDR R0, [SP, #0x5C]\n" 473 "CMP R0, #0\n" 474 "BEQ loc_FF95B5D8\n" 475 "MOV R1, #0\n" 476 "loc_FF95B5CC:\n" 477 "MOV R0, #0xA0000\n" 478 "loc_FF95B5D0:\n" 479 "BL sub_FF95AF28\n" 480 "B loc_FF95B184\n" 481 "loc_FF95B5D8:\n" 482 "LDR R0, [R6, #0xC]\n" 483 "CMP R0, #2\n" 484 "MOV R0, #0\n" 485 "BNE loc_FF95B5F0\n" 486 "BL sub_FFA367CC\n" 487 "B loc_FF95B5F4\n" 488 "loc_FF95B5F0:\n" 489 "BL sub_FFA354F4\n" 490 "loc_FF95B5F4:\n" 491 "LDR R0, [SP, #0x58]\n" 492 "LDR R1, [SP, #0x60]\n" 493 "BL sub_FFA6B350\n" 494 "LDR R0, [R6, #0x68]\n" 495 "LDR R3, =0x63A0\n" // <- 0x63A0 496 "ADD R1, R0, #1\n" 497 "STR R1, [R6, #0x68]\n" 498 "LDR R0, [SP, #0x60]\n" 499 "SUB R2, R3, #4\n" // <- -4 500 "BL sub_FFA68BC4\n" 501 //begin patch 502 "LDR R0, =0x639C \n" // added, 0x63A0-0x4 503 "BL set_quality \n" // added 504 //end patch 505 "LDR R0, [R6, #0x64]\n" 506 "CMP R0, #1\n" 507 "BNE loc_FF95B668\n" 508 "ADD R0, SP, #0x48\n" 509 "BL sub_FFA36888\n" 510 "LDR R1, =0xAD034\n" 511 "LDR R0, [R1, #4]\n" 512 "LDR R1, [R1]\n" 513 "SUB R2, R0, #0x400\n" 514 "SUBS R2, R2, #0x38\n" 515 "ADDEQ R0, R0, #8\n" 516 "MOV R1, R1, LSR #4\n" 517 "MOV R0, R0, LSR #4\n" 518 "MUL R1, R0, R1\n" 519 "LDR R0, [SP, #0x48]\n" 520 "BL sub_003FC934\n" 521 "LDR R1, =0xAD064\n" 522 "STR R0, [SP, #0x48]\n" 523 "BL sub_FFA68EF4\n" 524 "loc_FF95B668:\n" 525 "CMP R7, #1\n" 526 "BNE loc_FF95B67C\n" 527 "loc_FF95B670:\n" 528 "BL sub_FF84BBEC\n" 529 "MOV R0, #1\n" 530 "BL sub_FF84BC10\n" 531 "loc_FF95B67C:\n" 532 "CMP R5, #1\n" 533 "LDRNEH R0, [R6, #6]\n" 534 "CMPNE R0, #3\n" 535 "BNE loc_FF95B184\n" 536 "LDR R0, [R6, #0x6C]\n" 537 "ADD R0, R0, #1\n" 538 "STR R0, [R6, #0x6C]\n" 539 "LDRH R1, [R6, #6]\n" 540 "CMP R1, #3\n" 541 "LDRNE R1, [R6, #0x54]\n" 542 "MULNE R0, R1, R0\n" 543 "LDRNE R1, [R6, #0x50]\n" 544 "BNE loc_FF95B6CC\n" 545 "LDR R1, [R6, #0x58]\n" 546 "CMP R1, #0x19\n" 547 "LDRNE R1, =0x3E9\n" 548 "MOVEQ R1, #0x3E8\n" 549 "MUL R0, R1, R0\n" 550 "LDRNE R1, =0x1770\n" 551 "LDREQ R1, =0x1388\n" 552 "loc_FF95B6CC:\n" 553 "BL sub_003FC934\n" 554 "MOV R4, R0\n" 555 "BL sub_FFA6B6E4\n" 556 "LDR R0, [R6, #0x8C]\n" 557 "CMP R0, R4\n" 558 "BNE loc_FF95B6F0\n" 559 "LDR R0, [R6, #0x3C]\n" 560 "CMP R0, #1\n" 561 "BNE loc_FF95B704\n" 562 "loc_FF95B6F0:\n" 563 "LDR R1, [R6, #0x98]\n" 564 "MOV R0, R4\n" 565 "BLX R1\n" 566 "STR R4, [R6, #0x8C]\n" 567 "STR R8, [R6, #0x3C]\n" 568 "loc_FF95B704:\n" 569 "STR R8, [R6, #0x38]\n" 570 "B loc_FF95B184\n" 571 ); 572 } 573 */