root/platform/a530/sub/100a/capt_seq.c

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

DEFINITIONS

This source file includes following definitions.
  1. capt_seq_task
  2. sub_FFD37A98_my
  3. sub_FFD34704_my
  4. exp_drv_task
  5. sub_FFCE2274_my
  6. sub_FFC974F0_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 
   5 
   6 #include "stdlib.h"
   7 
   8 static long *nrflag = (long*)0x6164;
   9 
  10 #include "../../../generic/capt_seq.c"
  11 
  12 void __attribute__((naked,noinline)) capt_seq_task(){
  13         asm volatile (
  14                 "STMFD   SP!, {R4,LR}\n"
  15                 "SUB     SP, SP, #4\n"
  16                 "MOV     R4, SP\n"
  17                 "B       loc_FFD34C78\n"
  18         "loc_FFD34B20:\n"
  19                 "LDR     R2, [SP,#0xC-0xC]\n"
  20                 "LDR     R3, [R2]\n"
  21                 "MOV     R0, R2\n"
  22                 "CMP     R3, #0x15\n"
  23                 "LDRLS   PC, [PC,R3,LSL#2]\n"
  24                 "B       loc_FFD34C4C\n"
  25                 ".long loc_FFD34B90\n"
  26                 ".long loc_FFD34B9C\n"
  27                 ".long loc_FFD34BA4\n"
  28                 ".long loc_FFD34BB4\n"
  29                 ".long loc_FFD34BAC\n"
  30                 ".long loc_FFD34BBC\n"
  31                 ".long loc_FFD34BC4\n"
  32                 ".long loc_FFD34BD0\n"
  33                 ".long loc_FFD34BD8\n"
  34                 ".long loc_FFD34BE4\n"
  35                 ".long loc_FFD34BEC\n"
  36                 ".long loc_FFD34BF4\n"
  37                 ".long loc_FFD34BFC\n"
  38                 ".long loc_FFD34C04\n"
  39                 ".long loc_FFD34C0C\n"
  40                 ".long loc_FFD34C18\n"
  41                 ".long loc_FFD34C20\n"
  42                 ".long loc_FFD34C28\n"
  43                 ".long loc_FFD34C30\n"
  44                 ".long loc_FFD34C3C\n"
  45                 ".long loc_FFD34C44\n"
  46                 ".long loc_FFD34C60\n"
  47         "loc_FFD34B90:\n"
  48                 "BL      sub_FFD3646C\n"
  49                 "BL      shooting_expo_param_override\n"   // +
  50                 "BL      sub_FFD3279C\n"
  51                 "B       loc_FFD34C5C\n"
  52         "loc_FFD34B9C:\n"
  53          //       "BL      sub_FFD34704\n"
  54                 "BL      sub_FFD34704_my\n"     //-------->
  55                 "B       loc_FFD34C5C\n"
  56         "loc_FFD34BA4:\n"
  57                 "BL      sub_FFD36804\n"
  58                 "B       loc_FFD34C5C\n"
  59         "loc_FFD34BAC:\n"
  60                 "BL      sub_FFD356C0\n"
  61                 "B       loc_FFD34C5C\n"
  62         "loc_FFD34BB4:\n"
  63                 "BL      sub_FFD35AF8\n"
  64                 "B       loc_FFD34C5C\n"
  65         "loc_FFD34BBC:\n"
  66                 "BL      sub_FFD35B08\n"
  67                 "B       loc_FFD34C5C\n"
  68         "loc_FFD34BC4:\n"
  69                 "BL      sub_FFD36550\n"
  70                 "BL      sub_FFD3279C\n"
  71                 "B       loc_FFD34C5C\n"
  72         "loc_FFD34BD0:\n"
  73                 "BL      sub_FFD34810\n"
  74                 "B       loc_FFD34C5C\n"
  75         "loc_FFD34BD8:\n"
  76                 "BL      sub_FFD365B8\n"
  77                 "BL      sub_FFD3279C\n"
  78                 "B       loc_FFD34C5C\n"
  79         "loc_FFD34BE4:\n"
  80                 "BL      sub_FFD35AF8\n"
  81                 "B       loc_FFD34C5C\n"
  82         "loc_FFD34BEC:\n"
  83                 "BL      sub_FFD36D94\n"
  84                 "B       loc_FFD34C5C\n"
  85         "loc_FFD34BF4:\n"
  86                 "BL      sub_FFD370D8\n"
  87                 "B       loc_FFD34C5C\n"
  88         "loc_FFD34BFC:\n"
  89                 "BL      sub_FFD3715C\n"
  90                 "B       loc_FFD34C5C\n"
  91         "loc_FFD34C04:\n"
  92                 "BL      sub_FFD3724C\n"
  93                 "B       loc_FFD34C5C\n"
  94         "loc_FFD34C0C:\n"
  95                 "MOV     R0, #0\n"
  96                 "BL      sub_FFD37314\n"
  97                 "B       loc_FFD34C5C\n"
  98         "loc_FFD34C18:\n"
  99                 "BL      sub_FFD37480\n"
 100                 "B       loc_FFD34C5C\n"
 101         "loc_FFD34C20:\n"
 102                 "BL      sub_FFD37514\n"
 103                 "B       loc_FFD34C5C\n"
 104         "loc_FFD34C28:\n"
 105                 "BL      sub_FFD375D4\n"
 106                 "B       loc_FFD34C5C\n"
 107         "loc_FFD34C30:\n"
 108                 "MOV     R0, #1\n"
 109                 "BL      sub_FFD37314\n"
 110                 "B       loc_FFD34C5C\n"
 111         "loc_FFD34C3C:\n"
 112                 "BL      sub_FFD376C0\n"
 113                 "B       loc_FFD34C5C\n"
 114         "loc_FFD34C44:\n"
 115                 "BL      sub_FFD37714\n"
 116                 "B       loc_FFD34C5C\n"
 117         "loc_FFD34C4C:\n"
 118                 "MOV     R1, #0x36C\n"
 119                 "LDR     R0, =0xFFD34490\n"
 120                 "ADD     R1, R1, #1\n"
 121                 "BL      sub_FFC03AE8\n"
 122         "loc_FFD34C5C:\n"
 123                 "LDR     R2, [SP,#0xC-0xC]\n"
 124         "loc_FFD34C60:\n"
 125                 "LDR     R3, =0x64CD4\n"
 126                 "LDR     R1, [R2,#4]\n"
 127                 "LDR     R0, [R3]\n"
 128                 "BL      sub_FFC0F9A8\n"
 129                 "LDR     R0, [SP,#0xC-0xC]\n"
 130                 "BL      sub_FFD3450C\n"
 131         "loc_FFD34C78:\n"
 132                 "LDR     R3, =0x64CD8\n"
 133                 "MOV     R1, R4\n"
 134                 "LDR     R0, [R3]\n"
 135                 "MOV     R2, #0\n"
 136                 "BL      sub_FFC100C0\n"
 137                 "TST     R0, #1\n"
 138                 "BEQ     loc_FFD34B20\n"
 139                 "MOV     R1, #0x2A4\n"
 140                 "LDR     R0, =0xFFD34490\n"
 141                 "ADD     R1, R1, #3\n"
 142                 "BL      sub_FFC03AE8\n"
 143                 "BL      sub_FFC1161C\n"
 144                 "ADD     SP, SP, #4\n"
 145                 "LDMFD   SP!, {R4,PC}\n"
 146         );
 147 }
 148 
 149 
 150 
 151 
 152 
 153 void __attribute__((naked,noinline)) sub_FFD37A98_my(long p)
 154 {
 155         asm volatile (
 156                 "STMFD   SP!, {R4-R6,LR}\n"
 157                 "LDR     R3, =0x64D4C\n"
 158                 "LDR     R5, =0x6160\n"         // nrflag - 4
 159                 "SUB     SP, SP, #4\n"
 160                 //"LDR     R1, =0xFFFFFFFF\n"       //MOVL
 161                 "MVN     R1, #0\n"                      //MOVL
 162                 "STR     R0, [R5]\n"
 163                 "LDR     R0, [R3]\n"
 164                 "BL      sub_FFC0FB44\n"
 165                 "LDR     R3, =0x8F360\n"
 166                 "LDR     R0, [R3,#0x74]\n"
 167 //              "BL      sub_FFC8C01C\n" // nullsub
 168                 "BL      sub_FFD379EC\n"
 169                 "LDR     R3, =0x6168\n"
 170                 "LDR     R0, [R3]\n"
 171                 "BL      sub_FFC8C4CC\n"
 172         "BL      wait_until_remote_button_is_released\n"
 173                 "BL      capt_seq_hook_set_nr\n" // +
 174         "LDR PC,=0xFFD37AD4\n" // continue in firmware
 175         );
 176 }
 177 
 178 
 179 
 180 void __attribute__((naked,noinline)) sub_FFD34704_my(long p)
 181 {
 182         asm volatile (
 183                 "STMFD   SP!, {R4,LR}\n"
 184                 "LDR     R4, [R0,#0xC]\n"
 185                 "BL      sub_FFD3CE2C\n"
 186                 "CMP     R0, #0\n"
 187                 "BNE     sub_FFD3471C\n"
 188                 "BL      sub_FFD3CE38\n"
 189         "sub_FFD3471C:\n"
 190                 "MOV     R0, #0xC\n"
 191                 "BL      sub_FFD3CE4C\n"
 192                 "TST     R0, #1\n"
 193                 "MOV     R2, R4\n"
 194                 "MOV     R0, R4\n"
 195                 "BEQ     sub_FFD34744\n"
 196                 "MOV     R0, #1\n"
 197                 "MOV     R1, R0\n"
 198                 "LDMFD   SP!, {R4,LR}\n"
 199                 "B       sub_FFD32BF8\n"
 200         "sub_FFD34744:\n"
 201                 "BL      sub_FFD36814\n"
 202                 "TST     R0, #1\n"
 203                 "MOV     R2, R4\n"
 204                 "MOV     R1, #1\n"
 205                 "BEQ     sub_FFD34760\n"
 206                 "LDMFD   SP!, {R4,LR}\n"
 207                 "B       sub_FFD32BF8\n"
 208         "sub_FFD34760:\n"
 209                 "BL      sub_FFD74E34\n"
 210                 "BL      sub_FFC146EC\n"
 211                 "LDR     R2, =0x8F2A4\n"
 212                 "ADD     R3, R4, R4,LSL#1\n"
 213                 "STR     R0, [R2,R3,LSL#5]\n"
 214                 "MOV     R0, R4\n"
 215                 "BL      sub_FFD38204\n"
 216                 "BL      sub_FFD36D54\n"
 217                 "BL      sub_FFD36CDC\n"
 218                 "MOV     R0, R4\n"
 219                 "BL      sub_FFD37A98_my\n"  //---------->
 220         //        "BL      sub_FFD37A98\n"
 221                 "BL      capt_seq_hook_raw_here\n"  // +
 222                 "MOV     R2, R4\n"
 223                 "MOV     R1, #1\n"
 224                 "BL      sub_FFD32BF8\n"
 225                 "LDMFD   SP!, {R4,LR}\n"
 226                 "B       sub_FFD37C90\n"
 227 
 228         );
 229 }
 230 
 231 /***************************************************************************/
 232 
 233 void __attribute__((naked,noinline)) exp_drv_task(){
 234  asm volatile(
 235                  "STMFD   SP!, {R4-R8,LR}\n"
 236                  "SUB     SP, SP, #0x14\n"
 237                  "MOV     R7, SP\n"
 238                  "B       loc_FFCE3DD0\n"
 239  "loc_FFCE39E4:\n"
 240                  "CMP     R2, #0x1F\n"
 241                  "BNE     loc_FFCE39FC\n"
 242                  "LDR     R0, [R12,#0x50]\n"
 243                  "MOV     LR, PC\n"
 244                  "LDR     PC, [R12,#0x4C]\n"
 245                  "B       loc_FFCE3A5C\n"
 246  "loc_FFCE39FC:\n"
 247                  "CMP     R2, #0x1A\n"
 248                  "BNE     loc_FFCE3A10\n"
 249                  "MOV     R0, R12\n"
 250                  "BL      sub_FFCE3904\n"
 251                  "B       loc_FFCE3A4C\n"
 252  "loc_FFCE3A10:\n"
 253                  "CMP     R2, #0x1B\n"
 254                  "BNE     loc_FFCE3A24\n"
 255                  "MOV     R0, R12\n"
 256                  "BL      sub_FFCE3940\n"
 257                  "B       loc_FFCE3A4C\n"
 258  "loc_FFCE3A24:\n"
 259                  "SUB     R3, R2, #0x1C\n"
 260                  "CMP     R3, #1\n"
 261                  "BHI     loc_FFCE3A3C\n"
 262                  "MOV     R0, R12\n"
 263                  "BL      sub_FFCE397C\n"
 264                  "B       loc_FFCE3A4C\n"
 265  "loc_FFCE3A3C:\n"
 266                  "CMP     R2, #0x1E\n"
 267                  "BNE     loc_FFCE3A68\n"
 268                  "BL      sub_FFC97868\n"
 269                  "BL      sub_FFC99658\n"
 270  "loc_FFCE3A4C:\n"
 271                  "LDR     R3, [SP]\n"
 272                  "LDR     R0, [R3,#0x50]\n"
 273                  "MOV     LR, PC\n"
 274                  "LDR     PC, [R3,#0x4C]\n"
 275  "loc_FFCE3A5C:\n"
 276                  "LDR     R0, [SP]\n"
 277                  "BL      sub_FFCE16C4\n"
 278                  "B       loc_FFCE3DD0\n"
 279  "loc_FFCE3A68:\n"
 280                  "CMP     R2, #0xD\n"
 281                  "MOV     R8, #1\n"
 282                  "BNE     loc_FFCE3AD8\n"
 283                  "LDR     R1, [R12,#0x40]\n"
 284                  "ADD     R1, R1, R1,LSL#1\n"
 285                  "ADD     R1, R12, R1,LSL#1\n"
 286                  "ADD     R6, SP, #0xC\n"
 287                  "SUB     R1, R1, #2\n"
 288                  "MOV     R2, #6\n"
 289                  "MOV     R0, R6\n"
 290                  "BL      sub_FFEC3588\n"
 291                  "LDR     R0, [SP]\n"
 292                  "BL      sub_FFCE2B94\n"
 293                  "LDR     R3, [SP]\n"
 294                  "LDR     R1, [R3,#0x40]\n"
 295                  "LDR     R2, [R3,#0x50]\n"
 296                  "ADD     R0, R3, #4\n"
 297                  "MOV     LR, PC\n"
 298                  "LDR     PC, [R3,#0x4C]\n"
 299                  "LDR     R0, [SP]\n"
 300                  "BL      sub_FFCE2D18\n"
 301                  "LDR     R3, [SP]\n"
 302                  "ADD     R0, R3, #4\n"
 303                  "LDR     R1, [R3,#0x40]\n"
 304                  "LDR     R2, [R3,#0x58]\n"
 305                  "MOV     LR, PC\n"
 306                  "LDR     PC, [R3,#0x54]\n"
 307                  "B       loc_FFCE3D80\n"
 308  "loc_FFCE3AD8:\n"
 309                  "SUB     R3, R2, #0xE\n"
 310                  "CMP     R3, #1\n"
 311                  "BHI     loc_FFCE3B94\n"
 312                  "ADD     R6, SP, #0xC\n"
 313                  "ADD     R5, SP, #4\n"
 314                  "MOV     R0, R12\n"
 315                  "MOV     R1, R6\n"
 316                  "MOV     R2, R5\n"
 317                  "BL      sub_FFCE2D94\n"
 318                  "MOV     R4, R0\n"
 319                  "CMP     R4, #5\n"
 320                  "CMPNE   R4, #1\n"
 321                  "BNE     loc_FFCE3B2C\n"
 322                  "LDR     R12, [SP]\n"
 323                  "MOV     R0, R5\n"
 324                  "LDR     R1, [R12,#0x40]\n"
 325                  "MOV     R2, R4\n"
 326                  "LDR     R3, [R12,#0x50]\n"
 327                  "MOV     LR, PC\n"
 328                  "LDR     PC, [R12,#0x4C]\n"
 329                  "B       loc_FFCE3B64\n"
 330  "loc_FFCE3B2C:\n"
 331                  "CMP     R4, #6\n"
 332                  "CMPNE   R4, #2\n"
 333                  "BNE     loc_FFCE3B74\n"
 334                  "LDR     R12, [SP]\n"
 335                  "MOV     R0, R5\n"
 336                  "MOV     R1, R8\n"
 337                  "MOV     R2, R4\n"
 338                  "LDR     R3, [R12,#0x50]\n"
 339                  "MOV     LR, PC\n"
 340                  "LDR     PC, [R12,#0x4C]\n"
 341                  "MOV     R1, R6\n"
 342                  "LDR     R0, [SP]\n"
 343                  "MOV     R2, R5\n"
 344                  "BL      sub_FFCE3740\n"
 345  "loc_FFCE3B64:\n"
 346                  "MOV     R1, R4\n"
 347                  "LDR     R0, [SP]\n"
 348                  "BL      sub_FFCE38E4\n"
 349                  "B       loc_FFCE3D80\n"
 350  "loc_FFCE3B74:\n"
 351                  "LDR     R12, [SP]\n"
 352                  "MOV     R2, R4\n"
 353                  "ADD     R0, R12, #4\n"
 354                  "LDR     R1, [R12,#0x40]\n"
 355                  "LDR     R3, [R12,#0x50]\n"
 356                  "MOV     LR, PC\n"
 357                  "LDR     PC, [R12,#0x4C]\n"
 358                  "B       loc_FFCE3D80\n"
 359  "loc_FFCE3B94:\n"
 360                  "SUB     R3, R2, #0x17\n"
 361                  "CMP     R3, #1\n"
 362                  "BHI     loc_FFCE3BEC\n"
 363                  "LDR     R1, [R12,#0x40]\n"
 364                  "ADD     R1, R1, R1,LSL#1\n"
 365                  "ADD     R1, R12, R1,LSL#1\n"
 366                  "ADD     R6, SP, #0xC\n"
 367                  "SUB     R1, R1, #2\n"
 368                  "MOV     R2, #6\n"
 369                  "MOV     R0, R6\n"
 370                  "BL      sub_FFEC3588\n"
 371                  "LDR     R0, [SP]\n"
 372                  "BL      sub_FFCE26C8\n"
 373                  "LDR     R3, [SP]\n"
 374                  "ADD     R0, R3, #4\n"
 375                  "LDR     R1, [R3,#0x40]\n"
 376                  "LDR     R2, [R3,#0x50]\n"
 377                  "MOV     LR, PC\n"
 378                  "LDR     PC, [R3,#0x4C]\n"
 379                  "LDR     R0, [SP]\n"
 380                  "BL      sub_FFCE2898\n"
 381                  "B       loc_FFCE3D80\n"
 382  "loc_FFCE3BEC:\n"
 383                  "ADD     R6, SP, #0xC\n"
 384                  "ADD     R1, R12, #4\n"
 385                  "MOV     R2, #6\n"
 386                  "MOV     R0, R6\n"
 387                  "BL      sub_FFEC3588\n"
 388                  "LDR     R12, [SP]\n"
 389                  "LDR     R3, [R12]\n"
 390                  "MOV     R2, R12\n"
 391                  "CMP     R3, #0x19\n"
 392                  "LDRLS   PC, [PC,R3,LSL#2]\n"
 393                  "B       loc_FFCE3D6C\n"
 394                  ".long loc_FFCE3C80\n"
 395                  ".long loc_FFCE3C8C\n"
 396                  ".long loc_FFCE3C98\n"
 397                  ".long loc_FFCE3C98\n"
 398                  ".long loc_FFCE3C80\n"
 399                  ".long loc_FFCE3C8C\n"
 400                  ".long loc_FFCE3C98\n"
 401                  ".long loc_FFCE3C98\n"
 402                  ".long loc_FFCE3CBC\n"
 403                  ".long loc_FFCE3CBC\n"
 404                  ".long loc_FFCE3D40\n"
 405                  ".long loc_FFCE3D4C\n"
 406                  ".long loc_FFCE3D5C\n"
 407                  ".long loc_FFCE3D6C\n"
 408                  ".long loc_FFCE3D6C\n"
 409                  ".long loc_FFCE3D6C\n"
 410                  ".long loc_FFCE3CA4\n"
 411                  ".long loc_FFCE3CB0\n"
 412                  ".long loc_FFCE3CCC\n"
 413                  ".long loc_FFCE3CD8\n"
 414                  ".long loc_FFCE3D00\n"
 415                  ".long loc_FFCE3D28\n"
 416                  ".long loc_FFCE3D28\n"
 417                  ".long loc_FFCE3D6C\n"
 418                  ".long loc_FFCE3D6C\n"
 419                  ".long loc_FFCE3D34\n"
 420  "loc_FFCE3C80:\n"
 421                  "MOV     R0, R2\n"
 422                  "BL      sub_FFCE1C68\n"
 423                  "B       loc_FFCE3D68\n"
 424  "loc_FFCE3C8C:\n"
 425                  "MOV     R0, R2\n"
 426                  "BL      sub_FFCE1DA4\n"
 427                  "B       loc_FFCE3D68\n"
 428  "loc_FFCE3C98:\n"
 429                  "MOV     R0, R2\n"
 430                  "BL      sub_FFCE1ED4\n"
 431                  "B       loc_FFCE3D68\n"
 432  "loc_FFCE3CA4:\n"
 433                  "MOV     R0, R2\n"
 434                  "BL      sub_FFCE20A8\n"
 435                  "B       loc_FFCE3D68\n"
 436  "loc_FFCE3CB0:\n"
 437                  "MOV     R0, R2\n"
 438                  "BL      sub_FFCE21B0\n"
 439                  "B       loc_FFCE3D68\n"
 440  "loc_FFCE3CBC:\n"
 441                  "MOV     R0, R2\n"
 442                  "BL      sub_FFCE2274_my\n"   //------------->
 443                  "MOV     R8, #0\n"
 444                  "B       loc_FFCE3D68\n"
 445  "loc_FFCE3CCC:\n"
 446                  "MOV     R0, R2\n"
 447                  "BL      sub_FFCE2334\n"
 448                  "B       loc_FFCE3D68\n"
 449  "loc_FFCE3CD8:\n"
 450                  "MOV     R0, R2\n"
 451                  "LDRH    R2, [R2,#4]\n"
 452                  "LDR     R3, =0x401A4\n"
 453                  "STRH    R2, [SP,#0xC]\n"
 454                  "LDRH    R1, [R3,#4]\n"
 455                  "STRH    R1, [SP,#0x10]\n"
 456                  "LDRH    R3, [R3,#2]\n"
 457                  "STRH    R3, [SP,#0xE]\n"
 458                  "BL      sub_FFCE24BC\n"
 459                  "B       loc_FFCE3D68\n"
 460  "loc_FFCE3D00:\n"
 461                  "LDR     R3, =0x401A4\n"
 462                  "LDRH    R1, [R3]\n"
 463                  "STRH    R1, [SP,#0xC]\n"
 464                  "MOV     R0, R2\n"
 465                  "LDRH    R2, [R2,#6]\n"
 466                  "STRH    R2, [SP,#0xE]\n"
 467                  "LDRH    R3, [R3,#4]\n"
 468                  "STRH    R3, [SP,#0x10]\n"
 469                  "BL      sub_FFCE2550\n"
 470                  "B       loc_FFCE3D68\n"
 471  "loc_FFCE3D28:\n"
 472                  "MOV     R0, R2\n"
 473                  "BL      sub_FFCE25D0\n"
 474                  "B       loc_FFCE3D68\n"
 475  "loc_FFCE3D34:\n"
 476                  "MOV     R0, R2\n"
 477                  "BL      sub_FFCE2928\n"
 478                  "B       loc_FFCE3D68\n"
 479  "loc_FFCE3D40:\n"
 480                  "MOV     R0, R2\n"
 481                  "BL      sub_FFCE29FC\n"
 482                  "B       loc_FFCE3D68\n"
 483  "loc_FFCE3D4C:\n"
 484                  "MOV     R0, R2\n"
 485                  "MOV     R1, #0\n"
 486                  "BL      sub_FFCE2AE8\n"
 487                  "B       loc_FFCE3D68\n"
 488  "loc_FFCE3D5C:\n"
 489                  "MOV     R0, R2\n"
 490                  "MOV     R1, #1\n"
 491                  "BL      sub_FFCE2AE8\n"
 492  "loc_FFCE3D68:\n"
 493                  "LDR     R12, [SP]\n"
 494  "loc_FFCE3D6C:\n"
 495                  "ADD     R0, R12, #4\n"
 496                  "LDR     R1, [R12,#0x40]\n"
 497                  "LDR     R2, [R12,#0x50]\n"
 498                  "MOV     LR, PC\n"
 499                  "LDR     PC, [R12,#0x4C]\n"
 500  "loc_FFCE3D80:\n"
 501                  "CMP     R8, #1\n"
 502                  "BNE     loc_FFCE3DA8\n"
 503                  "LDR     R1, [SP]\n"
 504                  "LDR     R3, [R1,#0x40]\n"
 505                  "ADD     R3, R3, R3,LSL#1\n"
 506                  "ADD     R1, R1, R3,LSL#1\n"
 507                  "MOV     R0, R6\n"
 508                  "SUB     R1, R1, #2\n"
 509                  "BL      sub_FFCE1AD8\n"
 510                  "B       loc_FFCE3DC8\n"
 511  "loc_FFCE3DA8:\n"
 512                  "MOV     R0, #1\n"
 513                  "MOV     R1, R0\n"
 514                  "MOV     R2, R0\n"
 515                  "BL      sub_FFCE1A7C\n"
 516                  "MOV     R0, #1\n"
 517                  "MOV     R1, R0\n"
 518                  "MOV     R2, R0\n"
 519                  "BL      sub_FFCE1B94\n"
 520  "loc_FFCE3DC8:\n"
 521                  "LDR     R0, [SP]\n"
 522                  "BL      sub_FFCE16C4\n"
 523  "loc_FFCE3DD0:\n"
 524                  "LDR     R3, =0x4019C\n"
 525                  "MOV     R2, #0\n"
 526                  "LDR     R0, [R3]\n"
 527                  "MOV     R1, R7\n"
 528                  "BL      sub_FFC100C0\n"
 529                  "LDR     R12, [SP]\n"
 530                  "LDR     R2, [R12]\n"
 531                  "CMP     R2, #0x20\n"
 532                  "BNE     loc_FFCE39E4\n"
 533                  "MOV     R0, R12\n"
 534                  "BL      sub_FFCE16C4\n"
 535                  "LDR     R3, =0x40198\n"
 536                  "MOV     R1, #1\n"
 537                  "LDR     R0, [R3]\n"
 538                  "BL      sub_FFC0F9A8\n"
 539                  "BL      sub_FFC1161C\n"
 540                  "ADD     SP, SP, #0x14\n"
 541                  "LDMFD   SP!, {R4-R8,PC}\n"
 542   );
 543 }
 544 
 545 
 546 void __attribute__((naked,noinline)) sub_FFCE2274_my(){
 547  asm volatile(
 548                  "STMFD   SP!, {R4,R5,LR}\n"
 549                  "LDR     R3, =0x40198\n"
 550                  "MOV     R4, R0\n"
 551                  "MOV     R1, #0xE\n"
 552                  "LDR     R0, [R3]\n"
 553                  "BL      sub_FFC0FB44\n"
 554                  "MOV     R1, #0\n"
 555                  "LDRSH   R0, [R4,#4]\n"
 556                  "BL      sub_FFCE17A0\n"
 557                  "MOV     R5, R0\n"
 558                  "LDRSH   R0, [R4,#6]\n"
 559                  "BL      sub_FFCE1914\n"
 560                  "LDRSH   R0, [R4,#8]\n"
 561                  "BL      sub_FFCE19B0\n"
 562                  "LDR     R3, [R4]\n"
 563                  "CMP     R3, #9\n"
 564                  "MOVEQ   R5, #0\n"
 565                  "CMP     R5, #1\n"
 566                  "LDR     R1, =0xFFCE16F8\n"
 567                  "MOV     R2, #2\n"
 568                  "BNE     loc_FFCE22E0\n"
 569                  "LDRSH   R0, [R4,#4]\n"
 570                  "BL      sub_FFE6D32C\n"
 571                  "LDR     R2, =0x401C4\n"
 572                  "MOV     R3, #0\n"
 573                  "STR     R3, [R2]\n"
 574                  "B       loc_FFCE22E4\n"
 575  "loc_FFCE22E0:\n"
 576                  "BL      sub_FFCE1A4C\n"
 577  "loc_FFCE22E4:\n"
 578                  "STRH    R0, [R4,#4]\n"
 579                  "LDRSH   R0, [R4,#6]\n"
 580                  "BL      sub_FFC974F0_my\n"  //------------>
 581                  "LDRSH   R0, [R4,#8]\n"
 582                  "MOV     R1, #1\n"
 583                  "BL      sub_FFC99218\n"
 584                  "MOV     R1, #0\n"
 585                  "ADD     R0, R4, #8\n"
 586                  "BL      sub_FFC992D8\n"
 587                  "CMP     R5, #1\n"
 588                  "MOV     R1, #2\n"
 589                  "MOV     R2, #0\n"
 590                  "LDMNEFD SP!, {R4,R5,PC}\n"
 591                  "LDR     R3, =0x40198\n"
 592                  "LDR     R0, [R3]\n"
 593                  "LDMFD   SP!, {R4,R5,LR}\n"
 594                  "B       sub_FFC0F998\n"
 595  );
 596 }
 597 
 598 void __attribute__((naked,noinline)) sub_FFC974F0_my(){
 599  asm volatile(
 600                  "STMFD   SP!, {R4,LR}\n"
 601                  "LDR     R3, =0x5334\n"
 602                  "LDR     R2, [R3]\n"
 603                  "MOV     R1, #0x114\n"
 604                  "MOV     R3, R0,LSL#16\n"
 605                  "CMP     R2, #1\n"
 606                  "ADD     R1, R1, #1\n"
 607                  "LDR     R0, =0xFFC96F6C\n"
 608                  "MOV     R4, R3,ASR#16\n"
 609                  "BEQ     loc_FFC9751C\n"
 610                  "BL      sub_FFC03AE8\n"
 611  "loc_FFC9751C:\n"
 612                  "MOV     R1, #0x118\n"
 613                  "CMN     R4, #0xC00\n"
 614                  "LDR     R3, =0x32DAE\n"
 615                  "LDR     R0, =0xFFC96F6C\n"
 616                  "ADD     R1, R1, #3\n"
 617                  "LDREQSH R4, [R3]\n"
 618                  "LDRNE   R3, =0x32DAE\n"
 619                  "CMN     R4, #0xC00\n"
 620                  "STRH    R4, [R3]\n"
 621                  "BNE     loc_FFC97548\n"
 622                  "BL      sub_FFC03AE8\n"
 623  "loc_FFC97548:\n"
 624                  "MOV     R0, R4\n"
 625                  "BL      apex2us\n"
 626                  "MOV     R4, R0\n"
 627          //      "BL      nullsub_47\n"
 628                  "MOV     R0, R4\n"
 629                  "BL      sub_FFC96B24\n"
 630                  "TST     R0, #1\n"
 631                  "MOV     R1, #0x120\n"
 632                  "LDR     R0, =0xFFC96F6C\n"
 633                  "LDMEQFD SP!, {R4,PC}\n"
 634                  "LDMFD   SP!, {R4,LR}\n"
 635                  "B       sub_FFC03AE8\n"
 636  );
 637 }
 638 

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