root/platform/a550/sub/100c/capt_seq.c

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

DEFINITIONS

This source file includes following definitions.
  1. sub_FFE72574_my
  2. sub_FFE6F5FC_my
  3. capt_seq_task
  4. exp_drv_task
  5. sub_FFD0C6CC_my
  6. sub_FFCD8480_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 
   5 static long *nrflag = (long*)0xB918;
   6 
   7 #include "../../../generic/capt_seq.c"
   8 
   9 void __attribute__((naked,noinline)) sub_FFE72574_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_FFE72F9C\n"
  16                                                                 "MVN     R1, #0\n"                                              //differnt from dump but synced wit a560
  17                                                                 "BL      sub_FFE82480\n"
  18                                                                 "MOV     R0, #0x8A\n"
  19                                                                 "ADD     R1, SP, #4\n"                          //14-10
  20                                                                 "MOV     R2, #4\n"
  21                                                                 "BL      sub_FFC0B7C4\n"
  22                                                                 "TST     R0, #1\n"
  23                                                                 "BEQ     loc_FFE725B4\n"
  24                                                                 "MOV     R1, #0x1D0\n"
  25                                                                 "LDR     R0, =0xFFE723F8\n"
  26                                                                 "ADD     R1, R1, #2\n"
  27                                                                 "BL      sub_FFE8FB40\n"
  28         "loc_FFE725B4:\n"
  29                                                                 "LDR     R3, =0x9DDC0\n"
  30                                                                 "LDR     R2, =0x9DE80\n"
  31                                                                 "LDR     R0, [R3,#0x74]\n"
  32                                                                 "LDRSH   R1, [R2,#0xE]\n"
  33                                                                 "BL      sub_FFDD28E0\n"
  34                                                                 "MOV     R0, R4\n"
  35                                                                 "BL      sub_FFE7237C\n"
  36                                 "BL      wait_until_remote_button_is_released\n"
  37                                                                 "BL      capt_seq_hook_set_nr\n" // +
  38                                                                 "LDR     R3, =0xB91C\n"
  39                                                                 "LDR     R0, [R3]\n"
  40 
  41                 "B       sub_FFE725D8\n"  // ---> jump to end of function in ROM
  42     );
  43 }
  44 
  45 void __attribute__((naked,noinline)) sub_FFE6F5FC_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, #0xC\n"
  54                                                                 "BL      sub_FFE79254\n"
  55                                                                 "TST     R0, #1\n"
  56                                                                 "MOV     R0, #1\n"
  57                                                                 "MOV     R2, R4\n"
  58                                                                 "MOV     R1, R0\n"
  59                                                                 "BEQ     loc_FFE6F640\n"
  60                                                                 "LDR     R3, [R4,#8]\n"
  61                                                                 "ORR     R3, R3, #0x40000000\n"
  62                                                                 "STR     R3, [R4,#8]\n"
  63                                                                 "LDMFD   SP!, {R4,LR}\n"
  64                                                                 "B       sub_FFE6DEB0\n"
  65 "loc_FFE6F640:\n"
  66                                                                 "BL      sub_FFE70098\n"
  67                                                                 "MOV     R0, R4\n"
  68                                                                 "BL      sub_FFE710CC\n"
  69                                                                 "TST     R0, #1\n"
  70                                                                 "MOV     R2, R4\n"
  71                                                                 "MOV     R1, #1\n"
  72                                                                 "BEQ     loc_FFE6F664\n"
  73                                                                 "LDMFD   SP!, {R4,LR}\n"
  74                                                                 "B       sub_FFE6DEB0\n"
  75 "loc_FFE6F664:\n"
  76                                                                 "BL      sub_FFC15B10\n"
  77                                                                 "BL      sub_FFC0B9C0\n"
  78                                                                 "STR     R0, [R4,#0x14]\n"
  79                                                                 "MOV     R0, R4\n"
  80                                                                 "BL      sub_FFE7245C\n"
  81                                                                 "BL      sub_FFE72E08\n"
  82                                                                 "MOV     R0, R4\n"
  83                                                                 "BL      sub_FFE72574_my\n"                     //------->
  84                                                                 "BL      capt_seq_hook_raw_here\n"  // +
  85                                                                 "MOV     R1, #1\n"
  86                                                                 "MOV     R2, R4\n"
  87                                                                 "BL      sub_FFE6DEB0\n"
  88                                                                 "BL      sub_FFE728A8\n"
  89                                                                 "CMP     R0, #0\n"
  90                                                                 "LDRNE   R3, [R4,#8]\n"
  91                                                                 "ORRNE   R3, R3, #0x2000\n"
  92                                                                 "STRNE   R3, [R4,#8]\n"
  93                                                                 "LDMFD   SP!, {R4,PC}\n"
  94     );
  95 }
  96 
  97 void __attribute__((naked,noinline)) capt_seq_task()
  98 {
  99         asm volatile (
 100                                                                 "STMFD   SP!, {R4,LR}\n"
 101                                                                 "SUB     SP, SP, #4\n"
 102                                                                 "MOV     R4, SP\n"
 103                                                                 "B       loc_FFE6FB6C\n"
 104 "loc_FFE6FA10:\n"
 105                                                                 "LDR     R2, [SP]\n"
 106                                                                 "LDR     R3, [R2]\n"
 107                                                                 "MOV     R0, R2\n"
 108                                                                 "CMP     R3, #0x15\n"
 109                                                                 "LDRLS   PC, [PC,R3,LSL#2]\n"
 110                                                                 "B       loc_FFE6FB40\n"
 111                                                                 ".long loc_FFE6FA80\n"
 112                                                                 ".long loc_FFE6FA8C\n"
 113                                                                 ".long loc_FFE6FA94\n"
 114                                                                 ".long loc_FFE6FAA8\n"
 115                                                                 ".long loc_FFE6FAA0\n"
 116                                                                 ".long loc_FFE6FAB0\n"
 117                                                                 ".long loc_FFE6FAB8\n"
 118                                                                 ".long loc_FFE6FAC4\n"
 119                                                                 ".long loc_FFE6FACC\n"
 120                                                                 ".long loc_FFE6FAD8\n"
 121                                                                 ".long loc_FFE6FAE0\n"
 122                                                                 ".long loc_FFE6FAE8\n"
 123                                                                 ".long loc_FFE6FAF0\n"
 124                                                                 ".long loc_FFE6FAF8\n"
 125                                                                 ".long loc_FFE6FB00\n"
 126                                                                 ".long loc_FFE6FB0C\n"
 127                                                                 ".long loc_FFE6FB14\n"
 128                                                                 ".long loc_FFE6FB1C\n"
 129                                                                 ".long loc_FFE6FB24\n"
 130                                                                 ".long loc_FFE6FB30\n"
 131                                                                 ".long loc_FFE6FB38\n"
 132                                                                 ".long loc_FFE6FB54\n"
 133 "loc_FFE6FA80:\n"
 134                                                                 
 135                                                                 "BL      sub_FFE700AC\n"
 136                                                                 "BL      shooting_expo_param_override\n"   // +
 137                                                                 "BL      sub_FFE6D9A0\n"
 138                                                                 "B       loc_FFE6FB50\n"
 139 "loc_FFE6FA8C:\n"
 140                                                                 
 141                                                                 "BL      sub_FFE6F5FC_my\n"  //--------->
 142                                                                 "B       loc_FFE6FB50\n"
 143 "loc_FFE6FA94:\n"
 144                                                                 
 145                                                                 "MOV     R0, #1\n"
 146                                                                 "BL      sub_FFE70280\n"
 147                                                                 "B       loc_FFE6FB50\n"
 148 "loc_FFE6FAA0:\n"                            
 149                                                                 
 150                                                                 "BL      sub_FFE6FC50\n"
 151                                                                 "B       loc_FFE6FB50\n"
 152 "loc_FFE6FAA8:\n"
 153                                                                 
 154                                                                 "BL      sub_FFE70078\n"
 155                                                                 "B       loc_FFE6FB50\n"
 156 "loc_FFE6FAB0:\n"
 157                                                                 
 158                                                                 "BL      sub_FFE70088\n"   
 159                                                                 "B       loc_FFE6FB50\n"
 160 "loc_FFE6FAB8:\n"
 161                                                                 
 162                                                                 "BL      sub_FFE70190\n"   
 163                                                                 "BL      sub_FFE6D9A0\n"
 164                                                                 "B       loc_FFE6FB50\n"
 165 "loc_FFE6FAC4:\n"
 166                                                                 
 167                                                                 "BL      sub_FFE6F70C\n"   
 168                                                                 "B       loc_FFE6FB50\n"
 169 "loc_FFE6FACC:\n"
 170                                                                 
 171                                                                 "BL      sub_FFE701F4\n"   
 172                                                                 "BL      sub_FFE6D9A0\n"
 173                                                                 "B       loc_FFE6FB50\n"
 174 "loc_FFE6FAD8:\n"
 175                                                                 
 176                                                                 "BL      sub_FFE70078\n"
 177                                                                 "B       loc_FFE6FB50\n"
 178 "loc_FFE6FAE0:\n"
 179                                                                 
 180                                                                 "BL      sub_FFE717E0\n"   
 181                                                                 "B       loc_FFE6FB50\n"
 182 "loc_FFE6FAE8:\n"
 183                                                                 
 184                                                                 "BL      sub_FFE719AC\n"   
 185                                                                 "B       loc_FFE6FB50\n"
 186 "loc_FFE6FAF0:\n"
 187                                                                 
 188                                                                 "BL      sub_FFE71A40\n"   
 189                                                                 "B       loc_FFE6FB50\n"
 190 "loc_FFE6FAF8:\n"
 191                                                                 
 192                                                                 "BL      sub_FFE71B3C\n"   
 193                                                                 "B       loc_FFE6FB50\n"
 194 "loc_FFE6FB00:\n"
 195                                                                 
 196                                                                 "MOV     R0, #0\n"   
 197                                                                 "BL      sub_FFE71DA8\n"
 198                                                                 "B       loc_FFE6FB50\n"
 199 "loc_FFE6FB0C:\n"
 200                                                                 
 201                                                                 "BL      sub_FFE71F60\n"  
 202                                                                 "B       loc_FFE6FB50\n"
 203 "loc_FFE6FB14:\n"
 204                                                                 
 205                                                                 "BL      sub_FFE71FF4\n"   
 206                                                                 "B       loc_FFE6FB50\n"
 207 "loc_FFE6FB1C:\n"
 208                                                                 
 209                                                                 "BL      sub_FFE720B0\n"   
 210                                                                 "B       loc_FFE6FB50\n"
 211 "loc_FFE6FB24:\n"
 212 
 213                                                                 "BL      sub_FFE703D4\n"   
 214                                                                 "BL      sub_FFE6F520\n"
 215                                                                 "B       loc_FFE6FB50\n"
 216 "loc_FFE6FB30:\n"
 217 
 218                                                                 "BL      sub_FFE71C7C\n"  
 219                                                                 "B       loc_FFE6FB50\n"
 220 "loc_FFE6FB38:\n"
 221 
 222                                                                 "BL      sub_FFE71CD8\n" 
 223                                                                 "B       loc_FFE6FB50\n"
 224 "loc_FFE6FB40:\n"
 225 
 226                                                                 "MOV     R1, #0x4C0\n"   
 227                                                                 "LDR     R0, =0xFFE6F37C\n"
 228                                                                 "ADD     R1, R1, #0xE\n"
 229                                                                 "BL      sub_FFE8FB40\n"
 230 "loc_FFE6FB50:\n"
 231 
 232                                                                 "LDR     R2, [SP]\n"
 233 "loc_FFE6FB54:\n"
 234 
 235                                                                 "LDR     R3, =0x78070\n"
 236                                                                 "LDR     R1, [R2,#4]\n"
 237                                                                 "LDR     R0, [R3]\n"
 238                                                                 "BL      sub_FFE822E4\n"
 239                                                                 "LDR     R0, [SP]\n"
 240                                                                 "BL      sub_FFE6F3FC\n"
 241 "loc_FFE6FB6C:\n"
 242                                                                 "LDR     R3, =0x78074\n"
 243                                                                 "MOV     R1, R4\n"
 244                                                                 "LDR     R0, [R3]\n"
 245                                                                 "MOV     R2, #0\n"
 246                                                                 "BL      sub_FFE829FC\n"
 247                                                                 "TST     R0, #1\n"
 248                                                                 "BEQ     loc_FFE6FA10\n"
 249                                                                 "LDR     R0, =0xFFE6F37C\n"
 250                                                                 "MOV     R1, #0x400\n"
 251                                                                 "BL      sub_FFE8FB40\n"
 252                                                                 "BL      sub_FFE83FC0\n"
 253                                                                 "ADD     SP, SP, #4\n"
 254                                                                 "LDMFD   SP!, {R4,PC}\n"
 255 
 256         );
 257 }
 258 
 259 
 260 /*************************************************************/
 261 void __attribute__((naked,noinline)) exp_drv_task(){
 262  asm volatile(
 263                  "STMFD   SP!, {R4-R8,LR}\n"
 264                  "SUB     SP, SP, #0x20\n"
 265                  "ADD     R7, SP, #4\n"
 266                  "B       loc_FFD0FBD0\n"
 267  "loc_FFD0F6DC:\n"
 268                  "CMP     R2, #0x22\n"
 269                  "BNE     loc_FFD0F6F4\n"
 270                  "LDR     R0, [R12,#0x8C]\n"
 271                  "MOV     LR, PC\n"
 272                  "LDR     PC, [R12,#0x88]\n"
 273                  "B       loc_FFD0F758\n"
 274  "loc_FFD0F6F4:\n"
 275                  "CMP     R2, #0x1D\n"
 276                  "BNE     loc_FFD0F708\n"
 277                  "MOV     R0, R12\n"
 278                  "BL      sub_FFD0F59C\n"
 279                  "B       loc_FFD0F748\n"
 280  "loc_FFD0F708:\n"
 281                  "CMP     R2, #0x1E\n"
 282                  "BNE     loc_FFD0F71C\n"
 283                  "MOV     R0, R12\n"
 284                  "BL      sub_FFD0F5F8\n"
 285                  "B       loc_FFD0F748\n"
 286  "loc_FFD0F71C:\n"
 287                  "SUB     R3, R2, #0x1F\n"
 288                  "CMP     R3, #1\n"
 289                  "BHI     loc_FFD0F734\n"
 290                  "MOV     R0, R12\n"
 291                  "BL      sub_FFD0F654\n"
 292                  "B       loc_FFD0F748\n"
 293  "loc_FFD0F734:\n"
 294                  "CMP     R2, #0x21\n"
 295                  "BNE     loc_FFD0F764\n"
 296                  "BL      sub_FFCD8804\n"
 297                  "BL      sub_FFCDB93C\n"
 298                  "BL      sub_FFCDAB74\n"
 299  "loc_FFD0F748:\n"
 300                  "LDR     R3, [SP,#4]\n"
 301                  "LDR     R0, [R3,#0x8C]\n"
 302                  "MOV     LR, PC\n"
 303                  "LDR     PC, [R3,#0x88]\n"
 304  "loc_FFD0F758:\n"
 305                  "LDR     R0, [SP,#4]\n"
 306                  "BL      sub_FFD0B268\n"
 307                  "B       loc_FFD0FBD0\n"
 308  "loc_FFD0F764:\n"
 309                  "CMP     R2, #0xD\n"
 310                  "MOV     R8, #1\n"
 311                  "BNE     loc_FFD0F7D4\n"
 312                  "LDR     R1, [R12,#0x7C]\n"
 313                  "ADD     R1, R1, R1,LSL#1\n"
 314                  "ADD     R1, R12, R1,LSL#2\n"
 315                  "ADD     R6, SP, #0x14\n"
 316                  "SUB     R1, R1, #8\n"
 317                  "MOV     R2, #0xC\n"
 318                  "MOV     R0, R6\n"
 319                  "BL      sub_FFCC037C\n"
 320                  "LDR     R0, [SP,#4]\n"
 321                  "BL      sub_FFD0DBA0\n"
 322                  "LDR     R3, [SP,#4]\n"
 323                  "LDR     R1, [R3,#0x7C]\n"
 324                  "LDR     R2, [R3,#0x8C]\n"
 325                  "ADD     R0, R3, #4\n"
 326                  "MOV     LR, PC\n"
 327                  "LDR     PC, [R3,#0x88]\n"
 328                  "LDR     R0, [SP,#4]\n"
 329                  "BL      sub_FFD0DE70\n"
 330                  "LDR     R3, [SP,#4]\n"
 331                  "ADD     R0, R3, #4\n"
 332                  "LDR     R1, [R3,#0x7C]\n"
 333                  "LDR     R2, [R3,#0x94]\n"
 334                  "MOV     LR, PC\n"
 335                  "LDR     PC, [R3,#0x90]\n"
 336                  "B       loc_FFD0FB24\n"
 337  "loc_FFD0F7D4:\n"
 338                  "SUB     R3, R2, #0xE\n"
 339                  "CMP     R3, #1\n"
 340                  "BHI     loc_FFD0F890\n"
 341                  "ADD     R6, SP, #0x14\n"
 342                  "ADD     R5, SP, #8\n"
 343                  "MOV     R0, R12\n"
 344                  "MOV     R1, R6\n"
 345                  "MOV     R2, R5\n"
 346                  "BL      sub_FFD0DF64\n"
 347                  "MOV     R4, R0\n"
 348                  "CMP     R4, #5\n"
 349                  "CMPNE   R4, #1\n"
 350                  "BNE     loc_FFD0F828\n"
 351                  "LDR     R12, [SP,#4]\n"
 352                  "MOV     R0, R5\n"
 353                  "LDR     R1, [R12,#0x7C]\n"
 354                  "MOV     R2, R4\n"
 355                  "LDR     R3, [R12,#0x8C]\n"
 356                  "MOV     LR, PC\n"
 357                  "LDR     PC, [R12,#0x88]\n"
 358                  "B       loc_FFD0F860\n"
 359  "loc_FFD0F828:\n"
 360                  "CMP     R4, #6\n"
 361                  "CMPNE   R4, #2\n"
 362                  "BNE     loc_FFD0F870\n"
 363                  "LDR     R12, [SP,#4]\n"
 364                  "MOV     R0, R5\n"
 365                  "MOV     R1, R8\n"
 366                  "MOV     R2, R4\n"
 367                  "LDR     R3, [R12,#0x8C]\n"
 368                  "MOV     LR, PC\n"
 369                  "LDR     PC, [R12,#0x88]\n"
 370                  "MOV     R1, R6\n"
 371                  "LDR     R0, [SP,#4]\n"
 372                  "MOV     R2, R5\n"
 373                  "BL      sub_FFD0F1FC\n"
 374  "loc_FFD0F860:\n"
 375                  "MOV     R1, R4\n"
 376                  "LDR     R0, [SP,#4]\n"
 377                  "BL      sub_FFD0F530\n"
 378                  "B       loc_FFD0FB24\n"
 379  "loc_FFD0F870:\n"
 380                  "LDR     R12, [SP,#4]\n"
 381                  "MOV     R2, R4\n"
 382                  "ADD     R0, R12, #4\n"
 383                  "LDR     R1, [R12,#0x7C]\n"
 384                  "LDR     R3, [R12,#0x8C]\n"
 385                  "MOV     LR, PC\n"
 386                  "LDR     PC, [R12,#0x88]\n"
 387                  "B       loc_FFD0FB24\n"
 388  "loc_FFD0F890:\n"
 389                  "SUB     R3, R2, #0x19\n"
 390                  "CMP     R3, #1\n"
 391                  "BHI     loc_FFD0F8E8\n"
 392                  "LDR     R1, [R12,#0x7C]\n"
 393                  "ADD     R1, R1, R1,LSL#1\n"
 394                  "ADD     R1, R12, R1,LSL#2\n"
 395                  "ADD     R6, SP, #0x14\n"
 396                  "SUB     R1, R1, #8\n"
 397                  "MOV     R2, #0xC\n"
 398                  "MOV     R0, R6\n"
 399                  "BL      sub_FFCC037C\n"
 400                  "LDR     R0, [SP,#4]\n"
 401                  "BL      sub_FFD0D050\n"
 402                  "LDR     R3, [SP,#4]\n"
 403                  "ADD     R0, R3, #4\n"
 404                  "LDR     R1, [R3,#0x7C]\n"
 405                  "LDR     R2, [R3,#0x8C]\n"
 406                  "MOV     LR, PC\n"
 407                  "LDR     PC, [R3,#0x88]\n"
 408                  "LDR     R0, [SP,#4]\n"
 409                  "BL      sub_FFD0D370\n"
 410                  "B       loc_FFD0FB24\n"
 411  "loc_FFD0F8E8:\n"
 412                  "ADD     R6, SP, #0x14\n"
 413                  "ADD     R1, R12, #4\n"
 414                  "MOV     R2, #0xC\n"
 415                  "MOV     R0, R6\n"
 416                  "BL      sub_FFCC037C\n"
 417                  "LDR     R12, [SP,#4]\n"
 418                  "LDR     R3, [R12]\n"
 419                  "MOV     R2, R12\n"
 420                  "CMP     R3, #0x1C\n"
 421                  "LDRLS   PC, [PC,R3,LSL#2]\n"
 422                  "B       loc_FFD0FB10\n"
 423                  ".long loc_FFD0F988\n"
 424                  ".long loc_FFD0F994\n"
 425                  ".long loc_FFD0F9A0\n"
 426                  ".long loc_FFD0F9A0\n"
 427                  ".long loc_FFD0F988\n"
 428                  ".long loc_FFD0F994\n"
 429                  ".long loc_FFD0F9A0\n"
 430                  ".long loc_FFD0F9A0\n"
 431                  ".long loc_FFD0F9C4\n"
 432                  ".long loc_FFD0F9C4\n"
 433                  ".long loc_FFD0FAE4\n"
 434                  ".long loc_FFD0FAF0\n"
 435                  ".long loc_FFD0FB00\n"
 436                  ".long loc_FFD0FB10\n"
 437                  ".long loc_FFD0FB10\n"
 438                  ".long loc_FFD0FB10\n"
 439                  ".long loc_FFD0F9AC\n"
 440                  ".long loc_FFD0F9B8\n"
 441                  ".long loc_FFD0F9D4\n"
 442                  ".long loc_FFD0F9E0\n"
 443                  ".long loc_FFD0FA18\n"
 444                  ".long loc_FFD0FA50\n"
 445                  ".long loc_FFD0FA88\n"
 446                  ".long loc_FFD0FAC0\n"
 447                  ".long loc_FFD0FAC0\n"
 448                  ".long loc_FFD0FB10\n"
 449                  ".long loc_FFD0FB10\n"
 450                  ".long loc_FFD0FACC\n"
 451                  ".long loc_FFD0FAD8\n"
 452  "loc_FFD0F988:\n"
 453                  "MOV     R0, R2\n"
 454                  "BL      sub_FFD0BA58\n"
 455                  "B       loc_FFD0FB0C\n"
 456  "loc_FFD0F994:\n"
 457                  "MOV     R0, R2\n"
 458                  "BL      sub_FFD0BCF8\n"
 459                  "B       loc_FFD0FB0C\n"
 460  "loc_FFD0F9A0:\n"
 461                  "MOV     R0, R2\n"
 462                  "BL      sub_FFD0BF6C\n"
 463                  "B       loc_FFD0FB0C\n"
 464  "loc_FFD0F9AC:\n"
 465                  "MOV     R0, R2\n"
 466                  "BL      sub_FFD0C264\n"
 467                  "B       loc_FFD0FB0C\n"
 468  "loc_FFD0F9B8:\n"
 469                  "MOV     R0, R2\n"
 470                  "BL      sub_FFD0C4C8\n"
 471                  "B       loc_FFD0FB0C\n"
 472  "loc_FFD0F9C4:\n"
 473                  "MOV     R0, R2\n"
 474                  "BL      sub_FFD0C6CC_my\n"  //------------->
 475                  "MOV     R8, #0\n"
 476                  "B       loc_FFD0FB0C\n"
 477  "loc_FFD0F9D4:\n"
 478                  "MOV     R0, R2\n"
 479                  "BL      sub_FFD0C82C\n"
 480                  "B       loc_FFD0FB0C\n"
 481  "loc_FFD0F9E0:\n"
 482                  "LDRH    R1, [R2,#4]\n"
 483                  "LDR     R3, =0x1C750\n"
 484                  "STRH    R1, [SP,#0x14]\n"
 485                  "LDRH    R1, [R3,#6]\n"
 486                  "STRH    R1, [SP,#0x1A]\n"
 487                  "LDRH    R1, [R3,#2]\n"
 488                  "STRH    R1, [SP,#0x16]\n"
 489                  "LDRH    R3, [R3,#4]\n"
 490                  "STRH    R3, [SP,#0x18]\n"
 491                  "MOV     R0, R2\n"
 492                  "LDRH    R2, [R2,#0xC]\n"
 493                  "STRH    R2, [SP,#0x1C]\n"
 494                  "BL      sub_FFD0CB24\n"
 495                  "B       loc_FFD0FB0C\n"
 496  "loc_FFD0FA18:\n"
 497                  "MOV     R0, R2\n"
 498                  "LDRH    R2, [R2,#4]\n"
 499                  "LDR     R3, =0x1C750\n"
 500                  "STRH    R2, [SP,#0x14]\n"
 501                  "LDRH    R2, [R3,#8]\n"
 502                  "STRH    R2, [SP,#0x1C]\n"
 503                  "LDRH    R1, [R3,#2]\n"
 504                  "STRH    R1, [SP,#0x16]\n"
 505                  "LDRH    R2, [R3,#4]\n"
 506                  "STRH    R2, [SP,#0x18]\n"
 507                  "LDRH    R3, [R3,#6]\n"
 508                  "STRH    R3, [SP,#0x1A]\n"
 509                  "BL      sub_FFD0CC48\n"
 510                  "B       loc_FFD0FB0C\n"
 511  "loc_FFD0FA50:\n"
 512                  "LDR     R3, =0x1C750\n"
 513                  "LDRH    R1, [R3]\n"
 514                  "STRH    R1, [SP,#0x14]\n"
 515                  "MOV     R0, R2\n"
 516                  "LDRH    R2, [R2,#6]\n"
 517                  "STRH    R2, [SP,#0x16]\n"
 518                  "LDRH    R2, [R3,#8]\n"
 519                  "STRH    R2, [SP,#0x1C]\n"
 520                  "LDRH    R1, [R3,#4]\n"
 521                  "STRH    R1, [SP,#0x18]\n"
 522                  "LDRH    R3, [R3,#6]\n"
 523                  "STRH    R3, [SP,#0x1A]\n"
 524                  "BL      sub_FFD0CD0C\n"
 525                  "B       loc_FFD0FB0C\n"
 526  "loc_FFD0FA88:\n"
 527                  "LDR     R3, =0x1C750\n"
 528                  "LDRH    R1, [R3,#6]\n"
 529                  "STRH    R1, [SP,#0x1A]\n"
 530                  "LDRH    R1, [R3]\n"
 531                  "STRH    R1, [SP,#0x14]\n"
 532                  "LDRH    R1, [R3,#2]\n"
 533                  "STRH    R1, [SP,#0x16]\n"
 534                  "LDRH    R3, [R3,#4]\n"
 535                  "STRH    R3, [SP,#0x18]\n"
 536                  "MOV     R0, R2\n"
 537                  "LDRH    R2, [R2,#0xC]\n"
 538                  "STRH    R2, [SP,#0x1C]\n"
 539                  "BL      sub_FFD0CDC4\n"
 540                  "B       loc_FFD0FB0C\n"
 541  "loc_FFD0FAC0:\n"
 542                  "MOV     R0, R2\n"
 543                  "BL      sub_FFD0CE70\n"
 544                  "B       loc_FFD0FB0C\n"
 545  "loc_FFD0FACC:\n"
 546                  "MOV     R0, R2\n"
 547                  "BL      sub_FFD0D4C0\n"
 548                  "B       loc_FFD0FB0C\n"
 549  "loc_FFD0FAD8:\n"
 550                  "MOV     R0, R2\n"
 551                  "BL      sub_FFD0D6BC\n"
 552                  "B       loc_FFD0FB0C\n"
 553  "loc_FFD0FAE4:\n"
 554                  "MOV     R0, R2\n"
 555                  "BL      sub_FFD0D878\n"
 556                  "B       loc_FFD0FB0C\n"
 557  "loc_FFD0FAF0:\n"
 558                  "MOV     R0, R2\n"
 559                  "MOV     R1, #0\n"
 560                  "BL      sub_FFD0DA60\n"
 561                  "B       loc_FFD0FB0C\n"
 562  "loc_FFD0FB00:\n"
 563                  "MOV     R0, R2\n"
 564                  "MOV     R1, #1\n"
 565                  "BL      sub_FFD0DA60\n"
 566  "loc_FFD0FB0C:\n"
 567                  "LDR     R12, [SP,#4]\n"
 568  "loc_FFD0FB10:\n"
 569                  "ADD     R0, R12, #4\n"
 570                  "LDR     R1, [R12,#0x7C]\n"
 571                  "LDR     R2, [R12,#0x8C]\n"
 572                  "MOV     LR, PC\n"
 573                  "LDR     PC, [R12,#0x88]\n"
 574  "loc_FFD0FB24:\n"
 575                  "CMP     R8, #1\n"
 576                  "BNE     loc_FFD0FB4C\n"
 577                  "LDR     R1, [SP,#4]\n"
 578                  "LDR     R3, [R1,#0x7C]\n"
 579                  "ADD     R3, R3, R3,LSL#1\n"
 580                  "ADD     R1, R1, R3,LSL#2\n"
 581                  "MOV     R0, R6\n"
 582                  "SUB     R1, R1, #8\n"
 583                  "BL      sub_FFD0B7D0\n"
 584                  "B       loc_FFD0FBC8\n"
 585  "loc_FFD0FB4C:\n"
 586                  "LDR     R3, [SP,#4]\n"
 587                  "LDR     R2, [R3]\n"
 588                  "CMP     R2, #9\n"
 589                  "BNE     loc_FFD0FB94\n"
 590                  "MOV     R4, #0\n"
 591                  "MOV     R1, #1\n"
 592                  "MOV     R2, R1\n"
 593                  "MOV     R3, R1\n"
 594                  "MOV     R0, R4\n"
 595                  "STR     R4, [SP]\n"
 596                  "BL      sub_FFD0B724\n"
 597                  "MOV     R1, #1\n"
 598                  "MOV     R0, R4\n"
 599                  "MOV     R2, R1\n"
 600                  "MOV     R3, R1\n"
 601                  "STR     R4, [SP]\n"
 602                  "BL      sub_FFD0B8AC\n"
 603                  "B       loc_FFD0FBC8\n"
 604  "loc_FFD0FB94:\n"
 605                  "MOV     R4, #1\n"
 606                  "MOV     R0, R4\n"
 607                  "MOV     R1, R4\n"
 608                  "MOV     R2, R4\n"
 609                  "MOV     R3, R4\n"
 610                  "STR     R4, [SP]\n"
 611                  "BL      sub_FFD0B724\n"
 612                  "MOV     R0, R4\n"
 613                  "MOV     R1, R0\n"
 614                  "MOV     R2, R0\n"
 615                  "MOV     R3, R0\n"
 616                  "STR     R4, [SP]\n"
 617                  "BL      sub_FFD0B8AC\n"
 618  "loc_FFD0FBC8:\n"
 619                  "LDR     R0, [SP,#4]\n"
 620                  "BL      sub_FFD0B268\n"
 621  "loc_FFD0FBD0:\n"
 622                  "LDR     R3, =0x1C744\n"
 623                  "MOV     R2, #0\n"
 624                  "LDR     R0, [R3]\n"
 625                  "MOV     R1, R7\n"
 626                  "BL      sub_FFE829FC\n"
 627                  "LDR     R12, [SP,#4]\n"
 628                  "LDR     R2, [R12]\n"
 629                  "CMP     R2, #0x23\n"
 630                  "BNE     loc_FFD0F6DC\n"
 631                  "MOV     R0, R12\n"
 632                  "BL      sub_FFD0B268\n"
 633                  "LDR     R3, =0x1C740\n"
 634                  "MOV     R1, #1\n"
 635                  "LDR     R0, [R3]\n"
 636                  "BL      sub_FFE822E4\n"
 637                  "BL      sub_FFE83FC0\n"
 638                  "ADD     SP, SP, #0x20\n"
 639                  "LDMFD   SP!, {R4-R8,PC}\n"
 640  );
 641 }
 642 
 643 void __attribute__((naked,noinline)) sub_FFD0C6CC_my(){
 644  asm volatile(
 645                  "STMFD   SP!, {R4-R6,LR}\n"
 646                  "LDR     R3, =0x1C740\n"
 647                  "MOV     R4, R0\n"
 648                  "MOV     R1, #0x3E\n"
 649                  "LDR     R0, [R3]\n"
 650                  "BL      sub_FFE82480\n"
 651                  "MOV     R1, #0\n"
 652                  "LDRSH   R0, [R4,#4]\n"
 653                  "BL      sub_FFD0B398\n"
 654                  "MOV     R6, R0\n"
 655                  "LDRSH   R0, [R4,#6]\n"
 656                  "BL      sub_FFD0B464\n"
 657                  "LDRSH   R0, [R4,#8]\n"
 658                  "BL      sub_FFD0B500\n"
 659                  "LDRSH   R0, [R4,#0xA]\n"
 660                  "BL      sub_FFD0B59C\n"
 661                  "LDRSH   R0, [R4,#0xC]\n"
 662                  "BL      sub_FFD0B638\n"
 663                  "LDR     R3, [R4]\n"
 664                  "CMP     R3, #9\n"
 665                  "MOV     R5, R0\n"
 666                  "MOVEQ   R5, #0\n"
 667                  "MOVEQ   R6, R5\n"
 668                  "CMP     R6, #1\n"
 669                  "BNE     loc_FFD0C750\n"
 670                  "MOV     R2, #2\n"
 671                  "LDRSH   R0, [R4,#4]\n"
 672                  "LDR     R1, =0xFFD0B2B8\n"
 673                  "BL      sub_FFE49ECC\n"
 674                  "LDR     R2, =0x1C780\n"
 675                  "MOV     R3, #0\n"
 676                  "STR     R3, [R2]\n"
 677                  "B       loc_FFD0C754\n"
 678  "loc_FFD0C750:\n"
 679                  "BL      sub_FFD0B6D4\n"
 680  "loc_FFD0C754:\n"
 681                  "STRH    R0, [R4,#4]\n"
 682                  "CMP     R5, #1\n"
 683                  "BNE     loc_FFD0C774\n"
 684                  "LDRSH   R0, [R4,#0xC]\n"
 685                  "LDR     R1, =0xFFD0B37C\n"
 686                  "MOV     R2, #0x20\n"
 687                  "BL      sub_FFD0B9F8\n"
 688                  "B       loc_FFD0C778\n"
 689  "loc_FFD0C774:\n"
 690                  "BL      sub_FFD0B714\n"
 691  "loc_FFD0C778:\n"
 692                  "STRH    R0, [R4,#0xC]\n"
 693                  "LDRSH   R0, [R4,#6]\n"
 694                  "BL      sub_FFCD8480_my\n"  //------------>
 695                  "LDRSH   R0, [R4,#8]\n"
 696                  "MOV     R1, #1\n"
 697                  "BL      sub_FFCDA734\n"
 698                  "ADD     R0, R4, #8\n"
 699                  "MOV     R1, #0\n"
 700                  "BL      sub_FFCDA7F4\n"
 701                  "LDRSH   R0, [R4,#0xE]\n"
 702                  "BL      sub_FFCFA050\n"
 703                  "CMP     R6, #1\n"
 704                  "BNE     loc_FFD0C7DC\n"
 705                  "LDR     R3, =0x1C740\n"
 706                  "MOV     R2, #0xBB0\n"
 707                  "LDR     R0, [R3]\n"
 708                  "MOV     R1, #2\n"
 709                  "ADD     R2, R2, #8\n"
 710                  "BL      sub_FFE822D4\n"
 711                  "TST     R0, #1\n"
 712                  "BEQ     loc_FFD0C7DC\n"
 713                  "MOV     R1, #0x460\n"
 714                  "LDR     R0, =0xFFD0B214\n"
 715                  "ADD     R1, R1, #2\n"
 716                  "BL      sub_FFE8FB40\n"
 717  "loc_FFD0C7DC:\n"
 718                  "CMP     R5, #1\n"
 719                  "LDMNEFD SP!, {R4-R6,PC}\n"
 720                  "LDR     R3, =0x1C740\n"
 721                  "MOV     R2, #0xBB0\n"
 722                  "LDR     R0, [R3]\n"
 723                  "MOV     R1, #0x20\n"
 724                  "ADD     R2, R2, #8\n"
 725                  "BL      sub_FFE822D4\n"
 726                  "TST     R0, #1\n"
 727                  "LDMEQFD SP!, {R4-R6,PC}\n"
 728                  "MOV     R1, #0x460\n"
 729                  "LDR     R0, =0xFFD0B214\n"
 730                  "ADD     R1, R1, #7\n"
 731                  "LDMFD   SP!, {R4-R6,LR}\n"
 732                  "B       sub_FFE8FB40\n"
 733  );
 734 }
 735 
 736 
 737 void __attribute__((naked,noinline)) sub_FFCD8480_my(){
 738  asm volatile(
 739                  "STMFD   SP!, {R4,LR}\n"
 740                  "LDR     R3, =0x5884\n"
 741                  "LDR     R2, [R3]\n"
 742                  "MOV     R1, #0x168\n"
 743                  "MOV     R3, R0,LSL#16\n"
 744                  "CMP     R2, #1\n"
 745                  "ADD     R1, R1, #3\n"
 746                  "LDR     R0, =0xFFCD7C9C\n"
 747                  "MOV     R4, R3,ASR#16\n"
 748                  "BEQ     loc_FFCD84AC\n"
 749                  "BL      sub_FFE8FB40\n"
 750  "loc_FFCD84AC:\n"
 751                  "MOV     R1, #0x170\n"
 752                  "CMN     R4, #0xC00\n"
 753                  "LDR     R3, =0x10356\n"
 754                  "LDR     R0, =0xFFCD7C9C\n"
 755                  "ADD     R1, R1, #1\n"
 756                  "LDREQSH R4, [R3]\n"
 757                  "LDRNE   R3, =0x10356\n"
 758                  "CMN     R4, #0xC00\n"
 759                  "STRH    R4, [R3]\n"
 760                  "BNE     loc_FFCD84D8\n"
 761                  "BL      sub_FFE8FB40\n"
 762  "loc_FFCD84D8:\n"
 763                  "MOV     R0, R4\n"
 764              //  "BL      sub_FFCD95D0\n"  // -
 765                  "BL      apex2us\n"       // +
 766                  "MOV     R4, R0\n"
 767                  "BL      sub_FFD5AB78\n"
 768                  "MOV     R0, R4\n"
 769                  "BL      sub_FFD6FF2C\n"
 770                  "MOV     R1, #0x174\n"
 771                  "TST     R0, #1\n"
 772                  "ADD     R1, R1, #2\n"
 773                  "LDR     R0, =0xFFCD7C9C\n"
 774                  "LDMEQFD SP!, {R4,PC}\n"
 775                  "LDMFD   SP!, {R4,LR}\n"
 776                  "B       sub_FFE8FB40\n"
 777  );
 778 }
 779 

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