root/platform/sx110is/sub/100b/capt_seq.c

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

DEFINITIONS

This source file includes following definitions.
  1. capt_seq_task
  2. sub_FFC4FD38_my
  3. sub_FFD1B560_my
  4. exp_drv_task
  5. sub_FFC8989C_my
  6. sub_FFC76194_my

   1 
   2 #include "lolevel.h"
   3 #include "platform.h"
   4 #include "core.h"
   5 #include "conf.h"
   6 
   7 //JS
   8 //found at 0xFFD1B5D0
   9 static long *nrflag = (long*)0x8C64;
  10 
  11 #include "../../../generic/capt_seq.c"
  12 
  13 void __attribute__((naked,noinline)) capt_seq_task() {
  14  asm volatile (
  15                         "STMFD  SP!, {R3-R7,LR}\n"
  16                         "LDR    R6, =0x5368\n"
  17                                 
  18                 "loc_FFC503B8:\n"               
  19                         "LDR    R0, [R6,#0x10]\n"
  20                         "MOV    R2, #0\n"
  21                         "MOV    R1, SP\n"
  22                         "BL     sub_FFC16FF0\n"
  23                         "TST    R0, #1\n"
  24                         "BEQ    loc_FFC503E4\n"
  25                         "LDR    R1, =0x539\n"
  26                         "LDR    R0, =0xFFC4FC88\n"
  27                         "BL     sub_FFC0BD98\n"                 //DebugAssert
  28                         "BL     sub_ffc0bb50 \n"                //eventproc_export_ExitTask
  29                         "LDMFD  SP!, {R3-R7,PC}\n"
  30                                 
  31                 "loc_FFC503E4:\n"               
  32                         "LDR    R0, [SP,#0x18-0x18]\n"
  33                         "LDR    R1, [R0]\n"
  34                         "CMP    R1, #0x22\n"
  35                         "ADDLS  PC, PC, R1,LSL#2\n"
  36                         "B      loc_FFC505EC\n"
  37                                 
  38                 "loc_FFC503F8:\n"               
  39                         "B      loc_FFC50484\n"
  40                                 
  41                 "loc_FFC503FC:\n"               
  42                         "B      loc_FFC5048C\n"
  43                                 
  44                 "loc_FFC50400:\n"               
  45                         "B      loc_FFC50494\n"
  46                                 
  47                 "loc_FFC50404:\n"               
  48                         "B      loc_FFC504A8\n"
  49                                 
  50                 "loc_FFC50408:\n"               
  51                         "B      loc_FFC504A0\n"
  52                                 
  53                 "loc_FFC5040C:\n"               
  54                         "B      loc_FFC504B0\n"
  55                                 
  56                 "loc_FFC50410:\n"               
  57                         "B      loc_FFC504B8\n"
  58                                 
  59                 "loc_FFC50414:\n"               
  60                         "B      loc_FFC504C4\n"
  61                                 
  62                 "loc_FFC50418:\n"               
  63                         "B      loc_FFC5051C\n"
  64                                 
  65                 "loc_FFC5041C:\n"               
  66                         "B      loc_FFC504A8\n"
  67                                 
  68                 "loc_FFC50420:\n"               
  69                         "B      loc_FFC50524\n"
  70                                 
  71                 "loc_FFC50424:\n"               
  72                         "B      loc_FFC50534\n"
  73                                 
  74                 "loc_FFC50428:\n"               
  75                         "B      loc_FFC5053C\n"
  76                                 
  77                 "loc_FFC5042C:\n"               
  78                         "B      loc_FFC50544\n"
  79                                 
  80                 "loc_FFC50430:\n"               
  81                         "B      loc_FFC5054C\n"
  82                                 
  83                 "loc_FFC50434:\n"               
  84                         "B      loc_FFC50554\n"
  85                                 
  86                 "loc_FFC50438:\n"               
  87                         "B      loc_FFC5055C\n"
  88                                 
  89                 "loc_FFC5043C:\n"               
  90                         "B      loc_FFC50564\n"
  91                                 
  92                 "loc_FFC50440:\n"               
  93                         "B      loc_FFC5056C\n"
  94                                 
  95                 "loc_FFC50444:\n"               
  96                         "B      loc_FFC50574\n"
  97                                 
  98                 "loc_FFC50448:\n"               
  99                         "B      loc_FFC5057C\n"
 100                                 
 101                 "loc_FFC5044C:\n"               
 102                         "B      loc_FFC50584\n"
 103                                 
 104                 "loc_FFC50450:\n"               
 105                         "B      loc_FFC5058C\n"
 106                                 
 107                 "loc_FFC50454:\n"               
 108                         "B      loc_FFC50594\n"
 109                                 
 110                 "loc_FFC50458:\n"               
 111                         "B      loc_FFC505A0\n"
 112                                 
 113                 "loc_FFC5045C:\n"               
 114                         "B      loc_FFC505A8\n"
 115                                 
 116                 "loc_FFC50460:\n"               
 117                         "B      loc_FFC505B4\n"
 118                                 
 119                 "loc_FFC50464:\n"               
 120                         "B      loc_FFC505BC\n"
 121                                 
 122                 "loc_FFC50468:\n"               
 123                         "B      loc_FFC505C4\n"
 124                                 
 125                 "loc_FFC5046C:\n"               
 126                         "B      loc_FFC505CC\n"
 127                                 
 128                 "loc_FFC50470:\n"               
 129                         "B      loc_FFC505D4\n"
 130                                 
 131                 "loc_FFC50474:\n"               
 132                         "B      loc_FFC505DC\n"
 133                                 
 134                 "loc_FFC50478:\n"               
 135                         "B      loc_FFC505E4\n"
 136                                 
 137                 "loc_FFC5047C:\n"               
 138                         "B      loc_FFC505F8\n"
 139                                 
 140                 "loc_FFC50480:\n"               
 141                         "B      loc_FFC505F8\n"
 142                                 
 143                 "loc_FFC50484:\n"               
 144                                 
 145                         "BL     sub_FFC50C44\n"
 146                         "BL      shooting_expo_param_override\n"  // ---------------> inserted
 147                         
 148                         "B      loc_FFC504BC\n"
 149                                 
 150                 "loc_FFC5048C:\n"               
 151                                 
 152                         "BL     sub_FFC4FD38_my\n"              //-------> changed
 153                         "B      loc_FFC505F8\n"
 154                                 
 155                 "loc_FFC50494:\n"               
 156                                 
 157                         "MOV    R0, #1\n"
 158                         "BL     sub_FFC50DE0\n"
 159                         "B      loc_FFC505F8\n"
 160                                 
 161                 "loc_FFC504A0:\n"               
 162                                 
 163                         "BL     sub_FFC50928\n"
 164                         "B      loc_FFC505F8\n"
 165                                 
 166                 "loc_FFC504A8:\n"               
 167                                 
 168                         "BL     sub_FFC50C24\n"
 169                         "B      loc_FFC505F8\n"
 170                                 
 171                 "loc_FFC504B0:\n"               
 172                                 
 173                         "BL     sub_FFC50C2C\n"
 174                         "B      loc_FFC505F8\n"
 175                                 
 176                 "loc_FFC504B8:\n"               
 177                                 
 178                         "BL     sub_FFC50D00\n"
 179                                 
 180                 "loc_FFC504BC:\n"               
 181                                 
 182                         "BL     sub_FFC4E33C\n"
 183                         "B      loc_FFC505F8\n"
 184                                 
 185                 "loc_FFC504C4:\n"               
 186                                 
 187                         "LDR    R4, [R0,#0xC]\n"
 188                         "BL     sub_FFC50C34\n"
 189                         "MOV    R0, R4\n"
 190                         "BL     sub_FFD1A490\n"
 191                         "TST    R0, #1\n"
 192                         "MOV    R5, R0\n"
 193                         "BNE    loc_FFC50504\n"
 194                         "BL     sub_FFC5F430\n"
 195                         "STR    R0, [R4,#0x18]\n"
 196                         "MOV    R0, R4\n"
 197                         "BL     sub_FFD1B498\n"
 198                         "MOV    R0, R4\n"
 199                         "BL     sub_FFD1BA7C\n"
 200                         "MOV    R5, R0\n"
 201                         "LDR    R0, [R4,#0x18]\n"
 202                         "BL     sub_FFC5F644\n"
 203                                 
 204                 "loc_FFC50504:\n"               
 205                         "BL     sub_FFC50C24\n"
 206                         "MOV    R2, R4\n"
 207                         "MOV    R1, #9\n"
 208                         "MOV    R0, R5\n"
 209                         "BL     sub_FFC4E718\n"
 210                         "B      loc_FFC505F8\n"
 211                                 
 212                 "loc_FFC5051C:\n"               
 213                                 
 214                         "BL     sub_FFC50D60\n"
 215                         "B      loc_FFC504BC\n"
 216                                 
 217                 "loc_FFC50524:\n"               
 218                                 
 219                         "LDR    R0, =0x1940C\n"
 220                         "LDR    R0, [R0,#0x4C]\n"
 221                         "BL     sub_FFC5130C\n"
 222                         "B      loc_FFC505F8\n"
 223                                 
 224                 "loc_FFC50534:\n"               
 225                                 
 226                         "BL     sub_FFC515B4\n"
 227                         "B      loc_FFC505F8\n"
 228                                 
 229                 "loc_FFC5053C:\n"               
 230                                 
 231                         "BL     sub_FFC51640\n"
 232                         "B      loc_FFC505F8\n"
 233                                 
 234                 "loc_FFC50544:\n"               
 235                                 
 236                         "BL     sub_FFD1A6B4\n"
 237                         "B      loc_FFC505F8\n"
 238                                 
 239                 "loc_FFC5054C:\n"               
 240                                 
 241                         "BL     sub_FFD1A89C\n"
 242                         "B      loc_FFC505F8\n"
 243                                 
 244                 "loc_FFC50554:\n"               
 245                                 
 246                         "BL     sub_FFD1A92C\n"
 247                         "B      loc_FFC505F8\n"
 248                                 
 249                 "loc_FFC5055C:\n"               
 250                                 
 251                         "BL     sub_FFD1A9D4\n"
 252                         "B      loc_FFC505F8\n"
 253                                 
 254                 "loc_FFC50564:\n"               
 255                                 
 256                         "BL     sub_FFD1ABF4\n"
 257                         "B      loc_FFC505F8\n"
 258                                 
 259                 "loc_FFC5056C:\n"               
 260                                 
 261                         "BL     sub_FFD1AC44\n"
 262                         "B      loc_FFC505F8\n"
 263                                 
 264                 "loc_FFC50574:\n"               
 265                                 
 266                         "MOV    R0, #0\n"
 267                         "B      loc_FFC50598\n"
 268                                 
 269                 "loc_FFC5057C:\n"               
 270                                 
 271                         "BL     sub_FFD1AE00\n"
 272                         "B      loc_FFC505F8\n"
 273                                 
 274                 "loc_FFC50584:\n"               
 275                                 
 276                         "BL     sub_FFD1AE94\n"
 277                         "B      loc_FFC505F8\n"
 278                                 
 279                 "loc_FFC5058C:\n"               
 280                                 
 281                         "BL     sub_FFD1AF58\n"
 282                         "B      loc_FFC505F8\n"
 283                                 
 284                 "loc_FFC50594:\n"               
 285                                 
 286                         "MOV    R0, #1\n"
 287                                 
 288                 "loc_FFC50598:\n"               
 289                         "BL     sub_FFD1ACC0\n"
 290                         "B      loc_FFC505F8\n"
 291                                 
 292                 "loc_FFC505A0:\n"               
 293                                 
 294                         "BL     sub_FFC50FA8\n"
 295                         "B      loc_FFC505F8\n"
 296                                 
 297                 "loc_FFC505A8:\n"               
 298                                 
 299                         "BL     sub_FFC50FD4\n"
 300                         "BL     sub_FFC50724\n"
 301                         "B      loc_FFC505F8\n"
 302                                 
 303                 "loc_FFC505B4:\n"               
 304                                 
 305                         "BL     sub_FFD1AAF0\n"
 306                         "B      loc_FFC505F8\n"
 307                                 
 308                 "loc_FFC505BC:\n"               
 309                                 
 310                         "BL     sub_FFD1AB84\n"
 311                         "B      loc_FFC505F8\n"
 312                                 
 313                 "loc_FFC505C4:\n"               
 314                                 
 315                         "BL     sub_FFC4FC18\n"
 316                         "B      loc_FFC505F8\n"
 317                                 
 318                 "loc_FFC505CC:\n"               
 319                                 
 320                         "BL     sub_FFC141F0\n"
 321                         "B      loc_FFC505F8\n"
 322                                 
 323                 "loc_FFC505D4:\n"               
 324                                 
 325                         "BL     sub_FFC52C80\n"
 326                         "B      loc_FFC505F8\n"
 327                                 
 328                 "loc_FFC505DC:\n"               
 329                                 
 330                         "BL     sub_FFC52C9C\n"
 331                         "B      loc_FFC505F8\n"
 332                                 
 333                 "loc_FFC505E4:\n"               
 334                                 
 335                         "BL     sub_FFC52CAC\n"
 336                         "B      loc_FFC505F8\n"
 337                                 
 338                 "loc_FFC505EC:\n"               
 339                                 
 340                         "LDR    R1, =0x65E\n"
 341                         "LDR    R0, =0xFFC4FC88 \n"
 342                         "BL     sub_FFC0BD98\n"                 //DebugAssert
 343                                 
 344                 "loc_FFC505F8:\n"               
 345                                 
 346                         "LDR    R0, [SP,#0x18-0x18]\n"
 347                         "LDR    R1, [R0,#4]\n"
 348                         "LDR    R0, [R6,#0xC]\n"
 349                         "BL     sub_FFC16D60\n"
 350                         "LDR    R4, [SP,#0x18-0x18]\n"
 351                         "LDR    R0, [R4,#8]\n"
 352                         "CMP    R0, #0\n"
 353                         "LDREQ  R1, =0x11D\n"
 354                         "LDREQ  R0, =0xFFC4FC88\n"
 355                         "BLEQ   sub_FFC0BD98\n"                 //DebugAssert
 356                         "MOV    R0, #0\n"
 357                         "STR    R0, [R4,#8]\n"
 358                         "B      loc_FFC503B8\n"
 359  );
 360 } 
 361 //JSE
 362 
 363 
 364 void __attribute__((naked,noinline)) sub_FFC4FD38_my(){ // 
 365  asm volatile(
 366                         "STMFD  SP!, {R3-R7,LR}\n"
 367                         "LDR    R4, [R0,#0xC]\n"
 368                         "LDR    R5, =0x1940C\n"
 369                         "LDR    R0, [R4,#8]\n"
 370                         "ORR    R0, R0, #1\n"
 371                         "STR    R0, [R4,#8]\n"
 372                         "LDRH   R0, [R5,#0x8A]\n"
 373                         "CMP    R0, #3\n"
 374                         "BEQ    loc_FFC4FE08\n"
 375                         "LDR    R0, [R4,#0xC]\n"
 376                         "CMP    R0, #1\n"
 377                         "BLS    loc_FFC4FDB8\n"
 378                         "LDRH   R0, [R5,#0x88]\n"
 379                         "CMP    R0, #0\n"
 380                         "BNE    loc_FFC4FE08\n"
 381                         "LDRH   R0, [R5,#0x84]\n"
 382                         "CMP    R0, #2\n"
 383                         "BNE    loc_FFC4FDC4\n"
 384                         "BL     sub_FFC51094\n"
 385                         "LDRH   R0, [R5,#0x8A]\n"
 386                         "CMP    R0, #3\n"
 387                         "BEQ    loc_FFC4FE08\n"
 388                         "LDR    R0, [R4,#0xC]\n"
 389                         "CMP    R0, #1\n"
 390                         "BLS    loc_FFC4FDB8\n"
 391                         "LDRH   R0, [R5,#0x88]\n"
 392                         "CMP    R0, #0\n"
 393                         "BNE    loc_FFC4FE08\n"
 394                         "LDRH   R0, [R5,#0x84]\n"
 395                         "CMP    R0, #2\n"
 396                         "BEQ    loc_FFC4FDE8\n"
 397                         "B      loc_FFC4FDC4\n"
 398                                 
 399                 "loc_FFC4FDB8:\n"               
 400                                 
 401                         "LDRH   R0, [R5,#0x88]\n"
 402                         "CMP    R0, #0\n"
 403                         "BNE    loc_FFC4FE08\n"
 404                                 
 405                 "loc_FFC4FDC4:\n"               
 406                                 
 407                         "LDRH   R0, [R5,#0x84]\n"
 408                         "CMP    R0, #1\n"
 409                         "BNE    loc_FFC4FE08\n"
 410                         "LDR    R0, [R4,#0xC]\n"
 411                         "CMP    R0, #1\n"
 412                         "BLS    loc_FFC4FE08\n"
 413                         "LDR    R0, [R4,#0x10]\n"
 414                         "CMP    R0, #1\n"
 415                         "BNE    loc_FFC4FE08\n"
 416                                 
 417                 "loc_FFC4FDE8:\n"               
 418                         "LDR    R3, =0x24D\n"
 419                         "LDR    R0, =0x5368\n"
 420                         "STR    R3, [SP,#0x18-0x18]\n"
 421                         "LDR    R0, [R0,#0xC]\n"
 422                         "LDR    R2, =0xEA60\n"
 423                         "LDR    R3, =0xFFC4FC88 \n"
 424                         "MOV    R1, #0x40000000\n"
 425                         "BL     sub_FFC5454C\n"
 426                                 
 427                 "loc_FFC4FE08:\n"               
 428                                 
 429                         "BL     sub_FFC4FC18\n"
 430                         "MOV    R0, #2\n"
 431                         "BL     sub_FFC4B0D8\n"
 432                         "BL     sub_FFC50C34\n"
 433                         "MOV    R0, R4\n"
 434                         "BL     sub_FFC50F1C\n"
 435                         "MOV    R0, R4\n"
 436                         "BL     sub_FFD1A098\n"
 437                         "CMP    R0, #0\n"
 438                         "MOV    R0, R4\n"
 439                         "BEQ    loc_FFC4FE50\n"
 440                         "BL     sub_FFD1A1B0\n"
 441                         "TST    R0, #1\n"
 442                         "MOVNE  R2, R4\n"
 443                         "LDMNEFD        SP!, {R3-R7,LR}\n"
 444                         "MOVNE  R1, #1\n"
 445                         "BNE    sub_FFC4E718\n"
 446                         "B      loc_FFC4FE54\n"
 447                                 
 448                 "loc_FFC4FE50:\n"               
 449                         "BL     sub_FFD1A120\n"
 450                                 
 451                 "loc_FFC4FE54:\n"               
 452                         "MOV    R0, #0\n"
 453                         "STR    R0, [SP,#0x18-0x18]\n"
 454                         "LDRH   R0, [R5,#0x8A]\n"
 455                         "MOV    R2, #2\n"
 456                         "MOV    R1, SP\n"
 457                         "CMP    R0, #3\n"
 458                         "LDRNE  R0, [R4,#0xC]\n"
 459                         "CMPNE  R0, #1\n"
 460                         "MOVHI  R0, #1\n"
 461                         "STRHI  R0, [SP,#0x18-0x18]\n"
 462                         "LDR    R0, =0x123\n"
 463                         "BL     sub_FFC5F198  \n"               //PT_GetPropertyCaseString
 464                         "BL     sub_FFD38E3C\n"
 465                         "BL     sub_FFC5F430\n"
 466                         "STR    R0, [R4,#0x18]\n"
 467                         "MOV    R0, R4\n"
 468                         "BL     sub_FFD1B498\n"
 469                         "BL     sub_FFD1C114\n"
 470                         "MOV    R0, R4\n"
 471                         "BL     sub_FFD1B560_my\n"      //---------------> changed
 472                         "MOV    R6, R0\n"
 473                         "BL             capt_seq_hook_raw_here\n"  //   ----------> added
 474                         "BL     sub_FFC52C9C\n"
 475                         "BL     sub_FFC52CD8\n"
 476                         "MOV    R2, R4\n"
 477                         "MOV    R1, #1\n"
 478                         "MOV    R0, R6\n"
 479                         "BL     sub_FFC4E718\n"
 480                         "BL     sub_FFD1BA0C\n"
 481                         "CMP    R0, #0\n"
 482                         "LDRNE  R0, [R4,#8]\n"
 483                         "ORRNE  R0, R0, #0x2000\n"
 484                         "STRNE  R0, [R4,#8]\n"
 485                         "LDRH   R0, [R5,#0x8A]\n"
 486                         "CMP    R0, #3\n"
 487                         "BEQ    locret_FFC4FEFC\n"
 488                         "LDRH   R0, [R5,#0x88]\n"
 489                         "CMP    R0, #0\n"
 490                         "LDREQH         R0, [R5,#0x84]\n"
 491                         "CMPEQ  R0, #2\n"
 492                         "MOVEQ  R0, R4\n"
 493                         "LDMEQFD        SP!, {R3-R7,LR}\n"
 494                         "BEQ    sub_FFC510E8\n"
 495                                 
 496                 "locret_FFC4FEFC:\n"            
 497                         "LDMFD  SP!, {R3-R7,PC}\n"
 498  );
 499 }
 500 
 501 
 502 
 503 void __attribute__((naked,noinline)) sub_FFD1B560_my(){ // 
 504  asm volatile(
 505                 "STMFD  SP!, {R1-R9,LR}\n"
 506                 "MOV    R4, R0\n"
 507                 "BL     sub_FFD1C274\n"
 508                 "MOV    R1, #0xFFFFFFFF\n"
 509                 "BL     sub_FFC16D94\n"
 510                 "MOV    R2, #4\n"
 511                 "ADD    R1, SP, #0x28-0x24\n"
 512                 "MOV    R0, #0x8A\n"
 513                 "BL     sub_FFC5F2A0 \n"                        //PT_GetPropertyCaseString_0
 514                 "TST    R0, #1\n"
 515                 "MOVNE  R1, #0x360\n"
 516                 "LDRNE  R0, =0xFFD1B71C\n"
 517                 "BLNE   sub_FFC0BD98\n"         //DebugAssert
 518                 "LDR    R7, =0x194C4\n"
 519                 "LDR    R6, =0x1940C\n"
 520                 "LDRSH  R1, [R7,#0xE]\n"
 521                 "LDR    R0, [R6,#0x80]\n"
 522                 "BL     sub_FFCE495C\n"
 523                 "BL     sub_FFC387EC\n"                 //GetCCDTemperature
 524                 "LDR    R3, =0x8C68\n"
 525                 "STRH   R0, [R4,#0x94]\n"
 526                 "STR    R3, [SP,#0x28-0x28]\n"
 527                 "MOV    R1, R0\n"
 528                 "LDRH   R0, [R6,#0x54]\n"
 529                 "LDRSH  R2, [R7,#0xC]\n"
 530                 "SUB    R3, R3, #4\n"
 531                 "BL     sub_FFD1C86C\n"
 532                 "BL     wait_until_remote_button_is_released\n" //---------> changed
 533                 "BL     capt_seq_hook_set_nr\n"                     // -------> inserted
 534                 "B              sub_FFD1B5CC\n"                             // continue function in firmware
 535  );
 536 }
 537 
 538 //** exp_drv_task  @ 0xFFC8BDDC 
 539 
 540 void __attribute__((naked,noinline)) exp_drv_task(  ) { 
 541 asm volatile ( 
 542       "STMFD   SP!, {R4-R8,LR} \n"
 543       "SUB     SP, SP, #0x20 \n"
 544       "LDR     R8, =0xBB8 \n"
 545       "LDR     R7, =0x685C \n"
 546       "LDR     R5, =0x1E4C4 \n"
 547       "MOV     R0, #0 \n"
 548       "ADD     R6, SP, #0x10 \n"
 549       "STR     R0, [SP, #0xC] \n"
 550 "loc_FFC8BDFC:\n"
 551       "LDR     R0, [R7, #0x20] \n"
 552       "MOV     R2, #0 \n"
 553       "ADD     R1, SP, #0x1C \n"
 554       "BL      sub_FFC16FF0 \n"
 555       "LDR     R0, [SP, #0xC] \n"
 556       "CMP     R0, #1 \n"
 557       "BNE     loc_FFC8BE44 \n"
 558       "LDR     R0, [SP, #0x1C] \n"
 559       "LDR     R0, [R0] \n"
 560       "CMP     R0, #0x13 \n"
 561       "CMPNE   R0, #0x14 \n"
 562       "CMPNE   R0, #0x15 \n"
 563       "BEQ     loc_FFC8BF60 \n"
 564       "CMP     R0, #0x27 \n"
 565       "BEQ     loc_FFC8BF38 \n"
 566       "ADD     R1, SP, #0xC \n"
 567       "MOV     R0, #0 \n"
 568       "BL      sub_FFC8BD8C \n"
 569 "loc_FFC8BE44:\n"
 570       "LDR     R0, [SP, #0x1C] \n"
 571       "LDR     R1, [R0] \n"
 572       "CMP     R1, #0x2C \n"
 573       "BNE     loc_FFC8BE74 \n"
 574       "LDR     R0, [SP, #0x1C] \n"
 575       "BL      sub_FFC8D044 \n"
 576       "LDR     R0, [R7, #0x1C] \n"
 577       "MOV     R1, #1 \n"
 578       "BL      sub_FFC16D60 \n"
 579       "BL      sub_FFC0BB50 \n"
 580       "ADD     SP, SP, #0x20 \n"
 581       "LDMFD   SP!, {R4-R8,PC} \n"
 582 "loc_FFC8BE74:\n"
 583       "CMP     R1, #0x2B \n"
 584       "BNE     loc_FFC8BE90 \n"
 585       "LDR     R2, [R0, #0x88]! \n"
 586       "LDR     R1, [R0, #4] \n"
 587       "MOV     R0, R1 \n"
 588       "BLX     R2 \n"
 589       "B       loc_FFC8C3C8 \n"
 590 "loc_FFC8BE90:\n"
 591       "CMP     R1, #0x25 \n"
 592       "BNE     loc_FFC8BEE0 \n"
 593       "LDR     R0, [R7, #0x1C] \n"
 594       "MOV     R1, #0x80 \n"
 595       "BL      sub_FFC16D94 \n"
 596       "LDR     R0, =0xFFC88860 \n"
 597       "MOV     R1, #0x80 \n"
 598       "BL      sub_FFD0E5C4 \n"
 599       "LDR     R0, [R7, #0x1C] \n"
 600       "MOV     R2, R8 \n"
 601       "MOV     R1, #0x80 \n"
 602       "BL      sub_FFC16CA0 \n"
 603       "TST     R0, #1 \n"
 604       "LDRNE   R1, =0xD36 \n"
 605       "BNE     loc_FFC8BF24 \n"
 606 "loc_FFC8BECC:\n"
 607       "LDR     R1, [SP, #0x1C] \n"
 608       "LDR     R0, [R1, #0x8C] \n"
 609       "LDR     R1, [R1, #0x88] \n"
 610       "BLX     R1 \n"
 611       "B       loc_FFC8C3C8 \n"
 612 "loc_FFC8BEE0:\n"
 613       "CMP     R1, #0x26 \n"
 614       "BNE     loc_FFC8BF30 \n"
 615       "ADD     R1, SP, #0xC \n"
 616       "BL      sub_FFC8BD8C \n"
 617       "LDR     R0, [R7, #0x1C] \n"
 618       "MOV     R1, #0x100 \n"
 619       "BL      sub_FFC16D94 \n"
 620       "LDR     R0, =0xFFC88870 \n"
 621       "MOV     R1, #0x100 \n"
 622       "BL      sub_FFD0EF34 \n"
 623       "LDR     R0, [R7, #0x1C] \n"
 624       "MOV     R2, R8 \n"
 625       "MOV     R1, #0x100 \n"
 626       "BL      sub_FFC16CA0 \n"
 627       "TST     R0, #1 \n"
 628       "BEQ     loc_FFC8BECC \n"
 629       "MOV     R1, #0xD40 \n"
 630 "loc_FFC8BF24:\n"
 631       "LDR     R0, =0xFFC88F60 \n"
 632       "BL      sub_FFC0BD98 \n"
 633       "B       loc_FFC8BECC \n"
 634 "loc_FFC8BF30:\n"
 635       "CMP     R1, #0x27 \n"
 636       "BNE     loc_FFC8BF48 \n"
 637 "loc_FFC8BF38:\n"
 638       "LDR     R0, [SP, #0x1C] \n"
 639       "ADD     R1, SP, #0xC \n"
 640       "BL      sub_FFC8BD8C \n"
 641       "B       loc_FFC8BECC \n"
 642 "loc_FFC8BF48:\n"
 643       "CMP     R1, #0x2A \n"
 644       "BNE     loc_FFC8BF60 \n"
 645       "BL      sub_FFC76424 \n"
 646       "BL      sub_FFC770B0 \n"
 647       "BL      sub_FFC76BE8 \n"
 648       "B       loc_FFC8BECC \n"
 649 "loc_FFC8BF60:\n"
 650       "LDR     R0, [SP, #0x1C] \n"
 651       "MOV     R4, #1 \n"
 652       "LDR     R1, [R0] \n"
 653       "CMP     R1, #0x11 \n"
 654       "CMPNE   R1, #0x12 \n"
 655       "BNE     loc_FFC8BFD0 \n"
 656       "LDR     R1, [R0, #0x7C] \n"
 657       "ADD     R1, R1, R1, LSL #1 \n"
 658       "ADD     R1, R0, R1, LSL #2 \n"
 659       "SUB     R1, R1, #8 \n"
 660       "LDMIA   R1, {R2-R4} \n"
 661       "STMIA   R6, {R2-R4} \n"
 662       "BL      sub_FFC8A908 \n"
 663       "LDR     R0, [SP, #0x1C] \n"
 664       "LDR     R1, [R0, #0x7C] \n"
 665       "LDR     R3, [R0, #0x88] \n"
 666       "LDR     R2, [R0, #0x8C] \n"
 667       "ADD     R0, R0, #4 \n"
 668       "BLX     R3 \n"
 669       "LDR     R0, [SP, #0x1C] \n"
 670       "BL      sub_FFC8D41C \n"
 671       "LDR     R0, [SP, #0x1C] \n"
 672       "LDR     R1, [R0, #0x7C] \n"
 673       "LDR     R3, [R0, #0x90] \n"
 674       "LDR     R2, [R0, #0x94] \n"
 675       "ADD     R0, R0, #4 \n"
 676       "BLX     R3 \n"
 677       "B       loc_FFC8C308 \n"
 678 "loc_FFC8BFD0:\n"
 679       "CMP     R1, #0x13 \n"
 680       "CMPNE   R1, #0x14 \n"
 681       "CMPNE   R1, #0x15 \n"
 682       "BNE     loc_FFC8C084 \n"
 683       "ADD     R3, SP, #0xC \n"
 684       "MOV     R2, SP \n"
 685       "ADD     R1, SP, #0x10 \n"
 686       "BL      sub_FFC8AB50 \n"
 687       "CMP     R0, #1 \n"
 688       "MOV     R4, R0 \n"
 689       "CMPNE   R4, #5 \n"
 690       "BNE     loc_FFC8C020 \n"
 691       "LDR     R0, [SP, #0x1C] \n"
 692       "MOV     R2, R4 \n"
 693       "LDR     R1, [R0, #0x7C]! \n"
 694       "LDR     R12, [R0, #0xC]! \n"
 695       "LDR     R3, [R0, #4] \n"
 696       "MOV     R0, SP \n"
 697       "BLX     R12 \n"
 698       "B       loc_FFC8C058 \n"
 699 "loc_FFC8C020:\n"
 700       "LDR     R0, [SP, #0x1C] \n"
 701       "CMP     R4, #2 \n"
 702       "LDR     R3, [R0, #0x8C] \n"
 703       "CMPNE   R4, #6 \n"
 704       "BNE     loc_FFC8C06C \n"
 705       "LDR     R12, [R0, #0x88] \n"
 706       "MOV     R0, SP \n"
 707       "MOV     R2, R4 \n"
 708       "MOV     R1, #1 \n"
 709       "BLX     R12 \n"
 710       "LDR     R0, [SP, #0x1C] \n"
 711       "MOV     R2, SP \n"
 712       "ADD     R1, SP, #0x10 \n"
 713       "BL      sub_FFC8BAD8 \n"
 714 "loc_FFC8C058:\n"
 715       "LDR     R0, [SP, #0x1C] \n"
 716       "LDR     R2, [SP, #0xC] \n"
 717       "MOV     R1, R4 \n"
 718       "BL      sub_FFC8BD2C \n"
 719       "B       loc_FFC8C308 \n"
 720 "loc_FFC8C06C:\n"
 721       "LDR     R1, [R0, #0x7C] \n"
 722       "LDR     R12, [R0, #0x88] \n"
 723       "ADD     R0, R0, #4 \n"
 724       "MOV     R2, R4 \n"
 725       "BLX     R12 \n"
 726       "B       loc_FFC8C308 \n"
 727 "loc_FFC8C084:\n"
 728       "CMP     R1, #0x21 \n"
 729       "CMPNE   R1, #0x22 \n"
 730       "BNE     loc_FFC8C0D0 \n"
 731       "LDR     R1, [R0, #0x7C] \n"
 732       "ADD     R1, R1, R1, LSL #1 \n"
 733       "ADD     R1, R0, R1, LSL #2 \n"
 734       "SUB     R1, R1, #8 \n"
 735       "LDMIA   R1, {R2-R4} \n"
 736       "STMIA   R6, {R2-R4} \n"
 737       "BL      sub_FFC89E88 \n"
 738       "LDR     R0, [SP, #0x1C] \n"
 739       "LDR     R1, [R0, #0x7C] \n"
 740       "LDR     R3, [R0, #0x88] \n"
 741       "LDR     R2, [R0, #0x8C] \n"
 742       "ADD     R0, R0, #4 \n"
 743       "BLX     R3 \n"
 744       "LDR     R0, [SP, #0x1C] \n"
 745       "BL      sub_FFC8A184 \n"
 746       "B       loc_FFC8C308 \n"
 747 "loc_FFC8C0D0:\n"
 748       "ADD     R1, R0, #4 \n"
 749       "LDMIA   R1, {R2,R3,R12} \n"
 750       "STMIA   R6, {R2,R3,R12} \n"
 751       "LDR     R1, [R0] \n"
 752       "CMP     R1, #0x24 \n"
 753       "ADDLS   PC, PC, R1, LSL #2 \n"
 754       "B       loc_FFC8C2E8 \n"
 755       "B       loc_FFC8C180 \n"
 756       "B       loc_FFC8C180 \n"
 757       "B       loc_FFC8C188 \n"
 758       "B       loc_FFC8C190 \n"
 759       "B       loc_FFC8C190 \n"
 760       "B       loc_FFC8C190 \n"
 761       "B       loc_FFC8C180 \n"
 762       "B       loc_FFC8C188 \n"
 763       "B       loc_FFC8C190 \n"
 764       "B       loc_FFC8C190 \n"
 765       "B       loc_FFC8C1F0 \n"
 766       "B       loc_FFC8C1F0 \n"
 767       "B       loc_FFC8C2DC \n"
 768       "B       loc_FFC8C2E4 \n"
 769       "B       loc_FFC8C2E4 \n"
 770       "B       loc_FFC8C2E4 \n"
 771       "B       loc_FFC8C2E4 \n"
 772       "B       loc_FFC8C2E8 \n"
 773       "B       loc_FFC8C2E8 \n"
 774       "B       loc_FFC8C2E8 \n"
 775       "B       loc_FFC8C2E8 \n"
 776       "B       loc_FFC8C2E8 \n"
 777       "B       loc_FFC8C198 \n"
 778       "B       loc_FFC8C1A0 \n"
 779       "B       loc_FFC8C1A0 \n"
 780       "B       loc_FFC8C1FC \n"
 781       "B       loc_FFC8C1FC \n"
 782       "B       loc_FFC8C204 \n"
 783       "B       loc_FFC8C234 \n"
 784       "B       loc_FFC8C264 \n"
 785       "B       loc_FFC8C294 \n"
 786       "B       loc_FFC8C2C4 \n"
 787       "B       loc_FFC8C2C4 \n"
 788       "B       loc_FFC8C2E8 \n"
 789       "B       loc_FFC8C2E8 \n"
 790       "B       loc_FFC8C2CC \n"
 791       "B       loc_FFC8C2D4 \n"
 792 "loc_FFC8C180:\n"
 793       "BL      sub_FFC88D4C \n"
 794       "B       loc_FFC8C2E8 \n"
 795 "loc_FFC8C188:\n"
 796       "BL      sub_FFC88FD4 \n"
 797       "B       loc_FFC8C2E8 \n"
 798 "loc_FFC8C190:\n"
 799       "BL      sub_FFC891D8 \n"
 800       "B       loc_FFC8C2E8 \n"
 801 "loc_FFC8C198:\n"
 802       "BL      sub_FFC89440 \n"
 803       "B       loc_FFC8C2E8 \n"
 804 "loc_FFC8C1A0:\n"
 805       "BL      sub_FFC89634 \n"
 806       "B       loc_FFC8C2E8 \n"
 807 
 808 "loc_FFC8C1F0:\n"
 809 //      "BL      sub_FFC8989C \n" //original
 810      "BL      sub_FFC8989C_my \n" //patched
 811      "MOV     R4, #0 \n"
 812       "B       loc_FFC8C2E8 \n"
 813 "loc_FFC8C1FC:\n"
 814       "BL      sub_FFC899D8 \n"
 815       "B       loc_FFC8C2E8 \n"
 816 "loc_FFC8C204:\n"
 817       "LDRH    R1, [R0, #4] \n"
 818       "STRH    R1, [SP, #0x10] \n"
 819       "LDRH    R1, [R5, #2] \n"
 820       "STRH    R1, [SP, #0x12] \n"
 821       "LDRH    R1, [R5, #4] \n"
 822       "STRH    R1, [SP, #0x14] \n"
 823       "LDRH    R1, [R5, #6] \n"
 824       "STRH    R1, [SP, #0x16] \n"
 825       "LDRH    R1, [R0, #0xC] \n"
 826       "STRH    R1, [SP, #0x18] \n"
 827       "BL      sub_FFC8D0B8 \n"
 828       "B       loc_FFC8C2E8 \n"
 829 "loc_FFC8C234:\n"
 830       "LDRH    R1, [R0, #4] \n"
 831       "STRH    R1, [SP, #0x10] \n"
 832       "LDRH    R1, [R5, #2] \n"
 833       "STRH    R1, [SP, #0x12] \n"
 834       "LDRH    R1, [R5, #4] \n"
 835       "STRH    R1, [SP, #0x14] \n"
 836       "LDRH    R1, [R5, #6] \n"
 837       "STRH    R1, [SP, #0x16] \n"
 838       "LDRH    R1, [R5, #8] \n"
 839       "STRH    R1, [SP, #0x18] \n"
 840       "BL      sub_FFC8D238 \n"
 841       "B       loc_FFC8C2E8 \n"
 842 "loc_FFC8C264:\n"
 843       "LDRH    R1, [R5] \n"
 844       "STRH    R1, [SP, #0x10] \n"
 845       "LDRH    R1, [R0, #6] \n"
 846       "STRH    R1, [SP, #0x12] \n"
 847       "LDRH    R1, [R5, #4] \n"
 848       "STRH    R1, [SP, #0x14] \n"
 849       "LDRH    R1, [R5, #6] \n"
 850       "STRH    R1, [SP, #0x16] \n"
 851       "LDRH    R1, [R5, #8] \n"
 852       "STRH    R1, [SP, #0x18] \n"
 853       "BL      sub_FFC8D2E4 \n"
 854       "B       loc_FFC8C2E8 \n"
 855 "loc_FFC8C294:\n"
 856       "LDRH    R1, [R5] \n"
 857       "STRH    R1, [SP, #0x10] \n"
 858       "LDRH    R1, [R5, #2] \n"
 859       "STRH    R1, [SP, #0x12] \n"
 860       "LDRH    R1, [R5, #4] \n"
 861       "STRH    R1, [SP, #0x14] \n"
 862       "LDRH    R1, [R5, #6] \n"
 863       "STRH    R1, [SP, #0x16] \n"
 864       "LDRH    R1, [R0, #0xC] \n"
 865       "STRH    R1, [SP, #0x18] \n"
 866       "BL      sub_FFC8D384 \n"
 867       "B       loc_FFC8C2E8 \n"
 868 "loc_FFC8C2C4:\n"
 869       "BL      sub_FFC89C4C \n"
 870       "B       loc_FFC8C2E8 \n"
 871 "loc_FFC8C2CC:\n"
 872       "BL      sub_FFC8A288 \n"
 873       "B       loc_FFC8C2E8 \n"
 874 "loc_FFC8C2D4:\n"
 875       "BL      sub_FFC8A4C0 \n"
 876       "B       loc_FFC8C2E8 \n"
 877 "loc_FFC8C2DC:\n"
 878       "BL      sub_FFC8A638 \n"
 879       "B       loc_FFC8C2E8 \n"
 880 "loc_FFC8C2E4:\n"
 881       "BL      sub_FFC8A7D0 \n"
 882 "loc_FFC8C2E8:\n"
 883       "LDR     R0, [SP, #0x1C] \n"
 884       "LDR     R1, [R0, #0x7C] \n"
 885       "LDR     R3, [R0, #0x88] \n"
 886       "LDR     R2, [R0, #0x8C] \n"
 887       "ADD     R0, R0, #4 \n"
 888       "BLX     R3 \n"
 889       "CMP     R4, #1 \n"
 890       "BNE     loc_FFC8C350 \n"
 891 "loc_FFC8C308:\n"
 892       "LDR     R0, [SP, #0x1C] \n"
 893       "MOV     R2, #0xC \n"
 894       "LDR     R1, [R0, #0x7C] \n"
 895       "ADD     R1, R1, R1, LSL #1 \n"
 896       "ADD     R0, R0, R1, LSL #2 \n"
 897       "SUB     R4, R0, #8 \n"
 898       "LDR     R0, =0x1E4C4 \n"
 899       "ADD     R1, SP, #0x10 \n"
 900       "BL      sub_FFE8EEF8 \n"
 901       "LDR     R0, =0x1E4D0 \n"
 902       "MOV     R2, #0xC \n"
 903       "ADD     R1, SP, #0x10 \n"
 904       "BL      sub_FFE8EEF8 \n"
 905       "LDR     R0, =0x1E4DC \n"
 906       "MOV     R2, #0xC \n"
 907       "MOV     R1, R4 \n"
 908       "BL      sub_FFE8EEF8 \n"
 909       "B       loc_FFC8C3C8 \n"
 910 "loc_FFC8C350:\n"
 911       "LDR     R0, [SP, #0x1C] \n"
 912       "LDR     R0, [R0] \n"
 913       "CMP     R0, #0xB \n"
 914       "BNE     loc_FFC8C398 \n"
 915       "MOV     R3, #0 \n"
 916       "STR     R3, [SP] \n"
 917       "MOV     R3, #1 \n"
 918       "MOV     R2, #1 \n"
 919       "MOV     R1, #1 \n"
 920       "MOV     R0, #0 \n"
 921       "BL      sub_FFC88B54 \n"
 922       "MOV     R3, #0 \n"
 923       "STR     R3, [SP] \n"
 924       "MOV     R3, #1 \n"
 925       "MOV     R2, #1 \n"
 926       "MOV     R1, #1 \n"
 927       "MOV     R0, #0 \n"
 928       "B       loc_FFC8C3C4 \n"
 929 "loc_FFC8C398:\n"
 930       "MOV     R3, #1 \n"
 931       "MOV     R2, #1 \n"
 932       "MOV     R1, #1 \n"
 933       "MOV     R0, #1 \n"
 934       "STR     R3, [SP] \n"
 935       "BL      sub_FFC88B54 \n"
 936       "MOV     R3, #1 \n"
 937       "MOV     R2, #1 \n"
 938       "MOV     R1, #1 \n"
 939       "MOV     R0, #1 \n"
 940       "STR     R3, [SP] \n"
 941 "loc_FFC8C3C4:\n"
 942       "BL      sub_FFC88C94 \n"
 943 "loc_FFC8C3C8:\n"
 944       "LDR     R0, [SP, #0x1C] \n"
 945       "BL      sub_FFC8D044 \n"
 946       "B       loc_FFC8BDFC \n"
 947         );
 948 }
 949 
 950 //** sub_FFC8989C_my  @ 0xFFC8989C
 951 
 952 void __attribute__((naked,noinline)) sub_FFC8989C_my() {
 953 asm volatile (
 954       "STMFD   SP!, {R4-R8,LR} \n"
 955       "LDR     R7, =0x685C \n"
 956       "MOV     R4, R0 \n"
 957       "LDR     R0, [R7, #0x1C] \n"
 958       "MOV     R1, #0x3E \n"
 959       "BL      sub_FFC16D94 \n"
 960       "LDRSH   R0, [R4, #4] \n"
 961       "MOV     R2, #0 \n"
 962       "MOV     R1, #0 \n"
 963       "BL      sub_FFC888E4 \n"
 964       "MOV     R6, R0 \n"
 965       "LDRSH   R0, [R4, #6] \n"
 966       "BL      sub_FFC889F4 \n"
 967       "LDRSH   R0, [R4, #8] \n"
 968       "BL      sub_FFC88A4C \n"
 969       "LDRSH   R0, [R4, #0xA] \n"
 970       "BL      sub_FFC88AA4 \n"
 971       "LDRSH   R0, [R4, #0xC] \n"
 972       "BL      sub_FFC88AFC \n"
 973       "MOV     R5, R0 \n"
 974       "LDR     R0, [R4] \n"
 975       "LDR     R8, =0x1E4DC \n"
 976       "CMP     R0, #0xB \n"
 977       "MOVEQ   R6, #0 \n"
 978       "MOVEQ   R5, #0 \n"
 979       "BEQ     loc_FFC8992C \n"
 980       "CMP     R6, #1 \n"
 981       "BNE     loc_FFC8992C \n"
 982       "LDRSH   R0, [R4, #4] \n"
 983       "LDR     R1, =0xFFC88850 \n"
 984       "MOV     R2, #2 \n"
 985       "BL      sub_FFD0E8F0 \n"
 986       "STRH    R0, [R4, #4] \n"
 987       "MOV     R0, #0 \n"
 988       "STR     R0, [R7, #0x28] \n"
 989       "B       loc_FFC89934 \n"
 990 "loc_FFC8992C:\n"
 991       "LDRH    R0, [R8] \n"
 992       "STRH    R0, [R4, #4] \n"
 993 "loc_FFC89934:\n"
 994       "CMP     R5, #1 \n"
 995       "LDRNEH  R0, [R8, #8] \n"
 996       "BNE     loc_FFC89950 \n"
 997       "LDRSH   R0, [R4, #0xC] \n"
 998       "LDR     R1, =0xFFC888D4 \n"
 999       "MOV     R2, #0x20 \n"
1000       "BL      sub_FFC8D074 \n"
1001 "loc_FFC89950:\n"
1002       "STRH    R0, [R4, #0xC] \n"
1003       "LDRSH   R0, [R4, #6] \n"
1004 //      "BL      sub_FFC76194 \n"  //original
1005       "BL      sub_FFC76194_my \n" //patched
1006       "LDRSH   R0, [R4, #8] \n"
1007       "MOV     R1, #1 \n"
1008       "BL      sub_FFC768E0 \n"
1009       "MOV     R1, #0 \n"
1010       "ADD     R0, R4, #8 \n"
1011       "BL      sub_FFC76968 \n"
1012       "LDRSH   R0, [R4, #0xE] \n"
1013       "BL      sub_FFC7F230 \n"
1014       "LDR     R4, =0xBB8 \n"
1015       "CMP     R6, #1 \n"
1016       "BNE     loc_FFC899A8 \n"
1017       "LDR     R0, [R7, #0x1C] \n"
1018       "MOV     R2, R4 \n"
1019       "MOV     R1, #2 \n"
1020       "BL      sub_FFC16CA0 \n"
1021       "TST     R0, #1 \n"
1022       "LDRNE   R1, =0x54D \n"
1023       "LDRNE   R0, =0xFFC88F60 \n"
1024       "BLNE    sub_FFC0BD98 \n"
1025 "loc_FFC899A8:\n"
1026       "CMP     R5, #1 \n"
1027       "LDMNEFD SP!, {R4-R8,PC} \n"
1028       "LDR     R0, [R7, #0x1C] \n"
1029       "MOV     R2, R4 \n"
1030       "MOV     R1, #0x20 \n"
1031       "BL      sub_FFC16CA0 \n"
1032       "TST     R0, #1 \n"
1033       "LDRNE   R1, =0x552 \n"
1034       "LDRNE   R0, =0xFFC88F60 \n"
1035       "LDMNEFD SP!, {R4-R8,LR} \n"
1036       "BNE     sub_FFC0BD98 \n"
1037       "LDMFD   SP!, {R4-R8,PC} \n"
1038         );
1039 }
1040 
1041 //** sub_FFC76194_my  @ 0xFFC76194
1042 
1043 void __attribute__((naked,noinline)) sub_FFC76194_my() {
1044 asm volatile (
1045       "STMFD   SP!, {R4-R6,LR} \n"
1046       "LDR     R5, =0x6514 \n"
1047       "MOV     R4, R0 \n"
1048       "LDR     R0, [R5, #4] \n"
1049       "CMP     R0, #1 \n"
1050       "MOVNE   R1, #0x140 \n"
1051       "LDRNE   R0, =0xFFC75F98 \n"
1052       "BLNE    sub_FFC0BD98 \n"
1053       "CMN     R4, #0xC00 \n"
1054       "LDREQSH R4, [R5, #2] \n"
1055       "CMN     R4, #0xC00 \n"
1056       "LDREQ   R1, =0x146 \n"
1057       "LDREQ   R0, =0xFFC75F98 \n"
1058       "STRH    R4, [R5, #2] \n"
1059       "BLEQ    sub_FFC0BD98 \n"
1060       "MOV     R0, R4 \n"
1061 //      "BL      sub_FFD910E4 \n"     // original _apex2us
1062       "BL      apex2us\n"             // patched 
1063       "MOV     R4, R0 \n"
1064       "BL      sub_FFCAA854 \n"
1065       "MOV     R0, R4 \n"
1066       "BL      sub_FFCAE89C \n"
1067       "TST     R0, #1 \n"
1068       "LDRNE   R1, =0x14B \n"
1069       "LDMNEFD SP!, {R4-R6,LR} \n"
1070       "LDRNE   R0, =0xFFC75F98 \n"
1071       "BNE     sub_FFC0BD98 \n"
1072       "LDMFD   SP!, {R4-R6,PC} \n"
1073         );
1074 }

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