root/platform/ixus115_elph100hs/sub/101a/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_FF981644_my
  5. sub_FFADEEE0_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 @ 0xFF982008 - 0xFF982180, length=95
  15 void __attribute__((naked,noinline)) movie_record_task() {
  16 asm volatile (
  17 "    STMFD   SP!, {R2-R10,LR} \n"
  18 "    LDR     R6, =0xFF980D78 \n"
  19 "    LDR     R7, =0xFF981A60 \n"
  20 "    LDR     R4, =0x6D10 \n"
  21 "    LDR     R9, =0x67F \n"
  22 "    LDR     R10, =0x2710 \n"
  23 "    MOV     R8, #1 \n"
  24 "    MOV     R5, #0 \n"
  25 
  26 "loc_FF982028:\n"
  27 "    LDR     R0, [R4, #0x24] \n"
  28 "    MOV     R2, #0 \n"
  29 "    ADD     R1, SP, #4 \n"
  30 "    BL      sub_FF83B068 /*_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_FF982164 \n"
  38 "    LDR     R0, [SP, #4] \n"
  39 "    LDR     R1, [R0] \n"
  40 "    SUB     R1, R1, #2 \n"
  41 "    CMP     R1, #0xD \n"
  42 "    ADDCC   PC, PC, R1, LSL#2 \n"
  43 "    B       loc_FF982164 \n"
  44 "    B       loc_FF982104 \n"
  45 "    B       loc_FF982128 \n"
  46 "    B       loc_FF982138 \n"
  47 "    B       loc_FF982140 \n"
  48 "    B       loc_FF982148 \n"
  49 "    B       loc_FF982150 \n"
  50 "    B       loc_FF98210C \n"
  51 "    B       loc_FF982158 \n"
  52 "    B       loc_FF982118 \n"
  53 "    B       loc_FF982164 \n"
  54 "    B       loc_FF982160 \n"
  55 "    B       loc_FF9820D0 \n"
  56 "    B       loc_FF9820A0 \n"
  57 
  58 "loc_FF9820A0:\n"
  59 "    STR     R5, [R4, #0x40] \n"
  60 "    STR     R5, [R4, #0x30] \n"
  61 "    STR     R5, [R4, #0x34] \n"
  62 "    STRH    R5, [R4, #6] \n"
  63 "    STR     R6, [R4, #0xD8] \n"
  64 "    STR     R7, [R4, #0xF0] \n"
  65 "    LDR     R0, [R4, #0xC] \n"
  66 "    ADD     R0, R0, #1 \n"
  67 "    STR     R0, [R4, #0xC] \n"
  68 "    MOV     R0, #6 \n"
  69 "    STR     R0, [R4, #0x44] \n"
  70 "    B       loc_FF9820F0 \n"
  71 
  72 "loc_FF9820D0:\n"
  73 "    STR     R5, [R4, #0x40] \n"
  74 "    STR     R5, [R4, #0x30] \n"
  75 "    STR     R6, [R4, #0xD8] \n"
  76 "    STR     R7, [R4, #0xF0] \n"
  77 "    LDR     R0, [R4, #0xC] \n"
  78 "    ADD     R0, R0, #1 \n"
  79 "    STR     R0, [R4, #0xC] \n"
  80 "    STR     R8, [R4, #0x44] \n"
  81 
  82 "loc_FF9820F0:\n"
  83 "    LDR     R2, =0xFF9803C0 \n"
  84 "    LDR     R1, =0xB2A28 \n"
  85 "    LDR     R0, =0xFF9804D4 \n"
  86 "    BL      sub_FF854B04 \n"
  87 "    B       loc_FF982164 \n"
  88 
  89 "loc_FF982104:\n"
  90 "    BL      unlock_optical_zoom\n"         // +
  91 );
  92 if (conf.ext_video_time == 1)
  93 {
  94 asm volatile (
  95 "    BL      sub_FF981644_my \n"  // --> Patched. Old value = 0xFF981644.
  96 );
  97 }
  98 else
  99 {
 100 asm volatile (
 101 "    BL      sub_FF981644 \n"
 102 );
 103 }
 104 asm volatile (
 105 "    B       loc_FF982164 \n"
 106 
 107 "loc_FF98210C:\n"
 108 "    LDR     R1, [R4, #0xF0] \n"
 109 "    BLX     R1 \n"
 110 //begin patch
 111 "    LDR     R0, =video_compression_rate\n" // +
 112 "    BL      set_quality\n"                 // +
 113 //end patch
 114 "    B       loc_FF982164 \n"
 115 
 116 "loc_FF982118:\n"
 117 "    LDR     R1, [R0, #0x18] \n"
 118 "    LDR     R0, [R0, #4] \n"
 119 "    BL      sub_FFAE057C \n"
 120 "    B       loc_FF982164 \n"
 121 
 122 "loc_FF982128:\n"
 123 "    LDR     R0, [R4, #0x44] \n"
 124 "    CMP     R0, #5 \n"
 125 "    STRNE   R8, [R4, #0x34] \n"
 126 "    B       loc_FF982164 \n"
 127 
 128 "loc_FF982138:\n"
 129 "    BL      sub_FF980A54 \n"
 130 "    B       loc_FF982164 \n"
 131 
 132 "loc_FF982140:\n"
 133 "    BL      sub_FF980774 \n"
 134 "    B       loc_FF982164 \n"
 135 
 136 "loc_FF982148:\n"
 137 "    BL      sub_FF98052C \n"
 138 "    B       loc_FF982164 \n"
 139 
 140 "loc_FF982150:\n"
 141 "    BL      sub_FF980158 \n"
 142 "    B       loc_FF982164 \n"
 143 
 144 "loc_FF982158:\n"
 145 "    BL      sub_FF9800D8 \n"
 146 "    B       loc_FF982164 \n"
 147 
 148 "loc_FF982160:\n"
 149 "    BL      sub_FF9826B4 \n"
 150 
 151 "loc_FF982164:\n"
 152 "    LDR     R1, [SP, #4] \n"
 153 "    LDR     R3, =0xFF97FE88 /*'MovieRecorder.c'*/ \n"
 154 "    STR     R5, [R1] \n"
 155 "    STR     R9, [SP] \n"
 156 "    LDR     R0, [R4, #0x28] \n"
 157 "    MOV     R2, R10 \n"
 158 "    BL      sub_FF83B9E0 /*_PostMessageQueueStrictly*/ \n"
 159 "    B       loc_FF982028 \n"
 160 );
 161 }
 162 
 163 /*************************************************************/
 164 //** sub_FF981644_my @ 0xFF981644 - 0xFF981924, length=185
 165 void __attribute__((naked,noinline)) sub_FF981644_my() {
 166 asm volatile (
 167 "    STMFD   SP!, {R0-R8,LR} \n"
 168 "    LDR     R6, =0x6D10 \n"
 169 "    MOV     R0, #0 \n"
 170 "    STR     R0, [R6, #0x34] \n"
 171 "    STR     R0, [R6, #0x38] \n"
 172 "    MOV     R0, R6 \n"
 173 "    LDR     R0, [R0, #0x5C] \n"
 174 "    LDRH    R1, [R6, #6] \n"
 175 "    MOV     R3, #0x3E8 \n"
 176 "    MUL     R0, R3, R0 \n"
 177 "    CMP     R1, #0 \n"
 178 "    MOV     R2, #1 \n"
 179 "    BNE     loc_FF981688 \n"
 180 "    LDR     R1, [R6, #0x90] \n"
 181 "    CMP     R1, #0 \n"
 182 "    BNE     loc_FF981698 \n"
 183 "    B       loc_FF981690 \n"
 184 
 185 "loc_FF981688:\n"
 186 "    CMP     R1, #3 \n"
 187 "    BNE     loc_FF981698 \n"
 188 
 189 "loc_FF981690:\n"
 190 "    STR     R2, [R6, #0x48] \n"
 191 "    B       loc_FF9816A4 \n"
 192 
 193 "loc_FF981698:\n"
 194 "    MOV     R1, #0x3E8 \n"
 195 "    BL      sub_FFB9457C /*__divmod_unsigned_int*/ \n"
 196 "    STR     R0, [R6, #0x48] \n"
 197 
 198 "loc_FF9816A4:\n"
 199 "    LDR     R4, =0xB2A5C \n"
 200 "    MOV     R7, #2 \n"
 201 "    LDR     R0, [R4, #8] \n"
 202 "    CMP     R0, #0 \n"
 203 "    BEQ     loc_FF98170C \n"
 204 "    LDR     R0, [R6, #0x58] \n"
 205 "    MOV     R1, #4 \n"
 206 "    CMP     R0, #0x18 \n"
 207 "    BEQ     loc_FF9818A0 \n"
 208 "    BGT     loc_FF9816E8 \n"
 209 "    CMP     R0, #0xA \n"
 210 "    CMPNE   R0, #0xF \n"
 211 "    STREQ   R7, [R4, #0x14] \n"
 212 "    BEQ     loc_FF98170C \n"
 213 "    CMP     R0, #0x14 \n"
 214 "    BNE     loc_FF981700 \n"
 215 "    B       loc_FF9818A0 \n"
 216 
 217 "loc_FF9816E8:\n"
 218 "    CMP     R0, #0x1E \n"
 219 "    BEQ     loc_FF9818A0 \n"
 220 "    CMP     R0, #0x3C \n"
 221 "    MOVEQ   R0, #8 \n"
 222 "    STREQ   R0, [R4, #0x14] \n"
 223 "    BEQ     loc_FF98170C \n"
 224 
 225 "loc_FF981700:\n"
 226 "    LDR     R1, =0x777 \n"
 227 "    LDR     R0, =0xFF97FE88 /*'MovieRecorder.c'*/ \n"
 228 "    BL      _DebugAssert \n"
 229 
 230 "loc_FF98170C:\n"
 231 "    LDR     R2, =0x6D12 \n"
 232 "    LDR     R0, [R6, #0xB8] \n"
 233 "    MOV     R3, #2 \n"
 234 "    MOV     R1, #0xAA \n"
 235 "    BL      sub_FF894C48 \n"
 236 "    LDR     R2, =0x6D14 \n"
 237 "    LDR     R0, [R6, #0xB8] \n"
 238 "    MOV     R3, #2 \n"
 239 "    MOV     R1, #0xA9 \n"
 240 "    BL      sub_FF894C48 \n"
 241 "    LDR     R2, =0x6D60 \n"
 242 "    LDR     R0, [R6, #0xB8] \n"
 243 "    MOV     R3, #4 \n"
 244 "    MOV     R1, #0xA2 \n"
 245 "    BL      sub_FF894C48 \n"
 246 "    LDR     R2, =0x6D64 \n"
 247 "    LDR     R0, [R6, #0xB8] \n"
 248 "    MOV     R3, #4 \n"
 249 "    MOV     R1, #0xA3 \n"
 250 "    BL      sub_FF894C48 \n"
 251 "    LDR     R0, [R6, #0x90] \n"
 252 "    CMP     R0, #0 \n"
 253 "    LDRNE   R2, =0x6E10 \n"
 254 "    MOVNE   R1, #0 \n"
 255 "    MOVNE   R0, #0xD \n"
 256 "    BLNE    sub_FF88F1F8 \n"
 257 "    LDR     R0, [R6, #0x4C] \n"
 258 "    LDR     R5, =0x6E10 \n"
 259 "    LDR     R8, =0xB2A44 \n"
 260 "    CMP     R0, #2 \n"
 261 "    CMPNE   R0, #3 \n"
 262 "    BNE     loc_FF981808 \n"
 263 "    LDR     R0, [R6, #0x90] \n"
 264 "    CMP     R0, #0 \n"
 265 "    LDRNE   R0, =0x443FC000 \n"
 266 "    STRNE   R0, [R5] \n"
 267 "    BNE     loc_FF981808 \n"
 268 "    LDR     R0, =0x460B8600 \n"
 269 "    LDR     R1, =0x10959E0 \n"
 270 "    STR     R0, [R5] \n"
 271 "    STR     R1, [R5, #4] \n"
 272 "    LDMIA   R8, {R1,R2} \n"
 273 "    STR     R0, [R6, #0xA0] \n"
 274 "    MUL     R1, R2, R1 \n"
 275 "    MOV     R2, #0 \n"
 276 "    MOV     R3, R1, LSL#1 \n"
 277 "    ADD     R1, R0, R3 \n"
 278 "    STR     R3, [R6, #0x9C] \n"
 279 "    STR     R1, [R6, #0xA4] \n"
 280 "    STMEA   SP, {R1-R3} \n"
 281 "    MOV     R3, R2 \n"
 282 "    MOV     R2, #9 \n"
 283 "    MOV     R1, #5 \n"
 284 "    MOV     R0, #0x10 \n"
 285 "    BL      sub_FFA932FC \n"
 286 "    LDR     R1, [R5] \n"
 287 "    LDR     R0, [R6, #0x9C] \n"
 288 "    ADD     R1, R1, R0, LSL#1 \n"
 289 "    STR     R1, [R5] \n"
 290 "    LDR     R1, [R5, #4] \n"
 291 "    RSB     R0, R0, #0 \n"
 292 "    ADD     R0, R1, R0, LSL#1 \n"
 293 "    STR     R0, [R5, #4] \n"
 294 
 295 "loc_FF981808:\n"
 296 "    LDR     R3, =0xFF981610 \n"
 297 "    LDMIA   R5, {R0,R1} \n"
 298 "    STR     R3, [SP] \n"
 299 "    LDR     R3, =0xB2A5C \n"
 300 "    SUB     R2, R3, #0x18 \n"
 301 "    BL      sub_FFADEEE0_my \n"  // --> Patched. Old value = 0xFFADEEE0.
 302 "    LDR     R3, [R6, #0xB8] \n"
 303 "    STR     R3, [SP] \n"
 304 "    LDR     R0, [R6, #0x90] \n"
 305 "    LDRD    R2, [R6, #0xF8] \n"
 306 "    BL      sub_FFADF2F4 \n"
 307 "    LDR     R0, [R6, #0x64] \n"
 308 "    LDR     R3, =0x6D98 \n"
 309 "    AND     R1, R0, #0xFF \n"
 310 "    LDR     R0, [R8] \n"
 311 "    SUB     R2, R3, #4 \n"
 312 "    BL      sub_FFADD05C \n"
 313 "    LDRH    R0, [R6, #6] \n"
 314 "    CMP     R0, #2 \n"
 315 "    LDREQ   R0, =0xFF9812E4 \n"
 316 "    STREQ   R0, [R6, #0xF0] \n"
 317 "    LDR     R0, [R6, #0x90] \n"
 318 "    CMP     R0, #0 \n"
 319 "    LDREQ   R1, =0xFF980F28 \n"
 320 "    STREQ   R1, [R6, #0xF0] \n"
 321 "    LDR     R2, [R6, #0xC] \n"
 322 "    LDR     R1, =0xFFBD6548 \n"
 323 "    CMP     R2, #2 \n"
 324 "    BNE     loc_FF9818A8 \n"
 325 "    LDR     R0, [R6, #0x4C] \n"
 326 "    ADD     R0, R1, R0, LSL#3 \n"
 327 "    LDR     R1, [R8, #0xC] \n"
 328 "    LDR     R0, [R0, R1, LSL#2] \n"
 329 "    BL      sub_FFA99398 \n"
 330 "    LDR     R0, =0xFF980E54 \n"
 331 "    MOV     R1, #0 \n"
 332 "    BL      sub_FFA998AC \n"
 333 "    B       loc_FF9818E4 \n"
 334 
 335 "loc_FF9818A0:\n"
 336 "    STR     R1, [R4, #0x14] \n"
 337 "    B       loc_FF98170C \n"
 338 
 339 "loc_FF9818A8:\n"
 340 "    CMP     R0, #0 \n"
 341 "    BNE     loc_FF9818C4 \n"
 342 "    LDR     R1, [R6, #0x98] \n"
 343 "    MOV     R0, #5 \n"
 344 "    BL      sub_FFA998C0 \n"
 345 "    BL      sub_FFA99950 \n"
 346 "    B       loc_FF9818E4 \n"
 347 
 348 "loc_FF9818C4:\n"
 349 "    LDR     R0, [R6, #0x4C] \n"
 350 "    ADD     R0, R1, R0, LSL#3 \n"
 351 "    LDR     R1, [R8, #0xC] \n"
 352 "    LDR     R0, [R0, R1, LSL#2] \n"
 353 "    BL      sub_FFA97B28 \n"
 354 "    LDR     R0, =0xFF980E54 \n"
 355 "    MOV     R1, #0 \n"
 356 "    BL      sub_FFA98274 \n"
 357 
 358 "loc_FF9818E4:\n"
 359 "    LDR     R0, [R4, #8] \n"
 360 "    CMP     R0, #0 \n"
 361 "    BEQ     loc_FF981918 \n"
 362 "    ADD     R0, SP, #0xC \n"
 363 "    BL      sub_FFAE03F8 \n"
 364 "    LDR     R1, [R4, #0xC] \n"
 365 "    LDR     R0, [SP, #0xC] \n"
 366 "    BL      sub_FF866434 \n"
 367 "    ADD     R0, SP, #0xC \n"
 368 "    BL      sub_FFAE03F8 \n"
 369 "    LDR     R1, [R4, #0xC] \n"
 370 "    LDR     R0, [SP, #0xC] \n"
 371 "    BL      sub_FF866434 \n"
 372 
 373 "loc_FF981918:\n"
 374 "    LDR     R0, =0xFF980E0C \n"
 375 "    STR     R7, [R6, #0x44]! \n"
 376 "    STR     R0, [R6, #0x94] \n"
 377 "    LDMFD   SP!, {R0-R8,PC} \n"
 378 );
 379 }
 380 
 381 /*************************************************************/
 382 //** sub_FFADEEE0_my @ 0xFFADEEE0 - 0xFFADF298, length=239
 383 void __attribute__((naked,noinline)) sub_FFADEEE0_my() {
 384 asm volatile (
 385 "    STMFD   SP!, {R0-R12,LR} \n"
 386 "    MOV     R9, R0 \n"
 387 "    LDR     R0, [R2, #0x10] \n"
 388 "    LDR     R8, [SP, #0x38] \n"
 389 "    CMP     R0, #0 \n"
 390 "    LDREQ   R1, =0x31E \n"
 391 "    LDREQ   R0, =0xFFADDEBC /*'MovWriter.c'*/ \n"
 392 "    MOV     R5, #0 \n"
 393 "    MOV     R4, R2 \n"
 394 "    MOV     R10, R3 \n"
 395 "    MOV     R7, R5 \n"
 396 "    BLEQ    _DebugAssert \n"
 397 "    LDR     R6, =0xC548 \n"
 398 "    LDR     R0, [R4] \n"
 399 "    MOV     R11, #0x1E \n"
 400 "    STR     R0, [R6, #0xD0] \n"
 401 "    LDR     R0, [R4, #4] \n"
 402 "    STR     R0, [R6, #0xD4] \n"
 403 "    LDR     R0, [R4, #0x10] \n"
 404 "    STR     R0, [R6, #0xE0] \n"
 405 "    LDR     R1, [R4, #8] \n"
 406 "    LDR     R0, =0x7530 \n"
 407 "    CMP     R1, #0xB \n"
 408 "    ADDCC   PC, PC, R1, LSL#2 \n"
 409 "    B       loc_FFADEFCC \n"
 410 "    B       loc_FFADEF80 \n"
 411 "    B       loc_FFADEF70 \n"
 412 "    B       loc_FFADEFA8 \n"
 413 "    B       loc_FFADEFBC \n"
 414 "    B       loc_FFADEFCC \n"
 415 "    B       loc_FFADEFCC \n"
 416 "    B       loc_FFADEFCC \n"
 417 "    B       loc_FFADEFCC \n"
 418 "    B       loc_FFADEFA0 \n"
 419 "    B       loc_FFADEF98 \n"
 420 "    B       loc_FFADEF88 \n"
 421 
 422 "loc_FFADEF70:\n"
 423 "    LDR     R7, =0x5DC0 \n"
 424 "    MOV     R0, #0x18 \n"
 425 "    STR     R7, [R6, #0x12C] \n"
 426 "    B       loc_FFADEFB4 \n"
 427 
 428 "loc_FFADEF80:\n"
 429 "    MOV     R7, R0 \n"
 430 "    B       loc_FFADEF8C \n"
 431 
 432 "loc_FFADEF88:\n"
 433 "    LDR     R7, =0x5DC \n"
 434 
 435 "loc_FFADEF8C:\n"
 436 "    STR     R0, [R6, #0x12C] \n"
 437 "    STR     R11, [R6, #0xD8] \n"
 438 "    B       loc_FFADEFD8 \n"
 439 
 440 "loc_FFADEF98:\n"
 441 "    LDR     R7, =0xBB8 \n"
 442 "    B       loc_FFADEF8C \n"
 443 
 444 "loc_FFADEFA0:\n"
 445 "    LDR     R7, =0x1770 \n"
 446 "    B       loc_FFADEF8C \n"
 447 
 448 "loc_FFADEFA8:\n"
 449 "    LDR     R7, =0x57600000 \n"  // --> Patched. Old value = 0x3A980. 2hrs 240fps
 450 "    STR     R0, [R6, #0x12C] \n"
 451 "    MOV     R0, #0xF0 \n"
 452 
 453 "loc_FFADEFB4:\n"
 454 "    STR     R0, [R6, #0xD8] \n"
 455 "    B       loc_FFADEFD8 \n"
 456 
 457 "loc_FFADEFBC:\n"
 458 "    STR     R0, [R6, #0x12C] \n"
 459 "    LDR     R7, =0x28800000 \n"  // --> Patched. Old value = 0x1D4C0. 2hrs 120fps
 460 "    MOV     R0, #0x78 \n"
 461 "    B       loc_FFADEFB4 \n"
 462 
 463 "loc_FFADEFCC:\n"
 464 "    LDR     R1, =0x34F \n"
 465 "    LDR     R0, =0xFFADDEBC /*'MovWriter.c'*/ \n"
 466 "    BL      _DebugAssert \n"
 467 
 468 "loc_FFADEFD8:\n"
 469 "    LDR     R0, [R6, #0xD8] \n"
 470 "    LDR     R1, =0x1C20 \n"  // --> Patched. Old value = 0xE0F. 2hrs
 471 "    MOV     R0, R0, LSR#1 \n"
 472 "    STR     R0, [R6, #0xDC] \n"
 473 "    LDR     R0, [R10] \n"
 474 "    STR     R0, [R6, #0xE4] \n"
 475 "    LDRH    R0, [R10, #0x10] \n"
 476 "    STR     R0, [R6, #0xE8] \n"
 477 "    LDR     R0, [R10, #4] \n"
 478 "    STRH    R0, [R6, #2] \n"
 479 "    LDR     R0, [R10, #8] \n"
 480 "    STRH    R0, [R6, #4] \n"
 481 "    LDR     R0, [R10, #0x14] \n"
 482 "    STR     R0, [R6, #0xEC] \n"
 483 "    STR     R8, [R6, #0x128] \n"
 484 "    LDR     R0, [R6, #0xD0] \n"
 485 "    CMP     R0, #0x140 \n"
 486 "    MOVEQ   R0, #0x20000 \n"
 487 "    MOVEQ   R5, #1 \n"
 488 "    STREQ   R0, [R6, #0xAC] \n"
 489 "    BEQ     loc_FFADF06C \n"
 490 "    CMP     R0, #0x280 \n"
 491 "    LDREQ   R0, =0x7A760 \n"
 492 "    MOVEQ   R5, #2 \n"
 493 "    STREQ   R0, [R6, #0xAC] \n"
 494 "    BEQ     loc_FFADF06C \n"
 495 "    CMP     R0, #0x500 \n"
 496 "    LDREQ   R0, =0x11DA50 \n"
 497 "    LDR     R1, =0x1C20 \n"  // --> Patched. Old value = 0x257. 2hrs
 498 "    MOVEQ   R5, #4 \n"
 499 "    STREQ   R0, [R6, #0xAC] \n"
 500 "    BEQ     loc_FFADF06C \n"
 501 "    CMP     R0, #0x780 \n"
 502 "    BNE     loc_FFADF074 \n"
 503 "    MOV     R0, #0x200000 \n"
 504 "    MOV     R5, #5 \n"
 505 "    STR     R0, [R6, #0xAC] \n"
 506 
 507 "loc_FFADF06C:\n"
 508 "    STR     R1, [R6, #0x4C] \n"
 509 "    B       loc_FFADF080 \n"
 510 
 511 "loc_FFADF074:\n"
 512 "    LDR     R1, =0x377 \n"
 513 "    LDR     R0, =0xFFADDEBC /*'MovWriter.c'*/ \n"
 514 "    BL      _DebugAssert \n"
 515 
 516 "loc_FFADF080:\n"
 517 "    LDR     R0, [R6, #0x4C] \n"
 518 "    LDR     R1, =0x138D \n"
 519 "    MUL     R0, R7, R0 \n"
 520 "    BL      sub_FFB9457C /*__divmod_unsigned_int*/ \n"
 521 "    ADD     R0, R0, #1 \n"
 522 "    ADD     R0, R0, R0, LSL#2 \n"
 523 "    STR     R0, [R6, #0x48] \n"
 524 "    LDR     R8, [R4, #8] \n"
 525 "    CMP     R8, #2 \n"
 526 "    CMPNE   R8, #3 \n"
 527 "    BNE     loc_FFADF0D8 \n"
 528 "    RSB     R0, R7, R7, LSL#4 \n"
 529 "    LDR     R1, =0x3E9 \n"
 530 "    MOV     R0, R0, LSL#1 \n"
 531 "    STR     R11, [R6, #0x4C] \n"
 532 "    BL      sub_FFB9457C /*__divmod_unsigned_int*/ \n"
 533 "    LDR     R1, [R6, #0xE0] \n"
 534 "    MOV     R7, R1 \n"
 535 "    BL      sub_FFB9457C /*__divmod_unsigned_int*/ \n"
 536 "    ADD     R0, R0, #1 \n"
 537 "    MUL     R0, R7, R0 \n"
 538 "    STR     R0, [R6, #0x48] \n"
 539 
 540 "loc_FFADF0D8:\n"
 541 "    LDR     R0, [R4, #0xC] \n"
 542 "    LDR     R7, [R10, #0xC] \n"
 543 "    MOVS    R1, R0 \n"
 544 "    MOV     R0, R7, LSR#1 \n"
 545 "    STR     R7, [R6, #0x94] \n"
 546 "    STR     R0, [R6, #0x98] \n"
 547 "    ADD     R0, R9, #3 \n"
 548 "    BIC     R0, R0, #3 \n"
 549 "    STR     R0, [R6, #0xF4] \n"
 550 "    LDR     R2, [R6, #0x48] \n"
 551 "    MOVNE   R1, #1 \n"
 552 "    MOV     R2, R2, LSL#2 \n"
 553 "    ADD     R3, R0, R2 \n"
 554 "    STR     R3, [R6, #0xF8] \n"
 555 "    LDRH    R12, [R6, #4] \n"
 556 "    LDR     R0, [SP, #4] \n"
 557 "    ADD     R2, R2, R3 \n"
 558 "    CMP     R12, #0 \n"
 559 "    ADD     R0, R0, R9 \n"
 560 "    BEQ     loc_FFADF254 \n"
 561 "    STR     R2, [R6, #0xFC] \n"
 562 "    LDR     R3, [R6, #0x4C] \n"
 563 "    LDR     R9, =0x1061D0 \n"
 564 "    ADD     R2, R2, R3, LSL#3 \n"
 565 "    ADD     R2, R2, #0x1F \n"
 566 "    BIC     R2, R2, #0x1F \n"
 567 "    STR     R2, [R6, #0x100] \n"
 568 "    LDR     R3, [R6, #0xAC] \n"
 569 "    LDR     R11, =0xC6C8 \n"
 570 "    ADD     R2, R2, R3 \n"
 571 "    ADD     R3, R2, #0x100000 \n"
 572 "    STR     R2, [R6, #0x78] \n"
 573 "    SUB     R0, R0, R3 \n"
 574 "    RSB     R2, R7, #0 \n"
 575 "    ADD     R0, R0, R2, LSL#1 \n"
 576 "    MOV     R0, R0, LSR#15 \n"
 577 "    MOV     R0, R0, LSL#15 \n"
 578 "    STR     R3, [R6, #0x104] \n"
 579 "    ADD     R8, R3, R0 \n"
 580 "    STR     R0, [R6, #0x110] \n"
 581 "    STR     R8, [R6, #0x108] \n"
 582 "    MOV     R2, #0 \n"
 583 "    ADD     R10, R9, #0x10 \n"
 584 "    STR     R8, [R6, #0x10C] \n"
 585 
 586 "loc_FFADF188:\n"
 587 "    MLA     R0, R2, R7, R8 \n"
 588 "    ADD     R12, R9, R2, LSL#3 \n"
 589 "    ADD     R0, R0, #3 \n"
 590 "    BIC     R0, R0, #3 \n"
 591 "    STR     R0, [R11, R2, LSL#2] \n"
 592 "    MOV     R0, #0 \n"
 593 "    ADD     R6, R10, R2, LSL#3 \n"
 594 
 595 "loc_FFADF1A4:\n"
 596 "    STR     R3, [R12, R0, LSL#2] \n"
 597 "    STR     R3, [R6, R0, LSL#2] \n"
 598 "    ADD     R0, R0, #1 \n"
 599 "    CMP     R0, #2 \n"
 600 "    BLT     loc_FFADF1A4 \n"
 601 "    ADD     R2, R2, #1 \n"
 602 "    CMP     R2, #2 \n"
 603 "    BLT     loc_FFADF188 \n"
 604 "    LDRH    R3, [R4, #0x14] \n"
 605 "    LDR     R2, [R4, #8] \n"
 606 "    MOV     R0, R5 \n"
 607 "    BL      sub_FF8DEE14 \n"
 608 "    LDR     R1, =0xC548 \n"
 609 "    LDR     R2, [R1, #0x94] \n"
 610 "    ADD     R0, R0, R2 \n"
 611 "    STR     R0, [R1, #0x8C] \n"
 612 "    LDMFD   SP!, {R0-R12,PC} \n"
 613 
 614 "loc_FFADF254:\n"
 615 "    ADD     R2, R2, #0x1F \n"
 616 "    BIC     R2, R2, #0x1F \n"
 617 "    STR     R2, [R6, #0x100] \n"
 618 "    LDR     R3, [R6, #0xAC] \n"
 619 "    ADD     R2, R2, R3 \n"
 620 "    SUB     R0, R0, R2 \n"
 621 "    MOV     R0, R0, LSR#15 \n"
 622 "    MOV     R0, R0, LSL#15 \n"
 623 "    STR     R2, [R6, #0x104] \n"
 624 "    STR     R0, [R6, #0x110] \n"
 625 "    ADD     R0, R0, R2 \n"
 626 "    STR     R0, [R6, #0x108] \n"
 627 "    LDRH    R3, [R4, #0x14] \n"
 628 "    MOV     R2, R8 \n"
 629 "    MOV     R0, R5 \n"
 630 "    BL      sub_FF8DEE14 \n"
 631 "    STR     R0, [R6, #0x8C] \n"
 632 "    LDMFD   SP!, {R0-R12,PC} \n"
 633 );
 634 }

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