root/platform/ixus310_elph500hs/sub/100a/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_FF17F23C_my
  5. sub_FF303920_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 @ 0xFF17FC00 - 0xFF17FD78, length=95
  15 void __attribute__((naked,noinline)) movie_record_task() {
  16 asm volatile (
  17 "    STMFD   SP!, {R2-R10,LR} \n"
  18 "    LDR     R6, =0xFF17E970 \n"
  19 "    LDR     R7, =0xFF17F658 \n"
  20 "    LDR     R4, =0x7098 \n"
  21 "    LDR     R9, =0x67F \n"
  22 "    LDR     R10, =0x2710 \n"
  23 "    MOV     R8, #1 \n"
  24 "    MOV     R5, #0 \n"
  25 
  26 "loc_FF17FC20:\n"
  27 "    LDR     R0, [R4, #0x24] \n"
  28 "    MOV     R2, #0 \n"
  29 "    ADD     R1, SP, #4 \n"
  30 "    BL      sub_FF02ADD8 /*_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_FF17FD5C \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_FF17FD5C \n"
  44 "    B       loc_FF17FCFC \n"
  45 "    B       loc_FF17FD20 \n"
  46 "    B       loc_FF17FD30 \n"
  47 "    B       loc_FF17FD38 \n"
  48 "    B       loc_FF17FD40 \n"
  49 "    B       loc_FF17FD48 \n"
  50 "    B       loc_FF17FD04 \n"
  51 "    B       loc_FF17FD50 \n"
  52 "    B       loc_FF17FD10 \n"
  53 "    B       loc_FF17FD5C \n"
  54 "    B       loc_FF17FD58 \n"
  55 "    B       loc_FF17FCC8 \n"
  56 "    B       loc_FF17FC98 \n"
  57 
  58 "loc_FF17FC98:\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_FF17FCE8 \n"
  71 
  72 "loc_FF17FCC8:\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_FF17FCE8:\n"
  83 "    LDR     R2, =0xFF17DFAC \n"
  84 "    LDR     R1, =0xB3608 \n"
  85 "    LDR     R0, =0xFF17E0C0 \n"
  86 "    BL      sub_FF0449C8 \n"
  87 "    B       loc_FF17FD5C \n"
  88 
  89 "loc_FF17FCFC:\n"
  90 "    BL      sub_FF17F23C_my \n"  // --> Patched. Old value = 0xFF17F23C.
  91 "    B       loc_FF17FD5C \n"
  92 
  93 "loc_FF17FD04:\n"
  94 "    LDR     R1, [R4, #0xF0] \n"
  95 "    BLX     R1 \n"
  96 
  97 "    LDR     R0, =video_compression_rate\n" //added
  98 "    BL      set_quality\n"                 //added
  99 
 100 "    B       loc_FF17FD5C \n"
 101 
 102 "loc_FF17FD10:\n"
 103 "    LDR     R1, [R0, #0x18] \n"
 104 "    LDR     R0, [R0, #4] \n"
 105 "    BL      sub_FF304FA4 \n"
 106 "    B       loc_FF17FD5C \n"
 107 
 108 "loc_FF17FD20:\n"
 109 "    LDR     R0, [R4, #0x44] \n"
 110 "    CMP     R0, #5 \n"
 111 "    STRNE   R8, [R4, #0x34] \n"
 112 "    B       loc_FF17FD5C \n"
 113 
 114 "loc_FF17FD30:\n"
 115 "    BL      sub_FF17E64C \n"
 116 "    B       loc_FF17FD5C \n"
 117 
 118 "loc_FF17FD38:\n"
 119 "    BL      sub_FF17E360 \n"
 120 "    B       loc_FF17FD5C \n"
 121 
 122 "loc_FF17FD40:\n"
 123 "    BL      sub_FF17E118 \n"
 124 "    B       loc_FF17FD5C \n"
 125 
 126 "loc_FF17FD48:\n"
 127 "    BL      sub_FF17DD40 \n"
 128 "    B       loc_FF17FD5C \n"
 129 
 130 "loc_FF17FD50:\n"
 131 "    BL      sub_FF17DCC0 \n"
 132 "    B       loc_FF17FD5C \n"
 133 
 134 "loc_FF17FD58:\n"
 135 "    BL      sub_FF1802AC \n"
 136 
 137 "loc_FF17FD5C:\n"
 138 "    LDR     R1, [SP, #4] \n"
 139 "    LDR     R3, =0xFF17DA24 /*'MovieRecorder.c'*/ \n"
 140 "    STR     R5, [R1] \n"
 141 "    STR     R9, [SP] \n"
 142 "    LDR     R0, [R4, #0x28] \n"
 143 "    MOV     R2, R10 \n"
 144 "    BL      sub_FF02B750 /*_PostMessageQueueStrictly*/ \n"
 145 "    B       loc_FF17FC20 \n"
 146 );
 147 }
 148 
 149 /*************************************************************/
 150 //** sub_FF17F23C_my @ 0xFF17F23C - 0xFF17F49C, length=153
 151 void __attribute__((naked,noinline)) sub_FF17F23C_my() {
 152 asm volatile (
 153 "    STMFD   SP!, {R0-R8,LR} \n"
 154 "    LDR     R6, =0x7098 \n"
 155 "    MOV     R0, #0 \n"
 156 "    STR     R0, [R6, #0x34] \n"
 157 "    STR     R0, [R6, #0x38] \n"
 158 "    MOV     R0, R6 \n"
 159 "    LDR     R0, [R0, #0x5C] \n"
 160 "    LDRH    R1, [R6, #6] \n"
 161 "    MOV     R3, #0x3E8 \n"
 162 "    MUL     R0, R3, R0 \n"
 163 "    CMP     R1, #0 \n"
 164 "    MOV     R2, #1 \n"
 165 "    BNE     loc_FF17F280 \n"
 166 "    LDR     R1, [R6, #0x90] \n"
 167 "    CMP     R1, #0 \n"
 168 "    BNE     loc_FF17F290 \n"
 169 "    B       loc_FF17F288 \n"
 170 
 171 "loc_FF17F280:\n"
 172 "    CMP     R1, #3 \n"
 173 "    BNE     loc_FF17F290 \n"
 174 
 175 "loc_FF17F288:\n"
 176 "    STR     R2, [R6, #0x48] \n"
 177 "    B       loc_FF17F29C \n"
 178 
 179 "loc_FF17F290:\n"
 180 "    MOV     R1, #0x3E8 \n"
 181 "    BL      sub_FF3CA57C /*__divmod_unsigned_int*/ \n"
 182 "    STR     R0, [R6, #0x48] \n"
 183 
 184 "loc_FF17F29C:\n"
 185 "    LDR     R4, =0xB363C \n"
 186 "    MOV     R7, #2 \n"
 187 "    LDR     R0, [R4, #8] \n"
 188 "    CMP     R0, #0 \n"
 189 "    BEQ     loc_FF17F304 \n"
 190 "    LDR     R0, [R6, #0x58] \n"
 191 "    MOV     R1, #4 \n"
 192 "    CMP     R0, #0x18 \n"
 193 "    BEQ     loc_FF17F498 \n"
 194 "    BGT     loc_FF17F2E0 \n"
 195 "    CMP     R0, #0xA \n"
 196 "    CMPNE   R0, #0xF \n"
 197 "    STREQ   R7, [R4, #0x14] \n"
 198 "    BEQ     loc_FF17F304 \n"
 199 "    CMP     R0, #0x14 \n"
 200 "    BNE     loc_FF17F2F8 \n"
 201 "    B       loc_FF17F498 \n"
 202 
 203 "loc_FF17F2E0:\n"
 204 "    CMP     R0, #0x1E \n"
 205 "    BEQ     loc_FF17F498 \n"
 206 "    CMP     R0, #0x3C \n"
 207 "    MOVEQ   R0, #8 \n"
 208 "    STREQ   R0, [R4, #0x14] \n"
 209 "    BEQ     loc_FF17F304 \n"
 210 
 211 "loc_FF17F2F8:\n"
 212 "    LDR     R1, =0x777 \n"
 213 "    LDR     R0, =0xFF17DA24 /*'MovieRecorder.c'*/ \n"
 214 "    BL      _DebugAssert \n"
 215 
 216 "loc_FF17F304:\n"
 217 "    LDR     R2, =0x709A \n"
 218 "    LDR     R0, [R6, #0xB8] \n"
 219 "    MOV     R3, #2 \n"
 220 "    MOV     R1, #0xAA \n"
 221 "    BL      sub_FF088180 \n"
 222 "    LDR     R2, =0x709C \n"
 223 "    LDR     R0, [R6, #0xB8] \n"
 224 "    MOV     R3, #2 \n"
 225 "    MOV     R1, #0xA9 \n"
 226 "    BL      sub_FF088180 \n"
 227 "    LDR     R2, =0x70E8 \n"
 228 "    LDR     R0, [R6, #0xB8] \n"
 229 "    MOV     R3, #4 \n"
 230 "    MOV     R1, #0xA2 \n"
 231 "    BL      sub_FF088180 \n"
 232 "    LDR     R2, =0x70EC \n"
 233 "    LDR     R0, [R6, #0xB8] \n"
 234 "    MOV     R3, #4 \n"
 235 "    MOV     R1, #0xA3 \n"
 236 "    BL      sub_FF088180 \n"
 237 "    LDR     R0, [R6, #0x90] \n"
 238 "    CMP     R0, #0 \n"
 239 "    LDRNE   R2, =0x7198 \n"
 240 "    MOVNE   R1, #0 \n"
 241 "    MOVNE   R0, #0xD \n"
 242 "    BLNE    sub_FF08268C /*_exmem_ualloc*/ \n"
 243 "    LDR     R0, [R6, #0x4C] \n"
 244 "    LDR     R5, =0x7198 \n"
 245 "    LDR     R8, =0xB3624 \n"
 246 "    CMP     R0, #2 \n"
 247 "    CMPNE   R0, #3 \n"
 248 "    BNE     loc_FF17F400 \n"
 249 "    LDR     R0, [R6, #0x90] \n"
 250 "    CMP     R0, #0 \n"
 251 "    LDRNE   R0, =0x443FC000 \n"
 252 "    STRNE   R0, [R5] \n"
 253 "    BNE     loc_FF17F400 \n"
 254 "    LDR     R0, =0x460B8600 \n"
 255 "    LDR     R1, =0x10959E0 \n"
 256 "    STR     R0, [R5] \n"
 257 "    STR     R1, [R5, #4] \n"
 258 "    LDMIA   R8, {R1,R2} \n"
 259 "    STR     R0, [R6, #0xA0] \n"
 260 "    MUL     R1, R2, R1 \n"
 261 "    MOV     R2, #0 \n"
 262 "    MOV     R3, R1, LSL#1 \n"
 263 "    ADD     R1, R0, R3 \n"
 264 "    STR     R3, [R6, #0x9C] \n"
 265 "    STR     R1, [R6, #0xA4] \n"
 266 "    STMEA   SP, {R1-R3} \n"
 267 "    MOV     R3, R2 \n"
 268 "    MOV     R2, #9 \n"
 269 "    MOV     R1, #5 \n"
 270 "    MOV     R0, #0x10 \n"
 271 "    BL      sub_FF2AF624 \n"
 272 "    LDR     R1, [R5] \n"
 273 "    LDR     R0, [R6, #0x9C] \n"
 274 "    ADD     R1, R1, R0, LSL#1 \n"
 275 "    STR     R1, [R5] \n"
 276 "    LDR     R1, [R5, #4] \n"
 277 "    RSB     R0, R0, #0 \n"
 278 "    ADD     R0, R1, R0, LSL#1 \n"
 279 "    STR     R0, [R5, #4] \n"
 280 
 281 "loc_FF17F400:\n"
 282 "    LDR     R3, =0xFF17F208 \n"
 283 "    LDMIA   R5, {R0,R1} \n"
 284 "    STR     R3, [SP] \n"
 285 "    LDR     R3, =0xB363C \n"
 286 "    SUB     R2, R3, #0x18 \n"
 287 "    BL      sub_FF303920_my \n"  // --> Patched. Old value = 0xFF303920.
 288 "    LDR     R3, [R6, #0xB8] \n"
 289 "    STR     R3, [SP] \n"
 290 "    LDR     R0, [R6, #0x90] \n"
 291 "    LDRD    R2, [R6, #0xF8] \n"
 292 "    BL      sub_FF303D38 \n"
 293 "    LDR     R0, [R6, #0x64] \n"
 294 "    LDR     R3, =0x7120 \n"
 295 "    AND     R1, R0, #0xFF \n"
 296 "    LDR     R0, [R8] \n"
 297 "    SUB     R2, R3, #4 \n"
 298 "    BL      sub_FF301A0C \n"
 299 "    LDRH    R0, [R6, #6] \n"
 300 "    CMP     R0, #2 \n"
 301 "    LDREQ   R0, =0xFF17EEDC \n"
 302 "    STREQ   R0, [R6, #0xF0] \n"
 303 "    LDR     R0, [R6, #0x90] \n"
 304 "    CMP     R0, #0 \n"
 305 "    LDREQ   R1, =0xFF17EB20 \n"
 306 "    STREQ   R1, [R6, #0xF0] \n"
 307 "    LDR     R2, [R6, #0xC] \n"
 308 "    LDR     R1, =0xFF4152AC \n"
 309 "    CMP     R2, #2 \n"
 310 "    BNE     sub_FF17F4A0 \n"
 311 "    LDR     R0, [R6, #0x4C] \n"
 312 "    ADD     R0, R1, R0, LSL#3 \n"
 313 "    LDR     R1, [R8, #0xC] \n"
 314 "    LDR     R0, [R0, R1, LSL#2] \n"
 315 "    BL      sub_FF2B56C0 \n"
 316 "    LDR     R0, =0xFF17EA4C \n"
 317 "    MOV     R1, #0 \n"
 318 "    BL      sub_FF2B5BD4 \n"
 319 "    B       sub_FF17F4DC \n"
 320 
 321 "loc_FF17F498:\n"
 322 "    STR     R1, [R4, #0x14] \n"
 323 "    B       loc_FF17F304 \n"
 324 );
 325 }
 326 
 327 /*************************************************************/
 328 //** sub_FF303920_my @ 0xFF303920 - 0xFF303CDC, length=240
 329 void __attribute__((naked,noinline)) sub_FF303920_my() {
 330 asm volatile (
 331 "    STMFD   SP!, {R0-R12,LR} \n"
 332 "    MOV     R9, R0 \n"
 333 "    LDR     R0, [R2, #0x10] \n"
 334 "    LDR     R8, [SP, #0x38] \n"
 335 "    CMP     R0, #0 \n"
 336 "    LDREQ   R1, =0x32A \n"
 337 "    LDREQ   R0, =0xFF3028F4 /*'MovWriter.c'*/ \n"
 338 "    MOV     R5, #0 \n"
 339 "    MOV     R4, R2 \n"
 340 "    MOV     R10, R3 \n"
 341 "    MOV     R7, R5 \n"
 342 "    BLEQ    _DebugAssert \n"
 343 "    LDR     R6, =0xCF78 \n"
 344 "    LDR     R0, [R4] \n"
 345 "    MOV     R11, #0x1E \n"
 346 "    STR     R0, [R6, #0xD0] \n"
 347 "    LDR     R0, [R4, #4] \n"
 348 "    STR     R0, [R6, #0xD4] \n"
 349 "    LDR     R0, [R4, #0x10] \n"
 350 "    STR     R0, [R6, #0xE0] \n"
 351 "    LDR     R1, [R4, #8] \n"
 352 "    LDR     R0, =0x7530 \n"
 353 "    CMP     R1, #0xB \n"
 354 "    ADDCC   PC, PC, R1, LSL#2 \n"
 355 "    B       loc_FF303A0C \n"
 356 "    B       loc_FF3039C0 \n"
 357 "    B       loc_FF3039B0 \n"
 358 "    B       loc_FF3039E8 \n"
 359 "    B       loc_FF3039FC \n"
 360 "    B       loc_FF303A0C \n"
 361 "    B       loc_FF303A0C \n"
 362 "    B       loc_FF303A0C \n"
 363 "    B       loc_FF303A0C \n"
 364 "    B       loc_FF3039E0 \n"
 365 "    B       loc_FF3039D8 \n"
 366 "    B       loc_FF3039C8 \n"
 367 
 368 "loc_FF3039B0:\n"
 369 "    LDR     R7, =0x5DC0 \n"
 370 "    MOV     R0, #0x18 \n"
 371 "    STR     R7, [R6, #0x12C] \n"
 372 "    B       loc_FF3039F4 \n"
 373 
 374 "loc_FF3039C0:\n"
 375 "    MOV     R7, R0 \n"
 376 "    B       loc_FF3039CC \n"
 377 
 378 "loc_FF3039C8:\n"
 379 "    LDR     R7, =0x5DC \n"
 380 
 381 "loc_FF3039CC:\n"
 382 "    STR     R0, [R6, #0x12C] \n"
 383 "    STR     R11, [R6, #0xD8] \n"
 384 "    B       loc_FF303A18 \n"
 385 
 386 "loc_FF3039D8:\n"
 387 "    LDR     R7, =0xBB8 \n"
 388 "    B       loc_FF3039CC \n"
 389 
 390 "loc_FF3039E0:\n"
 391 "    LDR     R7, =0x1770 \n"
 392 "    B       loc_FF3039CC \n"
 393 
 394 "loc_FF3039E8:\n"
 395 "    LDR     R7, =0x36EE800 \n"  // --> Patched. Old value = 0x3A980. 2hrs, original = 240000 (30 secs)
 396 "    STR     R0, [R6, #0x12C] \n"
 397 "    MOV     R0, #0xF0 \n"
 398 
 399 "loc_FF3039F4:\n"
 400 "    STR     R0, [R6, #0xD8] \n"
 401 "    B       loc_FF303A18 \n"
 402 
 403 "loc_FF3039FC:\n"
 404 "    STR     R0, [R6, #0x12C] \n"
 405 "    LDR     R7, =0x1B77400 \n"  // --> Patched. Old value = 0x1D4C0. 2hrs, original = 120000 (30 secs)
 406 "    MOV     R0, #0x78 \n"
 407 "    B       loc_FF3039F4 \n"
 408 
 409 "loc_FF303A0C:\n"
 410 "    LDR     R1, =0x35B \n"
 411 "    LDR     R0, =0xFF3028F4 /*'MovWriter.c'*/ \n"
 412 "    BL      _DebugAssert \n"
 413 
 414 "loc_FF303A18:\n"
 415 "    LDR     R0, [R6, #0xD8] \n"
 416 "    LDR     R1, =0x1C20 \n"  // --> Patched. Old value = 0xE0F. 2hrs, original = 3599 (59:59)
 417 "    MOV     R0, R0, LSR#1 \n"
 418 "    STR     R0, [R6, #0xDC] \n"
 419 "    LDR     R0, [R10] \n"
 420 "    STR     R0, [R6, #0xE4] \n"
 421 "    LDRH    R0, [R10, #0x10] \n"
 422 "    STR     R0, [R6, #0xE8] \n"
 423 "    LDR     R0, [R10, #4] \n"
 424 "    STRH    R0, [R6, #2] \n"
 425 "    LDR     R0, [R10, #8] \n"
 426 "    STRH    R0, [R6, #4] \n"
 427 "    LDR     R0, [R10, #0x14] \n"
 428 "    STR     R0, [R6, #0xEC] \n"
 429 "    STR     R8, [R6, #0x128] \n"
 430 "    LDR     R0, [R6, #0xD0] \n"
 431 "    CMP     R0, #0x140 \n"
 432 "    MOVEQ   R0, #0x20000 \n"
 433 "    MOVEQ   R5, #1 \n"
 434 "    STREQ   R0, [R6, #0xAC] \n"
 435 "    BEQ     loc_FF303AAC \n"
 436 "    CMP     R0, #0x280 \n"
 437 "    LDREQ   R0, =0x7A760 \n"
 438 "    MOVEQ   R5, #2 \n"
 439 "    STREQ   R0, [R6, #0xAC] \n"
 440 "    BEQ     loc_FF303AAC \n"
 441 "    CMP     R0, #0x500 \n"
 442 "    LDREQ   R0, =0x11DA50 \n"
 443 "    LDR     R1, =0x1C20 \n"  // --> Patched. Old value = 0x257. 2hrs, original = 599 (9:59)
 444 "    MOVEQ   R5, #4 \n"
 445 "    STREQ   R0, [R6, #0xAC] \n"
 446 "    BEQ     loc_FF303AAC \n"
 447 "    CMP     R0, #0x780 \n"
 448 "    BNE     loc_FF303AB4 \n"
 449 "    LDR     R1, =600 \n"           // Added - 10mins, original = 599 (9:59)
 450 "    MOV     R0, #0x200000 \n"
 451 "    MOV     R5, #5 \n"
 452 "    STR     R0, [R6, #0xAC] \n"
 453 
 454 "loc_FF303AAC:\n"
 455 "    STR     R1, [R6, #0x4C] \n"
 456 "    B       loc_FF303AC0 \n"
 457 
 458 "loc_FF303AB4:\n"
 459 "    LDR     R1, =0x383 \n"
 460 "    LDR     R0, =0xFF3028F4 /*'MovWriter.c'*/ \n"
 461 "    BL      _DebugAssert \n"
 462 
 463 "loc_FF303AC0:\n"
 464 "    LDR     R0, [R6, #0x4C] \n"
 465 "    LDR     R1, =0x138D \n"
 466 "    MUL     R0, R7, R0 \n"
 467 "    BL      sub_FF3CA57C /*__divmod_unsigned_int*/ \n"
 468 "    ADD     R0, R0, #1 \n"
 469 "    ADD     R0, R0, R0, LSL#2 \n"
 470 "    STR     R0, [R6, #0x48] \n"
 471 "    LDR     R8, [R4, #8] \n"
 472 "    CMP     R8, #2 \n"
 473 "    CMPNE   R8, #3 \n"
 474 "    BNE     loc_FF303B18 \n"
 475 "    RSB     R0, R7, R7, LSL#4 \n"
 476 "    LDR     R1, =0x3E9 \n"
 477 "    MOV     R0, R0, LSL#1 \n"
 478 "    STR     R11, [R6, #0x4C] \n"
 479 "    BL      sub_FF3CA57C /*__divmod_unsigned_int*/ \n"
 480 "    LDR     R1, [R6, #0xE0] \n"
 481 "    MOV     R7, R1 \n"
 482 "    BL      sub_FF3CA57C /*__divmod_unsigned_int*/ \n"
 483 "    ADD     R0, R0, #1 \n"
 484 "    MUL     R0, R7, R0 \n"
 485 "    STR     R0, [R6, #0x48] \n"
 486 
 487 "loc_FF303B18:\n"
 488 "    LDR     R0, [R4, #0xC] \n"
 489 "    LDR     R7, [R10, #0xC] \n"
 490 "    MOVS    R1, R0 \n"
 491 "    MOV     R0, R7, LSR#1 \n"
 492 "    STR     R7, [R6, #0x94] \n"
 493 "    STR     R0, [R6, #0x98] \n"
 494 "    ADD     R0, R9, #3 \n"
 495 "    BIC     R0, R0, #3 \n"
 496 "    STR     R0, [R6, #0xF4] \n"
 497 "    LDR     R2, [R6, #0x48] \n"
 498 "    MOVNE   R1, #1 \n"
 499 "    MOV     R2, R2, LSL#2 \n"
 500 "    ADD     R3, R0, R2 \n"
 501 "    STR     R3, [R6, #0xF8] \n"
 502 "    LDRH    R12, [R6, #4] \n"
 503 "    LDR     R0, [SP, #4] \n"
 504 "    ADD     R2, R2, R3 \n"
 505 "    CMP     R12, #0 \n"
 506 "    ADD     R0, R0, R9 \n"
 507 "    BEQ     loc_FF303C98 \n"
 508 "    STR     R2, [R6, #0xFC] \n"
 509 "    LDR     R3, [R6, #0x4C] \n"
 510 "    LDR     R9, =0x11B7E0 \n"
 511 "    ADD     R2, R2, R3, LSL#3 \n"
 512 "    ADD     R2, R2, #0x1F \n"
 513 "    BIC     R2, R2, #0x1F \n"
 514 "    STR     R2, [R6, #0x100] \n"
 515 "    LDR     R3, [R6, #0xAC] \n"
 516 "    LDR     R11, =0xD0F8 \n"
 517 "    ADD     R2, R2, R3 \n"
 518 "    ADD     R3, R2, #0x100000 \n"
 519 "    STR     R2, [R6, #0x78] \n"
 520 "    SUB     R0, R0, R3 \n"
 521 "    RSB     R2, R7, #0 \n"
 522 "    ADD     R0, R0, R2, LSL#1 \n"
 523 "    MOV     R0, R0, LSR#15 \n"
 524 "    MOV     R0, R0, LSL#15 \n"
 525 "    STR     R3, [R6, #0x104] \n"
 526 "    ADD     R8, R3, R0 \n"
 527 "    STR     R0, [R6, #0x110] \n"
 528 "    STR     R8, [R6, #0x108] \n"
 529 "    MOV     R2, #0 \n"
 530 "    ADD     R10, R9, #0x10 \n"
 531 "    STR     R8, [R6, #0x10C] \n"
 532 
 533 "loc_FF303BC8:\n"
 534 "    MLA     R0, R2, R7, R8 \n"
 535 "    ADD     R12, R9, R2, LSL#3 \n"
 536 "    ADD     R0, R0, #3 \n"
 537 "    BIC     R0, R0, #3 \n"
 538 "    STR     R0, [R11, R2, LSL#2] \n"
 539 "    MOV     R0, #0 \n"
 540 "    ADD     R6, R10, R2, LSL#3 \n"
 541 
 542 "loc_FF303BE4:\n"
 543 "    STR     R3, [R12, R0, LSL#2] \n"
 544 "    STR     R3, [R6, R0, LSL#2] \n"
 545 "    ADD     R0, R0, #1 \n"
 546 "    CMP     R0, #2 \n"
 547 "    BLT     loc_FF303BE4 \n"
 548 "    ADD     R2, R2, #1 \n"
 549 "    CMP     R2, #2 \n"
 550 "    BLT     loc_FF303BC8 \n"
 551 "    LDRH    R3, [R4, #0x14] \n"
 552 "    LDR     R2, [R4, #8] \n"
 553 "    MOV     R0, R5 \n"
 554 "    BL      sub_FF0D2708 \n"
 555 "    LDR     R1, =0xCF78 \n"
 556 "    LDR     R2, [R1, #0x94] \n"
 557 "    ADD     R0, R0, R2 \n"
 558 "    STR     R0, [R1, #0x8C] \n"
 559 "    LDMFD   SP!, {R0-R12,PC} \n"
 560 
 561 "loc_FF303C98:\n"
 562 "    ADD     R2, R2, #0x1F \n"
 563 "    BIC     R2, R2, #0x1F \n"
 564 "    STR     R2, [R6, #0x100] \n"
 565 "    LDR     R3, [R6, #0xAC] \n"
 566 "    ADD     R2, R2, R3 \n"
 567 "    SUB     R0, R0, R2 \n"
 568 "    MOV     R0, R0, LSR#15 \n"
 569 "    MOV     R0, R0, LSL#15 \n"
 570 "    STR     R2, [R6, #0x104] \n"
 571 "    STR     R0, [R6, #0x110] \n"
 572 "    ADD     R0, R0, R2 \n"
 573 "    STR     R0, [R6, #0x108] \n"
 574 "    LDRH    R3, [R4, #0x14] \n"
 575 "    MOV     R2, R8 \n"
 576 "    MOV     R0, R5 \n"
 577 "    BL      sub_FF0D2708 \n"
 578 "    STR     R0, [R6, #0x8C] \n"
 579 "    LDMFD   SP!, {R0-R12,PC} \n"
 580 );
 581 }

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