root/platform/a3200/sub/100d/movie_rec.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. change_video_tables
  2. set_quality
  3. movie_record_task
  4. sub_FF96916C_my
  5. sub_FFAABE68_my

   1 /*
   2  * movie_rec.c - auto-generated by CHDK code_gen.
   3  */
   4 #include "conf.h"
   5 
   6 void change_video_tables(int a, int b){
   7 }
   8 
   9 void  set_quality(int *x){ // -17 highest; +12 lowest
  10  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
  11 }
  12 
  13 /*************************************************************/
  14 //** movie_record_task @ 0xFF969AE4 - 0xFF969C44, length=89
  15 void __attribute__((naked,noinline)) movie_record_task() {
  16 asm volatile (
  17 "    STMFD   SP!, {R2-R10,LR} \n"
  18 "    LDR     R6, =0xFF969014 \n"
  19 "    LDR     R7, =0xFF96950C \n"
  20 "    LDR     R4, =0x66E0 \n"
  21 "    LDR     R9, =0x67F \n"
  22 "    LDR     R10, =0x2710 \n"
  23 "    MOV     R8, #1 \n"
  24 "    MOV     R5, #0 \n"
  25 
  26 "loc_FF969B04:\n"
  27 "    LDR     R0, [R4, #0x24] \n"
  28 "    MOV     R2, #0 \n"
  29 "    ADD     R1, SP, #4 \n"
  30 "    BL      sub_FF839B84 /*_ReceiveMessageQueue*/ \n"
  31 "    LDR     R0, [R4, #0x2C] \n"
  32 "    CMP     R0, #0 \n"
  33 "    LDRNE   R0, [R4, #0xC] \n"
  34 "    CMPNE   R0, #2 \n"
  35 "    LDRNE   R0, [R4, #0x44] \n"
  36 "    CMPNE   R0, #6 \n"
  37 "    BNE     loc_FF969C28 \n"
  38 "    LDR     R0, [SP, #4] \n"
  39 "    LDR     R1, [R0] \n"
  40 "    SUB     R1, R1, #2 \n"
  41 "    CMP     R1, #0xB \n"
  42 "    ADDCC   PC, PC, R1, LSL#2 \n"
  43 "    B       loc_FF969C28 \n"
  44 "    B       loc_FF969BD8 \n"
  45 "    B       loc_FF969BFC \n"
  46 "    B       loc_FF969C0C \n"
  47 "    B       loc_FF969C14 \n"
  48 "    B       loc_FF969BE0 \n"
  49 "    B       loc_FF969C1C \n"
  50 "    B       loc_FF969BEC \n"
  51 "    B       loc_FF969C28 \n"
  52 "    B       loc_FF969C24 \n"
  53 "    B       loc_FF969BA4 \n"
  54 "    B       loc_FF969B74 \n"
  55 
  56 "loc_FF969B74:\n"
  57 "    STR     R5, [R4, #0x40] \n"
  58 "    STR     R5, [R4, #0x30] \n"
  59 "    STR     R5, [R4, #0x34] \n"
  60 "    STRH    R5, [R4, #6] \n"
  61 "    STR     R6, [R4, #0xB4] \n"
  62 "    STR     R7, [R4, #0xCC] \n"
  63 "    LDR     R0, [R4, #0xC] \n"
  64 "    ADD     R0, R0, #1 \n"
  65 "    STR     R0, [R4, #0xC] \n"
  66 "    MOV     R0, #6 \n"
  67 "    STR     R0, [R4, #0x44] \n"
  68 "    B       loc_FF969BC4 \n"
  69 
  70 "loc_FF969BA4:\n"
  71 "    STR     R5, [R4, #0x40] \n"
  72 "    STR     R5, [R4, #0x30] \n"
  73 "    STR     R6, [R4, #0xB4] \n"
  74 "    STR     R7, [R4, #0xCC] \n"
  75 "    LDR     R0, [R4, #0xC] \n"
  76 "    ADD     R0, R0, #1 \n"
  77 "    STR     R0, [R4, #0xC] \n"
  78 "    STR     R8, [R4, #0x44] \n"
  79 
  80 "loc_FF969BC4:\n"
  81 "    LDR     R2, =0xFF968830 \n"
  82 "    LDR     R1, =0xACE28 \n"
  83 "    LDR     R0, =0xFF968944 \n"
  84 "    BL      sub_FF852C24 \n"
  85 "    B       loc_FF969C28 \n"
  86 
  87 "loc_FF969BD8:\n"
  88 "    BL      unlock_optical_zoom\n"     // added to unlock the zoom
  89 );
  90 if (conf.ext_video_time == 1)
  91 {
  92 asm volatile (
  93 "    BL      sub_FF96916C_my \n"  // --> Patched. Old value = 0xFF96916C.
  94 );
  95 }
  96 else
  97 {
  98 asm volatile (
  99 "    BL      sub_FF96916C \n"
 100 );
 101 }
 102 asm volatile (
 103 "    B       loc_FF969C28 \n"
 104 
 105 "loc_FF969BE0:\n"
 106 "    LDR     R1, [R4, #0xCC] \n"
 107 "    BLX     R1 \n"
 108 "    LDR     R0, =video_compression_rate\n" //added
 109 "    BL      set_quality\n"                 //added
 110 "    BL      mute_on_zoom\n"                // added
 111 "    B       loc_FF969C28 \n"
 112 
 113 "loc_FF969BEC:\n"
 114 "    LDR     R1, [R0, #0x18] \n"
 115 "    LDR     R0, [R0, #4] \n"
 116 "    BL      sub_FFAAC970 \n"
 117 "    B       loc_FF969C28 \n"
 118 
 119 "loc_FF969BFC:\n"
 120 "    LDR     R0, [R4, #0x44] \n"
 121 "    CMP     R0, #5 \n"
 122 "    STRNE   R8, [R4, #0x34] \n"
 123 "    B       loc_FF969C28 \n"
 124 
 125 "loc_FF969C0C:\n"
 126 "    BL      sub_FF968CD4 \n"
 127 "    B       loc_FF969C28 \n"
 128 
 129 "loc_FF969C14:\n"
 130 "    BL      sub_FF968990 \n"
 131 "    B       loc_FF969C28 \n"
 132 
 133 "loc_FF969C1C:\n"
 134 "    BL      sub_FF9687BC \n"
 135 "    B       loc_FF969C28 \n"
 136 
 137 "loc_FF969C24:\n"
 138 "    BL      sub_FF96A068 \n"
 139 
 140 "loc_FF969C28:\n"
 141 "    LDR     R1, [SP, #4] \n"
 142 "    LDR     R3, =0xFF968604 /*'MovieRecorder.c'*/ \n"
 143 "    STR     R5, [R1] \n"
 144 "    STR     R9, [SP] \n"
 145 "    LDR     R0, [R4, #0x28] \n"
 146 "    MOV     R2, R10 \n"
 147 "    BL      sub_FF83A4FC /*_PostMessageQueueStrictly*/ \n"
 148 "    B       loc_FF969B04 \n"
 149 );
 150 }
 151 
 152 /*************************************************************/
 153 //** sub_FF96916C_my @ 0xFF96916C - 0xFF969370, length=130
 154 void __attribute__((naked,noinline)) sub_FF96916C_my() {
 155 asm volatile (
 156 "    STMFD   SP!, {R2-R8,LR} \n"
 157 "    LDR     R5, =0x66E0 \n"
 158 "    MOV     R0, #0 \n"
 159 "    STR     R0, [R5, #0x34] \n"
 160 "    STR     R0, [R5, #0x38] \n"
 161 "    MOV     R0, R5 \n"
 162 "    LDR     R0, [R0, #0x5C] \n"
 163 "    LDRH    R1, [R5, #6] \n"
 164 "    MOV     R2, #0x3E8 \n"
 165 "    MUL     R0, R2, R0 \n"
 166 "    CMP     R1, #0 \n"
 167 "    BNE     loc_FF9691A8 \n"
 168 
 169 "loc_FF96919C:\n"
 170 "    MOV     R1, #0x3E8 \n"
 171 "    BL      sub_FFB585CC /*__divmod_unsigned_int*/ \n"
 172 "    B       loc_FF9691B4 \n"
 173 
 174 "loc_FF9691A8:\n"
 175 "    CMP     R1, #3 \n"
 176 "    BNE     loc_FF96919C \n"
 177 "    MOV     R0, #1 \n"
 178 
 179 "loc_FF9691B4:\n"
 180 "    LDR     R4, =0xACE5C \n"
 181 "    STR     R0, [R5, #0x48] \n"
 182 "    LDR     R0, [R4, #8] \n"
 183 "    MOV     R6, #2 \n"
 184 "    CMP     R0, #0 \n"
 185 "    BEQ     loc_FF969220 \n"
 186 "    LDR     R0, [R5, #0x58] \n"
 187 "    MOV     R1, #4 \n"
 188 "    CMP     R0, #0x18 \n"
 189 "    BEQ     loc_FF969318 \n"
 190 "    BGT     loc_FF9691FC \n"
 191 "    CMP     R0, #0xA \n"
 192 "    CMPNE   R0, #0xF \n"
 193 "    STREQ   R6, [R4, #0x14] \n"
 194 "    BEQ     loc_FF969220 \n"
 195 "    CMP     R0, #0x14 \n"
 196 "    BNE     loc_FF969214 \n"
 197 "    B       loc_FF969318 \n"
 198 
 199 "loc_FF9691FC:\n"
 200 "    CMP     R0, #0x1E \n"
 201 "    BEQ     loc_FF969318 \n"
 202 "    CMP     R0, #0x3C \n"
 203 "    MOVEQ   R0, #8 \n"
 204 "    STREQ   R0, [R4, #0x14] \n"
 205 "    BEQ     loc_FF969220 \n"
 206 
 207 "loc_FF969214:\n"
 208 "    LDR     R1, =0x777 \n"
 209 "    LDR     R0, =0xFF968604 /*'MovieRecorder.c'*/ \n"
 210 "    BL      _DebugAssert \n"
 211 
 212 "loc_FF969220:\n"
 213 "    LDR     R2, =0x66E2 \n"
 214 "    LDR     R0, [R5, #0x94] \n"
 215 "    MOV     R3, #2 \n"
 216 "    MOV     R1, #0xAA \n"
 217 "    BL      sub_FF88D330 \n"
 218 "    LDR     R2, =0x66E4 \n"
 219 "    LDR     R0, [R5, #0x94] \n"
 220 "    MOV     R3, #2 \n"
 221 "    MOV     R1, #0xA9 \n"
 222 "    BL      sub_FF88D330 \n"
 223 "    LDR     R2, =0x6730 \n"
 224 "    LDR     R0, [R5, #0x94] \n"
 225 "    MOV     R3, #4 \n"
 226 "    MOV     R1, #0xA2 \n"
 227 "    BL      sub_FF88D330 \n"
 228 "    LDR     R2, =0x6734 \n"
 229 "    LDR     R0, [R5, #0x94] \n"
 230 "    MOV     R3, #4 \n"
 231 "    MOV     R1, #0xA3 \n"
 232 "    BL      sub_FF88D330 \n"
 233 "    LDR     R2, =0x67B8 \n"
 234 "    MOV     R1, #0 \n"
 235 "    MOV     R0, #0xD \n"
 236 "    BL      sub_FF88789C \n"
 237 "    LDR     R0, [R5, #0x4C] \n"
 238 "    LDR     R1, =0x67B8 \n"
 239 "    CMP     R0, #2 \n"
 240 "    CMPNE   R0, #3 \n"
 241 "    LDREQ   R0, =0x42546000 \n"
 242 "    LDR     R3, =0xFF969138 \n"
 243 "    STREQ   R0, [R1] \n"
 244 "    LDRNE   R0, [R1] \n"
 245 "    LDR     R1, [R1, #4] \n"
 246 "    STR     R3, [SP] \n"
 247 "    LDR     R3, =0xACE5C \n"
 248 "    SUB     R2, R3, #0x18 \n"
 249 "    BL      sub_FFAABE68_my \n"  // --> Patched. Old value = 0xFFAABE68.
 250 "    LDR     R3, [R5, #0x94] \n"
 251 "    STR     R3, [SP] \n"
 252 "    LDR     R0, [R5, #0x90] \n"
 253 "    LDRD    R2, [R5, #0xD0] \n"
 254 "    BL      sub_FFAAC1DC \n"
 255 "    LDR     R0, [R5, #0x64] \n"
 256 "    LDR     R7, =0xACE44 \n"
 257 "    LDR     R3, =0x6768 \n"
 258 "    AND     R1, R0, #0xFF \n"
 259 "    LDR     R0, [R7] \n"
 260 "    SUB     R2, R3, #4 \n"
 261 "    BL      sub_FFAAA95C \n"
 262 "    LDR     R1, [R5, #0xC] \n"
 263 "    LDR     R0, =0xFFB966C8 \n"
 264 "    CMP     R1, #2 \n"
 265 "    LDR     R1, [R5, #0x4C] \n"
 266 "    ADD     R0, R0, R1, LSL#3 \n"
 267 "    LDR     R1, [R7, #0xC] \n"
 268 "    LDR     R0, [R0, R1, LSL#2] \n"
 269 "    BNE     loc_FF969320 \n"
 270 "    BL      sub_FFA683A4 \n"
 271 "    LDR     R0, =0xFF9690F0 \n"
 272 "    MOV     R1, #0 \n"
 273 "    BL      sub_FFA688B8 \n"
 274 "    B       loc_FF969330 \n"
 275 
 276 "loc_FF969318:\n"
 277 "    STR     R1, [R4, #0x14] \n"
 278 "    B       loc_FF969220 \n"
 279 
 280 "loc_FF969320:\n"
 281 "    BL      sub_FFA66EF4 \n"
 282 "    LDR     R0, =0xFF9690F0 \n"
 283 "    MOV     R1, #0 \n"
 284 "    BL      sub_FFA67630 \n"
 285 
 286 "loc_FF969330:\n"
 287 "    LDR     R0, [R4, #8] \n"
 288 "    CMP     R0, #0 \n"
 289 "    BEQ     loc_FF969364 \n"
 290 "    ADD     R0, SP, #4 \n"
 291 "    BL      sub_FFAAC7EC \n"
 292 "    LDR     R1, [R4, #0xC] \n"
 293 "    LDR     R0, [SP, #4] \n"
 294 "    BL      sub_FF86126C \n"
 295 "    ADD     R0, SP, #4 \n"
 296 "    BL      sub_FFAAC7EC \n"
 297 "    LDR     R1, [R4, #0xC] \n"
 298 "    LDR     R0, [SP, #4] \n"
 299 "    BL      sub_FF86126C \n"
 300 
 301 "loc_FF969364:\n"
 302 "    LDR     R0, =0xFF9690A8 \n"
 303 "    STR     R6, [R5, #0x44]! \n"
 304 "    STR     R0, [R5, #0x70] \n"
 305 "    LDMFD   SP!, {R2-R8,PC} \n"
 306 );
 307 }
 308 
 309 /*************************************************************/
 310 //** sub_FFAABE68_my @ 0xFFAABE68 - 0xFFAAC124, length=176
 311 void __attribute__((naked,noinline)) sub_FFAABE68_my() {
 312 asm volatile (
 313 "    STMFD   SP!, {R4-R12,LR} \n"
 314 "    MOV     R8, R0 \n"
 315 "    LDR     R0, [R2, #0x10] \n"
 316 "    MOV     R10, R1 \n"
 317 "    CMP     R0, #0 \n"
 318 "    LDR     R9, [SP, #0x28] \n"
 319 "    LDREQ   R1, =0x31E \n"
 320 "    LDREQ   R0, =0xFFAAB460 /*'MovWriter.c'*/ \n"
 321 "    MOV     R5, #0 \n"
 322 "    MOV     R4, R2 \n"
 323 "    MOV     R7, R3 \n"
 324 "    MOV     R11, R5 \n"
 325 "    BLEQ    _DebugAssert \n"
 326 "    LDR     R6, =0xB7C8 \n"
 327 "    LDR     R0, [R4] \n"
 328 "    LDR     R1, =0x7530 \n"
 329 "    STR     R0, [R6, #0xA0] \n"
 330 "    LDR     R0, [R4, #4] \n"
 331 "    MOV     R2, #0x1E \n"
 332 "    STR     R0, [R6, #0xA4] \n"
 333 "    LDR     R0, [R4, #0x10] \n"
 334 "    STR     R0, [R6, #0xB0] \n"
 335 "    LDR     R0, [R4, #8] \n"
 336 "    CMP     R0, #8 \n"
 337 "    LDREQ   R11, =0x1770 \n"
 338 "    BEQ     loc_FFAABF14 \n"
 339 "    BGT     loc_FFAABEFC \n"
 340 "    CMP     R0, #0 \n"
 341 "    MOVEQ   R11, R1 \n"
 342 "    BEQ     loc_FFAABF14 \n"
 343 "    CMP     R0, #1 \n"
 344 "    LDREQ   R11, =0x5DC0 \n"
 345 "    MOVEQ   R0, #0x18 \n"
 346 "    STREQ   R0, [R6, #0xA8] \n"
 347 "    STREQ   R11, [R6, #0xFC] \n"
 348 "    BEQ     loc_FFAABF2C \n"
 349 "    B       loc_FFAABF20 \n"
 350 
 351 "loc_FFAABEFC:\n"
 352 "    CMP     R0, #9 \n"
 353 "    LDREQ   R11, =0xBB8 \n"
 354 "    BEQ     loc_FFAABF14 \n"
 355 "    CMP     R0, #0xA \n"
 356 "    BNE     loc_FFAABF20 \n"
 357 "    LDR     R11, =0x5DC \n"
 358 
 359 "loc_FFAABF14:\n"
 360 "    STR     R1, [R6, #0xFC] \n"
 361 "    STR     R2, [R6, #0xA8] \n"
 362 "    B       loc_FFAABF2C \n"
 363 
 364 "loc_FFAABF20:\n"
 365 "    LDR     R1, =0x34F \n"
 366 "    LDR     R0, =0xFFAAB460 /*'MovWriter.c'*/ \n"
 367 "    BL      _DebugAssert \n"
 368 
 369 "loc_FFAABF2C:\n"
 370 "    LDR     R0, [R6, #0xA8] \n"
 371 "    LDR     R1, =0x383F \n"  // --> Patched. Old value = 0xE0F. 0xe0f=3599 +1 =3600s = 1 hour. Patched: 0x383f=14399 = 3600*4-1 -> 3 hours
 372 "    MOV     R0, R0, LSR#1 \n"
 373 "    STR     R0, [R6, #0xAC] \n"
 374 "    LDR     R0, [R7] \n"
 375 "    STR     R0, [R6, #0xB4] \n"
 376 "    LDRH    R0, [R7, #0x10] \n"
 377 "    STR     R0, [R6, #0xB8] \n"
 378 "    LDR     R0, [R7, #4] \n"
 379 "    STRH    R0, [R6, #2] \n"
 380 "    LDR     R0, [R7, #8] \n"
 381 "    STRH    R0, [R6, #4] \n"
 382 "    LDR     R0, [R7, #0x14] \n"
 383 "    STR     R0, [R6, #0xBC] \n"
 384 "    STR     R9, [R6, #0xF8] \n"
 385 "    LDR     R0, [R6, #0xA0] \n"
 386 "    CMP     R0, #0x140 \n"
 387 "    MOVEQ   R0, #0x20000 \n"
 388 "    MOVEQ   R5, #1 \n"
 389 "    STREQ   R0, [R6, #0x80] \n"
 390 "    BEQ     loc_FFAAC078 \n"
 391 "    CMP     R0, #0x280 \n"
 392 "    BEQ     loc_FFAAC06C \n"
 393 "    CMP     R0, #0x500 \n"
 394 "    LDREQ   R0, =0x11DA50 \n"
 395 "    MOVEQ   R5, #4 \n"
 396 "    STREQ   R0, [R6, #0x80] \n"
 397 "    LDREQ   R0, =0x1C1F \n"  // --> Patched. Old value = 0x257. 0x257=599s +1 =600s = 10min. Patched: 0x1c1f=7199=3600*2-1 -> 2 hours
 398 "    STREQ   R0, [R6, #0x4C] \n"
 399 "    BEQ     loc_FFAABFB0 \n"
 400 "    LDR     R1, =0x377 \n"
 401 "    LDR     R0, =0xFFAAB460 /*'MovWriter.c'*/ \n"
 402 "    BL      _DebugAssert \n"
 403 
 404 "loc_FFAABFB0:\n"
 405 "    LDR     R9, [R6, #0x4C] \n"
 406 "    LDR     R1, =0x138D \n"
 407 "    MUL     R0, R9, R11 \n"
 408 "    BL      sub_FFB585CC /*__divmod_unsigned_int*/ \n"
 409 "    ADD     R0, R0, #1 \n"
 410 "    ADD     R0, R0, R0, LSL#2 \n"
 411 "    STR     R0, [R6, #0x48] \n"
 412 "    LDR     R7, [R7, #0xC] \n"
 413 "    LDR     R1, [R4, #0xC] \n"
 414 "    MOV     R2, R7, LSR#1 \n"
 415 "    STR     R7, [R6, #0x68] \n"
 416 "    STR     R2, [R6, #0x6C] \n"
 417 "    ADD     R2, R8, #3 \n"
 418 "    BIC     R2, R2, #3 \n"
 419 "    MOV     R0, R0, LSL#2 \n"
 420 "    STR     R2, [R6, #0xC4] \n"
 421 "    ADD     R2, R2, R0 \n"
 422 "    STR     R2, [R6, #0xC8] \n"
 423 "    LDRH    R3, [R6, #4] \n"
 424 "    CMP     R1, #0 \n"
 425 "    MOVNE   R1, #1 \n"
 426 "    CMP     R3, #0 \n"
 427 "    ADD     R12, R8, R10 \n"
 428 "    ADD     R0, R0, R2 \n"
 429 "    BEQ     loc_FFAAC0E0 \n"
 430 "    STR     R0, [R6, #0xCC] \n"
 431 "    ADD     R0, R0, R9, LSL#3 \n"
 432 "    ADD     R0, R0, #0x1F \n"
 433 "    BIC     R0, R0, #0x1F \n"
 434 "    STR     R0, [R6, #0xD0] \n"
 435 "    LDR     R2, [R6, #0x80] \n"
 436 "    LDR     R9, =0xFBDF4 \n"
 437 "    ADD     R3, R0, R2 \n"
 438 "    SUB     R0, R12, R3 \n"
 439 "    RSB     R2, R7, #0 \n"
 440 "    ADD     R0, R0, R2, LSL#1 \n"
 441 "    MOV     R0, R0, LSR#15 \n"
 442 "    MOV     R0, R0, LSL#15 \n"
 443 "    STR     R3, [R6, #0xD4] \n"
 444 "    ADD     R8, R3, R0 \n"
 445 "    STR     R0, [R6, #0xE0] \n"
 446 "    STR     R8, [R6, #0xD8] \n"
 447 "    LDR     R11, =0xB918 \n"
 448 "    MOV     R2, #0 \n"
 449 "    ADD     R10, R9, #0x10 \n"
 450 "    STR     R8, [R6, #0xDC] \n"
 451 "    B       loc_FFAAC080 \n"
 452 
 453 "loc_FFAAC06C:\n"
 454 "    LDR     R0, =0x7A760 \n"
 455 "    MOV     R5, #2 \n"
 456 "    STR     R0, [R6, #0x80] \n"
 457 
 458 "loc_FFAAC078:\n"
 459 "    STR     R1, [R6, #0x4C] \n"
 460 "    B       loc_FFAABFB0 \n"
 461 
 462 "loc_FFAAC080:\n"
 463 "    MLA     R0, R2, R7, R8 \n"
 464 "    ADD     R12, R9, R2, LSL#3 \n"
 465 "    ADD     R0, R0, #3 \n"
 466 "    BIC     R0, R0, #3 \n"
 467 "    STR     R0, [R11, R2, LSL#2] \n"
 468 "    MOV     R0, #0 \n"
 469 "    ADD     R6, R10, R2, LSL#3 \n"
 470 
 471 "loc_FFAAC09C:\n"
 472 "    STR     R3, [R12, R0, LSL#2] \n"
 473 "    STR     R3, [R6, R0, LSL#2] \n"
 474 "    ADD     R0, R0, #1 \n"
 475 "    CMP     R0, #2 \n"
 476 "    BLT     loc_FFAAC09C \n"
 477 "    ADD     R2, R2, #1 \n"
 478 "    CMP     R2, #2 \n"
 479 "    BLT     loc_FFAAC080 \n"
 480 "    LDRH    R3, [R4, #0x14] \n"
 481 "    LDR     R2, [R4, #8] \n"
 482 "    MOV     R0, R5 \n"
 483 "    BL      sub_FF8D1060 \n"
 484 "    LDR     R1, =0xB7C8 \n"
 485 "    LDR     R2, [R1, #0x68] \n"
 486 "    ADD     R0, R0, R2 \n"
 487 "    STR     R0, [R1, #0x60] \n"
 488 "    LDMFD   SP!, {R4-R12,PC} \n"
 489 
 490 "loc_FFAAC0E0:\n"
 491 "    ADD     R0, R0, #0x1F \n"
 492 "    BIC     R0, R0, #0x1F \n"
 493 "    STR     R0, [R6, #0xD0] \n"
 494 "    LDR     R2, [R6, #0x80] \n"
 495 "    ADD     R0, R0, R2 \n"
 496 "    SUB     R2, R12, R0 \n"
 497 "    MOV     R2, R2, LSR#15 \n"
 498 "    MOV     R2, R2, LSL#15 \n"
 499 "    STR     R0, [R6, #0xD4] \n"
 500 "    ADD     R0, R0, R2 \n"
 501 "    STR     R2, [R6, #0xE0] \n"
 502 "    STR     R0, [R6, #0xD8] \n"
 503 "    LDRH    R3, [R4, #0x14] \n"
 504 "    LDR     R2, [R4, #8] \n"
 505 "    MOV     R0, R5 \n"
 506 "    BL      sub_FF8D1060 \n"
 507 "    STR     R0, [R6, #0x60] \n"
 508 "    LDMFD   SP!, {R4-R12,PC} \n"
 509 );
 510 }

/* [<][>][^][v][top][bottom][index][help] */