root/platform/g15/sub/100b/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_FF1DEB44_my
  5. sub_FF384C8C_my
  6. sub_FF1DEEE0_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 @ 0xFF1DF2B0 - 0xFF1DF474, length=114
  15 void __attribute__((naked,noinline)) movie_record_task() {
  16 asm volatile (
  17 "    STMFD   SP!, {R2-R10,LR} \n"
  18 "    LDR     R8, =sub_FF1DEEE0_my \n"  // --> Patched. Old value = 0xFF1DEEE0.
  19 "    LDR     R4, =0x9408 \n"
  20 "    LDR     R9, =0x65B \n"
  21 "    LDR     R10, =0x2710 \n"
  22 "    MVN     R7, #0 \n"
  23 "    MOV     R5, #1 \n"
  24 "    MOV     R6, #0 \n"
  25 
  26 "loc_FF1DF2D0:\n"
  27 "    LDR     R0, [R4, #0x28] \n"
  28 "    MOV     R2, #0 \n"
  29 "    ADD     R1, SP, #4 \n"
  30 "    BL      sub_0068BDE0 /*_ReceiveMessageQueue*/ \n"
  31 "    LDR     R0, [R4, #0x30] \n"
  32 "    CMP     R0, #0 \n"
  33 "    LDRNE   R0, [R4, #0x10] \n"
  34 "    CMPNE   R0, #2 \n"
  35 "    LDRNE   R0, [R4, #0x44] \n"
  36 "    CMPNE   R0, #6 \n"
  37 "    BNE     loc_FF1DF458 \n"
  38 "    LDR     R0, [SP, #4] \n"
  39 "    LDR     R1, [R0] \n"
  40 "    SUB     R1, R1, #2 \n"
  41 "    CMP     R1, #0xF \n"
  42 "    ADDCC   PC, PC, R1, LSL#2 \n"
  43 "    B       loc_FF1DF458 \n"
  44 "    B       loc_FF1DF3A0 \n"
  45 "    B       loc_FF1DF3C4 \n"
  46 "    B       loc_FF1DF3D4 \n"
  47 "    B       loc_FF1DF3DC \n"
  48 "    B       loc_FF1DF3E4 \n"
  49 "    B       loc_FF1DF3EC \n"
  50 "    B       loc_FF1DF3A8 \n"
  51 "    B       loc_FF1DF418 \n"
  52 "    B       loc_FF1DF444 \n"
  53 "    B       loc_FF1DF44C \n"
  54 "    B       loc_FF1DF3B4 \n"
  55 "    B       loc_FF1DF458 \n"
  56 "    B       loc_FF1DF454 \n"
  57 "    B       loc_FF1DF37C \n"
  58 "    B       loc_FF1DF350 \n"
  59 
  60 "loc_FF1DF350:\n"
  61 "    STR     R6, [R4, #0x40] \n"
  62 "    STR     R6, [R4, #0x34] \n"
  63 "    STR     R7, [R4, #0xE4] \n"
  64 "    STRH    R6, [R4, #6] \n"
  65 "    STR     R8, [R4, #0xCC] \n"
  66 "    LDR     R0, [R4, #0x10] \n"
  67 "    ADD     R0, R0, #1 \n"
  68 "    STR     R0, [R4, #0x10] \n"
  69 "    MOV     R0, #6 \n"
  70 "    STR     R0, [R4, #0x44] \n"
  71 "    B       loc_FF1DF398 \n"
  72 
  73 "loc_FF1DF37C:\n"
  74 "    STR     R6, [R4, #0x40] \n"
  75 "    STR     R7, [R4, #0xE4] \n"
  76 "    STR     R8, [R4, #0xCC] \n"
  77 "    LDR     R0, [R4, #0x10] \n"
  78 "    ADD     R0, R0, #1 \n"
  79 "    STR     R0, [R4, #0x10] \n"
  80 "    STR     R5, [R4, #0x44] \n"
  81 
  82 "loc_FF1DF398:\n"
  83 "    STR     R5, [R4, #8] \n"
  84 "    B       loc_FF1DF458 \n"
  85 
  86 "loc_FF1DF3A0:\n"
  87 );
  88 if (conf.ext_video_time == 1)
  89 {
  90 asm volatile (
  91 "    BL      sub_FF1DEB44_my \n"  // --> Patched. Old value = 0xFF1DEB44.
  92 );
  93 }
  94 else
  95 {
  96 asm volatile (
  97 "    BL      sub_FF1DEB44 \n"
  98 );
  99 }
 100 asm volatile (
 101 "    B       loc_FF1DF458 \n"
 102 
 103 "loc_FF1DF3A8:\n"
 104 "    LDR     R1, [R4, #0xCC] \n"
 105 "    BLX     R1 \n"
 106 //begin patch
 107 "    LDR     R0, =video_compression_rate\n" //added
 108 "    BL      set_quality\n"                 //added
 109 //end patch
 110 "    B       loc_FF1DF458 \n"
 111 
 112 "loc_FF1DF3B4:\n"
 113 "    LDR     R1, [R0, #0x18] \n"
 114 "    LDR     R0, [R0, #4] \n"
 115 "    BL      sub_FF38677C \n"
 116 "    B       loc_FF1DF458 \n"
 117 
 118 "loc_FF1DF3C4:\n"
 119 "    LDR     R0, [R4, #0x44] \n"
 120 "    CMP     R0, #5 \n"
 121 "    STRNE   R5, [R4, #0x34] \n"
 122 "    B       loc_FF1DF458 \n"
 123 
 124 "loc_FF1DF3D4:\n"
 125 "    BL      sub_FF1DE09C \n"
 126 "    B       loc_FF1DF458 \n"
 127 
 128 "loc_FF1DF3DC:\n"
 129 "    BL      sub_FF1DDF84 \n"
 130 "    B       loc_FF1DF458 \n"
 131 
 132 "loc_FF1DF3E4:\n"
 133 "    BL      sub_FF1DDC3C \n"
 134 "    B       loc_FF1DF458 \n"
 135 
 136 "loc_FF1DF3EC:\n"
 137 "    LDR     R1, [R4, #0x94] \n"
 138 "    LDR     R0, =0x4840F640 \n"
 139 "    CMP     R1, #0 \n"
 140 "    LDREQ   R1, =0xFF1DDC00 \n"
 141 "    LDREQ   R0, [R4, #0x98] \n"
 142 "    BEQ     loc_FF1DF410 \n"
 143 "    BL      sub_FF387438 \n"
 144 "    LDR     R1, =0xFF1DDC00 \n"
 145 "    MOV     R0, #0 \n"
 146 
 147 "loc_FF1DF410:\n"
 148 "    BL      sub_FF3858DC \n"
 149 "    B       loc_FF1DF458 \n"
 150 
 151 "loc_FF1DF418:\n"
 152 "    LDR     R0, =0xDF4FC \n"
 153 "    LDR     R0, [R0, #8] \n"
 154 "    CMP     R0, #0 \n"
 155 "    LDRNE   R2, =0xFF1DDB88 \n"
 156 "    LDRNE   R0, =0xFF1DDBDC \n"
 157 "    MOVNE   R3, #0 \n"
 158 "    MOVNE   R1, R3 \n"
 159 "    BLNE    sub_FF0616E0 \n"
 160 "    MOV     R0, #3 \n"
 161 "    STR     R0, [R4, #0x44] \n"
 162 "    B       loc_FF1DF458 \n"
 163 
 164 "loc_FF1DF444:\n"
 165 "    BL      sub_FF1DDB08 \n"
 166 "    B       loc_FF1DF458 \n"
 167 
 168 "loc_FF1DF44C:\n"
 169 "    BL      sub_FF1DFEAC \n"
 170 "    B       loc_FF1DF458 \n"
 171 
 172 "loc_FF1DF454:\n"
 173 "    BL      sub_FF1DFDCC \n"
 174 
 175 "loc_FF1DF458:\n"
 176 "    LDR     R1, [SP, #4] \n"
 177 "    LDR     R3, =0xFF1DD7A0 /*'MovieRecorder.c'*/ \n"
 178 "    STR     R6, [R1] \n"
 179 "    STR     R9, [SP] \n"
 180 "    LDR     R0, [R4, #0x2C] \n"
 181 "    MOV     R2, R10 \n"
 182 "    BL      sub_0068B044 /*_PostMessageQueueStrictly*/ \n"
 183 "    B       loc_FF1DF2D0 \n"
 184 );
 185 }
 186 
 187 /*************************************************************/
 188 //** sub_FF1DEB44_my @ 0xFF1DEB44 - 0xFF1DEE74, length=205
 189 void __attribute__((naked,noinline)) sub_FF1DEB44_my() {
 190 asm volatile (
 191 "    STMFD   SP!, {R0-R10,LR} \n"
 192 "    LDR     R6, =0x9408 \n"
 193 "    MOV     R0, #0 \n"
 194 "    STR     R0, [R6, #0x34] \n"
 195 "    STR     R0, [R6, #0x38] \n"
 196 "    MOV     R0, R6 \n"
 197 "    LDR     R4, [R0, #0x58] \n"
 198 "    LDRH    R1, [R6, #6] \n"
 199 "    MOV     R0, #0x3E8 \n"
 200 "    MUL     R0, R4, R0 \n"
 201 "    LDR     R8, =0xFFF00 \n"
 202 "    CMP     R1, #0 \n"
 203 "    MOV     R2, #1 \n"
 204 "    BNE     loc_FF1DEB8C \n"
 205 "    LDR     R1, [R6, #0x80] \n"
 206 "    CMP     R1, #0 \n"
 207 "    BNE     loc_FF1DEB9C \n"
 208 "    B       loc_FF1DEB94 \n"
 209 
 210 "loc_FF1DEB8C:\n"
 211 "    CMP     R1, #3 \n"
 212 "    BNE     loc_FF1DEB9C \n"
 213 
 214 "loc_FF1DEB94:\n"
 215 "    STR     R2, [R6, #0x48] \n"
 216 "    B       loc_FF1DEBA8 \n"
 217 
 218 "loc_FF1DEB9C:\n"
 219 "    MOV     R1, #0x3E8 \n"
 220 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 221 "    STR     R0, [R6, #0x48] \n"
 222 
 223 "loc_FF1DEBA8:\n"
 224 "    LDR     R5, =0xDF4FC \n"
 225 "    MOV     R7, #2 \n"
 226 "    LDR     R0, [R5, #8] \n"
 227 "    CMP     R0, #0 \n"
 228 "    BEQ     loc_FF1DEC14 \n"
 229 "    CMP     R4, #0x18 \n"
 230 "    MOV     R0, #4 \n"
 231 "    BEQ     loc_FF1DEC00 \n"
 232 "    BGT     loc_FF1DEBE8 \n"
 233 "    CMP     R4, #0xA \n"
 234 "    CMPNE   R4, #0xF \n"
 235 "    STREQ   R7, [R5, #0x14] \n"
 236 "    BEQ     loc_FF1DEC14 \n"
 237 "    CMP     R4, #0x14 \n"
 238 "    BNE     loc_FF1DEC08 \n"
 239 "    B       loc_FF1DEC00 \n"
 240 
 241 "loc_FF1DEBE8:\n"
 242 "    CMP     R4, #0x19 \n"
 243 "    CMPNE   R4, #0x1E \n"
 244 "    BEQ     loc_FF1DEC00 \n"
 245 "    CMP     R4, #0x3C \n"
 246 "    BNE     loc_FF1DEC08 \n"
 247 "    MOV     R0, #8 \n"
 248 
 249 "loc_FF1DEC00:\n"
 250 "    STR     R0, [R5, #0x14] \n"
 251 "    B       loc_FF1DEC14 \n"
 252 
 253 "loc_FF1DEC08:\n"
 254 "    LDR     R1, =0x74C \n"
 255 "    LDR     R0, =0xFF1DD7A0 /*'MovieRecorder.c'*/ \n"
 256 "    BL      _DebugAssert \n"
 257 
 258 "loc_FF1DEC14:\n"
 259 "    LDR     R0, [R6, #0x64] \n"
 260 "    CMP     R0, #1 \n"
 261 "    BNE     loc_FF1DEC2C \n"
 262 "    BL      sub_FF338178 \n"
 263 "    LDR     R0, =0xDF514 \n"
 264 "    BL      sub_FF381C04 \n"
 265 
 266 "loc_FF1DEC2C:\n"
 267 "    LDR     R2, =0x940A \n"
 268 "    LDR     R0, [R6, #0xA4] \n"
 269 "    MOV     R3, #2 \n"
 270 "    MOV     R1, #0xAA \n"
 271 "    BL      sub_FF099B28 \n"
 272 "    LDR     R2, =0x940C \n"
 273 "    LDR     R0, [R6, #0xA4] \n"
 274 "    MOV     R3, #2 \n"
 275 "    MOV     R1, #0xA9 \n"
 276 "    BL      sub_FF099B28 \n"
 277 "    LDR     R2, =0x9458 \n"
 278 "    LDR     R0, [R6, #0xA4] \n"
 279 "    MOV     R3, #4 \n"
 280 "    MOV     R1, #0xA2 \n"
 281 "    BL      sub_FF099B28 \n"
 282 "    LDR     R2, =0x945C \n"
 283 "    LDR     R0, [R6, #0xA4] \n"
 284 "    MOV     R3, #4 \n"
 285 "    MOV     R1, #0xA3 \n"
 286 "    BL      sub_FF099B28 \n"
 287 "    LDR     R0, [R6, #0x80] \n"
 288 "    CMP     R0, #0 \n"
 289 "    LDRNE   R2, =0x9500 \n"
 290 "    MOVNE   R1, #0 \n"
 291 "    MOVNE   R0, #0xF \n"
 292 "    BLNE    sub_FF093EE8 \n"
 293 "    LDR     R0, [R6, #0x4C] \n"
 294 "    LDR     R4, =0x9500 \n"
 295 "    LDR     R9, =0xDF4E4 \n"
 296 "    CMP     R0, #1 \n"
 297 "    CMPNE   R0, #2 \n"
 298 "    BNE     loc_FF1DED60 \n"
 299 "    LDR     R0, [R6, #0x80] \n"
 300 "    CMP     R0, #0 \n"
 301 "    LDRNE   R0, =0x483FC000 \n"
 302 "    STRNE   R0, [R4] \n"
 303 "    BNE     loc_FF1DED60 \n"
 304 "    LDR     R1, =0x484B4600 \n"
 305 "    LDR     R0, =0x3870600 \n"
 306 "    STR     R1, [R4] \n"
 307 "    STR     R0, [R4, #4] \n"
 308 "    LDMIA   R9, {R0,R2} \n"
 309 "    MUL     R0, R2, R0 \n"
 310 "    MOV     R3, R0, LSL#1 \n"
 311 "    CMP     R3, R8 \n"
 312 "    STR     R3, [R6, #0x8C] \n"
 313 "    MOVCC   R2, #0 \n"
 314 "    STR     R1, [R6, #0x90] \n"
 315 "    BCC     loc_FF1DED28 \n"
 316 "    MOV     R2, #0 \n"
 317 "    STMEA   SP, {R1,R2,R8} \n"
 318 "    MOV     R3, R2 \n"
 319 "    MOV     R2, #9 \n"
 320 "    MOV     R1, #5 \n"
 321 "    MOV     R0, #0x16 \n"
 322 "    BL      sub_FF330B18 \n"
 323 "    LDR     R0, [R6, #0x8C] \n"
 324 "    MOV     R2, #0 \n"
 325 "    SUB     R3, R0, #0xF0000 \n"
 326 "    LDR     R0, [R6, #0x90] \n"
 327 "    SUB     R3, R3, #0xFF00 \n"
 328 "    ADD     R1, R0, #0xF0000 \n"
 329 "    ADD     R1, R1, #0xFF00 \n"
 330 
 331 "loc_FF1DED28:\n"
 332 "    STMEA   SP, {R1-R3} \n"
 333 "    MOV     R3, #0 \n"
 334 "    MOV     R2, #9 \n"
 335 "    MOV     R1, #5 \n"
 336 "    MOV     R0, #0x16 \n"
 337 "    BL      sub_FF330B18 \n"
 338 "    LDR     R1, [R4] \n"
 339 "    LDR     R0, [R6, #0x8C] \n"
 340 "    ADD     R1, R1, R0, LSL#1 \n"
 341 "    STR     R1, [R4] \n"
 342 "    LDR     R1, [R4, #4] \n"
 343 "    RSB     R0, R0, #0 \n"
 344 "    ADD     R0, R1, R0, LSL#1 \n"
 345 "    STR     R0, [R4, #4] \n"
 346 
 347 "loc_FF1DED60:\n"
 348 "    LDR     R2, =0xDF4FC \n"
 349 "    LDR     R3, =0xFF1DEB10 \n"
 350 "    LDR     R0, [R4, #4] \n"
 351 "    LDR     R1, [R4] \n"
 352 "    STRD    R2, [SP] \n"
 353 "    SUB     R3, R2, #0x18 \n"
 354 "    MOV     R2, R0 \n"
 355 "    LDR     R0, [R6, #0x80] \n"
 356 "    BL      sub_FF384C8C_my \n"  // --> Patched. Old value = 0xFF384C8C.
 357 "    LDRD    R0, [R6, #0xF0] \n"
 358 "    LDR     R2, [R6, #0xA4] \n"
 359 "    BL      sub_FF3852C4 \n"
 360 "    LDR     R3, =0x9480 \n"
 361 "    STR     R3, [SP] \n"
 362 "    LDR     R0, [R6, #0x64] \n"
 363 "    LDR     R1, [R9, #8] \n"
 364 "    AND     R2, R0, #0xFF \n"
 365 "    LDR     R0, [R9] \n"
 366 "    SUB     R3, R3, #4 \n"
 367 "    BL      sub_FF381760 \n"
 368 "    LDRH    R0, [R6, #6] \n"
 369 "    CMP     R0, #2 \n"
 370 "    LDREQ   R0, =0xFF1DE810 \n"
 371 "    STREQ   R0, [R6, #0xCC] \n"
 372 "    LDR     R0, [R6, #0x80] \n"
 373 "    CMP     R0, #0 \n"
 374 "    LDREQ   R1, =0xFF1DE3CC \n"
 375 "    STREQ   R1, [R6, #0xCC] \n"
 376 "    LDR     R2, [R6, #0x10] \n"
 377 "    LDR     R1, =0xFF615220 \n"
 378 "    CMP     R2, #2 \n"
 379 "    BNE     loc_FF1DEE04 \n"
 380 "    LDR     R0, [R6, #0x4C] \n"
 381 "    ADD     R0, R1, R0, LSL#3 \n"
 382 "    LDR     R1, [R9, #0xC] \n"
 383 "    LDR     R0, [R0, R1, LSL#2] \n"
 384 "    BL      sub_FF336F04 \n"
 385 "    LDR     R0, =0xFF1DE384 \n"
 386 "    MOV     R1, #0 \n"
 387 "    BL      sub_FF337490 \n"
 388 "    B       loc_FF1DEE3C \n"
 389 
 390 "loc_FF1DEE04:\n"
 391 "    CMP     R0, #0 \n"
 392 "    LDR     R0, [R6, #0x4C] \n"
 393 "    ADD     R0, R1, R0, LSL#3 \n"
 394 "    LDR     R1, [R9, #0xC] \n"
 395 "    LDR     R0, [R0, R1, LSL#2] \n"
 396 "    BNE     loc_FF1DEE2C \n"
 397 "    LDR     R1, [R6, #0x88] \n"
 398 "    BL      sub_FF337570 \n"
 399 "    BL      sub_FF3375F4 \n"
 400 "    B       loc_FF1DEE3C \n"
 401 
 402 "loc_FF1DEE2C:\n"
 403 "    BL      sub_FF3350F0 \n"
 404 "    LDR     R0, =0xFF1DE378 \n"
 405 "    MOV     R1, #0 \n"
 406 "    BL      sub_FF335900 \n"
 407 
 408 "loc_FF1DEE3C:\n"
 409 "    LDR     R0, [R5, #8] \n"
 410 "    CMP     R0, #0 \n"
 411 "    BEQ     loc_FF1DEE70 \n"
 412 "    ADD     R0, SP, #0xC \n"
 413 "    BL      sub_FF3864E4 \n"
 414 "    LDR     R1, [R5, #0xC] \n"
 415 "    LDR     R0, [SP, #0xC] \n"
 416 "    BL      sub_FF06194C \n"
 417 "    ADD     R0, SP, #0xC \n"
 418 "    BL      sub_FF3864E4 \n"
 419 "    LDR     R1, [R5, #0xC] \n"
 420 "    LDR     R0, [SP, #0xC] \n"
 421 "    BL      sub_FF06194C \n"
 422 
 423 "loc_FF1DEE70:\n"
 424 "    STR     R7, [R6, #0x44] \n"
 425 "    LDMFD   SP!, {R0-R10,PC} \n"
 426 );
 427 }
 428 
 429 /*************************************************************/
 430 //** sub_FF384C8C_my @ 0xFF384C8C - 0xFF384FF8, length=220
 431 void __attribute__((naked,noinline)) sub_FF384C8C_my() {
 432 asm volatile (
 433 "    STMFD   SP!, {R0-R11,LR} \n"
 434 "    MOV     R9, R0 \n"
 435 "    LDR     R0, [R3, #0x10] \n"
 436 "    SUB     SP, SP, #4 \n"
 437 "    CMP     R0, #0 \n"
 438 "    LDR     R7, [SP, #0x38] \n"
 439 "    LDREQ   R1, =0x3B7 \n"
 440 "    LDREQ   R0, =0xFF382270 /*'MovWriter.c'*/ \n"
 441 "    MOV     R6, #0 \n"
 442 "    MOV     R4, R3 \n"
 443 "    MOV     R5, R6 \n"
 444 "    BLEQ    _DebugAssert \n"
 445 "    LDR     R8, =0x11950 \n"
 446 "    CMP     R9, #0 \n"
 447 "    MOV     R11, #0 \n"
 448 "    STR     R9, [R8, #0xA0] \n"
 449 "    MOVEQ   R0, #1 \n"
 450 "    STRNE   R11, [R8, #0xE8] \n"
 451 "    STREQ   R0, [R8, #0xE8] \n"
 452 "    LDR     R0, [R4] \n"
 453 "    LDR     R3, =0x61A8 \n"
 454 "    STR     R0, [R8, #0xF0] \n"
 455 "    LDR     R0, [R4, #4] \n"
 456 "    LDR     R1, =0x7530 \n"
 457 "    STR     R0, [R8, #0xF4] \n"
 458 "    LDR     R0, [R4, #0x10] \n"
 459 "    MOV     R2, #0x18 \n"
 460 "    STR     R0, [R8, #0x100] \n"
 461 "    LDR     R9, [R4, #8] \n"
 462 "    LDR     R0, =0x3E9 \n"
 463 "    CMP     R9, #0xF \n"
 464 "    MOV     R12, #0x3E8 \n"
 465 "    MOV     R10, #0x1E \n"
 466 "    ADDCC   PC, PC, R9, LSL#2 \n"
 467 "    B       loc_FF384DE4 \n"
 468 "    B       loc_FF384D6C \n"
 469 "    B       loc_FF384D64 \n"
 470 "    B       loc_FF384D54 \n"
 471 "    B       loc_FF384DC0 \n"
 472 "    B       loc_FF384DD0 \n"
 473 "    B       loc_FF384DE4 \n"
 474 "    B       loc_FF384DE4 \n"
 475 "    B       loc_FF384DE4 \n"
 476 "    B       loc_FF384DE4 \n"
 477 "    B       loc_FF384D8C \n"
 478 "    B       loc_FF384D84 \n"
 479 "    B       loc_FF384D7C \n"
 480 "    B       loc_FF384DB8 \n"
 481 "    B       loc_FF384DB0 \n"
 482 "    B       loc_FF384D9C \n"
 483 
 484 "loc_FF384D54:\n"
 485 "    LDR     R5, =0x5DC0 \n"
 486 "    STR     R2, [R8, #0xF8] \n"
 487 "    STR     R5, [R8, #0x154] \n"
 488 "    B       loc_FF384D74 \n"
 489 
 490 "loc_FF384D64:\n"
 491 "    MOV     R5, R3 \n"
 492 "    B       loc_FF384DA0 \n"
 493 
 494 "loc_FF384D6C:\n"
 495 "    MOV     R5, R1 \n"
 496 "    B       loc_FF384D90 \n"
 497 
 498 "loc_FF384D74:\n"
 499 "    STR     R0, [R8, #0x158] \n"
 500 "    B       loc_FF384DF0 \n"
 501 
 502 "loc_FF384D7C:\n"
 503 "    LDR     R5, =0x5DC \n"
 504 "    B       loc_FF384D90 \n"
 505 
 506 "loc_FF384D84:\n"
 507 "    LDR     R5, =0xBB8 \n"
 508 "    B       loc_FF384D90 \n"
 509 
 510 "loc_FF384D8C:\n"
 511 "    LDR     R5, =0x1770 \n"
 512 
 513 "loc_FF384D90:\n"
 514 "    STR     R1, [R8, #0x154] \n"
 515 "    STR     R10, [R8, #0xF8] \n"
 516 "    B       loc_FF384D74 \n"
 517 
 518 "loc_FF384D9C:\n"
 519 "    LDR     R5, =0x4E2 \n"
 520 
 521 "loc_FF384DA0:\n"
 522 "    STR     R2, [R8, #0xF8] \n"
 523 "    STR     R3, [R8, #0x154] \n"
 524 "    STR     R12, [R8, #0x158] \n"
 525 "    B       loc_FF384DF0 \n"
 526 
 527 "loc_FF384DB0:\n"
 528 "    LDR     R5, =0x9C4 \n"
 529 "    B       loc_FF384DA0 \n"
 530 
 531 "loc_FF384DB8:\n"
 532 "    LDR     R5, =0x1388 \n"
 533 "    B       loc_FF384DA0 \n"
 534 
 535 "loc_FF384DC0:\n"
 536 "    STR     R1, [R8, #0x154] \n"
 537 "    LDR     R5, =0x57600000 \n"  // --> Patched. Old value = 0x3A980. 2hrs
 538 "    MOV     R1, #0xF0 \n"
 539 "    B       loc_FF384DDC \n"
 540 
 541 "loc_FF384DD0:\n"
 542 "    LDR     R5, =0x28800000 \n"  // --> Patched. Old value = 0x1D4C0. 2hrs
 543 "    STR     R1, [R8, #0x154] \n"
 544 "    MOV     R1, #0x78 \n"
 545 
 546 "loc_FF384DDC:\n"
 547 "    STR     R1, [R8, #0xF8] \n"
 548 "    B       loc_FF384D74 \n"
 549 
 550 "loc_FF384DE4:\n"
 551 "    LDR     R1, =0x411 \n"
 552 "    LDR     R0, =0xFF382270 /*'MovWriter.c'*/ \n"
 553 "    BL      _DebugAssert \n"
 554 
 555 "loc_FF384DF0:\n"
 556 "    LDR     R0, [R8, #0xF8] \n"
 557 "    LDR     R1, =0x1C20 \n"  // --> Patched. Old value = 0xE0F. 2hrs
 558 "    MOV     R0, R0, LSR#1 \n"
 559 "    STR     R0, [R8, #0xFC] \n"
 560 "    LDR     R0, [R7] \n"
 561 "    STR     R0, [R8, #0x104] \n"
 562 "    LDRH    R0, [R7, #0x10] \n"
 563 "    STR     R0, [R8, #0x108] \n"
 564 "    LDR     R0, [R7, #4] \n"
 565 "    STRH    R0, [R8, #2] \n"
 566 "    LDR     R0, [R7, #8] \n"
 567 "    STRH    R0, [R8, #4] \n"
 568 "    LDR     R0, [R7, #0x14] \n"
 569 "    STR     R0, [R8, #0x10C] \n"
 570 "    LDR     R0, [SP, #0x3C] \n"
 571 "    STR     R0, [R8, #0x150] \n"
 572 "    LDR     R0, [R8, #0xF0] \n"
 573 "    CMP     R0, #0x140 \n"
 574 "    MOVEQ   R0, #0x20000 \n"
 575 "    MOVEQ   R6, #1 \n"
 576 "    STREQ   R0, [R8, #0xC4] \n"
 577 "    BEQ     loc_FF384E88 \n"
 578 "    CMP     R0, #0x280 \n"
 579 "    LDREQ   R0, =0x7A760 \n"
 580 "    MOVEQ   R6, #2 \n"
 581 "    STREQ   R0, [R8, #0xC4] \n"
 582 "    BEQ     loc_FF384E88 \n"
 583 "    CMP     R0, #0x500 \n"
 584 "    LDREQ   R0, =0x11DA50 \n"
 585 "    LDR     R1, =0x1C20 \n"  // --> Patched. Old value = 0x707. 2hrs
 586 "    MOVEQ   R6, #4 \n"
 587 "    STREQ   R0, [R8, #0xC4] \n"
 588 "    BEQ     loc_FF384E88 \n"
 589 "    CMP     R0, #0x780 \n"
 590 "    BNE     loc_FF384E90 \n"
 591 //"  MOV     R0, #0x200000 \n"
 592 "    MOV     R0, #2097152 \n" // 10 mins
 593 "    MOV     R6, #5 \n"
 594 "    STR     R0, [R8, #0xC4] \n"
 595 
 596 "loc_FF384E88:\n"
 597 "    STR     R1, [R8, #0x58] \n"
 598 "    B       loc_FF384E9C \n"
 599 
 600 "loc_FF384E90:\n"
 601 "    LDR     R1, =0x439 \n"
 602 "    LDR     R0, =0xFF382270 /*'MovWriter.c'*/ \n"
 603 "    BL      _DebugAssert \n"
 604 
 605 "loc_FF384E9C:\n"
 606 "    LDR     R9, [R4, #8] \n"
 607 "    CMP     R9, #0xB \n"
 608 "    CMPNE   R9, #0xA \n"
 609 "    CMPNE   R9, #9 \n"
 610 "    BNE     loc_FF384ED0 \n"
 611 "    LDR     R0, [R8, #0xF0] \n"
 612 "    CMP     R0, #0x500 \n"
 613 "    BNE     loc_FF384ED0 \n"
 614 "    LDR     R0, [R8, #0x58] \n"
 615 "    LDR     R1, [R8, #0x158] \n"
 616 "    MUL     R0, R5, R0 \n"
 617 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 618 "    B       loc_FF384EF0 \n"
 619 
 620 "loc_FF384ED0:\n"
 621 "    LDR     R0, [R8, #0x58] \n"
 622 "    LDR     R1, [R8, #0x158] \n"
 623 "    MUL     R0, R5, R0 \n"
 624 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 625 "    MOV     R1, #5 \n"
 626 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 627 "    ADD     R0, R0, #1 \n"
 628 "    ADD     R0, R0, R0, LSL#2 \n"
 629 
 630 "loc_FF384EF0:\n"
 631 "    CMP     R9, #0xB \n"
 632 "    CMPNE   R9, #0xA \n"
 633 "    CMPNE   R9, #9 \n"
 634 "    STR     R0, [R8, #0x54] \n"
 635 "    BNE     loc_FF384F18 \n"
 636 "    LDR     R1, [R8, #0x158] \n"
 637 "    MUL     R0, R1, R0 \n"
 638 "    MOV     R1, R5 \n"
 639 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 640 "    STR     R0, [R8, #0x58] \n"
 641 
 642 "loc_FF384F18:\n"
 643 "    CMP     R9, #3 \n"
 644 "    CMPNE   R9, #4 \n"
 645 "    BNE     loc_FF384F50 \n"
 646 "    RSB     R0, R5, R5, LSL#4 \n"
 647 "    STR     R10, [R8, #0x58] \n"
 648 "    LDR     R1, [R8, #0x158] \n"
 649 "    MOV     R0, R0, LSL#1 \n"
 650 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 651 "    LDR     R1, [R8, #0x100] \n"
 652 "    MOV     R10, R1 \n"
 653 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 654 "    ADD     R0, R0, #1 \n"
 655 "    MUL     R0, R10, R0 \n"
 656 "    STR     R0, [R8, #0x54] \n"
 657 
 658 "loc_FF384F50:\n"
 659 "    ADD     R0, R5, R5, LSL#8 \n"
 660 "    LDR     R1, [R8, #0x158] \n"
 661 "    RSB     R0, R0, R0, LSL#3 \n"
 662 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 663 "    STR     R0, [R8, #0x88] \n"
 664 "    LDR     R0, [R4, #0xC] \n"
 665 "    CMP     R0, #0 \n"
 666 "    MOVNE   R0, #1 \n"
 667 "    STR     R0, [SP] \n"
 668 "    LDR     R5, [R7, #0xC] \n"
 669 "    MOV     R0, R5, LSR#1 \n"
 670 "    STR     R5, [R8, #0xAC] \n"
 671 "    STR     R0, [R8, #0xB0] \n"
 672 "    LDR     R0, [SP, #8] \n"
 673 "    ADD     R0, R0, #3 \n"
 674 "    BIC     R1, R0, #3 \n"
 675 "    STR     R1, [R8, #0x114] \n"
 676 "    LDR     R0, [R8, #0x54] \n"
 677 "    MOV     R0, R0, LSL#2 \n"
 678 "    ADD     R1, R1, R0 \n"
 679 "    STR     R1, [R8, #0x118] \n"
 680 "    LDRH    R7, [R8, #4] \n"
 681 "    LDR     R2, [SP, #0xC] \n"
 682 "    LDR     R3, [SP, #8] \n"
 683 "    CMP     R7, #0 \n"
 684 "    ADD     R10, R3, R2 \n"
 685 "    BEQ     sub_FF38521C \n"
 686 "    ADD     R9, R1, R0 \n"
 687 "    STR     R9, [R8, #0x11C] \n"
 688 "    LDR     R1, [R8, #0xFC] \n"
 689 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 690 "    ADD     R0, R0, R9 \n"
 691 "    ADD     R0, R0, #0x1F \n"
 692 "    BIC     R0, R0, #0x1F \n"
 693 "    STR     R0, [R8, #0x120] \n"
 694 "    LDR     R1, [R8, #0xE8] \n"
 695 "    CMP     R1, #0 \n"
 696 "    BEQ     sub_FF3850B0 \n"
 697 "    LDR     R2, [R8, #0xC4] \n"
 698 "    ADD     R0, R0, R2 \n"
 699 "    STR     R0, [R8, #0x2C] \n"
 700 "    ADD     R0, R0, #0x20 \n"
 701 "    B       sub_FF385078 \n"
 702 );
 703 }
 704 
 705 /*************************************************************/
 706 //** sub_FF1DEEE0_my @ 0xFF1DEEE0 - 0xFF1DF2AC, length=244
 707 void __attribute__((naked,noinline)) sub_FF1DEEE0_my() {
 708 asm volatile (
 709 "    STMFD   SP!, {R4-R8,LR} \n"
 710 "    SUB     SP, SP, #0x48 \n"
 711 "    MOV     R8, #0 \n"
 712 "    LDR     R5, =0x9408 \n"
 713 "    STR     R8, [SP, #0x38] \n"
 714 "    STR     R8, [SP, #0x30] \n"
 715 "    STR     R8, [R5, #0xC4] \n"
 716 "    LDR     R1, [R5, #0x44] \n"
 717 "    MOV     R4, R0 \n"
 718 "    CMP     R1, #3 \n"
 719 "    MOV     R6, R8 \n"
 720 "    MOV     R7, #1 \n"
 721 "    BNE     loc_FF1DEF38 \n"
 722 "    LDR     R0, [R5, #0xE4] \n"
 723 "    LDR     R1, [R5, #0xE8] \n"
 724 "    CMP     R0, R1 \n"
 725 "    BNE     loc_FF1DF058 \n"
 726 "    MOV     R0, #4 \n"
 727 "    STR     R0, [R5, #0x44] \n"
 728 "    MVN     R0, #0 \n"
 729 "    STR     R0, [R5, #0xE4] \n"
 730 "    B       loc_FF1DEF40 \n"
 731 
 732 "loc_FF1DEF38:\n"
 733 "    CMP     R1, #4 \n"
 734 "    BNE     loc_FF1DF058 \n"
 735 
 736 "loc_FF1DEF40:\n"
 737 "    LDRH    R0, [R5, #6] \n"
 738 "    CMP     R0, #3 \n"
 739 "    BNE     loc_FF1DEF78 \n"
 740 "    LDR     R0, [R5, #0xC8] \n"
 741 "    CMP     R0, #0 \n"
 742 "    LDREQ   R1, =0x86B \n"
 743 "    LDREQ   R0, =0xFF1DD7A0 /*'MovieRecorder.c'*/ \n"
 744 "    BLEQ    _DebugAssert \n"
 745 "    LDR     R0, [R5, #0x6C] \n"
 746 "    LDR     R1, [R5, #0xC8] \n"
 747 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 748 "    CMP     R1, #0 \n"
 749 "    MOVNE   R7, #0 \n"
 750 "    BNE     loc_FF1DEF94 \n"
 751 
 752 "loc_FF1DEF78:\n"
 753 "    ADD     R3, SP, #0x30 \n"
 754 "    ADD     R2, SP, #0x34 \n"
 755 "    ADD     R1, SP, #0x38 \n"
 756 "    ADD     R0, SP, #0x3C \n"
 757 "    BL      sub_FF386938 \n"
 758 "    MOVS    R8, R0 \n"
 759 "    BNE     loc_FF1DEFB0 \n"
 760 
 761 "loc_FF1DEF94:\n"
 762 "    LDR     R0, [R5, #0x34] \n"
 763 "    CMP     R0, #1 \n"
 764 "    BNE     loc_FF1DF060 \n"
 765 "    LDR     R0, [R5, #0x6C] \n"
 766 "    LDR     R1, [R5, #0x48] \n"
 767 "    CMP     R0, R1 \n"
 768 "    BCC     loc_FF1DF060 \n"
 769 
 770 "loc_FF1DEFB0:\n"
 771 "    MOV     R0, R8 \n"
 772 "    BL      sub_FF1DE390 \n"
 773 "    BL      sub_FF1DFEAC \n"
 774 "    LDR     R2, [R5, #0x64] \n"
 775 "    ADD     R3, SP, #0x40 \n"
 776 "    MVN     R1, #1 \n"
 777 "    MOV     R0, #0 \n"
 778 "    ADD     R7, SP, #0x1C \n"
 779 "    STMIA   R7, {R0-R3} \n"
 780 "    LDR     R3, [R4, #0x1C] \n"
 781 "    LDR     R1, [R5, #0x74] \n"
 782 "    LDR     R2, [R5, #0x78] \n"
 783 "    ADD     R0, SP, #0x44 \n"
 784 "    ADD     R4, SP, #0xC \n"
 785 "    STMIA   R4, {R0-R3} \n"
 786 "    MOV     R3, #0 \n"
 787 "    MOV     R1, #0x40 \n"
 788 "    STMEA   SP, {R1,R3} \n"
 789 "    MOV     R2, #0 \n"
 790 "    STR     R3, [SP, #8] \n"
 791 "    LDR     R3, =0xDF574 \n"
 792 "    MOV     R1, R2 \n"
 793 "    MOV     R0, R2 \n"
 794 "    BL      sub_FF335784 \n"
 795 "    LDR     R0, [R5, #0x1C] \n"
 796 "    LDR     R1, [R5, #0x60] \n"
 797 "    BL      _TakeSemaphore \n"
 798 "    CMP     R0, #9 \n"
 799 "    BNE     loc_FF1DF02C \n"
 800 
 801 "loc_FF1DF024:\n"
 802 "    MOV     R1, #1 \n"
 803 "    B       loc_FF1DF180 \n"
 804 
 805 "loc_FF1DF02C:\n"
 806 "    LDR     R0, [SP, #0x40] \n"
 807 "    CMP     R0, #0 \n"
 808 "    BEQ     loc_FF1DF040 \n"
 809 
 810 "loc_FF1DF038:\n"
 811 "    MOV     R1, #1 \n"
 812 "    B       loc_FF1DF198 \n"
 813 
 814 "loc_FF1DF040:\n"
 815 "    MOV     R0, #1 \n"
 816 "    BL      sub_FF335830 \n"
 817 "    BL      sub_FF3358DC \n"
 818 "    MOV     R0, #5 \n"
 819 "    STR     R6, [R5, #0x34]! \n"
 820 "    STR     R0, [R5, #0x10] \n"
 821 
 822 "loc_FF1DF058:\n"
 823 "    ADD     SP, SP, #0x48 \n"
 824 "    LDMFD   SP!, {R4-R8,PC} \n"
 825 
 826 "loc_FF1DF060:\n"
 827 "    CMP     R7, #1 \n"
 828 "    BNE     loc_FF1DF224 \n"
 829 "    MOV     R0, #1 \n"
 830 "    STR     R0, [R5, #0x38] \n"
 831 "    LDR     R0, [R5, #0x6C] \n"
 832 "    LDR     R8, [R4, #0xC] \n"
 833 "    CMP     R0, #0 \n"
 834 "    LDRNE   R7, [SP, #0x38] \n"
 835 "    LDRNE   R12, [SP, #0x3C] \n"
 836 "    BNE     loc_FF1DF118 \n"
 837 "    LDR     R0, [R4, #0x20] \n"
 838 "    LDR     R2, [R5, #0x64] \n"
 839 "    ADD     R3, SP, #0x40 \n"
 840 "    MVN     R1, #0 \n"
 841 "    ADD     R7, SP, #0x1C \n"
 842 "    STMIA   R7, {R0-R3} \n"
 843 "    LDR     R3, [R4, #0x1C] \n"
 844 "    LDR     R1, [R5, #0x74] \n"
 845 "    LDR     R2, [R5, #0x78] \n"
 846 "    ADD     R0, SP, #0x44 \n"
 847 "    ADD     R7, SP, #0xC \n"
 848 "    STMIA   R7, {R0-R3} \n"
 849 "    LDR     R1, [SP, #0x34] \n"
 850 "    LDR     R2, [SP, #0x38] \n"
 851 "    LDR     R3, [SP, #0x30] \n"
 852 "    STMFA   SP, {R1,R3} \n"
 853 "    STR     R2, [SP] \n"
 854 "    LDMIB   R4, {R0,R1} \n"
 855 "    LDR     R3, [SP, #0x3C] \n"
 856 "    MOV     R2, R8 \n"
 857 "    BL      sub_FF335784 \n"
 858 "    LDR     R0, [R5, #0x1C] \n"
 859 "    LDR     R1, [R5, #0x60] \n"
 860 "    BL      _TakeSemaphore \n"
 861 "    CMP     R0, #9 \n"
 862 "    BEQ     loc_FF1DF024 \n"
 863 "    LDR     R0, [SP, #0x40] \n"
 864 "    CMP     R0, #0 \n"
 865 "    BNE     loc_FF1DF038 \n"
 866 "    MOV     R0, #1 \n"
 867 "    BL      sub_FF335830 \n"
 868 "    LDR     R0, [SP, #0x44] \n"
 869 "    LDR     R1, [SP, #0x3C] \n"
 870 "    ADD     R12, R1, R0 \n"
 871 "    LDR     R1, [SP, #0x38] \n"
 872 "    SUB     R7, R1, R0 \n"
 873 
 874 "loc_FF1DF118:\n"
 875 "    LDR     R0, [R4, #0x20] \n"
 876 "    LDR     R1, [R5, #0x68] \n"
 877 "    LDR     R2, [R5, #0x64] \n"
 878 "    ADD     R3, SP, #0x40 \n"
 879 "    ADD     LR, SP, #0x1C \n"
 880 "    STMIA   LR, {R0-R3} \n"
 881 "    LDR     R3, [R4, #0x1C] \n"
 882 "    LDR     R1, [R5, #0x74] \n"
 883 "    LDR     R2, [R5, #0x78] \n"
 884 "    ADD     R0, SP, #0x44 \n"
 885 "    ADD     LR, SP, #0xC \n"
 886 "    STMIA   LR, {R0-R3} \n"
 887 "    LDR     R2, [SP, #0x34] \n"
 888 "    LDR     R3, [SP, #0x30] \n"
 889 "    STMFA   SP, {R2,R3} \n"
 890 "    STR     R7, [SP] \n"
 891 "    LDMIB   R4, {R0,R1} \n"
 892 "    MOV     R3, R12 \n"
 893 "    MOV     R2, R8 \n"
 894 "    BL      sub_FF335784 \n"
 895 "    LDR     R0, [R5, #0x1C] \n"
 896 "    LDR     R1, [R5, #0x60] \n"
 897 "    BL      _TakeSemaphore \n"
 898 "    CMP     R0, #9 \n"
 899 "    BNE     loc_FF1DF188 \n"
 900 "    MOV     R1, #0 \n"
 901 
 902 "loc_FF1DF180:\n"
 903 "    MOV     R0, #0x90000 \n"
 904 "    B       loc_FF1DF19C \n"
 905 
 906 "loc_FF1DF188:\n"
 907 "    LDR     R0, [SP, #0x40] \n"
 908 "    CMP     R0, #0 \n"
 909 "    BEQ     loc_FF1DF1A4 \n"
 910 "    MOV     R1, #0 \n"
 911 
 912 "loc_FF1DF198:\n"
 913 "    MOV     R0, #0xA0000 \n"
 914 
 915 "loc_FF1DF19C:\n"
 916 "    BL      sub_FF1DE784 \n"
 917 "    B       loc_FF1DF058 \n"
 918 
 919 "loc_FF1DF1A4:\n"
 920 "    MOV     R0, #0 \n"
 921 "    BL      sub_FF335830 \n"
 922 "    LDR     R0, [SP, #0x3C] \n"
 923 "    LDR     R1, [SP, #0x44] \n"
 924 "    BL      sub_FF386BB0 \n"
 925 "    LDR     R0, [R5, #0x68] \n"
 926 "    LDR     R3, =0x9480 \n"
 927 "    ADD     R1, R0, #1 \n"
 928 "    STR     R1, [R5, #0x68] \n"
 929 "    LDR     R0, [SP, #0x44] \n"
 930 "    SUB     R2, R3, #4 \n"
 931 "    BL      sub_FF38191C \n"
 932 //begin patch
 933 "    LDR     R0, =video_compression_rate\n" //added
 934 "    BL      set_quality\n"                 //added
 935 //end patch
 936 "    LDR     R0, [R5, #0x64] \n"
 937 "    CMP     R0, #1 \n"
 938 "    BNE     loc_FF1DF230 \n"
 939 "    ADD     R0, SP, #0x2C \n"
 940 "    BL      sub_FF18F680 \n"
 941 "    LDR     R1, =0xDF4E4 \n"
 942 "    LDR     R0, [R1, #4] \n"
 943 "    LDR     R1, [R1] \n"
 944 "    SUB     R2, R0, #0x400 \n"
 945 "    SUBS    R2, R2, #0x38 \n"
 946 "    ADDEQ   R0, R0, #8 \n"
 947 "    MOV     R1, R1, LSR#4 \n"
 948 "    MOV     R0, R0, LSR#4 \n"
 949 "    MUL     R1, R0, R1 \n"
 950 "    LDR     R0, [SP, #0x2C] \n"
 951 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 952 "    LDR     R1, =0xDF514 \n"
 953 "    STR     R0, [SP, #0x2C] \n"
 954 "    BL      sub_FF381C58 \n"
 955 "    B       loc_FF1DF230 \n"
 956 
 957 "loc_FF1DF224:\n"
 958 "    LDRH    R0, [R5, #6] \n"
 959 "    CMP     R0, #3 \n"
 960 "    BNE     loc_FF1DF058 \n"
 961 
 962 "loc_FF1DF230:\n"
 963 "    LDR     R0, [R5, #0x6C] \n"
 964 "    ADD     R0, R0, #1 \n"
 965 "    STR     R0, [R5, #0x6C] \n"
 966 "    LDRH    R1, [R5, #6] \n"
 967 "    CMP     R1, #3 \n"
 968 "    LDRNE   R1, [R5, #0x54] \n"
 969 "    MULNE   R0, R1, R0 \n"
 970 "    LDRNE   R1, [R5, #0x50] \n"
 971 "    BNE     loc_FF1DF270 \n"
 972 "    LDR     R1, [R5, #0x58] \n"
 973 "    CMP     R1, #0x19 \n"
 974 "    LDRNE   R1, =0x3E9 \n"
 975 "    MOVEQ   R1, #0x3E8 \n"
 976 "    MUL     R0, R1, R0 \n"
 977 "    LDRNE   R1, =0x1770 \n"
 978 "    LDREQ   R1, =0x1388 \n"
 979 
 980 "loc_FF1DF270:\n"
 981 "    BL      sub_0069092C /*__divmod_unsigned_int*/ \n"
 982 "    MOV     R4, R0 \n"
 983 "    BL      sub_FF38726C \n"
 984 "    LDR     R0, [R5, #0x7C] \n"
 985 "    CMP     R0, R4 \n"
 986 "    BNE     loc_FF1DF294 \n"
 987 "    LDR     R0, [R5, #0x3C] \n"
 988 "    CMP     R0, #1 \n"
 989 "    BNE     loc_FF1DF2A8 \n"
 990 
 991 "loc_FF1DF294:\n"
 992 "    LDR     R1, [R5, #0xA8] \n"
 993 "    MOV     R0, R4 \n"
 994 "    BLX     R1 \n"
 995 "    STR     R4, [R5, #0x7C] \n"
 996 "    STR     R6, [R5, #0x3C] \n"
 997 
 998 "loc_FF1DF2A8:\n"
 999 "    STR     R6, [R5, #0x38] \n"
1000 "    B       loc_FF1DF058 \n"
1001 );
1002 }

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