root/platform/sx130is/sub/101c/movie_rec.c

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

DEFINITIONS

This source file includes following definitions.
  1. set_quality
  2. change_video_tables
  3. movie_record_task

   1 #include "conf.h"
   2 
   3 //int *video_quality = &conf.video_quality;
   4 //int *video_mode    = &conf.video_mode;
   5 
   6 
   7 /*----------------------------------------------------------------------
   8         set_quality()
   9 -----------------------------------------------------------------------*/
  10 // TODO - check this
  11 void  set_quality (int *x)  // -17 highest; +12 lowest
  12 {
  13         if (conf.video_mode)
  14                 *x = 12 - ((conf.video_quality-1) * (12+17) / (99-1));
  15 }
  16 
  17 
  18 /*----------------------------------------------------------------------
  19         change_video_tables()
  20 -----------------------------------------------------------------------*/
  21 void change_video_tables(int a, int b)
  22 {
  23 }
  24 
  25 
  26 /*----------------------------------------------------------------------
  27         movie_record_task()
  28 -----------------------------------------------------------------------*/
  29 void __attribute__((naked,noinline)) movie_record_task()
  30 {
  31         //FF969BC8
  32         asm volatile (
  33 
  34 "               STMFD   SP!, {R2-R8,LR} \n"
  35 "               LDR     R8, =0x2710 \n"
  36 "               LDR     R4, =0x6B68 \n"
  37 "               MOV     R7, #1 \n"
  38 //"             ADR     R6, nullsub_277 \n"
  39 "               LDR     R6, =0xFF9698B8 \n"
  40 "               MOV     R5, #0 \n"
  41 "loc_FF969BE0: \n"
  42 "               LDR     R0, [R4,#0x24] \n"
  43 "               MOV     R2, #0 \n"
  44 "               ADD     R1, SP, #0x4 \n"
  45 "               BL      sub_FF839B8C \n"
  46 "               LDR     R0, [R4,#0x2C] \n"
  47 "               CMP     R0, #0 \n"
  48 "               LDRNE   R0, [R4,#0xC] \n"
  49 "               CMPNE   R0, #2 \n"
  50 "               LDRNE   R0, [R4,#0x44] \n"
  51 "               CMPNE   R0, #6 \n"
  52 "               BNE     loc_FF969CF8 \n"
  53 "               LDR     R0, [SP,#0x4] \n"
  54 "               LDR     R1, [R0] \n"
  55 "               SUB     R1, R1, #2 \n"
  56 "               CMP     R1, #0xA \n"
  57 "               ADDLS   PC, PC, R1,LSL#2 \n"
  58 "               B       loc_FF969CF8 \n"
  59 "loc_FF969C24: \n"
  60 "               B       loc_FF969CAC \n"
  61 "loc_FF969C28: \n"
  62 "               B       loc_FF969CCC \n"
  63 "loc_FF969C2C: \n"
  64 "               B       loc_FF969CDC \n"
  65 "loc_FF969C30: \n"
  66 "               B       loc_FF969CE4 \n"
  67 "loc_FF969C34: \n"
  68 "               B       loc_FF969CB4 \n"
  69 "loc_FF969C38: \n"
  70 "               B       loc_FF969CEC \n"
  71 "loc_FF969C3C: \n"
  72 "               B       loc_FF969CBC \n"
  73 "loc_FF969C40: \n"
  74 "               B       loc_FF969CF8 \n"
  75 "loc_FF969C44: \n"
  76 "               B       loc_FF969CF4 \n"
  77 "loc_FF969C48: \n"
  78 "               B       loc_FF969C7C \n"
  79 "loc_FF969C4C: \n"
  80 "               B       loc_FF969C50 \n"
  81 "loc_FF969C50: \n"
  82 // jumptable FF969C1C entry 10
  83 "               STR     R5, [R4,#0x40] \n"
  84 "               STR     R5, [R4,#0x30] \n"
  85 "               STR     R5, [R4,#0x34] \n"
  86 "               STRH    R5, [R4,#6] \n"
  87 "               STR     R6, [R4,#0xB4] \n"
  88 "               LDR     R0, [R4,#0xC] \n"
  89 "               ADD     R0, R0, #1 \n"
  90 "               STR     R0, [R4,#0xC] \n"
  91 "               MOV     R0, #6 \n"
  92 "               STR     R0, [R4,#0x44] \n"
  93 "               B       loc_FF969C98 \n"
  94 "loc_FF969C7C: \n"
  95 // jumptable FF969C1C entry 9
  96 "               STR     R5, [R4,#0x40] \n"
  97 "               STR     R5, [R4,#0x30] \n"
  98 "               STR     R6, [R4,#0xB4] \n"
  99 "               LDR     R0, [R4,#0xC] \n"
 100 "               ADD     R0, R0, #1 \n"
 101 "               STR     R0, [R4,#0xC] \n"
 102 "               STR     R7, [R4,#0x44] \n"
 103 "loc_FF969C98: \n"
 104 "               LDR     R2, =0xFF968AD0 \n"
 105 "               LDR     R1, =0xAC9B0 \n"
 106 "               LDR     R0, =0xFF968BCC \n"
 107 "               BL      sub_FF851604 \n"
 108 "               B       loc_FF969CF8 \n"
 109 "loc_FF969CAC: \n"
 110 // jumptable FF969C1C entry 0
 111 "               BL      sub_FF9699E0 \n"
 112 "               B       loc_FF969CF8 \n"
 113 "loc_FF969CB4: \n"
 114 // jumptable FF969C1C entry 4
 115 "               BL      sub_FF969320 \n"
 116 //"             BL      sub_FF969320_my \n"             // patched --------->
 117 
 118 "               LDR     R0, =0x6BEC \n"                 // Added (6BF0 - 4)
 119 "               BL      set_quality \n"                 // Added ----------->
 120 
 121 "               B       loc_FF969CF8 \n"
 122 "loc_FF969CBC: \n"
 123 // jumptable FF969C1C entry 6
 124 "               LDR     R1, [R0,#0x18] \n"
 125 "               LDR     R0, [R0,#4] \n"
 126 "               BL      sub_FFAA9A74 \n"
 127 "               B       loc_FF969CF8 \n"
 128 "loc_FF969CCC: \n"
 129 // jumptable FF969C1C entry 1
 130 "               LDR     R0, [R4,#0x44] \n"
 131 "               CMP     R0, #5 \n"
 132 "               STRNE   R7, [R4,#0x34] \n"
 133 "               B       loc_FF969CF8 \n"
 134 "loc_FF969CDC: \n"
 135 // jumptable FF969C1C entry 2
 136 "               BL      sub_FF968F68 \n"
 137 "               B       loc_FF969CF8 \n"
 138 "loc_FF969CE4: \n"
 139 // jumptable FF969C1C entry 3
 140 "               BL      sub_FF968C18 \n"
 141 "               B       loc_FF969CF8 \n"
 142 "loc_FF969CEC: \n"
 143 // jumptable FF969C1C entry 5
 144 "               BL      sub_FF968A5C \n"
 145 "               B       loc_FF969CF8 \n"
 146 "loc_FF969CF4: \n"
 147 // jumptable FF969C1C entry 8
 148 "               BL      sub_FF96A128 \n"
 149 "loc_FF969CF8: \n"
 150 // jumptable FF969C1C default entry
 151 // jumptable FF969C1C entry 7
 152 "               LDR     R1, [SP,#0x4] \n"
 153 "               MOV     R3, #0x5F0 \n"
 154 "               STR     R5, [R1] \n"
 155 "               STR     R3, [SP] \n"
 156 "               LDR     R0, [R4,#0x28] \n"
 157 "               LDR     R3, =0xFF9688C0 \n" // "MovieRecorder.c"
 158 "               MOV     R2, R8 \n"
 159 "               BL      sub_FF83A4E0 \n"
 160 "               B       loc_FF969BE0 \n"
 161 
 162         );
 163 }
 164 
 165 // void __attribute__((naked,noinline)) sub_FF969320_my()
 166 // {
 167         // asm volatile (
 168 
 169 // "            STMFD   SP!, {R4-R11,LR} \n"
 170 // "            SUB     SP, SP, #0x64 \n"
 171 // "            MOV     R8, #0 \n"
 172 // "            LDR     R6, =0x6B68 \n"
 173 // "            MOV     R4, R0 \n"
 174 // "            STR     R8, [SP,#0x54] \n"
 175 // "            STR     R8, [SP,#0x4C] \n"
 176 // "            LDR     R0, [R6,#0x44] \n"
 177 // "            MOV     R11, #4 \n"
 178 // "            CMP     R0, #3 \n"
 179 // "            STREQ   R11, [R6,#0x44] \n"
 180 // "            LDR     R0, [R6,#0xB4] \n"
 181 // "            MOV     R9, #0 \n"
 182 // "            MOV     R7, #0 \n"
 183 // "            MOV     R5, #1 \n"
 184 // "            BLX     R0 \n"
 185 // "            LDR     R0, [R6,#0x44] \n"
 186 // "            CMP     R0, #6 \n"
 187 // "            BEQ     loc_FF969380 \n"
 188 // "            LDR     R1, [R6,#0xC] \n"
 189 // "            CMP     R1, #2 \n"
 190 // "            BNE     loc_FF9693A0 \n"
 191 // "            CMP     R0, #5 \n"
 192 // "            BEQ     loc_FF969418 \n"
 193 // "loc_FF969380: \n"
 194 // "            LDR     R1, =0x7F2 \n"
 195 // "            MOV     R7, #1 \n"
 196 // //"          ADR     R0, aMovierecorder_ // "MovieRecorder.c" \n"
 197 // "            LDR     R0, =0xFF9688C0 \n"
 198 // "            BL      _DebugAssert \n"
 199 // "            LDR     R0, [R6,#0x44] \n"
 200 // "            CMP     R0, #4 \n"
 201 // "            MOVNE   R5, #0 \n"
 202 // "            B       loc_FF9693A8 \n"
 203 // "loc_FF9693A0: \n"
 204 // "            CMP     R0, #4 \n"
 205 // "            BNE     loc_FF969418 \n"
 206 // "loc_FF9693A8: \n"
 207 // "            LDRH    R0, [R6,#6] \n"
 208 // "            CMP     R0, #1 \n"
 209 // "            LDREQ   R1, =0x809 \n"
 210 // "            LDREQ   R0, =0xFF9688C0 \n" // "MovieRecorder.c"
 211 // "            BLEQ    _DebugAssert \n"
 212 // "            LDRH    R0, [R6,#6] \n"
 213 // "            CMP     R0, #3 \n"
 214 // "            BNE     loc_FF9693DC \n"
 215 // "            LDR     R0, [R6,#0x6C] \n"
 216 // "            LDR     R1, [R6,#0xB8] \n"
 217 // "            BL      sub_FFB4BCC8 \n"
 218 // "            CMP     R1, #0 \n"
 219 // "            MOVNE   R5, #0 \n"
 220 // "loc_FF9693DC: \n"
 221 // "            LDR     R0, [R6,#0x44] \n"
 222 // "            CMP     R0, #6 \n"
 223 // "            CMPNE   R0, #1 \n"
 224 // "            CMPNE   R0, #3 \n"
 225 // "            BNE     loc_FF969420 \n"
 226 // "            CMP     R7, #1 \n"
 227 // "            CMPEQ   R5, #0 \n"
 228 // "            BNE     loc_FF969420 \n"
 229 // "            LDR     R0, [R6,#0x18] \n"
 230 // "            MOV     R1, #0x3E8 \n"
 231 // "            BL      sub_FF839FA8 \n" // eventproc_export_TakeSemaphore
 232 // "            CMP     R0, #9 \n"
 233 // "            BNE     loc_FF969840 \n"
 234 // "            MOV     R0, #0x90000 \n"
 235 // "            BL      sub_FF89428C \n" // eventproc_export_HardwareDefect
 236 // "loc_FF969418: \n"
 237 // "            ADD     SP, SP, #0x64 \n"
 238 // "            LDMFD   SP!, {R4-R11,PC} \n"
 239 // "loc_FF969420: \n"
 240 // "            CMP     R5, #1 \n"
 241 // "            MOV     R10, #1 \n"
 242 // "            BNE     loc_FF969448 \n"
 243 // "            ADD     R3, SP, #0x4C \n"
 244 // "            ADD     R2, SP, #0x50 \n"
 245 // "            ADD     R1, SP, #0x54 \n"
 246 // "            ADD     R0, SP, #0x58 \n"
 247 // "            BL      sub_FFAA9B34 \n"
 248 // "            MOVS    R9, R0 \n"
 249 // "            BNE     loc_FF969464 \n"
 250 // "loc_FF969448: \n"
 251 // "            LDR     R0, [R6,#0x34] \n"
 252 // "            CMP     R0, #1 \n"
 253 // "            BNE     loc_FF9695C0 \n"
 254 // "            LDR     R0, [R6,#0x6C] \n"
 255 // "            LDR     R1, [R6,#0x48] \n"
 256 // "            CMP     R0, R1 \n"
 257 // "            BCC     loc_FF9695C0 \n"
 258 // "loc_FF969464: \n"
 259 // "            CMP     R9, #0x80000001 \n"
 260 // "            STREQ   R11, [R6,#0x70] \n"
 261 // "            BEQ     loc_FF96949C \n"
 262 // "            CMP     R9, #0x80000003 \n"
 263 // "            STREQ   R10, [R6,#0x70] \n"
 264 // "            BEQ     loc_FF96949C \n"
 265 // "            CMP     R9, #0x80000005 \n"
 266 // "            MOVEQ   R0, #2 \n"
 267 // "            BEQ     loc_FF969498 \n"
 268 // "            CMP     R9, #0x80000007 \n"
 269 // "            STRNE   R8, [R6,#0x70] \n"
 270 // "            BNE     loc_FF96949C \n"
 271 // "            MOV     R0, #3 \n"
 272 // "loc_FF969498: \n"
 273 // "            STR     R0, [R6,#0x70] \n"
 274 // "loc_FF96949C: \n"
 275 // "            LDR     R0, [R6,#0xC] \n"
 276 // "            CMP     R0, #2 \n"
 277 // "            BNE     loc_FF969504 \n"
 278 // "            MOV     R1, #0 \n"
 279 // //"          ADR     R0, sub_FF969314 \n"
 280 // "            LDR     R0, =0xFF969314 \n"
 281 // "            BL      sub_FFA66B38 \n"
 282 // "            LDR     R2, [R6,#0x64] \n"
 283 // "            ADD     R3, SP, #0x5C \n"
 284 // "            STRD    R2, [SP,#0x28] \n"
 285 // "            MOV     R2, #0x18 \n"
 286 // "            ADD     R1, SP, #0x34 \n"
 287 // "            ADD     R0, SP, #0x10 \n"
 288 // "            BL      sub_FFB4A07C \n"
 289 // "            LDR     R1, [R6,#0x84] \n"
 290 // "            LDR     R2, [R6,#0x88] \n"
 291 // "            MOV     R3, #0xFFFFFFFE \n"
 292 // "            ADD     R0, SP, #0x60 \n"
 293 // "            STMEA   SP, {R0-R3} \n"
 294 // "            LDR     R0, =0xAC9F8 \n"
 295 // "            MOV     R3, #0 \n"
 296 // "            MOV     R2, #0 \n"
 297 // "            MOV     R1, #0x40 \n"
 298 // "            BL      sub_FFA66A90 \n"
 299 // "            B       loc_FF969558 \n"
 300 // "loc_FF9694FC: \n"
 301 // "            MOV     R1, #1 \n"
 302 // "            B       loc_FF9697CC \n"
 303 // "loc_FF969504: \n"
 304 // "            BL      sub_FF96A1D4 \n"
 305 // "            LDR     R2, [R6,#0x64] \n"
 306 // "            ADD     R3, SP, #0x5C \n"
 307 // "            MOV     R1, #0xFFFFFFFE \n"
 308 // "            MOV     R0, #0 \n"
 309 // "            ADD     R5, SP, #0x1C \n"
 310 // "            STMIA   R5, {R0-R3} \n"
 311 // "            LDR     R3, [R4,#0x1C] \n"
 312 // "            LDR     R1, [R6,#0x84] \n"
 313 // "            LDR     R2, [R6,#0x88] \n"
 314 // "            ADD     R4, SP, #0xC \n"
 315 // "            ADD     R0, SP, #0x60 \n"
 316 // "            STMIA   R4, {R0-R3} \n"
 317 // "            MOV     R3, #0 \n"
 318 // "            MOV     R1, #0x40 \n"
 319 // "            MOV     R2, #0 \n"
 320 // "            STMEA   SP, {R1-R3} \n"
 321 // "            LDR     R3, =0xAC9F8 \n"
 322 // "            MOV     R1, #0 \n"
 323 // "            MOV     R0, #0 \n"
 324 // "            BL      sub_FFA65900 \n"
 325 // "loc_FF969558: \n"
 326 // "            LDR     R0, [R6,#0x18] \n"
 327 // "            LDR     R1, [R6,#0x60] \n"
 328 // "            BL      sub_FF839FA8 \n" // eventproc_export_TakeSemaphore
 329 // "            CMP     R0, #9 \n"
 330 // "            BEQ     loc_FF9694FC \n"
 331 // "            LDR     R0, [SP,#0x5C] \n"
 332 // "            CMP     R0, #0 \n"
 333 // "            BEQ     loc_FF969580 \n"
 334 // "loc_FF969578: \n"
 335 // "            MOV     R1, #1 \n"
 336 // "            B       loc_FF9697E4 \n"
 337 // "loc_FF969580: \n"
 338 // "            LDR     R0, [R6,#0xC] \n"
 339 // "            MOV     R4, #5 \n"
 340 // "            CMP     R0, #2 \n"
 341 // "            MOV     R0, #1 \n"
 342 // "            BNE     loc_FF9695AC \n"
 343 // "            BL      sub_FFA66AF8 \n"
 344 // "            BL      sub_FFA66B20 \n"
 345 // "            STR     R4, [R6,#0x44] \n"
 346 // "            BL      sub_FF96A1D4 \n"
 347 // "            STR     R10, [R6,#0x44] \n"
 348 // "            B       loc_FF9695B8 \n"
 349 // "loc_FF9695AC: \n"
 350 // "            BL      sub_FFA659B4 \n"
 351 // "            BL      sub_FFA65A14 \n"
 352 // "            STR     R4, [R6,#0x44] \n"
 353 // "loc_FF9695B8: \n"
 354 // "            STR     R8, [R6,#0x34] \n"
 355 // "            B       loc_FF969418 \n"
 356 // "loc_FF9695C0: \n"
 357 // "            CMP     R5, #1 \n"
 358 // "            BNE     loc_FF969840 \n"
 359 // "            STR     R10, [R6,#0x38] \n"
 360 // "            LDR     R0, [R6,#0x6C] \n"
 361 // "            LDR     R11, [R4,#0xC] \n"
 362 // "            CMP     R0, #0 \n"
 363 // "            LDRNE   R9, [SP,#0x58] \n"
 364 // "            LDRNE   R10, [SP,#0x54] \n"
 365 // "            BNE     loc_FF969708 \n"
 366 // "            LDR     R0, [R6,#0xC] \n"
 367 // "            CMP     R0, #2 \n"
 368 // "            BNE     loc_FF969664 \n"
 369 // "            MOV     R1, #0 \n"
 370 // //"          ADR     R0, sub_FF969314 \n"
 371 // "            LDR     R0, =0xFF969314 \n"
 372 // "            BL      sub_FFA66B38 \n"
 373 // "            LDR     R2, [R6,#0x64] \n"
 374 // "            ADD     R3, SP, #0x5C \n"
 375 // "            STRD    R2, [SP,#0x28] \n"
 376 // "            MOV     R2, #0x18 \n"
 377 // "            ADD     R1, SP, #0x34 \n"
 378 // "            ADD     R0, SP, #0x10 \n"
 379 // "            BL      sub_FFB4A07C \n"
 380 // "            LDR     R1, [R6,#0x84] \n"
 381 // "            LDR     R2, [R6,#0x88] \n"
 382 // "            MOV     R3, #0xFFFFFFFF \n"
 383 // "            ADD     R0, SP, #0x60 \n"
 384 // "            STMEA   SP, {R0-R3} \n"
 385 // "            LDR     R0, [SP,#0x58] \n"
 386 // "            LDR     R1, [SP,#0x54] \n"
 387 // "            LDR     R2, [SP,#0x50] \n"
 388 // "            LDR     R3, [SP,#0x4C] \n"
 389 // "            BL      sub_FFA66A90 \n"
 390 // "            LDR     R0, [R6,#0x18] \n"
 391 // "            LDR     R1, [R6,#0x60] \n"
 392 // "            BL      sub_FF839FA8 \n" // eventproc_export_TakeSemaphore
 393 // "            CMP     R0, #9 \n"
 394 // "            BEQ     loc_FF9694FC \n"
 395 // "            MOV     R1, #0 \n"
 396 // //"          ADR     R0, sub_FF969308 \n"
 397 // "            LDR     R0, =0xFF969314 \n"
 398 // "            BL      sub_FFA66B38 \n"
 399 // "            B       loc_FF9696CC \n"
 400 // "loc_FF969664: \n"
 401 // "            LDR     R0, [R4,#0x20] \n"
 402 // "            LDR     R2, [R6,#0x64] \n"
 403 // "            ADD     R3, SP, #0x5C \n"
 404 // "            MOV     R1, #0xFFFFFFFF \n"
 405 // "            ADD     R9, SP, #0x1C \n"
 406 // "            STMIA   R9, {R0-R3} \n"
 407 // "            LDR     R3, [R4,#0x1C] \n"
 408 // "            LDR     R1, [R6,#0x84] \n"
 409 // "            LDR     R2, [R6,#0x88] \n"
 410 // "            ADD     R0, SP, #0x60 \n"
 411 // "            ADD     R9, SP, #0xC \n"
 412 // "            STMIA   R9, {R0-R3} \n"
 413 // "            LDR     R1, [SP,#0x50] \n"
 414 // "            LDR     R2, [SP,#0x54] \n"
 415 // "            LDR     R3, [SP,#0x4C] \n"
 416 // "            STMFA   SP, {R1,R3} \n"
 417 // "            STR     R2, [SP] \n"
 418 // "            LDMIB   R4, {R0,R1} \n"
 419 // "            LDR     R3, [SP,#0x58] \n"
 420 // "            MOV     R2, R11 \n"
 421 // "            BL      sub_FFA65900 \n"
 422 // "            LDR     R0, [R6,#0x18] \n"
 423 // "            LDR     R1, [R6,#0x60] \n"
 424 // "            BL      sub_FF839FA8 \n" // eventproc_export_TakeSemaphore
 425 // "            CMP     R0, #9 \n"
 426 // "            BEQ     loc_FF9694FC \n"
 427 // "loc_FF9696CC: \n"
 428 // "            LDR     R0, [SP,#0x5C] \n"
 429 // "            CMP     R0, #0 \n"
 430 // "            BNE     loc_FF969578 \n"
 431 // "            LDR     R0, [R6,#0xC] \n"
 432 // "            CMP     R0, #2 \n"
 433 // "            MOV     R0, #1 \n"
 434 // "            BNE     loc_FF9696F0 \n"
 435 // "            BL      sub_FFA66AF8 \n"
 436 // "            B       loc_FF9696F4 \n"
 437 // "loc_FF9696F0: \n"
 438 // "            BL      sub_FFA659B4 \n"
 439 // "loc_FF9696F4: \n"
 440 // "            LDR     R0, [SP,#0x60] \n"
 441 // "            LDR     R1, [SP,#0x58] \n"
 442 // "            ADD     R9, R1, R0 \n"
 443 // "            LDR     R1, [SP,#0x54] \n"
 444 // "            SUB     R10, R1, R0 \n"
 445 // "loc_FF969708: \n"
 446 // "            LDR     R0, [R6,#0xC] \n"
 447 // "            LDR     R2, [R6,#0x64] \n"
 448 // "            CMP     R0, #2 \n"
 449 // "            ADD     R3, SP, #0x5C \n"
 450 // "            BNE     loc_FF96975C \n"
 451 // "            STRD    R2, [SP,#0x28] \n"
 452 // "            MOV     R2, #0x18 \n"
 453 // "            ADD     R1, SP, #0x34 \n"
 454 // "            ADD     R0, SP, #0x10 \n"
 455 // "            BL      sub_FFB4A07C \n"
 456 // "            LDR     R1, [R6,#0x84] \n"
 457 // "            LDR     R2, [R6,#0x88] \n"
 458 // "            LDR     R3, [R6,#0x68] \n"
 459 // "            ADD     R0, SP, #0x60 \n"
 460 // "            STMEA   SP, {R0-R3} \n"
 461 // "            LDR     R2, [SP,#0x50] \n"
 462 // "            LDR     R3, [SP,#0x4C] \n"
 463 // "            MOV     R1, R10 \n"
 464 // "            MOV     R0, R9 \n"
 465 // "            BL      sub_FFA66A90 \n"
 466 // "            B       loc_FF9697B4 \n"
 467 // "loc_FF96975C: \n"
 468 // "            LDR     R1, [R6,#0x68] \n"
 469 // "            LDR     R0, [R4,#0x20] \n"
 470 // "            STR     R1, [SP,#0x20] \n"
 471 // "            STR     R0, [SP,#0x1C] \n"
 472 // "            STR     R2, [SP,#0x24] \n"
 473 // "            STR     R3, [SP,#0x28] \n"
 474 // "            LDR     R3, [R4,#0x1C] \n"
 475 // "            LDR     R1, [R6,#0x84] \n"
 476 // "            LDR     R2, [R6,#0x88] \n"
 477 // "            ADD     R0, SP, #0x60 \n"
 478 // "            STR     R2, [SP,#0x14] \n"
 479 // "            LDR     R2, [SP,#0x50] \n"
 480 // "            STR     R1, [SP,#0x10] \n"
 481 // "            STR     R3, [SP,#0x18] \n"
 482 // "            LDR     R3, [SP,#0x4C] \n"
 483 // "            STR     R0, [SP,#0xC] \n"
 484 // "            STMFA   SP, {R2,R3} \n"
 485 // "            STR     R10, [SP] \n"
 486 // "            LDMIB   R4, {R0,R1} \n"
 487 // "            MOV     R3, R9 \n"
 488 // "            MOV     R2, R11 \n"
 489 // "            BL      sub_FFA65900 \n"
 490 // "loc_FF9697B4: \n"
 491 // "            LDR     R0, [R6,#0x18] \n"
 492 // "            LDR     R1, [R6,#0x60] \n"
 493 // "            BL      sub_FF839FA8 \n" // eventproc_export_TakeSemaphore
 494 // "            CMP     R0, #9 \n"
 495 // "            BNE     loc_FF9697D4 \n"
 496 // "            MOV     R1, #0 \n"
 497 // "loc_FF9697CC: \n"
 498 // "            MOV     R0, #0x90000 \n"
 499 // "            B       loc_FF9697E8 \n"
 500 // "loc_FF9697D4: \n"
 501 // "            LDR     R0, [SP,#0x5C] \n"
 502 // "            CMP     R0, #0 \n"
 503 // "            BEQ     loc_FF9697F0 \n"
 504 // "            MOV     R1, #0 \n"
 505 // "loc_FF9697E4: \n"
 506 // "            MOV     R0, #0xA0000 \n"
 507 // "loc_FF9697E8: \n"
 508 // "            BL      sub_FF9692A8 \n"
 509 // "            B       loc_FF969418 \n"
 510 // "loc_FF9697F0: \n"
 511 // "            LDR     R0, [R6,#0xC] \n"
 512 // "            CMP     R0, #2 \n"
 513 // "            MOV     R0, #0 \n"
 514 // "            BNE     loc_FF969808 \n"
 515 // "            BL      sub_FFA66AF8 \n"
 516 // "            B       loc_FF96980C \n"
 517 // "loc_FF969808: \n"
 518 // "            BL      sub_FFA659B4 \n"
 519 // "loc_FF96980C: \n"
 520 // "            LDR     R0, [SP,#0x58] \n"
 521 // "            LDR     R1, [SP,#0x60] \n"
 522 // "            BL      sub_FFAA9D6C \n"
 523 // "            LDR     R0, [R6,#0x68] \n"
 524 
 525 // "            LDR     R3, =0x6BF0 \n"                 // 6BF0
 526 // "            ADD     R1, R0, #1 \n"
 527 // "            STR     R1, [R6,#0x68] \n"
 528 // "            STR     R3, [SP] \n"
 529 // "            LDR     R0, [R6,#0x64] \n"
 530 // "            SUB     R3, R3, #4 \n"                  // 4
 531 // "            AND     R2, R0, #0xFF \n"
 532 // "            LDR     R0, [SP,#0x60] \n"
 533 // "            BL      sub_FFAA78BC \n"
 534 
 535 // "            LDR     R0, =0x6BEC \n"                 // Added (6BF0 - 4)
 536 // "            BL      set_quality \n"                 // Added ----------->
 537 
 538 // "loc_FF969840: \n"
 539 // "            CMP     R5, #1 \n"
 540 // "            LDRNEH  R0, [R6,#6] \n"
 541 // "            CMPNE   R0, #3 \n"
 542 // "            BNE     loc_FF969418 \n"
 543 // "            LDR     R0, [R6,#0x6C] \n"
 544 // "            ADD     R0, R0, #1 \n"
 545 // "            STR     R0, [R6,#0x6C] \n"
 546 // "            LDRH    R1, [R6,#6] \n"
 547 // "            CMP     R1, #3 \n"
 548 // "            LDRNE   R1, [R6,#0x54] \n"
 549 // "            LDREQ   R1, =0x3E9 \n"
 550 // "            MUL     R0, R1, R0 \n"
 551 // "            LDREQ   R1, =0x1770 \n"
 552 // "            LDRNE   R1, [R6,#0x50] \n"
 553 // "            BL      sub_FFB4BCC8 \n"
 554 // "            MOV     R4, R0 \n"
 555 // "            BL      sub_FFAAA0E8 \n"
 556 // "            LDR     R0, [R6,#0x8C] \n"
 557 // "            CMP     R0, R4 \n"
 558 // "            BNE     loc_FF96989C \n"
 559 // "            LDR     R0, [R6,#0x3C] \n"
 560 // "            CMP     R0, #1 \n"
 561 // "            BNE     loc_FF9698B0 \n"
 562 // "loc_FF96989C: \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_FF9698B0: \n"
 569 // "            STR     R8, [R6,#0x38] \n"
 570 // "            B       loc_FF969418 \n"
 571         
 572         // );
 573 // }

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