root/platform/a570/sub/100e/capt_seq.c

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

DEFINITIONS

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

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