root/platform/ixus70_sd1000/sub/101b/capt_seq.c

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

DEFINITIONS

This source file includes following definitions.
  1. sub_FFB01E30_my
  2. sub_FFAFEC58_my
  3. capt_seq_task
  4. exp_drv_task
  5. sub_FF967798_my
  6. sub_FF9304F8_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 
   5 static long *nrflag = (long*)0xCDA0;
   6 
   7 #include "../../../generic/capt_seq.c"
   8 
   9 void __attribute__((naked,noinline)) sub_FFB01E30_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_FFB028A0\n"
  16                 "MVN     R1, #0\n"
  17                 "BL      sub_FFB13010\n"
  18                 "MOV     R0, #0x8A\n"
  19                 "ADD     R1, SP, #4\n"
  20                 "MOV     R2, #4\n"
  21                 "BL      sub_FF81BC98\n"
  22                 "TST     R0, #1\n"
  23                 "BEQ     loc_FFB01E70\n"
  24                 "MOV     R1, #0x1D0\n"
  25                 "LDR     R0, =0xFFB01CB4\n"
  26                 "ADD     R1, R1, #2\n"
  27                 "BL      sub_FFB2069C\n"
  28 "loc_FFB01E70:\n"
  29                 "LDR     R3, =0xBDA80\n"
  30                 "LDR     R2, =0xBDB40\n"
  31                 "LDR     R0, [R3,#0x7C]\n"
  32                 "LDRSH   R1, [R2,#0xE]\n"
  33                 "BL      sub_FFA395F0\n"
  34                 "MOV     R0, R4\n"
  35                 "BL      sub_FFB01C38\n"
  36                 "BL      wait_until_remote_button_is_released\n"
  37                 "BL      capt_seq_hook_set_nr\n"  // +
  38                 "LDR     R3, =0xCDA4\n"
  39                 "LDR     R0, [R3]\n"
  40                 "B       sub_FFB01E94\n"
  41     );
  42 }
  43 
  44 void __attribute__((naked,noinline)) sub_FFAFEC58_my(long p)
  45 {
  46     asm volatile (
  47                 "STMFD   SP!, {R4,R5,LR}\n"
  48                 "LDR     R3, =0xBDA80\n"
  49                 "LDR     R5, [R0,#0xC]\n"
  50                 "LDR     R1, [R3,#0x24]\n"
  51                 "LDR     R2, [R5,#8]\n"
  52                 "CMP     R1, #0\n"
  53                 "ORR     R2, R2, #1\n"
  54                 "STR     R2, [R5,#8]\n"
  55                 "BNE     loc_FFAFECAC\n"
  56                 "MOV     R0, #0xC\n"
  57                 "BL      sub_FFB091A8\n"
  58                 "TST     R0, #1\n"
  59                 "BEQ     loc_FFAFECAC\n"
  60                 "LDR     R3, [R5,#8]\n"
  61                 "MOV     R0, #1\n"
  62                 "ORR     R3, R3, #0x40000000\n"
  63                 "STR     R3, [R5,#8]\n"
  64 "loc_FFAFEC9C:\n"
  65                 "MOV     R2, R5\n"
  66                 "MOV     R1, #1\n"
  67                 "LDMFD   SP!, {R4,R5,LR}\n"
  68                 "B       sub_FFAFD400\n"
  69 "loc_FFAFECAC:\n"
  70                 "LDR     R4, =0xBDA80\n"
  71                 "BL      sub_FFAFF750\n"
  72                 "LDR     R3, [R4,#0x24]\n"
  73                 "CMP     R3, #0\n"
  74                 "BNE     loc_FFAFECF4\n"
  75                 "MOV     R0, R5\n"
  76                 "BL      sub_FFB00934\n"
  77                 "TST     R0, #1\n"
  78                 "BNE     loc_FFAFEC9C\n"
  79                 "BL      sub_FF8261B8\n"
  80                 "BL      sub_FF81BE94\n"
  81                 "STR     R0, [R5,#0x14]\n"
  82                 "MOV     R0, R5\n"
  83                 "BL      sub_FFB01D18\n"
  84                 "BL      sub_FFB0270C\n"
  85                 "MOV     R0, R5\n"
  86                 "BL      sub_FFB01E30_my\n"         //------------->
  87                 "BL      capt_seq_hook_raw_here\n"  // +
  88                 "B       loc_FFAFED08\n"
  89 "loc_FFAFECF4:\n"
  90                 "LDR     R3, =0xCD8C\n"
  91                 "LDR     R2, [R3]\n"
  92                 "CMP     R2, #0\n"
  93                 "MOVNE   R0, #0x1D\n"
  94                 "MOVEQ   R0, #0\n"
  95 "loc_FFAFED08:\n"
  96                 "MOV     R1, #1\n"
  97                 "MOV     R2, R5\n"
  98                 "BL      sub_FFAFD400\n"
  99                 "BL      sub_FFB021AC\n"
 100                 "CMP     R0, #0\n"
 101                 "LDRNE   R3, [R5,#8]\n"
 102                 "ORRNE   R3, R3, #0x2000\n"
 103                 "STRNE   R3, [R5,#8]\n"
 104                 "LDMFD   SP!, {R4,R5,PC}\n"
 105     );
 106 }
 107 
 108 void __attribute__((naked,noinline)) capt_seq_task()
 109 {
 110         asm volatile (
 111                 "STMFD   SP!, {R4,LR}\n"
 112                 "SUB     SP, SP, #4\n"
 113                 "MOV     R4, SP\n"
 114                 "B       loc_FFAFF290\n"
 115 "loc_FFAFF114:\n"
 116                 "LDR     R2, [SP]\n"
 117                 "LDR     R3, [R2]\n"
 118                 "MOV     R0, R2\n"
 119                 "CMP     R3, #0x15\n"
 120                 "LDRLS   PC, [PC,R3,LSL#2]\n"
 121                 "B       loc_FFAFF264\n"
 122                 ".long loc_FFAFF184\n"
 123                 ".long loc_FFAFF1A4\n"
 124                 ".long loc_FFAFF1B8\n"
 125                 ".long loc_FFAFF1CC\n"
 126                 ".long loc_FFAFF1C4\n"
 127                 ".long loc_FFAFF1D4\n"
 128                 ".long loc_FFAFF1DC\n"
 129                 ".long loc_FFAFF1E8\n"
 130                 ".long loc_FFAFF1F0\n"
 131                 ".long loc_FFAFF1FC\n"
 132                 ".long loc_FFAFF204\n"
 133                 ".long loc_FFAFF20C\n"
 134                 ".long loc_FFAFF214\n"
 135                 ".long loc_FFAFF21C\n"
 136                 ".long loc_FFAFF224\n"
 137                 ".long loc_FFAFF230\n"
 138                 ".long loc_FFAFF238\n"
 139                 ".long loc_FFAFF240\n"
 140                 ".long loc_FFAFF248\n"
 141                 ".long loc_FFAFF254\n"
 142                 ".long loc_FFAFF25C\n"
 143                 ".long loc_FFAFF278\n"
 144 "loc_FFAFF184:\n"
 145                 "BL      sub_FFAFF778\n"
 146 
 147                 "BL      shooting_expo_param_override\n" // +
 148 
 149                 "BL      sub_FFAFCE88\n"
 150                 "LDR     R3, =0xBDA80\n"
 151                 "MOV     R2, #0 \n"         // added
 152                 "STR     R2, [R3,#0x24] \n" // added, fixes overrides behavior at short shutter press
 153                 //"LDR     R2, [R3,#0x24]\n"// above patch makes these lines redundant
 154                 //"CMP     R2, #0\n"
 155                 //"BEQ     loc_FFAFF274\n"
 156                 //"BL      sub_FFAFED34\n"
 157                 "B       loc_FFAFF274\n"
 158 "loc_FFAFF1A4:\n"
 159                 "BL      sub_FFAFEC58_my\n"  //------------>
 160 "loc_FFAFF1A8:\n"
 161                 "LDR     R2, =0xBDA80\n"
 162                 "MOV     R3, #0\n"
 163                 "STR     R3, [R2,#0x24]\n"
 164                 "B       loc_FFAFF274\n"
 165 "loc_FFAFF1B8:\n"
 166                 "MOV     R0, #1\n"
 167                 "BL      sub_FFAFF998\n"
 168                 "B       loc_FFAFF274\n"
 169 "loc_FFAFF1C4:\n"
 170                 "BL      sub_FFAFF378\n"
 171                 "B       loc_FFAFF1A8\n"
 172 "loc_FFAFF1CC:\n"
 173                 "BL      sub_FFAFF730\n"
 174                 "B       loc_FFAFF1A8\n"
 175 "loc_FFAFF1D4:\n"
 176                 "BL      sub_FFAFF740\n"
 177                 "B       loc_FFAFF274\n"
 178 "loc_FFAFF1DC:\n"
 179                 "BL      sub_FFAFF890\n"
 180                 "BL      sub_FFAFCE88\n"
 181                 "B       loc_FFAFF274\n"
 182 "loc_FFAFF1E8:\n"
 183                 "BL      sub_FFAFEE10\n"
 184                 "B       loc_FFAFF274\n"
 185 "loc_FFAFF1F0:\n"
 186                 "BL      sub_FFAFF900\n"
 187                 "BL      sub_FFAFCE88\n"
 188                 "B       loc_FFAFF274\n"
 189 "loc_FFAFF1FC:\n"
 190                 "BL      sub_FFAFF730\n"
 191                 "B       loc_FFAFF274\n"
 192 "loc_FFAFF204:\n"
 193                 "BL      sub_FFB01068\n"
 194                 "B       loc_FFAFF274\n"
 195 "loc_FFAFF20C:\n"
 196                 "BL      sub_FFB0123C\n"
 197                 "B       loc_FFAFF274\n"
 198 "loc_FFAFF214:\n"
 199                 "BL      sub_FFB012D0\n"
 200                 "B       loc_FFAFF274\n"
 201 "loc_FFAFF21C:\n"
 202                 "BL      sub_FFB013CC\n"
 203                 "B       loc_FFAFF274\n"
 204 "loc_FFAFF224:\n"
 205                 "MOV     R0, #0\n"
 206                 "BL      sub_FFB01638\n"
 207                 "B       loc_FFAFF274\n"
 208 "loc_FFAFF230:\n"
 209                 "BL      sub_FFB0180C\n"
 210                 "B       loc_FFAFF274\n"
 211 "loc_FFAFF238:\n"
 212                 "BL      sub_FFB018A8\n"
 213                 "B       loc_FFAFF274\n"
 214 "loc_FFAFF240:\n"
 215                 "BL      sub_FFB01968\n"
 216                 "B       loc_FFAFF274\n"
 217 "loc_FFAFF248:\n"
 218                 "BL      sub_FFAFFAEC\n"
 219                 "BL      sub_FFAFEB7C\n"
 220                 "B       loc_FFAFF274\n"
 221 "loc_FFAFF254:\n"
 222                 "BL      sub_FFB0150C\n"
 223                 "B       loc_FFAFF274\n"
 224 "loc_FFAFF25C:\n"
 225                 "BL      sub_FFB01568\n"
 226                 "B       loc_FFAFF274\n"
 227 "loc_FFAFF264:\n"
 228                 "MOV     R1, #0x4C0\n"
 229                 "LDR     R0, =0xFFAFE9D8\n"
 230                 "ADD     R1, R1, #0xE\n"
 231                 "BL      sub_FFB2069C\n"
 232 "loc_FFAFF274:\n"
 233                 "LDR     R2, [SP]\n"
 234 "loc_FFAFF278:\n"
 235                 "LDR     R3, =0x97348\n"
 236                 "LDR     R1, [R2,#4]\n"
 237                 "LDR     R0, [R3]\n"
 238                 "BL      sub_FFB12E74\n"
 239                 "LDR     R0, [SP]\n"
 240                 "BL      sub_FFAFEA58\n"
 241 "loc_FFAFF290:\n"
 242                 "LDR     R3, =0x9734C\n"
 243                 "MOV     R1, R4\n"
 244                 "LDR     R0, [R3]\n"
 245                 "MOV     R2, #0\n"
 246                 "BL      sub_FFB1358C\n"
 247                 "TST     R0, #1\n"
 248                 "BEQ     loc_FFAFF114\n"
 249                 "LDR     R0, =0xFFAFE9D8\n"
 250                 "MOV     R1, #0x400\n"
 251                 "BL      sub_FFB2069C\n"
 252                 "BL      sub_FFB14B50\n"
 253                 "ADD     SP, SP, #4\n"
 254                 "LDMFD   SP!, {R4,PC}\n"
 255         );
 256 }
 257 
 258 
 259 /*************************************************************/
 260 void __attribute__((naked,noinline)) exp_drv_task(){
 261  asm volatile(
 262                  "STMFD   SP!, {R4-R8,LR}\n"
 263                  "SUB     SP, SP, #0x20\n"
 264                  "ADD     R7, SP, #4\n"
 265                  "B       loc_FF96AD00\n"
 266  "loc_FF96A800:\n"
 267                  "CMP     R2, #0x22\n"
 268                  "BNE     loc_FF96A818\n"
 269                  "LDR     R0, [R12,#0x8C]\n"
 270                  "MOV     LR, PC\n"
 271                  "LDR     PC, [R12,#0x88]\n"
 272                  "B       loc_FF96A87C\n"
 273  "loc_FF96A818:\n"
 274                  "CMP     R2, #0x1D\n"
 275                  "BNE     loc_FF96A82C\n"
 276                  "MOV     R0, R12\n"
 277                  "BL      sub_FF96A6C0\n"
 278                  "B       loc_FF96A86C\n"
 279  "loc_FF96A82C:\n"
 280                  "CMP     R2, #0x1E\n"
 281                  "BNE     loc_FF96A840\n"
 282                  "MOV     R0, R12\n"
 283                  "BL      sub_FF96A71C\n"
 284                  "B       loc_FF96A86C\n"
 285  "loc_FF96A840:\n"
 286                  "SUB     R3, R2, #0x1F\n"
 287                  "CMP     R3, #1\n"
 288                  "BHI     loc_FF96A858\n"
 289                  "MOV     R0, R12\n"
 290                  "BL      sub_FF96A778\n"
 291                  "B       loc_FF96A86C\n"
 292  "loc_FF96A858:\n"
 293                  "CMP     R2, #0x21\n"
 294                  "BNE     loc_FF96A888\n"
 295                  "BL      sub_FF93087C\n"
 296                  "BL      sub_FF9339B4\n"
 297                  "BL      sub_FF932BEC\n"
 298  "loc_FF96A86C:\n"
 299                  "LDR     R3, [SP,#4]\n"
 300                  "LDR     R0, [R3,#0x8C]\n"
 301                  "MOV     LR, PC\n"
 302                  "LDR     PC, [R3,#0x88]\n"
 303  "loc_FF96A87C:\n"
 304                  "LDR     R0, [SP,#4]\n"
 305                  "BL      sub_FF9661BC\n"
 306                  "B       loc_FF96AD00\n"
 307  "loc_FF96A888:\n"
 308                  "CMP     R2, #0xD\n"
 309                  "MOV     R8, #1\n"
 310                  "BNE     loc_FF96A8F8\n"
 311                  "LDR     R1, [R12,#0x7C]\n"
 312                  "ADD     R1, R1, R1,LSL#1\n"
 313                  "ADD     R1, R12, R1,LSL#2\n"
 314                  "ADD     R6, SP, #0x14\n"
 315                  "SUB     R1, R1, #8\n"
 316                  "MOV     R2, #0xC\n"
 317                  "MOV     R0, R6\n"
 318                  "BL      sub_FF9183F4\n" //memcpy
 319                  "LDR     R0, [SP,#4]\n"
 320                  "BL      sub_FF968C6C\n"
 321                  "LDR     R3, [SP,#4]\n"
 322                  "LDR     R1, [R3,#0x7C]\n"
 323                  "LDR     R2, [R3,#0x8C]\n"
 324                  "ADD     R0, R3, #4\n"
 325                  "MOV     LR, PC\n"
 326                  "LDR     PC, [R3,#0x88]\n"
 327                  "LDR     R0, [SP,#4]\n"
 328                  "BL      sub_FF968F3C\n"
 329                  "LDR     R3, [SP,#4]\n"
 330                  "ADD     R0, R3, #4\n"
 331                  "LDR     R1, [R3,#0x7C]\n"
 332                  "LDR     R2, [R3,#0x94]\n"
 333                  "MOV     LR, PC\n"
 334                  "LDR     PC, [R3,#0x90]\n"
 335                  "B       loc_FF96AC48\n"
 336  "loc_FF96A8F8:\n"
 337                  "SUB     R3, R2, #0xE\n"
 338                  "CMP     R3, #1\n"
 339                  "BHI     loc_FF96A9B4\n"
 340                  "ADD     R6, SP, #0x14\n"
 341                  "ADD     R5, SP, #8\n"
 342                  "MOV     R0, R12\n"
 343                  "MOV     R1, R6\n"
 344                  "MOV     R2, R5\n"
 345                  "BL      sub_FF969030\n"
 346                  "MOV     R4, R0\n"
 347                  "CMP     R4, #5\n"
 348                  "CMPNE   R4, #1\n"
 349                  "BNE     loc_FF96A94C\n"
 350                  "LDR     R12, [SP,#4]\n"
 351                  "MOV     R0, R5\n"
 352                  "LDR     R1, [R12,#0x7C]\n"
 353                  "MOV     R2, R4\n"
 354                  "LDR     R3, [R12,#0x8C]\n"
 355                  "MOV     LR, PC\n"
 356                  "LDR     PC, [R12,#0x88]\n"
 357                  "B       loc_FF96A984\n"
 358  "loc_FF96A94C:\n"
 359                  "CMP     R4, #6\n"
 360                  "CMPNE   R4, #2\n"
 361                  "BNE     loc_FF96A994\n"
 362                  "LDR     R12, [SP,#4]\n"
 363                  "MOV     R0, R5\n"
 364                  "MOV     R1, R8\n"
 365                  "MOV     R2, R4\n"
 366                  "LDR     R3, [R12,#0x8C]\n"
 367                  "MOV     LR, PC\n"
 368                  "LDR     PC, [R12,#0x88]\n"
 369                  "MOV     R1, R6\n"
 370                  "LDR     R0, [SP,#4]\n"
 371                  "MOV     R2, R5\n"
 372                  "BL      sub_FF96A2F0\n"
 373  "loc_FF96A984:\n"
 374                  "MOV     R1, R4\n"
 375                  "LDR     R0, [SP,#4]\n"
 376                  "BL      sub_FF96A654\n"
 377                  "B       loc_FF96AC48\n"
 378  "loc_FF96A994:\n"
 379                  "LDR     R12, [SP,#4]\n"
 380                  "MOV     R2, R4\n"
 381                  "ADD     R0, R12, #4\n"
 382                  "LDR     R1, [R12,#0x7C]\n"
 383                  "LDR     R3, [R12,#0x8C]\n"
 384                  "MOV     LR, PC\n"
 385                  "LDR     PC, [R12,#0x88]\n"
 386                  "B       loc_FF96AC48\n"
 387  "loc_FF96A9B4:\n"
 388                  "SUB     R3, R2, #0x19\n"
 389                  "CMP     R3, #1\n"
 390                  "BHI     loc_FF96AA0C\n"
 391                  "LDR     R1, [R12,#0x7C]\n"
 392                  "ADD     R1, R1, R1,LSL#1\n"
 393                  "ADD     R1, R12, R1,LSL#2\n"
 394                  "ADD     R6, SP, #0x14\n"
 395                  "SUB     R1, R1, #8\n"
 396                  "MOV     R2, #0xC\n"
 397                  "MOV     R0, R6\n"
 398                  "BL      sub_FF9183F4\n" //memcpy
 399                  "LDR     R0, [SP,#4]\n"
 400                  "BL      sub_FF968120\n"
 401                  "LDR     R3, [SP,#4]\n"
 402                  "ADD     R0, R3, #4\n"
 403                  "LDR     R1, [R3,#0x7C]\n"
 404                  "LDR     R2, [R3,#0x8C]\n"
 405                  "MOV     LR, PC\n"
 406                  "LDR     PC, [R3,#0x88]\n"
 407                  "LDR     R0, [SP,#4]\n"
 408                  "BL      sub_FF968440\n"
 409                  "B       loc_FF96AC48\n"
 410  "loc_FF96AA0C:\n"
 411                  "ADD     R6, SP, #0x14\n"
 412                  "ADD     R1, R12, #4\n"
 413                  "MOV     R2, #0xC\n"
 414                  "MOV     R0, R6\n"
 415                  "BL      sub_FF9183F4\n" //memcpy
 416                  "LDR     R12, [SP,#4]\n"
 417                  "LDR     R3, [R12]\n"
 418                  "MOV     R2, R12\n"
 419                  "CMP     R3, #0x1C\n"
 420                  "LDRLS   PC, [PC,R3,LSL#2]\n"
 421                  "B       loc_FF96AC34\n"
 422                  ".long loc_FF96AAAC\n" //jump table for switch statement
 423                  ".long loc_FF96AAB8\n"
 424                  ".long loc_FF96AAC4\n"
 425                  ".long loc_FF96AAC4\n"
 426                  ".long loc_FF96AAAC\n"
 427                  ".long loc_FF96AAB8\n"
 428                  ".long loc_FF96AAC4\n"
 429                  ".long loc_FF96AAC4\n"
 430                  ".long loc_FF96AAE8\n"
 431                  ".long loc_FF96AAE8\n"
 432                  ".long loc_FF96AC08\n"
 433                  ".long loc_FF96AC14\n"
 434                  ".long loc_FF96AC24\n"
 435                  ".long loc_FF96AC34\n"
 436                  ".long loc_FF96AC34\n"
 437                  ".long loc_FF96AC34\n"
 438                  ".long loc_FF96AAD0\n"
 439                  ".long loc_FF96AADC\n"
 440                  ".long loc_FF96AAF8\n"
 441                  ".long loc_FF96AB04\n"
 442                  ".long loc_FF96AB3C\n"
 443                  ".long loc_FF96AB74\n"
 444                  ".long loc_FF96ABAC\n"
 445                  ".long loc_FF96ABE4\n"
 446                  ".long loc_FF96ABE4\n"
 447                  ".long loc_FF96AC34\n"
 448                  ".long loc_FF96AC34\n"
 449                  ".long loc_FF96ABF0\n"
 450                  ".long loc_FF96ABFC\n"
 451  "loc_FF96AAAC:\n"
 452                  "MOV     R0, R2\n"
 453                  "BL      sub_FF966B1C\n"
 454                  "B       loc_FF96AC30\n"
 455  "loc_FF96AAB8:\n"
 456                  "MOV     R0, R2\n"
 457                  "BL      sub_FF966DC0\n"
 458                  "B       loc_FF96AC30\n"
 459  "loc_FF96AAC4:\n"
 460                  "MOV     R0, R2\n"
 461                  "BL      sub_FF967034\n"
 462                  "B       loc_FF96AC30\n"
 463  "loc_FF96AAD0:\n"
 464                  "MOV     R0, R2\n"
 465                  "BL      sub_FF967330\n"
 466                  "B       loc_FF96AC30\n"
 467  "loc_FF96AADC:\n"
 468                  "MOV     R0, R2\n"
 469                  "BL      sub_FF967598\n"
 470                  "B       loc_FF96AC30\n"
 471  "loc_FF96AAE8:\n"
 472                  "MOV     R0, R2\n"
 473                  "BL      sub_FF967798_my\n"  //------------->
 474                  "MOV     R8, #0\n"
 475                  "B       loc_FF96AC30\n"
 476  "loc_FF96AAF8:\n"
 477                  "MOV     R0, R2\n"
 478                  "BL      sub_FF9678F8\n"
 479                  "B       loc_FF96AC30\n"
 480  "loc_FF96AB04:\n"
 481                  "LDRH    R1, [R2,#4]\n"
 482                  "LDR     R3, =0x2C298\n"
 483                  "STRH    R1, [SP,#0x14]\n"
 484                  "LDRH    R1, [R3,#6]\n"
 485                  "STRH    R1, [SP,#0x1A]\n"
 486                  "LDRH    R1, [R3,#2]\n"
 487                  "STRH    R1, [SP,#0x16]\n"
 488                  "LDRH    R3, [R3,#4]\n"
 489                  "STRH    R3, [SP,#0x18]\n"
 490                  "MOV     R0, R2\n"
 491                  "LDRH    R2, [R2,#0xC]\n"
 492                  "STRH    R2, [SP,#0x1C]\n"
 493                  "BL      sub_FF967BF0\n"
 494                  "B       loc_FF96AC30\n"
 495  "loc_FF96AB3C:\n"
 496                  "MOV     R0, R2\n"
 497                  "LDRH    R2, [R2,#4]\n"
 498                  "LDR     R3, =0x2C298\n"
 499                  "STRH    R2, [SP,#0x14]\n"
 500                  "LDRH    R2, [R3,#8]\n"
 501                  "STRH    R2, [SP,#0x1C]\n"
 502                  "LDRH    R1, [R3,#2]\n"
 503                  "STRH    R1, [SP,#0x16]\n"
 504                  "LDRH    R2, [R3,#4]\n"
 505                  "STRH    R2, [SP,#0x18]\n"
 506                  "LDRH    R3, [R3,#6]\n"
 507                  "STRH    R3, [SP,#0x1A]\n"
 508                  "BL      sub_FF967D18\n"
 509                  "B       loc_FF96AC30\n"
 510  "loc_FF96AB74:\n"
 511                  "LDR     R3, =0x2C298\n"
 512                  "LDRH    R1, [R3]\n"
 513                  "STRH    R1, [SP,#0x14]\n"
 514                  "MOV     R0, R2\n"
 515                  "LDRH    R2, [R2,#6]\n"
 516                  "STRH    R2, [SP,#0x16]\n"
 517                  "LDRH    R2, [R3,#8]\n"
 518                  "STRH    R2, [SP,#0x1C]\n"
 519                  "LDRH    R1, [R3,#4]\n"
 520                  "STRH    R1, [SP,#0x18]\n"
 521                  "LDRH    R3, [R3,#6]\n"
 522                  "STRH    R3, [SP,#0x1A]\n"
 523                  "BL      sub_FF967DDC\n"
 524                  "B       loc_FF96AC30\n"
 525  "loc_FF96ABAC:\n"
 526                  "LDR     R3, =0x2C298\n"
 527                  "LDRH    R1, [R3,#6]\n"
 528                  "STRH    R1, [SP,#0x1A]\n"
 529                  "LDRH    R1, [R3]\n"
 530                  "STRH    R1, [SP,#0x14]\n"
 531                  "LDRH    R1, [R3,#2]\n"
 532                  "STRH    R1, [SP,#0x16]\n"
 533                  "LDRH    R3, [R3,#4]\n"
 534                  "STRH    R3, [SP,#0x18]\n"
 535                  "MOV     R0, R2\n"
 536                  "LDRH    R2, [R2,#0xC]\n"
 537                  "STRH    R2, [SP,#0x1C]\n"
 538                  "BL      sub_FF967E94\n"
 539                  "B       loc_FF96AC30\n"
 540  "loc_FF96ABE4:\n"
 541                  "MOV     R0, R2\n"
 542                  "BL      sub_FF967F44\n"
 543                  "B       loc_FF96AC30\n"
 544  "loc_FF96ABF0:\n"
 545                  "MOV     R0, R2\n"
 546                  "BL      sub_FF96858C\n"
 547                  "B       loc_FF96AC30\n"
 548  "loc_FF96ABFC:\n"
 549                  "MOV     R0, R2\n"
 550                  "BL      sub_FF968788\n"
 551                  "B       loc_FF96AC30\n"
 552  "loc_FF96AC08:\n"
 553                  "MOV     R0, R2\n"
 554                  "BL      sub_FF968944\n"
 555                  "B       loc_FF96AC30\n"
 556  "loc_FF96AC14:\n"
 557                  "MOV     R0, R2\n"
 558                  "MOV     R1, #0\n"
 559                  "BL      sub_FF968B2C\n"
 560                  "B       loc_FF96AC30\n"
 561  "loc_FF96AC24:\n"
 562                  "MOV     R0, R2\n"
 563                  "MOV     R1, #1\n"
 564                  "BL      sub_FF968B2C\n"
 565  "loc_FF96AC30:\n"
 566                  "LDR     R12, [SP,#4]\n"
 567  "loc_FF96AC34:\n"
 568                  "ADD     R0, R12, #4\n"
 569                  "LDR     R1, [R12,#0x7C]\n"
 570                  "LDR     R2, [R12,#0x8C]\n"
 571                  "MOV     LR, PC\n"
 572                  "LDR     PC, [R12,#0x88]\n"
 573  "loc_FF96AC48:\n"
 574                  "CMP     R8, #1\n"
 575                  "BNE     loc_FF96AC70\n"
 576                  "LDR     R1, [SP,#4]\n"
 577                  "LDR     R3, [R1,#0x7C]\n"
 578                  "ADD     R3, R3, R3,LSL#1\n"
 579                  "ADD     R1, R1, R3,LSL#2\n"
 580                  "MOV     R0, R6\n"
 581                  "SUB     R1, R1, #8\n"
 582                  "BL      sub_FF9667D4\n"
 583                  "B       loc_FF96ACEC\n"
 584  "loc_FF96AC70:\n"
 585                  "LDR     R3, [SP,#4]\n"
 586                  "LDR     R2, [R3]\n"
 587                  "CMP     R2, #9\n"
 588                  "BNE     loc_FF96ACB8\n"
 589                  "MOV     R4, #0\n"
 590                  "MOV     R1, #1\n"
 591                  "MOV     R2, R1\n"
 592                  "MOV     R3, R1\n"
 593                  "MOV     R0, R4\n"
 594                  "STR     R4, [SP]\n"
 595                  "BL      sub_FF966718\n"
 596                  "MOV     R1, #1\n"
 597                  "MOV     R0, R4\n"
 598                  "MOV     R2, R1\n"
 599                  "MOV     R3, R1\n"
 600                  "STR     R4, [SP]\n"
 601                  "BL      sub_FF966970\n"
 602                  "B       loc_FF96ACEC\n"
 603  "loc_FF96ACB8:\n"
 604                  "MOV     R4, #1\n"
 605                  "MOV     R0, R4\n"
 606                  "MOV     R1, R4\n"
 607                  "MOV     R2, R4\n"
 608                  "MOV     R3, R4\n"
 609                  "STR     R4, [SP]\n"
 610                  "BL      sub_FF966718\n"
 611                  "MOV     R0, R4\n"
 612                  "MOV     R1, R0\n"
 613                  "MOV     R2, R0\n"
 614                  "MOV     R3, R0\n"
 615                  "STR     R4, [SP]\n"
 616                  "BL      sub_FF966970\n"
 617  "loc_FF96ACEC:\n"
 618                  "LDR     R2, =0x2C2E4\n"
 619                  "MOV     R3, #0\n"
 620                  "LDR     R0, [SP,#4]\n"
 621                  "STR     R3, [R2]\n"
 622                  "BL      sub_FF9661BC\n"
 623  "loc_FF96AD00:\n"
 624                  "LDR     R3, =0x2C28C\n"
 625                  "MOV     R2, #0\n"
 626                  "LDR     R0, [R3]\n"
 627                  "MOV     R1, R7\n"
 628                  "BL      sub_FFB1358C\n" //ReceiveMessageQueue
 629                  "LDR     R12, [SP,#4]\n"
 630                  "LDR     R2, [R12]\n"
 631                  "CMP     R2, #0x23\n"
 632                  "BNE     loc_FF96A800\n"
 633                  "MOV     R0, R12\n"
 634                  "BL      sub_FF9661BC\n"
 635                  "LDR     R3, =0x2C288\n"
 636                  "MOV     R1, #1\n"
 637                  "LDR     R0, [R3]\n"
 638                  "BL      sub_FFB12E74\n" //SetEventFlag
 639                  "BL      sub_FFB14B50\n"
 640                  "ADD     SP, SP, #0x20\n"
 641                  "LDMFD   SP!, {R4-R8,PC}\n"
 642  );
 643 }
 644 
 645 void __attribute__((naked,noinline)) sub_FF967798_my(){
 646  asm volatile(
 647                  "STMFD   SP!, {R4-R6,LR}\n"
 648                  "LDR     R3, =0x2C288\n"
 649                  "MOV     R4, R0\n"
 650                  "MOV     R1, #0x3E\n"
 651                  "LDR     R0, [R3]\n"
 652                  "BL      sub_FFB13010\n" //ClearEventFlag
 653                  "MOV     R1, #0\n"
 654                  "LDRSH   R0, [R4,#4]\n"
 655                  "BL      sub_FF9662F0\n"
 656                  "MOV     R6, R0\n"
 657                  "LDRSH   R0, [R4,#6]\n"
 658                  "BL      sub_FF966458\n"
 659                  "LDRSH   R0, [R4,#8]\n"
 660                  "BL      sub_FF9664F4\n"
 661                  "LDRSH   R0, [R4,#0xA]\n"
 662                  "BL      sub_FF966590\n"
 663                  "LDRSH   R0, [R4,#0xC]\n"
 664                  "BL      sub_FF96662C\n"
 665                  "LDR     R3, [R4]\n"
 666                  "CMP     R3, #9\n"
 667                  "MOV     R5, R0\n"
 668                  "MOVEQ   R5, #0\n"
 669                  "MOVEQ   R6, R5\n"
 670                  "CMP     R6, #1\n"
 671                  "BNE     loc_FF96781C\n"
 672                  "MOV     R2, #2\n"
 673                  "LDRSH   R0, [R4,#4]\n"
 674                  "LDR     R1, =0xFF966210\n"
 675                  "BL      sub_FFAD9644\n"
 676                  "LDR     R2, =0x2C2D8\n"
 677                  "MOV     R3, #0\n"
 678                  "STR     R3, [R2]\n"
 679                  "B       loc_FF967820\n"
 680  "loc_FF96781C:\n"
 681                  "BL      sub_FF9666C8\n"
 682  "loc_FF967820:\n"
 683                  "STRH    R0, [R4,#4]\n"
 684                  "CMP     R5, #1\n"
 685                  "BNE     loc_FF967840\n"
 686                  "LDRSH   R0, [R4,#0xC]\n"
 687                  "LDR     R1, =0xFF9662D4\n"
 688                  "MOV     R2, #0x20\n"
 689                  "BL      sub_FF966ABC\n"
 690                  "B       loc_FF967844\n"
 691  "loc_FF967840:\n"
 692                  "BL      sub_FF966708\n"
 693  "loc_FF967844:\n"
 694                  "STRH    R0, [R4,#0xC]\n"
 695                  "LDRSH   R0, [R4,#6]\n"
 696                  "BL      sub_FF9304F8_my\n"  //------------>
 697                  "LDRSH   R0, [R4,#8]\n"
 698                  "MOV     R1, #1\n"
 699                  "BL      sub_FF9327AC\n"
 700                  "ADD     R0, R4, #8\n"
 701                  "MOV     R1, #0\n"
 702                  "BL      sub_FF93286C\n"
 703                  "LDRSH   R0, [R4,#0xE]\n"
 704                  "BL      sub_FF954890\n"
 705                  "CMP     R6, #1\n"
 706                  "BNE     loc_FF9678A8\n"
 707                  "LDR     R3, =0x2C288\n"
 708                  "MOV     R2, #0xBB0\n"
 709                  "LDR     R0, [R3]\n"
 710                  "MOV     R1, #2\n"
 711                  "ADD     R2, R2, #8\n"
 712                  "BL      sub_FFB12E64\n"
 713                  "TST     R0, #1\n"
 714                  "BEQ     loc_FF9678A8\n"
 715                  "MOV     R1, #0x4A0\n"
 716                  "LDR     R0, =0xFF966168\n" //aExpdrv_c
 717                  "ADD     R1, R1, #3\n"
 718                  "BL      sub_FFB2069C\n" //DebugAssert
 719  "loc_FF9678A8:\n"
 720                  "CMP     R5, #1\n"
 721                  "LDMNEFD SP!, {R4-R6,PC}\n"
 722                  "LDR     R3, =0x2C288\n"
 723                  "MOV     R2, #0xBB0\n"
 724                  "LDR     R0, [R3]\n"
 725                  "MOV     R1, #0x20\n"
 726                  "ADD     R2, R2, #8\n"
 727                  "BL      sub_FFB12E64\n"
 728                  "TST     R0, #1\n"
 729                  "LDMEQFD SP!, {R4-R6,PC}\n"
 730                  "MOV     R1, #0x4A0\n"
 731                  "LDR     R0, =0xFF966168\n" //aExpdrv_c
 732                  "ADD     R1, R1, #8\n"
 733                  "LDMFD   SP!, {R4-R6,LR}\n"
 734                  "B       sub_FFB2069C\n" //DebugAssert
 735  );
 736 }
 737 
 738 
 739 void __attribute__((naked,noinline)) sub_FF9304F8_my(){
 740  asm volatile(
 741                  "STMFD   SP!, {R4,LR}\n"
 742                  "LDR     R3, =0x63E4\n"
 743                  "LDR     R2, [R3]\n"
 744                  "MOV     R1, #0x168\n"
 745                  "MOV     R3, R0,LSL#16\n"
 746                  "CMP     R2, #1\n"
 747                  "ADD     R1, R1, #3\n"
 748                  "LDR     R0, =0xFF92FD14\n" //aShutter_c
 749                  "MOV     R4, R3,ASR#16\n"
 750                  "BEQ     loc_FF930524\n"
 751                  "BL      sub_FFB2069C\n" //DebugAssert
 752  "loc_FF930524:\n"
 753                  "MOV     R1, #0x170\n"
 754                  "CMN     R4, #0xC00\n"
 755                  "LDR     R3, =0x12E16\n"
 756                  "LDR     R0, =0xFF92FD14\n" //aShutter_c
 757                  "ADD     R1, R1, #1\n"
 758                  "LDREQSH R4, [R3]\n"
 759                  "LDRNE   R3, =0x12E16\n"
 760                  "CMN     R4, #0xC00\n"
 761                  "STRH    R4, [R3]\n"
 762                  "BNE     loc_FF930550\n"
 763                  "BL      sub_FFB2069C\n" //DebugAssert
 764  "loc_FF930550:\n"
 765                  "MOV     R0, R4\n"
 766              //  "BL      sub_FF931648\n"  // -
 767                  "BL      apex2us\n"       // +
 768                  "MOV     R4, R0\n"
 769                  "BL      sub_FF9BCB6C\n"
 770                  "MOV     R0, R4\n"
 771                  "BL      sub_FF9D6534\n"
 772                  "MOV     R1, #0x174\n"
 773                  "TST     R0, #1\n"
 774                  "ADD     R1, R1, #2\n"
 775                  "LDR     R0, =0xFF92FD14\n" //aShutter_c
 776                  "LDMEQFD SP!, {R4,PC}\n"
 777                  "LDMFD   SP!, {R4,LR}\n"
 778                  "B       sub_FFB2069C\n" //DebugAssert
 779  );
 780 }

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