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

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