root/platform/s95/sub/100i/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
  4. sub_FF985B84_my

   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 void  set_quality (int *x)  // -17 highest; +12 lowest
  11 {
  12         if (conf.video_mode)
  13                 *x = 12 - ((conf.video_quality-1) * (12+17) / (99-1));
  14 }
  15 
  16 
  17 /*----------------------------------------------------------------------
  18         change_video_tables()
  19 -----------------------------------------------------------------------*/
  20 void change_video_tables(int a, int b)
  21 {
  22 }
  23 
  24 
  25 /*----------------------------------------------------------------------
  26         movie_record_task()  0xFF98642C
  27 -----------------------------------------------------------------------*/
  28 void __attribute__((naked,noinline)) movie_record_task()
  29 {
  30         asm volatile (
  31 "       STMFD   SP!, {R2-R8,LR} \n"    
  32             
  33 "       LDR     R8, =0x2710 \n"                      
  34 "       LDR     R4, =0x7128 \n"                      
  35 "       MOV     R7, #1 \n"                           
  36 "       LDR     R6, =0xFF98611C \n"                  
  37 "       MOV     R5, #0 \n"                           
  38 "loc_FF986444:\n"
  39 "       LDR     R0, [R4, #0x24] \n"                  
  40 "       MOV     R2, #0 \n"                           
  41 "       ADD     R1, SP, #4 \n"                       
  42 "       BL      sub_FF83A2F8 \n"                      
  43 "       LDR     R0, [R4, #0x2C] \n"                  
  44 "       CMP     R0, #0 \n"                           
  45 "       LDRNE   R0, [R4, #0xC] \n"                 
  46 "       CMPNE   R0, #2 \n"                         
  47 "       LDRNE   R0, [R4, #0x44] \n"                
  48 "       CMPNE   R0, #6 \n"                         
  49 "       BNE     loc_FF98655C \n"                     
  50 "       LDR     R0, [SP, #4] \n"                     
  51 "       LDR     R1, [R0] \n"                         
  52 "       SUB     R1, R1, #2 \n"                       
  53 "       CMP     R1, #0xA \n"                         
  54 "       ADDLS   PC, PC, R1, LSL #2 \n"             
  55 "       B       loc_FF98655C \n"                       
  56 "       B       loc_FF986510 \n"                       
  57 "       B       loc_FF986530 \n"                       
  58 "       B       loc_FF986540 \n"                       
  59 "       B       loc_FF986548 \n"                       
  60 "       B       loc_FF986518 \n"                       
  61 "       B       loc_FF986550 \n"                       
  62 "       B       loc_FF986520 \n"                       
  63 "       B       loc_FF98655C \n"                       
  64 "       B       loc_FF986558 \n"                       
  65 "       B       loc_FF9864E0 \n"                       
  66 "       B       loc_FF9864B4 \n"                       
  67 
  68 "loc_FF9864B4:\n"
  69 "       STR     R5, [R4, #0x40] \n"                  
  70 "       STR     R5, [R4, #0x30] \n"                  
  71 "       STR     R5, [R4, #0x34] \n"                  
  72 "       STRH    R5, [R4, #6] \n"                    
  73 "       STR     R6, [R4, #0xB4] \n"                  
  74 "       LDR     R0, [R4, #0xC] \n"                   
  75 "       ADD     R0, R0, #1 \n"                       
  76 "       STR     R0, [R4, #0xC] \n"                   
  77 "       MOV     R0, #6 \n"                           
  78 "       STR     R0, [R4, #0x44] \n"                  
  79 "       B       loc_FF9864FC \n"
  80 
  81 "loc_FF9864E0:\n"
  82 "       STR     R5, [R4, #0x40] \n"                  
  83 "       STR     R5, [R4, #0x30] \n"                  
  84 "       STR     R6, [R4, #0xB4] \n"                  
  85 "       LDR     R0, [R4, #0xC] \n"                   
  86 "       ADD     R0, R0, #1 \n"                       
  87 "       STR     R0, [R4, #0xC] \n"                   
  88 "       STR     R7, [R4, #0x44] \n"                  
  89 "loc_FF9864FC:\n"
  90 "       LDR     R2, =0xFF985334 \n"                  
  91 "       LDR     R1, =0xB45D0 \n"  
  92                    
  93 //"     LDR     R0, =sub_FF985430 \n"                  
  94 "       LDR     R0, =0xFF985430 \n"   
  95 
  96 "       BL      sub_FF8530D0 \n"                      
  97 "       B       loc_FF98655C \n"
  98                        
  99 "loc_FF986510:\n"
 100 "       BL      unlock_optical_zoom\n"                  // added to unlock the zoom
 101 "       BL      sub_FF986244 \n"                      
 102 "       B       loc_FF98655C \n"   
 103                     
 104 "loc_FF986518:\n"
 105 //"     BL      sub_FF985B84 \n"
 106 "       BL      sub_FF985B84_my \n"                             // patched                  
 107 "       B       loc_FF98655C \n"
 108                       
 109 "loc_FF986520:\n"
 110 "       LDR     R1, [R0, #0x18] \n"                  
 111 "       LDR     R0, [R0, #4] \n"                     
 112 "       BL      sub_FFAF2B24 \n"                      
 113 "       B       loc_FF98655C \n"
 114                        
 115 "loc_FF986530:\n"
 116 "       LDR     R0, [R4, #0x44] \n"                  
 117 "       CMP     R0, #5 \n"                           
 118 "       STRNE   R7, [R4, #0x34] \n"                
 119 "       B       loc_FF98655C \n" 
 120                       
 121 "loc_FF986540:\n"
 122 "       BL      sub_FF9857CC \n"                      
 123 "       B       loc_FF98655C \n"  
 124                      
 125 "loc_FF986548:\n"
 126 "       BL      sub_FF98547C \n"                      
 127 "       B       loc_FF98655C \n"   
 128                     
 129 "loc_FF986550:\n"
 130 "       BL      sub_FF9852C0 \n"                      
 131 "       B       loc_FF98655C \n"     
 132                   
 133 "loc_FF986558:\n"
 134 "       BL      sub_FF98698C \n" 
 135                     
 136 "loc_FF98655C:\n"
 137 "       LDR     R1, [SP, #4] \n"                     
 138 "       MOV     R3, #0x5F0 \n"                       
 139 "       STR     R5, [R1] \n"                         
 140 "       STR     R3, [SP] \n"                         
 141 "       LDR     R0, [R4, #0x28] \n"                  
 142 "       LDR     R3, =0xFF985124 \n"                  
 143 "       MOV     R2, R8 \n"                           
 144 "       BL      sub_FF83AC4C \n"                      
 145 "       B       loc_FF986444 \n" 
 146         );
 147 }
 148 
 149 /*----------------------------------------------------------------------
 150         sub_FF985B84_my()
 151 -----------------------------------------------------------------------*/
 152 void __attribute__((naked,noinline)) sub_FF985B84_my()
 153 {
 154         asm volatile (
 155 "       STMFD   SP!, {R4-R11,LR} \n"               
 156 "       SUB     SP, SP, #0x64 \n"                    
 157 "       MOV     R8, #0 \n"                           
 158 "       LDR     R6, =0x7128 \n"                      
 159 "       MOV     R4, R0 \n"                           
 160 "       STR     R8, [SP, #0x54] \n"                  
 161 "       STR     R8, [SP, #0x4C] \n"                  
 162 "       LDR     R0, [R6, #0x44] \n"                  
 163 "       MOV     R11, #4 \n"                          
 164 "       CMP     R0, #3 \n"                           
 165 "       STREQ   R11, [R6, #0x44] \n"               
 166 "       LDR     R0, [R6, #0xB4] \n"                  
 167 "       MOV     R9, #0 \n"                           
 168 "       MOV     R7, #0 \n"                           
 169 "       MOV     R5, #1 \n"                           
 170 "       BLX     R0 \n"                               
 171 "       LDR     R0, [R6, #0x44] \n"                  
 172 "       CMP     R0, #6 \n"                           
 173 "       BEQ     loc_FF985BE4 \n"                     
 174 "       LDR     R1, [R6, #0xC] \n"                   
 175 "       CMP     R1, #2 \n"                           
 176 "       BNE     loc_FF985C04 \n"                     
 177 "       CMP     R0, #5 \n"                           
 178 "       BEQ     loc_FF985C7C \n"                     
 179 "loc_FF985BE4:\n"
 180 "       LDR     R1, =0x7F2 \n"                       
 181 "       MOV     R7, #1 \n"                           
 182 "       LDR     R0, =0xFF985124 \n"                  
 183 "       BL      sub_FF81EB78 \n"                      
 184 "       LDR     R0, [R6, #0x44] \n"                  
 185 "       CMP     R0, #4 \n"                           
 186 "       MOVNE   R5, #0 \n"                         
 187 "       B       loc_FF985C0C \n"                       
 188 "loc_FF985C04:\n"
 189 "       CMP     R0, #4 \n"                           
 190 "       BNE     loc_FF985C7C \n"                     
 191 "loc_FF985C0C:\n"
 192 "       LDRH    R0, [R6, #6] \n"                    
 193 "       CMP     R0, #1 \n"                           
 194 "       LDREQ   R1, =0x809 \n"                     
 195 "       LDREQ   R0, =0xFF985124 \n"                
 196 "       BLEQ    sub_FF81EB78 \n"                    
 197 "       LDRH    R0, [R6, #6] \n"                    
 198 "       CMP     R0, #3 \n"                           
 199 "       BNE     loc_FF985C40 \n"                     
 200 "       LDR     R0, [R6, #0x6C] \n"                  
 201 "       LDR     R1, [R6, #0xB8] \n"                  
 202 "       BL      sub_FFBA188C \n"                      
 203 "       CMP     R1, #0 \n"                           
 204 "       MOVNE   R5, #0 \n"                         
 205 "loc_FF985C40:\n"
 206 "       LDR     R0, [R6, #0x44] \n"                  
 207 "       CMP     R0, #6 \n"                           
 208 "       CMPNE   R0, #1 \n"                         
 209 "       CMPNE   R0, #3 \n"                         
 210 "       BNE     loc_FF985C84 \n"                     
 211 "       CMP     R7, #1 \n"                           
 212 "       CMPEQ   R5, #0 \n"                         
 213 "       BNE     loc_FF985C84 \n"                     
 214 "       LDR     R0, [R6, #0x18] \n"                  
 215 "       MOV     R1, #0x3E8 \n"                       
 216 "       BL      sub_FF83A714 \n"                      
 217 "       CMP     R0, #9 \n"                           
 218 "       BNE     loc_FF9860A4 \n"                     
 219 "       MOV     R0, #0x90000 \n"                     
 220 "       BL      sub_FF89D31C \n"                      
 221 "loc_FF985C7C:\n"
 222 "       ADD     SP, SP, #0x64 \n"                    
 223 "       LDMFD   SP!, {R4-R11,PC} \n"               
 224 "loc_FF985C84:\n"
 225 "       CMP     R5, #1 \n"                           
 226 "       MOV     R10, #1 \n"                          
 227 "       BNE     loc_FF985CAC \n"                     
 228 "       ADD     R3, SP, #0x4C \n"                    
 229 "       ADD     R2, SP, #0x50 \n"                    
 230 "       ADD     R1, SP, #0x54 \n"                    
 231 "       ADD     R0, SP, #0x58 \n"                    
 232 "       BL      sub_FFAF2BE4 \n"                      
 233 "       MOVS    R9, R0 \n"                          
 234 "       BNE     loc_FF985CC8 \n"                     
 235 "loc_FF985CAC:\n"
 236 "       LDR     R0, [R6, #0x34] \n"                  
 237 "       CMP     R0, #1 \n"                           
 238 "       BNE     loc_FF985E24 \n"                     
 239 "       LDR     R0, [R6, #0x6C] \n"                  
 240 "       LDR     R1, [R6, #0x48] \n"                  
 241 "       CMP     R0, R1 \n"                           
 242 "       BCC     loc_FF985E24 \n"                     
 243 "loc_FF985CC8:\n"
 244 "       CMP     R9, #0x80000001 \n"                  
 245 "       STREQ   R11, [R6, #0x70] \n"               
 246 "       BEQ     loc_FF985D00 \n"                     
 247 "       CMP     R9, #0x80000003 \n"                  
 248 "       STREQ   R10, [R6, #0x70] \n"               
 249 "       BEQ     loc_FF985D00 \n"                     
 250 "       CMP     R9, #0x80000005 \n"                  
 251 "       MOVEQ   R0, #2 \n"                         
 252 "       BEQ     loc_FF985CFC \n"                     
 253 "       CMP     R9, #0x80000007 \n"                  
 254 "       STRNE   R8, [R6, #0x70] \n"                
 255 "       BNE     loc_FF985D00 \n"                     
 256 "       MOV     R0, #3 \n"                           
 257 "loc_FF985CFC:\n"
 258 "       STR     R0, [R6, #0x70] \n"                  
 259 "loc_FF985D00:\n"
 260 "       LDR     R0, [R6, #0xC] \n"                   
 261 "       CMP     R0, #2 \n"                           
 262 "       BNE     loc_FF985D68 \n"                     
 263 "       MOV     R1, #0 \n"                           
 264 "       LDR     R0, =0xFF985B78 \n"                  
 265 "       BL      sub_FFAAD410 \n"                      
 266 "       LDR     R2, [R6, #0x64] \n"                  
 267 "       ADD     R3, SP, #0x5C \n"                    
 268 "       STRD    R2, [SP, #0x28] \n"                 
 269 "       MOV     R2, #0x18 \n"                        
 270 "       ADD     R1, SP, #0x34 \n"                    
 271 "       ADD     R0, SP, #0x10 \n"                    
 272 "       BL      sub_FFB9F22C \n"                      
 273 "       LDR     R1, [R6, #0x84] \n"                  
 274 "       LDR     R2, [R6, #0x88] \n"                  
 275 "       MVN     R3, #1 \n"                           
 276 "       ADD     R0, SP, #0x60 \n"                    
 277 "       STMEA   SP, {R0-R3} \n"                    
 278 "       LDR     R0, =0xB4618 \n"                     
 279 "       MOV     R3, #0 \n"                           
 280 "       MOV     R2, #0 \n"                           
 281 "       MOV     R1, #0x40 \n"                        
 282 "       BL      sub_FFAAD368 \n"                      
 283 "       B       loc_FF985DBC \n"                       
 284 "loc_FF985D60:\n"
 285 "       MOV     R1, #1 \n"                           
 286 "       B       loc_FF986030 \n"                       
 287 "loc_FF985D68:\n"
 288 "       BL      loc_FF986A38 \n"                      
 289 "       LDR     R2, [R6, #0x64] \n"                  
 290 "       ADD     R3, SP, #0x5C \n"                    
 291 "       MVN     R1, #1 \n"                           
 292 "       MOV     R0, #0 \n"                           
 293 "       ADD     R5, SP, #0x1C \n"                    
 294 "       STMIA   R5, {R0-R3} \n"                    
 295 "       LDR     R3, [R4, #0x1C] \n"                  
 296 "       LDR     R1, [R6, #0x84] \n"                  
 297 "       LDR     R2, [R6, #0x88] \n"                  
 298 "       ADD     R4, SP, #0xC \n"                     
 299 "       ADD     R0, SP, #0x60 \n"                    
 300 "       STMIA   R4, {R0-R3} \n"                    
 301 "       MOV     R3, #0 \n"                           
 302 "       MOV     R1, #0x40 \n"                        
 303 "       MOV     R2, #0 \n"                           
 304 "       STMEA   SP, {R1-R3} \n"                    
 305 "       LDR     R3, =0xB4618 \n"                     
 306 "       MOV     R1, #0 \n"                           
 307 "       MOV     R0, #0 \n"                           
 308 "       BL      sub_FFAAC1D8 \n"                      
 309 "loc_FF985DBC:\n"
 310 "       LDR     R0, [R6, #0x18] \n"                  
 311 "       LDR     R1, [R6, #0x60] \n"                  
 312 "       BL      sub_FF83A714 \n"                      
 313 "       CMP     R0, #9 \n"                           
 314 "       BEQ     loc_FF985D60 \n"                     
 315 "       LDR     R0, [SP, #0x5C] \n"                  
 316 "       CMP     R0, #0 \n"                           
 317 "       BEQ     loc_FF985DE4 \n"                     
 318 "loc_FF985DDC:\n"
 319 "       MOV     R1, #1 \n"                           
 320 "       B       loc_FF986048 \n"                       
 321 "loc_FF985DE4:\n"
 322 "       LDR     R0, [R6, #0xC] \n"                   
 323 "       MOV     R4, #5 \n"                           
 324 "       CMP     R0, #2 \n"                           
 325 "       MOV     R0, #1 \n"                           
 326 "       BNE     loc_FF985E10 \n"                     
 327 "       BL      sub_FFAAD3D0 \n"                      
 328 "       BL      sub_FFAAD3F8 \n"                      
 329 "       STR     R4, [R6, #0x44] \n"                  
 330 "       BL      loc_FF986A38 \n"                      
 331 "       STR     R10, [R6, #0x44] \n"                 
 332 "       B       loc_FF985E1C \n"                       
 333 "loc_FF985E10:\n"
 334 "       BL      sub_FFAAC28C \n"                      
 335 "       BL      sub_FFAAC2EC \n"                      
 336 "       STR     R4, [R6, #0x44] \n"                  
 337 "loc_FF985E1C:\n"
 338 "       STR     R8, [R6, #0x34] \n"                  
 339 "       B       loc_FF985C7C \n"                       
 340 "loc_FF985E24:\n"
 341 "       CMP     R5, #1 \n"                           
 342 "       BNE     loc_FF9860A4 \n"                     
 343 "       STR     R10, [R6, #0x38] \n"                 
 344 "       LDR     R0, [R6, #0x6C] \n"                  
 345 "       LDR     R11, [R4, #0xC] \n"                  
 346 "       CMP     R0, #0 \n"                           
 347 "       LDRNE   R9, [SP, #0x58] \n"                
 348 "       LDRNE   R10, [SP, #0x54] \n"               
 349 "       BNE     loc_FF985F6C \n"                     
 350 "       LDR     R0, [R6, #0xC] \n"                   
 351 "       CMP     R0, #2 \n"                           
 352 "       BNE     loc_FF985EC8 \n"                     
 353 "       MOV     R1, #0 \n"                           
 354 "       LDR     R0, =0xFF985B78 \n"                  
 355 "       BL      sub_FFAAD410 \n"                      
 356 "       LDR     R2, [R6, #0x64] \n"                  
 357 "       ADD     R3, SP, #0x5C \n"                    
 358 "       STRD    R2, [SP, #0x28] \n"                 
 359 "       MOV     R2, #0x18 \n"                        
 360 "       ADD     R1, SP, #0x34 \n"                    
 361 "       ADD     R0, SP, #0x10 \n"                    
 362 "       BL      sub_FFB9F22C \n"                      
 363 "       LDR     R1, [R6, #0x84] \n"                  
 364 "       LDR     R2, [R6, #0x88] \n"                  
 365 "       MVN     R3, #0 \n"                           
 366 "       ADD     R0, SP, #0x60 \n"                    
 367 "       STMEA   SP, {R0-R3} \n"                    
 368 "       LDR     R0, [SP, #0x58] \n"                  
 369 "       LDR     R1, [SP, #0x54] \n"                  
 370 "       LDR     R2, [SP, #0x50] \n"                  
 371 "       LDR     R3, [SP, #0x4C] \n"                  
 372 "       BL      sub_FFAAD368 \n"                      
 373 "       LDR     R0, [R6, #0x18] \n"                  
 374 "       LDR     R1, [R6, #0x60] \n"                  
 375 "       BL      sub_FF83A714 \n"                      
 376 "       CMP     R0, #9 \n"                           
 377 "       BEQ     loc_FF985D60 \n"                     
 378 "       MOV     R1, #0 \n"                           
 379 "       LDR     R0, =0xFF985B6C \n"                  
 380 "       BL      sub_FFAAD410 \n"                      
 381 "       B       loc_FF985F30 \n"                       
 382 "loc_FF985EC8:\n"
 383 "       LDR     R0, [R4, #0x20] \n"                  
 384 "       LDR     R2, [R6, #0x64] \n"                  
 385 "       ADD     R3, SP, #0x5C \n"                    
 386 "       MVN     R1, #0 \n"                           
 387 "       ADD     R9, SP, #0x1C \n"                    
 388 "       STMIA   R9, {R0-R3} \n"                    
 389 "       LDR     R3, [R4, #0x1C] \n"                  
 390 "       LDR     R1, [R6, #0x84] \n"                  
 391 "       LDR     R2, [R6, #0x88] \n"                  
 392 "       ADD     R0, SP, #0x60 \n"                    
 393 "       ADD     R9, SP, #0xC \n"                     
 394 "       STMIA   R9, {R0-R3} \n"                    
 395 "       LDR     R1, [SP, #0x50] \n"                  
 396 "       LDR     R2, [SP, #0x54] \n"                  
 397 "       LDR     R3, [SP, #0x4C] \n"                  
 398 "       STMFA   SP, {R1,R3} \n"                    
 399 "       STR     R2, [SP] \n"                         
 400 "       LDMIB   R4, {R0,R1} \n"                    
 401 "       LDR     R3, [SP, #0x58] \n"                  
 402 "       MOV     R2, R11 \n"                          
 403 "       BL      sub_FFAAC1D8 \n"                      
 404 "       LDR     R0, [R6, #0x18] \n"                  
 405 "       LDR     R1, [R6, #0x60] \n"                  
 406 "       BL      sub_FF83A714 \n"                      
 407 "       CMP     R0, #9 \n"                           
 408 "       BEQ     loc_FF985D60 \n"                     
 409 "loc_FF985F30:\n"
 410 "       LDR     R0, [SP, #0x5C] \n"                  
 411 "       CMP     R0, #0 \n"                           
 412 "       BNE     loc_FF985DDC \n"                     
 413 "       LDR     R0, [R6, #0xC] \n"                   
 414 "       CMP     R0, #2 \n"                           
 415 "       MOV     R0, #1 \n"                           
 416 "       BNE     loc_FF985F54 \n"                     
 417 "       BL      sub_FFAAD3D0 \n"                      
 418 "       B       loc_FF985F58 \n"                       
 419 "loc_FF985F54:\n"
 420 "       BL      sub_FFAAC28C \n"                      
 421 "loc_FF985F58:\n"
 422 "       LDR     R0, [SP, #0x60] \n"                  
 423 "       LDR     R1, [SP, #0x58] \n"                  
 424 "       ADD     R9, R1, R0 \n"                       
 425 "       LDR     R1, [SP, #0x54] \n"                  
 426 "       SUB     R10, R1, R0 \n"                      
 427 "loc_FF985F6C:\n"
 428 "       LDR     R0, [R6, #0xC] \n"                   
 429 "       LDR     R2, [R6, #0x64] \n"                  
 430 "       CMP     R0, #2 \n"                           
 431 "       ADD     R3, SP, #0x5C \n"                    
 432 "       BNE     loc_FF985FC0 \n"                     
 433 "       STRD    R2, [SP, #0x28] \n"                 
 434 "       MOV     R2, #0x18 \n"                        
 435 "       ADD     R1, SP, #0x34 \n"                    
 436 "       ADD     R0, SP, #0x10 \n"                    
 437 "       BL      sub_FFB9F22C \n"                      
 438 "       LDR     R1, [R6, #0x84] \n"                  
 439 "       LDR     R2, [R6, #0x88] \n"                  
 440 "       LDR     R3, [R6, #0x68] \n"                  
 441 "       ADD     R0, SP, #0x60 \n"                    
 442 "       STMEA   SP, {R0-R3} \n"                    
 443 "       LDR     R2, [SP, #0x50] \n"                  
 444 "       LDR     R3, [SP, #0x4C] \n"                  
 445 "       MOV     R1, R10 \n"                          
 446 "       MOV     R0, R9 \n"                           
 447 "       BL      sub_FFAAD368 \n"                      
 448 "       B       loc_FF986018 \n"                       
 449 "loc_FF985FC0:\n"
 450 "       LDR     R1, [R6, #0x68] \n"                  
 451 "       LDR     R0, [R4, #0x20] \n"                  
 452 "       STR     R1, [SP, #0x20] \n"                  
 453 "       STR     R0, [SP, #0x1C] \n"                  
 454 "       STR     R2, [SP, #0x24] \n"                  
 455 "       STR     R3, [SP, #0x28] \n"                  
 456 "       LDR     R3, [R4, #0x1C] \n"                  
 457 "       LDR     R1, [R6, #0x84] \n"                  
 458 "       LDR     R2, [R6, #0x88] \n"                  
 459 "       ADD     R0, SP, #0x60 \n"                    
 460 "       STR     R2, [SP, #0x14] \n"                  
 461 "       LDR     R2, [SP, #0x50] \n"                  
 462 "       STR     R1, [SP, #0x10] \n"                  
 463 "       STR     R3, [SP, #0x18] \n"                  
 464 "       LDR     R3, [SP, #0x4C] \n"                  
 465 "       STR     R0, [SP, #0xC] \n"                   
 466 "       STMFA   SP, {R2,R3} \n"                    
 467 "       STR     R10, [SP] \n"                        
 468 "       LDMIB   R4, {R0,R1} \n"                    
 469 "       MOV     R3, R9 \n"                           
 470 "       MOV     R2, R11 \n"                          
 471 "       BL      sub_FFAAC1D8 \n"                      
 472 "loc_FF986018:\n"
 473 "       LDR     R0, [R6, #0x18] \n"                  
 474 "       LDR     R1, [R6, #0x60] \n"                  
 475 "       BL      sub_FF83A714 \n"                      
 476 "       CMP     R0, #9 \n"                           
 477 "       BNE     loc_FF986038 \n"                     
 478 "       MOV     R1, #0 \n"                           
 479 "loc_FF986030:\n"
 480 "       MOV     R0, #0x90000 \n"                     
 481 "       B       loc_FF98604C \n"                       
 482 "loc_FF986038:\n"
 483 "       LDR     R0, [SP, #0x5C] \n"                  
 484 "       CMP     R0, #0 \n"                           
 485 "       BEQ     loc_FF986054 \n"                     
 486 "       MOV     R1, #0 \n"                           
 487 "loc_FF986048:\n"
 488 "       MOV     R0, #0xA0000 \n"                     
 489 "loc_FF98604C:\n"
 490 "       BL      sub_FF985B0C \n"                      
 491 "       B       loc_FF985C7C \n"                       
 492 "loc_FF986054:\n"
 493 "       LDR     R0, [R6, #0xC] \n"                   
 494 "       CMP     R0, #2 \n"                           
 495 "       MOV     R0, #0 \n"                           
 496 "       BNE     loc_FF98606C \n"                     
 497 "       BL      sub_FFAAD3D0 \n"                      
 498 "       B       loc_FF986070 \n"                       
 499 "loc_FF98606C:\n"
 500 "       BL      sub_FFAAC28C \n"                      
 501 "loc_FF986070:\n"
 502 "       LDR     R0, [SP, #0x58] \n"                  
 503 "       LDR     R1, [SP, #0x60] \n"                  
 504 "       BL      sub_FFAF2E1C \n"                      
 505 "       LDR     R0, [R6, #0x68] \n"                  
 506 "       LDR     R3, =0x71B0 \n"                      
 507 "       ADD     R1, R0, #1 \n"                       
 508 "       STR     R1, [R6, #0x68] \n"                  
 509 "       STR     R3, [SP] \n"                         
 510 "       LDR     R0, [R6, #0x64] \n"                  
 511 "       SUB     R3, R3, #4 \n"                       
 512 "       AND     R2, R0, #0xFF \n"                    
 513 "       LDR     R0, [SP, #0x60] \n"                  
 514 "       BL      sub_FFAF0964 \n"                      
 515 "       LDR R0, =0x71AC \n"                             // added  (71b0 - 4)
 516 "       BL              set_quality \n"                 // added
 517 "loc_FF9860A4:\n"
 518 "       CMP     R5, #1 \n"                           
 519 "       LDRNEH  R0, [R6, #6] \n"                  
 520 "       CMPNE   R0, #3 \n"                         
 521 "       BNE     loc_FF985C7C \n"                     
 522 "       LDR     R0, [R6, #0x6C] \n"                  
 523 "       ADD     R0, R0, #1 \n"                       
 524 "       STR     R0, [R6, #0x6C] \n"                  
 525 "       LDRH    R1, [R6, #6] \n"                    
 526 "       CMP     R1, #3 \n"                           
 527 "       LDRNE   R1, [R6, #0x54] \n"                
 528 "       LDREQ   R1, =0x3E9 \n"                     
 529 "       MUL     R0, R1, R0 \n"                       
 530 "       LDREQ   R1, =0x1770 \n"                    
 531 "       LDRNE   R1, [R6, #0x50] \n"                
 532 "       BL      sub_FFBA188C \n"                      
 533 "       MOV     R4, R0 \n"                           
 534 "       BL      sub_FFAF3198 \n"                      
 535 "       LDR     R0, [R6, #0x8C] \n"                  
 536 "       CMP     R0, R4 \n"                           
 537 "       BNE     loc_FF986100 \n"                     
 538 "       LDR     R0, [R6, #0x3C] \n"                  
 539 "       CMP     R0, #1 \n"                           
 540 "       BNE     loc_FF986114 \n"                     
 541 "loc_FF986100:\n"
 542 "       LDR     R1, [R6, #0x98] \n"                  
 543 "       MOV     R0, R4 \n"                           
 544 "       BLX     R1 \n"                               
 545 "       STR     R4, [R6, #0x8C] \n"                  
 546 "       STR     R8, [R6, #0x3C] \n"                  
 547 "loc_FF986114:\n"
 548 "       STR     R8, [R6, #0x38] \n"                  
 549 "       B       loc_FF985C7C \n" 
 550 
 551 "loc_FF986A38: \n"
 552 "               B       sub_FF986A38 \n"
 553         );
 554 }

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