root/platform/sx10/sub/100c/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_FF863E84_my

   1 #include "conf.h"
   2 
   3 void change_video_tables(int a, int b){
   4 }
   5 
   6 
   7 void  set_quality(int *x){ // -17 highest; +12 lowest
   8  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
   9 }
  10 
  11 
  12 void __attribute__((naked,noinline)) movie_record_task(){ 
  13  asm volatile(
  14                  "STMFD   SP!, {R2-R8,LR}\n"
  15                  "LDR     R8, =0x3F5\n"
  16                  "LDR     R7, =0x2710\n"
  17                  "LDR     R4, =0x53F8\n"
  18                  "MOV     R6, #0\n"
  19                  "MOV     R5, #1\n"
  20  "loc_FF86459C:\n" //done
  21                  "LDR     R0, [R4,#0x18]\n"
  22                  "MOV     R2, #0\n"
  23                  "ADD     R1, SP, #4\n"
  24                  "BL      sub_FF8274FC\n" //done
  25                  "LDR     R2, =0xFF862E34\n" //done
  26                  "LDR     R0, [R4,#0xB0]\n"
  27                  "MOV     R3, R8\n"
  28                  "MOV     R1, R7\n"
  29                  "BL      sub_FF827DF8\n" //checked
  30                  "LDR     R0, [R4,#0x20]\n"
  31                  "CMP     R0, #0\n"
  32                  "BNE     loc_FF86469C\n" //done
  33                  "LDR     R0, [SP,#4]\n"
  34                  "LDR     R1, [R0]\n"
  35                  "SUB     R1, R1, #2\n"
  36                  "CMP     R1, #0xB\n"
  37                  "ADDLS   PC, PC, R1,LSL#2\n"
  38                  "B       loc_FF86469C\n"
  39  "loc_FF8645E4:\n" //                           ; CODE XREF: sub_FF864584+58j
  40                 "B      loc_FF864644\n"
  41 
  42 "loc_FF8645E8:\n" //                            ; CODE XREF: sub_FF864584+58j
  43                 "B      loc_FF86465C\n"
  44 
  45 "loc_FF8645EC:\n" //                            ; CODE XREF: sub_FF864584+58j
  46                 "B      loc_FF86466C\n"
  47 
  48 "loc_FF8645F0:\n" //                            ; CODE XREF: sub_FF864584+58j
  49                 "B      loc_FF864674\n"
  50 
  51 "loc_FF8645F4:\n" //                            ; CODE XREF: sub_FF864584+58j
  52                 "B      loc_FF86464C\n"
  53 
  54 "loc_FF8645F8:\n" //                            ; CODE XREF: sub_FF864584+58j
  55                 "B      loc_FF86467C\n"
  56 
  57 "loc_FF8645FC:\n" //                            ; CODE XREF: sub_FF864584+58j
  58                 "B      loc_FF864654\n"
  59 
  60 "loc_FF864600:\n" //                            ; CODE XREF: sub_FF864584+58j
  61                 "B      loc_FF86469C\n"
  62 
  63 "loc_FF864604:\n" //                            ; CODE XREF: sub_FF864584+58j
  64                 "B      loc_FF86468C\n"
  65 
  66 "loc_FF864608:\n" //                            ; CODE XREF: sub_FF864584+58j
  67                 "B      loc_FF864694\n"
  68 
  69 "loc_FF86460C:\n" //                            ; CODE XREF: sub_FF864584+58j
  70                 "B      loc_FF864684\n"
  71 
  72 "loc_FF864610:\n" //                            ; CODE XREF: sub_FF864584+58j
  73                 "B      loc_FF864614\n"
  74 
  75 "loc_FF864614:\n" //                            ; CODE XREF: sub_FF864584+58j
  76 /*
  77 ; jumptable FF8645DC entry 11
  78                 ADR     R0, nullsub_265
  79                 STR     R6, [R4,#0x34]
  80                 STR     R0, [R4,#0x9C]
  81                 LDR     R0, =nullsub_264
  82                 LDR     R2, =sub_FF86334C
  83                 STR     R0, [R4,#0xA0]
  84                 LDR     R0, =sub_FF86345C
  85                 LDR     R1, =0x1BA0C
  86                 STR     R6, [R4,#0x24]
  87                 BL      sub_FF83C1F4
  88                 STR     R5, [R4,#0x38]
  89                 B       loc_FF86469C
  90 */
  91                  "LDR     R0, =0xFF86422C\n" //done
  92                  "STR     R6, [R4,#0x34]\n"
  93                  "STR     R0, [R4,#0x9C]\n"
  94                  "LDR     R0, =0xFF863348\n" //done
  95                  "LDR     R2, =0xFF86334C\n"
  96                  "STR     R0, [R4,#0xA0]\n"
  97                  "LDR     R0, =0xFF86345C\n" //done
  98                  "LDR     R1, =0x1BA0C\n"
  99                  "STR     R6, [R4,#0x24]\n"
 100                  "BL      sub_FF83C1F4\n" //checked
 101                  "STR     R5, [R4,#0x38]\n"
 102                  "B       loc_FF86469C\n" //done
 103 
 104                 
 105 "loc_FF864644:\n" //                            ; CODE XREF: sub_FF864584+58j
 106 //                                      ; sub_FF864584:loc_FF8645E4j
 107 //;jumptable FF8645DC entry 0           ; LOCATION: MovieRecorder.c:0
 108                 "BL     sub_FF864354\n"
 109                 "B      loc_FF86469C\n"
 110 
 111 "loc_FF86464C:\n" //                            ; CODE XREF: sub_FF864584+58"j\n"
 112 //                                      ; sub_FF864584:loc_FF8645F4j
 113 //; jumptable FF8645DC entry 4
 114                 "BL     sub_FF863E84_my\n" //--->
 115                 "B      loc_FF86469C\n"
 116 
 117 "loc_FF864654:\n" //                            ; CODE XREF: sub_FF864584+58j
 118 //                                      ; sub_FF864584:loc_FF8645FCj
 119 //; jumptable FF8645DC entry 6
 120                 "BL     sub_FF864A18\n"
 121                 "B      loc_FF86469C\n"
 122 
 123 "loc_FF86465C:\n" //                            ; CODE XREF: sub_FF864584+58j
 124 //                                      ; sub_FF864584:loc_FF8645E8j
 125 //; jumptable FF8645DC entry 1
 126                 "LDR    R0, [R4,#0x38]\n"
 127                 "CMP    R0, #5\n"
 128                 "STRNE  R5, [R4,#0x28]\n"
 129                 "B      loc_FF86469C\n"
 130 
 131 "loc_FF86466C:\n" //                            ; CODE XREF: sub_FF864584+58j
 132 //                                      ; sub_FF864584:loc_FF8645ECj
 133 //; jumptable FF8645DC entry 2          ; LOCATION: MovieRecorder.c:0
 134                 "BL     sub_FF863BCC\n"
 135                 "B      loc_FF86469C\n"
 136 
 137 "loc_FF864674:\n" //                            ; CODE XREF: sub_FF864584+58j
 138 //                                      ; sub_FF864584:loc_FF8645F0j
 139 //; jumptable FF8645DC entry 3          ; LOCATION: MovieRecorder.c:0
 140                 "BL     sub_FF8638C0\n" //__MovieRecorder.c__0
 141                 "B      loc_FF86469C\n"
 142 
 143 "loc_FF86467C:\n" //                            ; CODE XREF: sub_FF864584+58j
 144                                         //; sub_FF864584:loc_FF8645F8j
 145 //; jumptable FF8645DC entry 5          ; LOCATION: MovieRecorder.c:100
 146                 "BL     sub_FF8632D4\n" //__MovieRecorder.c__100
 147                 "B      loc_FF86469C\n"
 148 
 149 "loc_FF864684:\n" //                            ; CODE XREF: sub_FF864584+58j
 150 //                                      ; sub_FF864584:loc_FF86460Cj
 151 //; jumptable FF8645DC entry 10         ; LOCATION: MovieRecorder.c:100
 152                 "BL     sub_FF864980\n" //__MovieRecorder.c__100
 153                 "B      loc_FF86469C\n"
 154 
 155 "loc_FF86468C:\n" //                            ; CODE XREF: sub_FF864584+58j
 156 //                                      ; sub_FF864584:loc_FF864604j
 157 //; jumptable FF8645DC entry 8          ; LOCATION: MovieRecorder.c:0
 158                 "BL     sub_FF864834\n" //__MovieRecorder.c__0
 159                 "B      loc_FF86469C\n" 
 160 
 161 "loc_FF864694:\n" //                            ; CODE XREF: sub_FF864584+58j
 162                                         //; sub_FF864584:loc_FF864608j
 163 //; jumptable FF8645DC entry 9          ; LOCATION: MovieRecorder.c:0
 164                 "BL     sub_FF8637B0\n" //__MovieRecorder.c__0
 165                 "STR    R5, [R4,#0xD8]\n"
 166 
 167 "loc_FF86469C:\n" //                            ; CODE XREF: sub_FF864584+44j
 168 //                                      ; sub_FF864584+58j ...
 169 //; jumptable FF8645DC default entry
 170 //; jumptable FF8645DC entry 7
 171                          "LDR     R1, [SP,#4]\n"
 172                  "MOV     R3, #0x430\n"
 173                  "STR     R6, [R1]\n"
 174                  "STR     R3, [SP]\n"
 175                  "LDR     R3, =0xFF862E34\n" //done
 176                  "MOV     R2, R7\n"
 177                  "LDR     R0, [R4,#0x1C]\n"
 178                  "BL      sub_FF827E50\n" //checked
 179                  "LDR     R0, [R4,#0xB0]\n"
 180                  "BL      sub_FF8279E8\n"
 181                  "B       loc_FF86459C\n"
 182 /*              LDR     R1, [SP,#0x20+var_1C]
 183                 MOV     R3, #0x430
 184                 STR     R6, [R1]
 185                 STR     R3, [SP,#0x20+var_20]
 186                 ADR     R3, aMovierecorder_ ; "MovieRecorder.c"
 187                 MOV     R2, R7
 188                 LDR     R0, [R4,#0x1C]
 189                 BL      sub_FF827E50
 190                 LDR     R0, [R4,#0xB0]
 191                 BL      eventproc_export_GiveSemaphore ; LOCATION: KerSem.c:0
 192                 B       loc_FF86459C
 193 ; End of function sub_FF864584
 194 */
 195 
 196  /*
 197  "loc_FF8645E4:\n" //done
 198                  "B       loc_FF864644\n"
 199  "loc_FF8645E8:\n" //done
 200                  "B       loc_FF86465C\n"
 201  "loc_FF8645EC:\n" //done
 202                  "B       loc_FF86466C\n"
 203  "loc_FF8645F0:\n" //done
 204                  "B       loc_FF864674\n"
 205  "loc_FF8645F4:\n" //done
 206                  "B       loc_FF86464C\n"
 207  "loc_FF8645FC:\n" //done
 208                  "B       loc_FF86467C\n"
 209  "loc_FF864600:\n" //done
 210                  "B       loc_FF864654\n"
 211  "loc_FF864604:\n" //done
 212                  "B       loc_FF86469C\n"
 213  "loc_FF864608:\n" //done
 214                  "B       loc_FF864694\n"
 215  "loc_FF86460C:\n" //done
 216                  "B       loc_FF86469C\n"
 217  "loc_FF864610:\n" //done
 218                  "B       loc_FF86468C\n"
 219  "loc_FF864614:\n" //done
 220                  "B       loc_FF86461C\n"
 221  "loc_FF864618:\n" //done
 222                  "LDR     R0, =0xFF864234\n"
 223                  "STR     R6, [R4,#0x34]\n"
 224                  "STR     R0, [R4,#0x9C]\n"
 225                  "LDR     R0, =0xFF863350\n"
 226                  "LDR     R2, =0xFF863354\n"
 227                  "STR     R0, [R4,#0xA0]\n"
 228                  "LDR     R0, =0xFF863464\n"
 229                  "LDR     R1, =0x1BA0C\n"
 230                  "STR     R6, [R4,#0x24]\n"
 231                  "BL      sub_FF83C1F4\n"
 232                  "STR     R5, [R4,#0x38]\n"
 233                  "B       loc_FF8646A4\n"
 234  "loc_FF86464C:\n"
 235                  "BL      sub_FF86435C\n"
 236                  "B       loc_FF8646A4\n"
 237  "loc_FF864654:\n"
 238                  "BL      sub_FF863E8C_my\n"  //--------------->
 239                  "B       loc_FF8646A4\n"
 240  "loc_FF86465C:\n"
 241                  "BL      sub_FF864A20\n"
 242                  "B       loc_FF8646A4\n"
 243  "loc_FF864664:\n"
 244                  "LDR     R0, [R4,#0x38]\n"
 245                  "CMP     R0, #5\n"
 246                  "STRNE   R5, [R4,#0x28]\n"
 247                  "B       loc_FF8646A4\n"
 248  "loc_FF864674:\n"
 249                  "BL      sub_FF863BD4\n"
 250                  "B       loc_FF8646A4\n"
 251  "loc_FF86467C:\n"
 252                  "BL      sub_FF8638C8\n"
 253                  "B       loc_FF8646A4\n"
 254  "loc_FF864684:\n"
 255                  "BL      sub_FF8632DC\n"
 256                  "B       loc_FF8646A4\n"
 257  "loc_FF86468C:\n"
 258                  "BL      sub_FF864988\n"
 259                  "B       loc_FF8646A4\n"
 260  "loc_FF864694:\n"
 261                  "BL      sub_FF86483C\n"
 262                  "B       loc_FF8646A4\n"
 263  "loc_FF86469C:\n"
 264                  "BL      sub_FF8637B8\n"
 265                  "STR     R5, [R4,#0xD8]\n"
 266  "loc_FF8646A4:\n"
 267                  "LDR     R1, [SP,#4]\n"
 268                  "MOV     R3, #0x430\n"
 269                  "STR     R6, [R1]\n"
 270                  "STR     R3, [SP]\n"
 271                  "LDR     R3, =0xFF862E3C\n"
 272                  "MOV     R2, R7\n"
 273                  "LDR     R0, [R4,#0x1C]\n"
 274                  "BL      sub_FF827E50\n"
 275                  "LDR     R0, [R4,#0xB0]\n"
 276                  "BL      sub_FF8279E8\n"
 277                  "B       loc_FF8645A4\n"
 278                                  */
 279  );
 280 }
 281 
 282 
 283 void __attribute__((naked,noinline)) sub_FF863E84_my(){ 
 284  asm volatile(
 285                  "STMFD   SP!, {R4-R8,LR}\n"
 286                  "SUB     SP, SP, #0x48\n"
 287                  "MOV     R7, #0\n"
 288                  "LDR     R6, =0x53F8\n"
 289                  "MOV     R4, R0\n"
 290                  "STR     R7, [SP,#0x38]\n"
 291                  "STR     R7, [SP,#0x30]\n"
 292                  "LDR     R0, [R6,#0x38]\n"
 293                  "CMP     R0, #3\n"
 294                  "MOVEQ   R0, #4\n"
 295                  "STREQ   R0, [R6,#0x38]\n"
 296                  "LDR     R0, [R6,#0x9C]\n"
 297                  "BLX     R0\n"
 298                  "LDR     R0, [R6,#0x38]\n"
 299                  "CMP     R0, #4\n"
 300                  "BNE     loc_FF863F88\n" //done
 301                  "ADD     R3, SP, #0x30\n"
 302                  "ADD     R2, SP, #0x34\n"
 303                  "ADD     R1, SP, #0x38\n"
 304                  "ADD     R0, SP, #0x3C\n"
 305                  "BL      sub_FF9462B4\n" //done
 306                  "CMP     R0, #0\n"
 307                  "MOV     R5, #1\n"
 308                  "BNE     loc_FF863F00\n" //done
 309                  "LDR     R1, [R6,#0x28]\n"
 310                  "CMP     R1, #1\n"
 311                  "BNE     loc_FF863F9C\n" //done
 312                  "LDR     R1, [R6,#0x4C]\n"
 313                  "LDR     R2, [R6,#0x3C]\n"
 314                  "CMP     R1, R2\n"
 315                  "BCC     loc_FF863F9C\n" //done
 316  "loc_FF863F00:\n"
 317                  "BL      sub_FF86349C\n" //done
 318                  "BL      sub_FF864820\n" //done
 319                  "LDR     R0, [R4,#0x14]\n"
 320                  "LDR     R1, [R4,#0x18]\n"
 321                  "ADD     R3, SP, #0x40\n"
 322                  "MVN     R2, #1\n"
 323                  "ADD     R7, SP, #0x18\n"
 324                  "STMIA   R7, {R0-R3}\n"
 325                  "LDR     R2, [R6,#0x64]\n"
 326                  "LDR     R3, [R6,#0x68]\n"
 327                  "MOV     R0, #0\n"
 328                  "ADD     R1, SP, #0x44\n"
 329                  "ADD     R7, SP, #8\n"
 330                  "STMIA   R7, {R0-R3}\n"
 331                  "MOV     R3, #0\n"
 332                  "MOV     R2, #0x40\n"
 333                  "STRD    R2, [SP]\n"
 334                  "LDMIB   R4, {R0,R1}\n"
 335                  "LDR     R3, =0x1BA98\n"
 336                  "MOV     R2, R8\n"
 337                  "BL      sub_FF8FF5B0\n" //done
 338                  "LDR     R0, [R6,#0x10]\n"
 339                  "MOV     R1, #0x3E8\n"
 340                  "BL      sub_FF827918\n" //checked
 341                  "CMP     R0, #9\n"
 342                  "BEQ     loc_FF864020\n" //done
 343                  "LDR     R0, [SP,#0x40]\n"
 344                  "CMP     R0, #0\n"
 345                  "BNE     loc_FF86403C\n" //done
 346                  "MOV     R0, #1\n"
 347                  "BL      sub_FF8FF658\n" //done
 348                  "BL      sub_FF8FF694\n" //done
 349                  "MOV     R0, #5\n"
 350                  "STR     R0, [R6,#0x38]\n"
 351  "loc_FF863F88:\n" //done
 352                  "ADD     SP, SP, #0x48\n"
 353                  "LDMFD   SP!, {R4-R8,PC}\n"
 354  "loc_FF863F90:\n" //done
 355                  "BL      sub_FF881204\n" //done
 356                  "MOV     R0, #1\n"
 357                  "B       loc_FF8640EC\n" //done
 358  "loc_FF863F9C:\n" //done
 359                  "LDR     R12, [SP,#0x38]\n"
 360                  "CMP     R12, #0\n"
 361                  "BEQ     loc_FF8641D4\n" //done
 362                  "STR     R5, [R6,#0x2C]\n"
 363                  "LDR     R0, [R6,#0x4C]\n"
 364                  "LDR     R8, [R4,#0xC]\n"
 365                  "CMP     R0, #0\n"
 366                  "LDRNE   LR, [SP,#0x3C]\n"
 367                  "BNE     loc_FF864068\n" //done
 368                  "LDR     R0, [R4,#0x14]\n"
 369                  "LDR     R1, [R4,#0x18]\n"
 370                  "ADD     R3, SP, #0x40\n"
 371                  "MVN     R2, #0\n"
 372                  "ADD     LR, SP, #0x18\n"
 373                  "STMIA   LR, {R0-R3}\n"
 374                  "LDR     R0, [SP,#0x30]\n"
 375                  "LDR     R2, [R6,#0x64]\n"
 376                  "LDR     R3, [R6,#0x68]\n"
 377                  "ADD     R1, SP, #0x44\n"
 378                  "ADD     LR, SP, #8\n"
 379                  "STMIA   LR, {R0-R3}\n"
 380                  "LDR     R3, [SP,#0x34]\n"
 381                  "STR     R12, [SP]\n"
 382                  "STR     R3, [SP,#4]\n"
 383                  "LDMIB   R4, {R0,R1}\n"
 384                  "LDR     R3, [SP,#0x3C]\n"
 385                  "MOV     R2, R8\n"
 386                  "BL      sub_FF8FF5B0\n" //done
 387                  "LDR     R0, [R6,#0x10]\n"
 388                  "MOV     R1, #0x3E8\n"
 389                  "BL      sub_FF827918\n" //checked
 390                  "CMP     R0, #9\n"
 391                  "BNE     loc_FF864030\n" //done
 392  "loc_FF864020:\n" //done
 393                  "BL      sub_FF946780\n" //done
 394                  "MOV     R0, #0x90000\n"
 395                  "STR     R5, [R6,#0x38]\n"
 396                  "B       loc_FF863F90\n" //done
 397  "loc_FF864030:\n" //done
 398                  "LDR     R0, [SP,#0x40]\n"
 399                  "CMP     R0, #0\n"
 400                  "BEQ     loc_FF86404C\n" //done
 401  "loc_FF86403C:\n" //done
 402                  "BL      sub_FF946780\n" //done
 403                  "MOV     R0, #0xA0000\n"
 404                  "STR     R5, [R6,#0x38]\n"
 405                  "B       loc_FF863F90\n" //done
 406  "loc_FF86404C:\n" //done
 407                  "MOV     R0, #1\n"
 408                  "BL      sub_FF8FF658\n" //done
 409                  "LDR     R0, [SP,#0x44]\n"
 410                  "LDR     R1, [SP,#0x3C]\n"
 411                  "ADD     LR, R1, R0\n"
 412                  "LDR     R1, [SP,#0x38]\n"
 413                  "SUB     R12, R1, R0\n"
 414  "loc_FF864068:\n" //done
 415                  "LDR     R2, [R6,#0x48]\n"
 416                  "LDR     R0, [R4,#0x14]\n"
 417                  "LDR     R1, [R4,#0x18]\n"
 418                  "ADD     R3, SP, #0x40\n"
 419                  "STR     R1, [SP,#0x1C]\n"
 420                  "STR     R0, [SP,#0x18]\n"
 421                  "STR     R3, [SP,#0x24]\n"
 422                  "STR     R2, [SP,#0x20]\n"
 423                  "LDR     R2, [R6,#0x64]\n"
 424                  "LDR     R3, [R6,#0x68]\n"
 425                  "ADD     R1, SP, #0x44\n"
 426                  "STR     R1, [SP,#0xC]\n"
 427                  "STR     R3, [SP,#0x14]\n"
 428                  "LDR     R3, [SP,#0x34]\n"
 429                  "LDR     R0, [SP,#0x30]\n"
 430                  "STR     R2, [SP,#0x10]\n"
 431                  "STR     R3, [SP,#4]\n"
 432                  "STR     R12, [SP]\n"
 433                  "STR     R0, [SP,#8]\n"
 434                  "LDMIB   R4, {R0,R1}\n"
 435                  "MOV     R3, LR\n"
 436                  "MOV     R2, R8\n"
 437                  "BL      sub_FF8FF5B0\n" //done
 438                  "LDR     R0, [R6,#0x10]\n"
 439                  "MOV     R1, #0x3E8\n"
 440                  "BL      sub_FF827918\n" //checked
 441                  "CMP     R0, #9\n"
 442                  "BNE     loc_FF8640F4\n" //done
 443                  "BL      sub_FF946780\n" //done
 444                  "MOV     R0, #0x90000\n"
 445                  "STR     R5, [R6,#0x38]\n"
 446                  "BL      sub_FF881204\n" //done
 447                  "MOV     R0, #0\n"
 448  "loc_FF8640EC:\n" //done
 449                  "BL      sub_FF8FF658\n" //done
 450                  "B       loc_FF863F88\n" //done
 451  "loc_FF8640F4:\n" //done
 452                  "LDR     R0, [SP,#0x40]\n"
 453                  "CMP     R0, #0\n"
 454                  "BEQ     loc_FF864114\n" //done
 455                  "BL      sub_FF946780\n" //done
 456                  "MOV     R0, #0xA0000\n"
 457                  "STR     R5, [R6,#0x38]\n"
 458                  "BL      sub_FF881204\n" //done
 459                  "B       loc_FF863F88\n" //done
 460  "loc_FF864114:\n" //done
 461                  "MOV     R0, #0\n"
 462                  "BL      sub_FF8FF658\n" //done
 463                  "LDR     R0, [R6,#0xD8]\n"
 464                  "CMP     R0, #1\n"
 465                  "BNE     loc_FF8641A4\n" //done
 466                  "LDR     R0, [R6,#0x48]\n"
 467                  "MOV     R1, #0xF\n"
 468                  "BL      sub_FFB02514\n" //done
 469                  "MOVS    R4, R1\n"
 470                  "STREQ   R7, [R6,#0xD8]\n"
 471                  "BEQ     loc_FF8641A4\n" //done
 472                  "LDR     R5, [SP,#0x3C]\n"
 473                  "MOV     R2, #4\n"
 474                  "ADD     R0, SP, #0x2C\n"
 475                  "ADD     R1, R5, #4\n"
 476                  "BL      sub_FFAFFFF4\n" //done was FFB00004
 477                  "LDR     R0, [SP,#0x2C]\n"
 478                  "MOV     R1, R0,LSR#24\n"
 479                  "AND     R2, R0, #0xFF0000\n"
 480                  "ORR     R1, R1, R2,LSR#8\n"
 481                  "AND     R2, R0, #0xFF00\n"
 482                  "ORR     R1, R1, R2,LSL#8\n"
 483                  "ORR     R0, R1, R0,LSL#24\n"
 484                  "BIC     R0, R0, #0x1E000\n"
 485                  "ORR     R0, R0, R4,LSL#13\n"
 486                  "MOV     R1, R0,LSR#24\n"
 487                  "AND     R2, R0, #0xFF0000\n"
 488                  "ORR     R1, R1, R2,LSR#8\n"
 489                  "AND     R2, R0, #0xFF00\n"
 490                  "ORR     R1, R1, R2,LSL#8\n"
 491                  "ORR     R0, R1, R0,LSL#24\n"
 492                  "STR     R0, [SP,#0x2C]\n"
 493                  "ADD     R0, R5, #4\n"
 494                  "ADD     R1, SP, #0x2C\n"
 495                  "MOV     R2, #4\n"
 496                  "BL      sub_FFAFFFF4\n" //done was FFB00004
 497  "loc_FF8641A4:\n" //done
 498                  "LDR     R0, [SP,#0x3C]\n"
 499                  "LDR     R1, [SP,#0x44]\n"
 500                  "BL      sub_FF9464DC\n" //done
 501                  "LDR     R0, [R6,#0x48]\n"
 502                  "LDR     R3, =0x5460\n"    // ->----
 503                  "ADD     R1, R0, #1\n"     //       |
 504                  "STR     R1, [R6,#0x48]\n" //       |
 505                  "STR     R3, [SP]\n"       //       |
 506                  "LDR     R0, [SP,#0x44]\n" //       |
 507                  "SUB     R3, R3, #4\n"     // ->----|
 508                  "MOV     R2, #0xF\n"       //       |
 509                  "BL      sub_FF9446D8\n"   //       |  //done (0x10 off)
 510                                             //       |
 511                  "LDR     R0, =0x5460-4\n"  // -<----     // +
 512                  "BL      set_quality\n"                  // +
 513 
 514 
 515  "loc_FF8641D4:\n" //done
 516                  "LDR     R0, [R6,#0x4C]\n"
 517                  "ADD     R0, R0, #1\n"
 518                  "STR     R0, [R6,#0x4C]\n"
 519                  "LDR     R1, [R6,#0x74]\n"
 520                  "MUL     R0, R1, R0\n"
 521                  "LDR     R1, [R6,#0x70]\n"
 522                  "BL      sub_FFB02514\n" //done 0x10
 523                  "MOV     R4, R0\n"
 524                  "BL      sub_FF9467B8\n" //done 0x10
 525                  "LDR     R1, [R6,#0x6C]\n"
 526                  "CMP     R1, R4\n"
 527                  "BNE     loc_FF864210\n" //done
 528                  "LDR     R0, [R6,#0x30]\n"
 529                  "CMP     R0, #1\n"
 530                  "BNE     loc_FF864224\n" //done
 531  "loc_FF864210:\n" //done
 532                  "LDR     R1, [R6,#0x80]\n"
 533                  "MOV     R0, R4\n"
 534                  "BLX     R1\n"
 535                  "STR     R4, [R6,#0x6C]\n"
 536                  "STR     R7, [R6,#0x30]\n"
 537  "loc_FF864224:\n" //done
 538                  "STR     R7, [R6,#0x2C]\n"
 539                  "B       loc_FF863F88\n" //done
 540 
 541  );
 542 }
 543 

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