root/platform/a570/sub/101a/capt_seq.c

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

DEFINITIONS

This source file includes following definitions.
  1. sub_FFEABF94_my
  2. sub_FFEA8E50_my
  3. capt_seq_task
  4. exp_drv_task
  5. sub_ffd20ef4_my
  6. sub_ffce9eb0_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 #include "conf.h"
   5 
   6 static long *nrflag = (long*)0xC2E4;
   7 
   8 #include "../../../generic/capt_seq.c"
   9 
  10 void __attribute__((naked,noinline)) sub_FFEABF94_my(long p)
  11 {
  12     asm volatile (
  13                 "STMFD   SP!, {R4,LR}\n"    
  14                 "MOV     R4, R0\n"          
  15                 "SUB     SP, SP, #0xC\n"    
  16                 "BL      sub_FFEACA04\n"    
  17                 "MVN     R1, #0\n"         
  18                 "BL      sub_FFEBD168\n"  
  19                 "MOV     R0, #0x8A\n"       
  20                 "ADD     R1, SP, #4\n"      
  21                 "MOV     R2, #4\n"          
  22                 "BL      sub_FFC0BC94\n"    
  23                 "TST     R0, #1\n"          
  24                 "BEQ     loc_FFEABFD4\n"    
  25                 "MOV     R1, #0x1D0\n"      
  26                 "LDR     R0, =0xFFEABE18\n" 
  27                 "ADD     R1, R1, #2\n"      
  28                 "BL      sub_FFECA824\n"     
  29 "loc_FFEABFD4:\n"                           
  30                 "LDR     R3, =0xA5740\n"    
  31                 "LDR     R2, =0xA5800\n"    
  32                 "LDR     R0, [R3,#0x74]\n"  
  33                 "LDRSH   R1, [R2,#0xE]\n"   
  34                 "BL      sub_FFDEF8B0\n"    
  35                 "MOV     R0, R4\n"          
  36                 "BL      sub_FFEABD9C\n"    
  37                 "BL      wait_until_remote_button_is_released\n"
  38                 "BL      capt_seq_hook_set_nr\n"
  39                 "LDR     R3, =0xC2E8\n"     
  40                 "LDR     R0, [R3]\n"
  41 
  42                 "B       sub_FFEABFF8\n"
  43     );
  44 }
  45 
  46 void __attribute__((naked,noinline)) sub_FFEA8E50_my(long p)
  47 {
  48     asm volatile (
  49                 "STMFD   SP!, {R4,LR}\n"    
  50                 "LDR     R4, [R0,#0xC]\n"   
  51                 "LDR     R3, [R4,#8]\n"     
  52                 "ORR     R3, R3, #1\n"      
  53                 "STR     R3, [R4,#8]\n"     
  54                 "MOV     R0, #2\n"          
  55                 "BL      sub_FFE89DE8\n"    
  56                 "BL      sub_FFEA9944\n"    
  57                 "MOV     R0, R4\n"          
  58                 "BL      sub_FFEAAA98\n"    
  59                 "TST     R0, #1\n"          
  60                 "MOV     R2, R4\n"          
  61                 "MOV     R1, #1\n"          
  62                 "BEQ     loc_FFEA8E90\n"    
  63                 "LDMFD   SP!, {R4,LR}\n"    
  64                 "B       sub_FFEA7618\n"    
  65 "loc_FFEA8E90:\n"                           
  66                 "BL      sub_FFC15B00\n"    
  67                 "BL      sub_FFC0BE90\n"    
  68                 "STR     R0, [R4,#0x14]\n"  
  69                 "MOV     R0, R4\n"          
  70                 "BL      sub_FFEABE7C\n"    
  71                 "BL      sub_FFEAC870\n"    
  72                 "MOV     R0, R4\n"          
  73                 "BL      sub_FFEABF94_my\n"    
  74                 "BL      capt_seq_hook_raw_here\n"
  75                 "MOV     R1, #1\n"          
  76                 "MOV     R2, R4\n"          
  77                 "BL      sub_FFEA7618\n"    
  78                 "BL      sub_FFEAC310\n"    
  79                 "CMP     R0, #0\n"          
  80                 "LDRNE   R3, [R4,#8]\n"     
  81                 "ORRNE   R3, R3, #0x2000\n" 
  82                 "STRNE   R3, [R4,#8]\n"     
  83                 "LDMFD   SP!, {R4,PC}\n"    
  84     );
  85 }
  86 
  87 void __attribute__((naked,noinline)) capt_seq_task()
  88 {
  89  asm volatile (
  90                  "STMFD   SP!, {R4,LR}\n"
  91                  "SUB     SP, SP, #4\n"
  92                  "MOV     R4, SP\n"
  93                  "B       loc_FFEA93D4\n"
  94  "loc_FFEA9268:\n"
  95                  "LDR     R2, [SP]\n"
  96                  "LDR     R3, [R2]\n"
  97                  "MOV     R0, R2\n"
  98                  "CMP     R3, #0x16\n"
  99                  "LDRLS   PC, [PC,R3,LSL#2]\n"
 100                  "B       loc_FFEA93A8\n"
 101                  ".long loc_FFEA92DC\n"
 102                  ".long loc_FFEA92E8\n"
 103                  ".long loc_FFEA92F0\n"
 104                  ".long loc_FFEA9304\n"
 105                  ".long loc_FFEA92FC\n"
 106                  ".long loc_FFEA930C\n"
 107                  ".long loc_FFEA9314\n"
 108                  ".long loc_FFEA9320\n"
 109                  ".long loc_FFEA9328\n"
 110                  ".long loc_FFEA9334\n"
 111                  ".long loc_FFEA933C\n"
 112                  ".long loc_FFEA9344\n"
 113                  ".long loc_FFEA934C\n"
 114                  ".long loc_FFEA9354\n"
 115                  ".long loc_FFEA935C\n"
 116                  ".long loc_FFEA9368\n"
 117                  ".long loc_FFEA9370\n"
 118                  ".long loc_FFEA9378\n"
 119                  ".long loc_FFEA9380\n"
 120                  ".long loc_FFEA938C\n"
 121                  ".long loc_FFEA9398\n"
 122                  ".long loc_FFEA93A0\n"
 123                  ".long loc_FFEA93BC\n"
 124  "loc_FFEA92DC:\n"
 125                  "BL      sub_FFEA9958\n"
 126                  "BL      shooting_expo_param_override\n"  // +
 127                  "BL      sub_FFEA710C\n"
 128                  "B       loc_FFEA93B8\n"
 129  "loc_FFEA92E8:\n"
 130                  "BL      sub_FFEA8E50_my\n"
 131                  "B       loc_FFEA93B8\n"
 132  "loc_FFEA92F0:\n"
 133                  "MOV     R0, #1\n"
 134                  "BL      sub_FFEA9B60\n"
 135                  "B       loc_FFEA93B8\n"
 136  "loc_FFEA92FC:\n"
 137                  "BL      sub_FFEA94BC\n"
 138                  "B       loc_FFEA93B8\n"
 139  "loc_FFEA9304:\n"
 140                  "BL      sub_FFEA9924\n"
 141                  "B       loc_FFEA93B8\n"
 142  "loc_FFEA930C:\n"
 143                  "BL      sub_FFEA9934\n"
 144                  "B       loc_FFEA93B8\n"
 145  "loc_FFEA9314:\n"
 146                  "BL      sub_FFEA9A50\n"
 147                  "BL      sub_FFEA710C\n"
 148                  "B       loc_FFEA93B8\n"
 149  "loc_FFEA9320:\n"
 150                  "BL      sub_FFEA8F34\n"
 151                  "B       loc_FFEA93B8\n"
 152  "loc_FFEA9328:\n"
 153                  "BL      sub_FFEA9AC4\n"
 154                  "BL      sub_FFEA710C\n"
 155                  "B       loc_FFEA93B8\n"
 156  "loc_FFEA9334:\n"
 157                  "BL      sub_FFEA9924\n"
 158                  "B       loc_FFEA93B8\n"
 159  "loc_FFEA933C:\n"
 160                  "BL      sub_FFEAB1CC\n"
 161                  "B       loc_FFEA93B8\n"
 162  "loc_FFEA9344:\n"
 163                  "BL      sub_FFEAB3A0\n"
 164                  "B       loc_FFEA93B8\n"
 165  "loc_FFEA934C:\n"
 166                  "BL      sub_FFEAB434\n"
 167                  "B       loc_FFEA93B8\n"
 168  "loc_FFEA9354:\n"
 169                  "BL      sub_FFEAB530\n"
 170                  "B       loc_FFEA93B8\n"
 171  "loc_FFEA935C:\n"
 172                  "MOV     R0, #0\n"
 173                  "BL      sub_FFEAB79C\n"
 174                  "B       loc_FFEA93B8\n"
 175  "loc_FFEA9368:\n"
 176                  "BL      sub_FFEAB970\n"
 177                  "B       loc_FFEA93B8\n"
 178  "loc_FFEA9370:\n"
 179                  "BL      sub_FFEABA0C\n"
 180                  "B       loc_FFEA93B8\n"
 181  "loc_FFEA9378:\n"
 182                  "BL      sub_FFEABACC\n"
 183                  "B       loc_FFEA93B8\n"
 184  "loc_FFEA9380:\n"
 185                  "MOV     R0, #1\n"
 186                  "BL      sub_FFEAB79C\n"
 187                  "B       loc_FFEA93B8\n"
 188  "loc_FFEA938C:\n"
 189                  "BL      sub_FFEA9CBC\n"
 190                  "BL      sub_FFEA8D74\n"
 191                  "B       loc_FFEA93B8\n"
 192  "loc_FFEA9398:\n"
 193                  "BL      sub_FFEAB670\n"
 194                  "B       loc_FFEA93B8\n"
 195  "loc_FFEA93A0:\n"
 196                  "BL      sub_FFEAB6CC\n"
 197                  "B       loc_FFEA93B8\n"
 198  "loc_FFEA93A8:\n"
 199                  "MOV     R1, #0x4C0\n"
 200                  "LDR     R0, =0xFFEA8BD0\n"
 201                  "ADD     R1, R1, #1\n"
 202                  "BL      sub_FFECA824\n"
 203  "loc_FFEA93B8:\n"
 204                  "LDR     R2, [SP]\n"
 205  "loc_FFEA93BC:\n"
 206                  "LDR     R3, =0x7EEC0\n"
 207                  "LDR     R1, [R2,#4]\n"
 208                  "LDR     R0, [R3]\n"
 209                  "BL      sub_FFEBCFCC\n"
 210                  "LDR     R0, [SP]\n"
 211                  "BL      sub_FFEA8C50\n"
 212  "loc_FFEA93D4:\n"
 213                  "LDR     R3, =0x7EEC4\n"
 214                  "MOV     R1, R4\n"
 215                  "LDR     R0, [R3]\n"
 216                  "MOV     R2, #0\n"
 217                  "BL      sub_FFEBD6E4\n"
 218                  "TST     R0, #1\n"
 219                  "BEQ     loc_FFEA9268\n"
 220                  "MOV     R1, #0x3F0\n"
 221                  "LDR     R0, =0xFFEA8BD0\n"
 222                  "ADD     R1, R1, #3\n"
 223                  "BL      sub_FFECA824\n"
 224                  "BL      sub_FFEBECA8\n"
 225                  "ADD     SP, SP, #4\n"
 226                  "LDMFD   SP!, {R4,PC}\n"
 227  );
 228 }
 229 
 230 /*************************************************************/
 231 void __attribute__((naked,noinline)) exp_drv_task(){
 232  asm volatile(
 233                  "STMFD   SP!, {R4-R8,LR}\n"
 234                  "SUB     SP, SP, #0x20\n"
 235                  "ADD     R7, SP, #4\n"
 236                  "B       loc_ffd246dc\n"
 237  "loc_ffd241dc:\n"
 238                  "CMP     R2, #0x22\n"
 239                  "BNE     loc_ffd241f4\n"
 240                  "LDR     R0, [R12,#0x8C]\n"
 241                  "MOV     LR, PC\n"
 242                  "LDR     PC, [R12,#0x88]\n"
 243                  "B       loc_ffd24258\n"
 244  "loc_ffd241f4:\n"
 245                  "CMP     R2, #0x1D\n"
 246                  "BNE     loc_ffd24208\n"
 247                  "MOV     R0, R12\n"
 248                  "BL      sub_ffd2409c\n"
 249                  "B       loc_ffd24248\n" 
 250  "loc_ffd24208:\n"
 251                  "CMP     R2, #0x1E\n"
 252                  "BNE     loc_ffd2421c\n"
 253                  "MOV     R0, R12\n"
 254                  "BL      sub_ffd240f8\n"
 255                  "B       loc_ffd24248\n"
 256  "loc_ffd2421c:\n"
 257                  "SUB     R3, R2, #0x1F\n"
 258                  "CMP     R3, #1\n"
 259                  "BHI     loc_ffd24234\n"
 260                  "MOV     R0, R12\n"
 261                  "BL      sub_ffd24154\n"
 262                  "B       loc_ffd24248\n"
 263  "loc_ffd24234:\n"
 264                  "CMP     R2, #0x21\n"
 265                  "BNE     loc_ffd24264\n"
 266                  "BL      sub_ffcea234\n"
 267                  "BL      sub_ffced36c\n"
 268                  "BL      sub_ffcec5a4\n"
 269  "loc_ffd24248:\n"
 270                  "LDR     R3, [SP,#4]\n"
 271                  "LDR     R0, [R3,#0x8C]\n"
 272                  "MOV     LR, PC\n"
 273                  "LDR     PC, [R3,#0x88]\n"
 274  "loc_ffd24258:\n"
 275                  "LDR     R0, [SP,#4]\n"
 276                  "BL      sub_ffd1f8d4\n"
 277                  "B       loc_ffd246dc\n"
 278  "loc_ffd24264:\n"
 279                  "CMP     R2, #0xD\n"
 280                  "MOV     R8, #1\n"
 281                  "BNE     loc_ffd242d4\n"
 282                  "LDR     R1, [R12,#0x7C]\n"
 283                  "ADD     R1, R1, R1,LSL#1\n"
 284                  "ADD     R1, R12, R1,LSL#2\n"
 285                  "ADD     R6, SP, #0x14\n"
 286                  "SUB     R1, R1, #8\n"
 287                  "MOV     R2, #0xC\n"
 288                  "MOV     R0, R6\n"
 289                  "BL      _memcpy\n"
 290                  "LDR     R0, [SP,#4]\n"
 291                  "BL      sub_ffd224ac\n"
 292                  "LDR     R3, [SP,#4]\n"
 293                  "LDR     R1, [R3,#0x7C]\n"
 294                  "LDR     R2, [R3,#0x8C]\n"
 295                  "ADD     R0, R3, #4\n"
 296                  "MOV     LR, PC\n"
 297                  "LDR     PC, [R3,#0x88]\n"
 298                  "LDR     R0, [SP,#4]\n"
 299                  "BL      sub_ffd22778\n"
 300                  "LDR     R3, [SP,#4]\n"
 301                  "ADD     R0, R3, #4\n"
 302                  "LDR     R1, [R3,#0x7C]\n"
 303                  "LDR     R2, [R3,#0x94]\n"
 304                  "MOV     LR, PC\n"
 305                  "LDR     PC, [R3,#0x90]\n"
 306                  "B       loc_ffd24624\n"
 307  "loc_ffd242d4:\n"
 308                  "SUB     R3, R2, #0xE\n"
 309                  "CMP     R3, #1\n"
 310                  "BHI     loc_ffd24390\n"
 311                  "ADD     R6, SP, #0x14\n"
 312                  "ADD     R5, SP, #8\n"
 313                  "MOV     R0, R12\n"
 314                  "MOV     R1, R6\n"
 315                  "MOV     R2, R5\n"
 316                  "BL      sub_ffd22868\n"
 317                  "MOV     R4, R0\n"
 318                  "CMP     R4, #5\n"
 319                  "CMPNE   R4, #1\n"
 320                  "BNE     loc_ffd24328\n"
 321                  "LDR     R12, [SP,#4]\n"
 322                  "MOV     R0, R5\n"
 323                  "LDR     R1, [R12,#0x7C]\n"
 324                  "MOV     R2, R4\n"
 325                  "LDR     R3, [R12,#0x8C]\n"
 326                  "MOV     LR, PC\n"
 327                  "LDR     PC, [R12,#0x88]\n"
 328                  "B       loc_ffd24360\n"
 329  "loc_ffd24328:\n"
 330                  "CMP     R4, #6\n"
 331                  "CMPNE   R4, #2\n"
 332                  "BNE     loc_ffd24370\n"
 333                  "LDR     R12, [SP,#4]\n"
 334                  "MOV     R0, R5\n"
 335                  "MOV     R1, R8\n"
 336                  "MOV     R2, R4\n"
 337                  "LDR     R3, [R12,#0x8C]\n"
 338                  "MOV     LR, PC\n"
 339                  "LDR     PC, [R12,#0x88]\n"
 340                  "MOV     R1, R6\n"
 341                  "LDR     R0, [SP,#4]\n"
 342                  "MOV     R2, R5\n"
 343                  "BL      sub_ffd23cfc\n"
 344  "loc_ffd24360:\n"
 345                  "MOV     R1, R4\n"
 346                  "LDR     R0, [SP,#4]\n"
 347                  "BL      sub_ffd24030\n"
 348                  "B       loc_ffd24624\n"
 349  "loc_ffd24370:\n"
 350                  "LDR     R12, [SP,#4]\n"
 351                  "MOV     R2, R4\n"
 352                  "ADD     R0, R12, #4\n"
 353                  "LDR     R1, [R12,#0x7C]\n"
 354                  "LDR     R3, [R12,#0x8C]\n"
 355                  "MOV     LR, PC\n"
 356                  "LDR     PC, [R12,#0x88]\n"
 357                  "B       loc_ffd24624\n"
 358  "loc_ffd24390:\n"
 359                  "SUB     R3, R2, #0x19\n"
 360                  "CMP     R3, #1\n"
 361                  "BHI     loc_ffd243e8\n"
 362                  "LDR     R1, [R12,#0x7C]\n"
 363                  "ADD     R1, R1, R1,LSL#1\n"
 364                  "ADD     R1, R12, R1,LSL#2\n"
 365                  "ADD     R6, SP, #0x14\n"
 366                  "SUB     R1, R1, #8\n"
 367                  "MOV     R2, #0xC\n"
 368                  "MOV     R0, R6\n"
 369                  "BL      _memcpy\n"
 370                  "LDR     R0, [SP,#4]\n"
 371                  "BL      sub_ffd218a0\n"
 372                  "LDR     R3, [SP,#4]\n"
 373                  "ADD     R0, R3, #4\n"
 374                  "LDR     R1, [R3,#0x7C]\n"
 375                  "LDR     R2, [R3,#0x8C]\n"
 376                  "MOV     LR, PC\n"
 377                  "LDR     PC, [R3,#0x88]\n"
 378                  "LDR     R0, [SP,#4]\n"
 379                  "BL      sub_ffd21c7c\n"
 380                  "B       loc_ffd24624\n"
 381  "loc_ffd243e8:\n"
 382                  "ADD     R6, SP, #0x14\n"
 383                  "ADD     R1, R12, #4\n"
 384                  "MOV     R2, #0xC\n"
 385                  "MOV     R0, R6\n"
 386                  "BL      memcpy\n"
 387                  "LDR     R12, [SP,#4]\n"
 388                  "LDR     R3, [R12]\n"
 389                  "MOV     R2, R12\n"
 390                  "CMP     R3, #0x1C\n"
 391                  "LDRLS   PC, [PC,R3,LSL#2]\n"
 392                  "B       loc_ffd24610\n"
 393                  ".long loc_ffd24488\n"
 394                  ".long loc_ffd24494\n"
 395                  ".long loc_ffd244a0\n"
 396                  ".long loc_ffd244a0\n"
 397                  ".long loc_ffd24488\n"
 398                  ".long loc_ffd24494\n"
 399                  ".long loc_ffd244a0\n"
 400                  ".long loc_ffd244a0\n"
 401                  ".long loc_ffd244c4\n"
 402                  ".long loc_ffd244c4\n"
 403                  ".long loc_ffd245e4\n"
 404                  ".long loc_ffd245f0\n"
 405                  ".long loc_ffd24600\n"
 406                  ".long loc_ffd24610\n"
 407                  ".long loc_ffd24610\n"
 408                  ".long loc_ffd24610\n"
 409                  ".long loc_ffd244ac\n"
 410                  ".long loc_ffd244b8\n"
 411                  ".long loc_ffd244d4\n"
 412                  ".long loc_ffd244e0\n"
 413                  ".long loc_ffd24518\n"
 414                  ".long loc_ffd24550\n"
 415                  ".long loc_ffd24588\n"
 416                  ".long loc_ffd245c0\n"
 417                  ".long loc_ffd245c0\n"
 418                  ".long loc_ffd24610\n"
 419                  ".long loc_ffd24610\n"
 420                  ".long loc_ffd245cc\n"
 421                  ".long loc_ffd245d8\n"
 422  "loc_ffd24488:\n"
 423                  "MOV     R0, R2\n"
 424                  "BL      sub_ffd20278\n"
 425                  "B       loc_ffd2460c\n"
 426  "loc_ffd24494:\n"
 427                  "MOV     R0, R2\n"
 428                  "BL      sub_ffd2051c\n"
 429                  "B       loc_ffd2460c\n"
 430  "loc_ffd244a0:\n"
 431                  "MOV     R0, R2\n"
 432                  "BL      sub_ffd20790\n"
 433                  "B       loc_ffd2460c\n"
 434  "loc_ffd244ac:\n"
 435                  "MOV     R0, R2\n"
 436                  "BL      sub_ffd20a8c\n"
 437                  "B       loc_ffd2460c\n"
 438  "loc_ffd244b8:\n"
 439                  "MOV     R0, R2\n"
 440                  "BL      sub_ffd20cf4\n"
 441                  "B       loc_ffd2460c\n"
 442  "loc_ffd244c4:\n"
 443                  "MOV     R0, R2\n"
 444                  "BL      sub_ffd20ef4_my\n"  //---------->                 
 445                  "MOV     R8, #0\n"
 446                  "B       loc_ffd2460c\n"
 447  "loc_ffd244d4:\n"
 448                  "MOV     R0, R2\n"
 449                  "BL      sub_ffd21054\n"
 450                  "B       loc_ffd2460c\n"
 451                  
 452                  
 453  "loc_ffd244e0:\n"
 454                  "LDRH    R1, [R2,#4]\n"
 455                  "LDR     R3, =0x2AFE0\n"
 456                  "STRH    R1, [SP,#0x14]\n"
 457                  "LDRH    R1, [R3,#6]\n"
 458                  "STRH    R1, [SP,#0x1A]\n"
 459                  "LDRH    R1, [R3,#2]\n"
 460                  "STRH    R1, [SP,#0x16]\n"
 461                  "LDRH    R3, [R3,#4]\n"
 462                  "STRH    R3, [SP,#0x18]\n"
 463                  "MOV     R0, R2\n"
 464                  "LDRH    R2, [R2,#0xC]\n"
 465                  "STRH    R2, [SP,#0x1C]\n"
 466                  "BL      sub_ffd2134c\n"
 467                  "B       loc_ffd2460c\n"
 468  "loc_ffd24518:\n"
 469                  "MOV     R0, R2\n"
 470                  "LDRH    R2, [R2,#4]\n"
 471                  "LDR     R3, =0x2AFE0\n"
 472                  "STRH    R2, [SP,#0x14]\n"
 473                  "LDRH    R2, [R3,#8]\n"
 474                  "STRH    R2, [SP,#0x1C]\n"
 475                  "LDRH    R1, [R3,#2]\n"
 476                  "STRH    R1, [SP,#0x16]\n"
 477                  "LDRH    R2, [R3,#4]\n"
 478                  "STRH    R2, [SP,#0x18]\n"
 479                  "LDRH    R3, [R3,#6]\n"
 480                  "STRH    R3, [SP,#0x1A]\n"
 481                  "BL      sub_ffd21474\n"
 482                  "B       loc_ffd2460c\n"
 483  "loc_ffd24550:\n"
 484                  "LDR     R3, =0x2AFE0\n"
 485                  "LDRH    R1, [R3]\n"
 486                  "STRH    R1, [SP,#0x14]\n"
 487                  "MOV     R0, R2\n"
 488                  "LDRH    R2, [R2,#6]\n"
 489                  "STRH    R2, [SP,#0x16]\n"
 490                  "LDRH    R2, [R3,#8]\n"
 491                  "STRH    R2, [SP,#0x1C]\n"
 492                  "LDRH    R1, [R3,#4]\n"
 493                  "STRH    R1, [SP,#0x18]\n"
 494                  "LDRH    R3, [R3,#6]\n"
 495                  "STRH    R3, [SP,#0x1A]\n"
 496                  "BL      sub_ffd21538\n"
 497                  "B       loc_ffd2460c\n"
 498  "loc_ffd24588:\n"
 499                  "LDR     R3, =0x2AFE0\n"
 500                  "LDRH    R1, [R3,#6]\n"
 501                  "STRH    R1, [SP,#0x1A]\n"
 502                  "LDRH    R1, [R3]\n"
 503                  "STRH    R1, [SP,#0x14]\n"
 504                  "LDRH    R1, [R3,#2]\n"
 505                  "STRH    R1, [SP,#0x16]\n"
 506                  "LDRH    R3, [R3,#4]\n"
 507                  "STRH    R3, [SP,#0x18]\n"
 508                  "MOV     R0, R2\n"
 509                  "LDRH    R2, [R2,#0xC]\n"
 510                  "STRH    R2, [SP,#0x1C]\n"
 511                  "BL      sub_ffd215f0\n"
 512                  "B       loc_ffd2460c\n"
 513  "loc_ffd245c0:\n"
 514                  "MOV     R0, R2\n"
 515                  "BL      sub_ffd216a0\n"
 516                  "B       loc_ffd2460c\n"
 517  "loc_ffd245cc:\n"
 518                  "MOV     R0, R2\n"
 519                  "BL      sub_ffd21dc8\n"
 520                  "B       loc_ffd2460c\n"
 521  "loc_ffd245d8:\n"
 522                  "MOV     R0, R2\n"
 523                  "BL      sub_ffd21fc4\n"
 524                  "B       loc_ffd2460c\n"
 525  "loc_ffd245e4:\n"
 526                  "MOV     R0, R2\n"
 527                  "BL      sub_ffd22180\n"
 528                  "B       loc_ffd2460c\n"
 529  "loc_ffd245f0:\n"
 530                  "MOV     R0, R2\n"
 531                  "MOV     R1, #0\n"
 532                  "BL      sub_ffd22368\n"
 533                  "B       loc_ffd2460c\n"
 534  "loc_ffd24600:\n"
 535                  "MOV     R0, R2\n"
 536                  "MOV     R1, #1\n"
 537                  "BL      sub_ffd22368\n"
 538  "loc_ffd2460c:\n"
 539                  "LDR     R12, [SP,#4]\n"
 540  "loc_ffd24610:\n"
 541                  "ADD     R0, R12, #4\n"
 542                  "LDR     R1, [R12,#0x7C]\n"
 543                  "LDR     R2, [R12,#0x8C]\n"
 544                  "MOV     LR, PC\n"
 545                  "LDR     PC, [R12,#0x88]\n"
 546  "loc_ffd24624:\n"
 547                  "CMP     R8, #1\n"
 548                  "BNE     loc_ffd2464c\n"
 549                  "LDR     R1, [SP,#4]\n"
 550                  "LDR     R3, [R1,#0x7C]\n"
 551                  "ADD     R3, R3, R3,LSL#1\n"
 552                  "ADD     R1, R1, R3,LSL#2\n"
 553                  "MOV     R0, R6\n"
 554                  "SUB     R1, R1, #8\n"
 555                  "BL      sub_ffd1ff30\n"
 556                  "B       loc_ffd246c8\n"
 557  "loc_ffd2464c:\n"
 558                  "LDR    R3, [SP,#4]\n"
 559                  "LDR    R2, [R3]\n"
 560                  "CMP    R2, #9\n"
 561                  "BNE    loc_ffd24694\n"
 562                  "MOV    R4, #0\n"
 563                  "MOV    R1, #1\n"
 564                  "MOV    R2, R1\n"
 565                  "MOV    R3, R1\n"
 566                  "MOV    R0, R4\n"
 567                  "STR    R4, [SP]\n"
 568                  "BL     sub_ffd1fe74\n"
 569                  "MOV    R1, #1\n"
 570                  "MOV    R0, R4\n"
 571                  "MOV    R2, R1\n"
 572                  "MOV    R3, R1\n"
 573                  "STR    R4, [SP]\n"
 574                  "BL     sub_ffd200cc\n"
 575                  "B      loc_ffd246c8\n"
 576  "loc_ffd24694:\n"
 577                  "MOV    R4, #1\n"
 578                  "MOV    R0, R4\n"
 579                  "MOV    R1, R4\n"
 580                  "MOV    R2, R4\n"
 581                  "MOV    R3, R4\n"
 582                  "STR    R4, [SP]\n"
 583                  "BL     sub_ffd1fe74\n"
 584                  "MOV    R0, R4\n"
 585                  "MOV    R1, R0\n"
 586                  "MOV    R2, R0\n"
 587                  "MOV    R3, R0\n"
 588                  "STR    R4, [SP]\n"
 589                  "BL     sub_ffd200cc\n"
 590 
 591  "loc_ffd246c8:\n"
 592                  "LDR    R2, =0x2B030\n"
 593                  "MOV    R3, #0\n"
 594                  "LDR    R0, [SP,#4]\n"
 595                  "STR    R3, [R2]\n"
 596                  "BL     sub_ffd1f8d4\n"
 597 
 598  "loc_ffd246dc:\n"
 599                  "LDR     R3, =0x2AFD4\n"
 600                  "MOV     R2, #0\n"
 601                  "LDR     R0, [R3]\n"
 602                  "MOV     R1, R7\n"
 603                  "BL      sub_ffebd6e4\n"
 604                  "LDR     R12, [SP,#4]\n"
 605                  "LDR     R2, [R12]\n"
 606                  "CMP     R2, #0x23\n"
 607                  "BNE     loc_ffd241dc\n"
 608                  "MOV     R0, R12\n"
 609                  "BL      sub_ffd1f8d4\n"
 610                  "LDR     R3, =0x2AFD0\n"
 611                  "MOV     R1, #1\n"
 612                  "LDR     R0, [R3]\n"
 613                  "BL      sub_ffebcfcc\n"
 614                  "BL      sub_ffebeca8\n" // ExitTask
 615                  "ADD     SP, SP, #0x20\n"
 616                  "LDMFD   SP!, {R4-R8,PC}\n"
 617  );
 618 }
 619 
 620 void __attribute__((naked,noinline)) sub_ffd20ef4_my(){
 621  asm volatile(
 622                  "STMFD   SP!, {R4-R6,LR}\n"
 623                  "LDR     R3, =0x2AFD0\n"
 624                  "MOV     R4, R0\n"
 625                  "MOV     R1, #0x3E\n"
 626                  "LDR     R0, [R3]\n"
 627                  "BL      sub_ffebd168\n"
 628                  "MOV     R1, #0\n"
 629                  "LDRSH   R0, [R4,#4]\n"
 630                  "BL      sub_ffd1fa08\n"
 631                  "MOV     R6, R0\n"
 632                  "LDRSH   R0, [R4,#6]\n"
 633                  "BL      sub_ffd1fbb4\n"
 634                  "LDRSH   R0, [R4,#8]\n"
 635                  "BL      sub_ffd1fc50\n"
 636                  "LDRSH   R0, [R4,#0xA]\n"
 637                  "BL      sub_ffd1fcec\n"
 638                  "LDRSH   R0, [R4,#0xC]\n"
 639                  "BL      sub_ffd1fd88\n"
 640                  "LDR     R3, [R4]\n"
 641                  "CMP     R3, #9\n"
 642                  "MOV     R5, R0\n"
 643                  "MOVEQ   R5, #0\n"
 644                  "MOVEQ   R6, R5\n"
 645                  "CMP     R6, #1\n"
 646                  "BNE     loc_ffd20f78\n"
 647                  "MOV     R2, #2\n"
 648                  "LDRSH   R0, [R4,#4]\n"
 649                  "LDR     R1, =0xFFD1F928\n"
 650                  "BL      sub_ffe7827c\n"
 651                  "LDR     R2, =0x2B020\n"
 652                  "MOV     R3, #0\n"
 653                  "STR     R3, [R2]\n"
 654                  "B       loc_ffd20f7c\n"
 655  "loc_ffd20f78:\n"
 656                  "BL      sub_ffd1fe24\n"
 657  "loc_ffd20f7c:\n"
 658                  "STRH    R0, [R4,#4]\n"
 659                  "CMP     R5, #1\n"
 660                  "BNE     loc_ffd20f9c\n"
 661                  "LDRSH   R0, [R4,#0xC]\n"
 662                  "LDR     R1, =0xFFD1F9EC\n"
 663                  "MOV     R2, #0x20\n"
 664                  "BL      sub_ffd20218\n"
 665                  "B       loc_ffd20fa0\n"
 666  "loc_ffd20f9c:\n"
 667                  "BL      sub_ffd1fe64\n"
 668  "loc_ffd20fa0:\n"
 669                  "STRH    R0, [R4,#0xC]\n"
 670                  "LDRSH   R0, [R4,#6]\n"
 671                  "BL      sub_ffce9eb0_my\n"  // ------------->
 672                  "LDRSH   R0, [R4,#8]\n"
 673                  "MOV     R1, #1\n"
 674                  "BL      sub_ffcec164\n"
 675                  "ADD     R0, R4, #8\n"
 676                  "MOV     R1, #0\n"
 677                  "BL      sub_ffcec224\n"
 678                  "LDRSH   R0, [R4,#0xE]\n"
 679                  "BL      sub_ffd0e5d4\n"
 680                  "CMP     R6, #1\n"
 681                  "BNE     loc_ffd21004\n"
 682                  "LDR     R3, =0x2AFD0\n"
 683                  "MOV     R2, #0xBB0\n"
 684                  "LDR     R0, [R3]\n"
 685                  "MOV     R1, #2\n"
 686                  "ADD     R2, R2, #8\n"
 687                  "BL      sub_ffebcfbc\n"
 688                  "TST     R0, #1\n"
 689                  "BEQ     loc_ffd21004\n"
 690                  "MOV     R1, #0x4a0\n"
 691                  "LDR     R0, =0xFFD1F880\n"
 692                  "ADD     R1, R1, #3\n"
 693                  "BL      sub_ffeca824\n"
 694  "loc_ffd21004:\n"
 695                  "CMP     R5, #1\n"
 696                  "LDMNEFD SP!, {R4-R6,PC}\n"
 697                  "LDR     R3, =0x2AFD0\n"
 698                  "MOV     R2, #0xBB0\n"
 699                  "LDR     R0, [R3]\n"
 700                  "MOV     R1, #0x20\n"
 701                  "ADD     R2, R2, #8\n"
 702                  "BL      sub_ffebcfbc\n"
 703                  "TST     R0, #1\n"
 704                  "LDMEQFD SP!, {R4-R6,PC}\n"
 705                  "MOV     R1, #0x4A0\n"
 706                  "LDR     R0, =0xFFD1F880\n"
 707                  "ADD     R1, R1, #8\n"
 708                  "LDMFD   SP!, {R4-R6,LR}\n"
 709                  "B       sub_ffeca824\n"
 710  );
 711 }
 712 
 713 void __attribute__((naked,noinline)) sub_ffce9eb0_my(){
 714  asm volatile(
 715                  "STMFD   SP!, {R4,LR}\n"
 716                  "LDR     R3, =0x59FC\n"
 717                  "LDR     R2, [R3]\n"
 718                  "MOV     R1, #0x168\n"
 719                  "MOV     R3, R0,LSL#16\n"
 720                  "CMP     R2, #1\n"
 721                  "ADD     R1, R1, #3\n"
 722                  "LDR     R0, =0xFFCE96CC\n"
 723                  "MOV     R4, R3,ASR#16\n"
 724                  "BEQ     loc_FFCE9EDC\n"
 725                  "BL      sub_ffeca824\n"
 726  "loc_FFCE9EDC:\n"
 727                  "MOV     R1, #0x170\n"
 728                  "CMN     R4, #0xC00\n"
 729                  "LDR     R3, =0x11B4E\n"
 730                  "LDR     R0, =0xFFCE96CC\n"
 731                  "ADD     R1, R1, #1\n"
 732                  "LDREQSH R4, [R3]\n"
 733                  "LDRNE   R3, =0x11B4E\n"
 734                  "CMN     R4, #0xC00\n"
 735                  "STRH    R4, [R3]\n"
 736                  "BNE     loc_FFCE9F08\n"
 737                  "BL      sub_ffeca824\n"
 738  "loc_FFCE9F08:\n"
 739                  "MOV     R0, R4\n"
 740                  "BL      apex2us\n"  //---------->
 741                  "MOV     R4, R0\n"
 742                  "BL      sub_FFD764E0\n"
 743                  "MOV     R0, R4\n"
 744                  "BL      sub_ffd8d97c\n"
 745                  "MOV     R1, #0x174\n"
 746                  "TST     R0, #1\n"
 747                  "ADD     R1, R1, #2\n"
 748                  "LDR     R0, =0xFFCE96CC\n"
 749                  "LDMEQFD SP!, {R4,PC}\n"
 750                  "LDMFD   SP!, {R4,LR}\n"
 751                  "B       sub_ffeca824\n"
 752  );
 753 }

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