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

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

DEFINITIONS

This source file includes following definitions.
  1. sub_FFD0F3B8_my
  2. task_CaptSeqTask_my
  3. exp_drv_task
  4. sub_FFC8EC78_my
  5. sub_FFC70CCC_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 
   5 static long *nrflag = (long*)0x8450; // 0xFFD0F430
   6 
   7 #include "../../../generic/capt_seq.c"
   8 
   9 void __attribute__((naked,noinline)) sub_FFD0F3B8_my(){
  10  asm volatile(
  11                 "STMFD   SP!, {R0-R10,LR}\n"
  12                 "MOV     R6, #0\n"
  13                 "MOV     R4, R0\n"
  14                 "BL      sub_FFD0FEB8\n"
  15                 "MVN     R1, #0\n"              // "MOVL     R1, 0xFFFFFFFF"
  16                 "BL      sub_FFC173FC\n"
  17                 "MOV     R2, #4\n"
  18                 "ADD     R1, SP, #8\n"
  19                 "MOV     R0, #0x8A\n"
  20                 "BL      sub_FFC5819C\n"
  21                 "TST     R0, #1\n"
  22                 "MOVNE   R1, #0x218\n"
  23                 "LDRNE   R0, =0xFFD0F5CC\n"
  24                 "BLNE    sub_FFC0BDB8\n"
  25                 "LDR     R8, =0x18440\n"
  26                 "LDR     R5, =0x18394\n"
  27                 "LDRSH   R1, [R8,#0xE]\n"
  28                 "LDR     R0, [R5,#0x74]\n"
  29                 "BL      sub_FFCCD36C\n"
  30                 "BL      sub_FFC339C8\n"
  31                 "LDR     R2, =0x8454\n"
  32                 "ADD     R3, R4, #0x8C\n"
  33                 "STRH    R0, [R4,#0x88]\n"
  34                 "STR     R2, [SP]\n"            // Corrected! from STRD    R2, [SP]
  35                 "STR     R3, [SP,#4]\n"         // Added! (als in a720)
  36                 "MOV     R1, R0\n"
  37                 "LDRH    R0, [R5,#0x4C]\n"
  38                 "LDRSH   R2, [R8,#0xC]\n"
  39                 "LDR     R3, =0x8450\n"
  40                 "BL      sub_FFD103A4\n"
  41                 "BL      wait_until_remote_button_is_released\n"
  42                 "BL      capt_seq_hook_set_nr\n"
  43                 "B       sub_FFD0F42C\n"
  44  );
  45 }
  46 
  47 
  48 void __attribute__((naked,noinline)) task_CaptSeqTask_my() //#fs
  49 {
  50         asm volatile (
  51                 "STMFD   SP!, {R3-R7,LR}\n"
  52                 "LDR     R6, =0x52A8\n"
  53 
  54 "loc_FFC49B40:\n"
  55                 "LDR     R0, [R6,#8]\n"
  56                 "MOV     R2, #0\n"
  57                 "MOV     R1, SP\n"
  58                 "BL      sub_FFC1764C\n"
  59                 "TST     R0, #1\n"
  60                 "BEQ     loc_FFC49B6C\n"
  61                 "LDR     R1, =0x48E\n"
  62                 "LDR     R0, =0xFFC49860\n"             // aSsshoottask_c
  63                 "BL      sub_FFC0BDB8\n"                // DebugAssert
  64                 "BL      sub_FFC0BB70\n"                // ExitTask
  65                 "LDMFD   SP!, {R3-R7,PC}\n"
  66 
  67 "loc_FFC49B6C:\n"
  68                 "LDR     R0, [SP]\n"
  69                 "LDR     R1, [R0]\n"
  70 
  71                 //"LDR     R2, =0x1850\n"         // What? DEBUG: Save jumptable-target ...
  72                 //"STR     R1, [R2]\n"            // What? ...to some unused space. Read and displayed in GUI in core/gui.c
  73 
  74                 "CMP     R1, #0x19\n"
  75                 "ADDLS   PC, PC, R1,LSL#2\n"
  76                 "B       loc_FFC49D80\n"
  77 
  78                 "B       loc_FFC49BE8\n"
  79                 "B       loc_FFC49BF0\n"
  80                 "B       loc_FFC49C70\n"
  81                 "B       loc_FFC49C84\n"
  82                 "B       loc_FFC49C7C\n"
  83                 "B       loc_FFC49C8C\n"
  84                 "B       loc_FFC49C94\n"
  85                 "B       loc_FFC49CA0\n"
  86                 "B       loc_FFC49CF8\n"
  87                 "B       loc_FFC49C84\n"
  88                 "B       loc_FFC49D00\n"
  89                 "B       loc_FFC49D08\n"
  90                 "B       loc_FFC49D10\n"
  91                 "B       loc_FFC49D18\n"
  92                 "B       loc_FFC49D20\n"
  93                 "B       loc_FFC49D2C\n"
  94                 "B       loc_FFC49D34\n"
  95                 "B       loc_FFC49D3C\n"
  96                 "B       loc_FFC49D44\n"
  97                 "B       loc_FFC49D50\n"
  98                 "B       loc_FFC49D58\n"
  99                 "B       loc_FFC49D60\n"
 100                 "B       loc_FFC49D68\n"
 101                 "B       loc_FFC49D70\n"
 102                 "B       loc_FFC49D78\n"
 103                 "B       loc_FFC49D8C\n"
 104 "loc_FFC49BE8:\n"
 105                 "BL      sub_FFD0DF20\n"
 106                 "BL      shooting_expo_param_override\n"
 107                 "B       loc_FFC49C98\n"
 108 "loc_FFC49BF0:\n"
 109                 "LDR     R4, [R0,#0xC]\n"
 110                 "LDR     R0, [R4,#8]\n"
 111                 "ORR     R0, R0, #1\n"
 112                 "STR     R0, [R4,#8]\n"
 113                 "BL      sub_FFD0DF10\n"
 114                 "MOV     R0, R4\n"
 115                 "BL      sub_FFD0E2F8\n"
 116                 "TST     R0, #1\n"
 117                 "MOVNE   R2, R4\n"
 118                 "MOVNE   R1, #1\n"
 119                 "BNE     loc_FFC49CF0\n"
 120                 "BL      sub_FFD2D318\n"
 121                 "BL      sub_FFC5832C\n"
 122                 "STR     R0, [R4,#0x14]\n"
 123                 "MOV     R0, R4\n"
 124                 "BL      sub_FFD0F2F0\n"
 125                 "BL      sub_FFD0FD54\n"
 126                 "MOV     R0, R4\n"
 127                 "BL      sub_FFD0F3B8_my\n"             //-------------->
 128                 "BL      capt_seq_hook_raw_here\n"              //-------------->
 129                 "MOV     R5, R0\n"
 130                 "BL      sub_FFD10D34\n"
 131                 "BL      sub_FFD10D70\n"
 132                 "MOV     R2, R4\n"
 133                 "MOV     R1, #1\n"
 134                 "MOV     R0, R5\n"
 135                 "BL      sub_FFC4831C\n"
 136                 "BL      sub_FFD0F768\n"
 137                 "CMP     R0, #0\n"
 138                 "LDRNE   R0, [R4,#8]\n"
 139                 "ORRNE   R0, R0, #0x2000\n"
 140                 "STRNE   R0, [R4,#8]\n"
 141                 "B       loc_FFC49D8C\n"
 142 "loc_FFC49C70:\n"
 143                 "MOV     R0, #1\n"
 144                 "BL      sub_FFD0E0B4\n"
 145                 "B       loc_FFC49D8C\n"
 146 "loc_FFC49C7C:\n"
 147                 "BL      sub_FFD0DB80\n"
 148                 "B       loc_FFC49D8C\n"
 149 "loc_FFC49C84:\n"
 150                 "BL      sub_FFD0DF00\n"
 151                 "B       loc_FFC49D8C\n"
 152 "loc_FFC49C8C:\n"
 153                 "BL      sub_FFD0DF08\n"
 154                 "B       loc_FFC49D8C\n"
 155 "loc_FFC49C94:\n"
 156                 "BL      sub_FFD0DFD4\n"
 157 "loc_FFC49C98:\n"
 158                 "BL      sub_FFC47F9C\n"
 159                 "B       loc_FFC49D8C\n"
 160 "loc_FFC49CA0:\n"
 161                 "LDR     R4, [R0,#0xC]\n"
 162                 "BL      sub_FFD0DF10\n"
 163                 "MOV     R0, R4\n"
 164                 "BL      sub_FFD0E678\n"
 165                 "TST     R0, #1\n"
 166                 "MOV     R5, R0\n"
 167                 "BNE     loc_FFC49CE0\n"
 168                 "BL      sub_FFC5832C\n"
 169                 "STR     R0, [R4,#0x14]\n"
 170                 "MOV     R0, R4\n"
 171                 "BL      sub_FFD0F2F0\n"
 172                 "MOV     R0, R4\n"
 173                 "BL      sub_FFD0F7C8\n"
 174                 "MOV     R5, R0\n"
 175                 "LDR     R0, [R4,#0x14]\n"
 176                 "BL      sub_FFC58538\n"
 177 "loc_FFC49CE0:\n"
 178                 "BL      sub_FFD0DF00\n"
 179                 "MOV     R2, R4\n"
 180                 "MOV     R1, #9\n"
 181                 "MOV     R0, R5\n"
 182 "loc_FFC49CF0:\n"
 183                 "BL      sub_FFC4831C\n"
 184                 "B       loc_FFC49D8C\n"
 185 "loc_FFC49CF8:\n"
 186                 "BL      sub_FFD0E034\n"
 187                 "B       loc_FFC49C98\n"
 188 "loc_FFC49D00:\n"
 189                 "BL      sub_FFD0E8F4\n"
 190                 "B       loc_FFC49D8C\n"
 191 "loc_FFC49D08:\n"
 192                 "BL      sub_FFD0EADC\n"
 193                 "B       loc_FFC49D8C\n"
 194 "loc_FFC49D10:\n"
 195                 "BL      sub_FFD0EB6C\n"
 196                 "B       loc_FFC49D8C\n"
 197 "loc_FFC49D18:\n"
 198                 "BL      sub_FFD0EC20\n"
 199                 "B       loc_FFC49D8C\n"
 200 "loc_FFC49D20:\n"
 201                 "MOV     R0, #0\n"
 202                 "BL      sub_FFD0EDC4\n"
 203                 "B       loc_FFC49D8C\n"
 204 "loc_FFC49D2C:\n"
 205                 "BL      sub_FFD0EF14\n"
 206                 "B       loc_FFC49D8C\n"
 207 "loc_FFC49D34:\n"
 208                 "BL      sub_FFD0EFA8\n"
 209                 "B       loc_FFC49D8C\n"
 210 "loc_FFC49D3C:\n"
 211                 "BL      sub_FFD0F070\n"
 212                 "B       loc_FFC49D8C\n"
 213 "loc_FFC49D44:\n"
 214                 "BL      sub_FFD0E1D0\n"
 215                 "BL      sub_FFC149BC\n"
 216                 "B       loc_FFC49D8C\n"
 217 "loc_FFC49D50:\n"
 218                 "BL      sub_FFD0ECDC\n"
 219                 "B       loc_FFC49D8C\n"
 220 "loc_FFC49D58:\n"
 221                 "BL      sub_FFD0ED20\n"
 222                 "B       loc_FFC49D8C\n"
 223 "loc_FFC49D60:\n"
 224                 "BL      sub_FFD10D18\n"
 225                 "B       loc_FFC49D8C\n"
 226 "loc_FFC49D68:\n"
 227                 "BL      sub_FFD10D34\n"
 228                 "B       loc_FFC49D8C\n"
 229 "loc_FFC49D70:\n"
 230                 "BL      sub_FFD10D44\n"
 231                 "B       loc_FFC49D8C\n"
 232 "loc_FFC49D78:\n"
 233                 "BL      sub_FFD10D70\n"
 234                 "B       loc_FFC49D8C\n"
 235 "loc_FFC49D80:\n"
 236                 "LDR     R1, =0x58E\n"
 237                 "LDR     R0, =0xFFC49860\n"
 238                 "BL      sub_FFC0BDB8\n"                // DebugAssert
 239 "loc_FFC49D8C:\n"
 240                 "LDR     R0, [SP]\n"
 241                 "LDR     R1, [R0,#4]\n"
 242                 "LDR     R0, [R6,#4]\n"
 243                 "BL      sub_FFC173C8\n"
 244                 "LDR     R4, [SP]\n"
 245                 "LDR     R0, [R4,#8]\n"
 246                 "CMP     R0, #0\n"
 247                 "LDREQ   R1, =0x10D\n"
 248                 "LDREQ   R0, =0xFFC49860\n"
 249                 "BLEQ    sub_FFC0BDB8\n"                // DebugAssert
 250                 "MOV     R0, #0\n"
 251                 "STR     R0, [R4,#8]\n"
 252                 "B       loc_FFC49B40\n"
 253     );
 254 } //#fe
 255 
 256 void __attribute__((naked,noinline)) exp_drv_task(){
 257  asm volatile(
 258                 "STMFD   SP!, {R4-R8,LR}\n"
 259                 "SUB     SP, SP, #0x20\n"
 260                 "LDR     R8, =0xBB8\n"
 261                 "LDR     R7, =0x649C\n"
 262                 "LDR     R5, =0x3C0F0\n"
 263                 "MOV     R0, #0\n"
 264                 "ADD     R6, SP, #0x10\n"
 265                 "STR     R0, [SP,#0xC]\n"
 266 "loc_FFC911B4:\n"
 267                 "LDR     R0, [R7,#0x20]\n"
 268                 "MOV     R2, #0\n"
 269                 "ADD     R1, SP, #0x1C\n"
 270                 "BL      sub_FFC1764C\n"
 271                 "LDR     R0, [SP,#0xC]\n"
 272                 "CMP     R0, #1\n"
 273                 "BNE     loc_FFC911FC\n"
 274                 "LDR     R0, [SP,#0x1C]\n"
 275                 "LDR     R0, [R0]\n"
 276                 "CMP     R0, #0x13\n"
 277                 "CMPNE   R0, #0x14\n"
 278                 "CMPNE   R0, #0x15\n"
 279                 "BEQ     loc_FFC91318\n"
 280                 "CMP     R0, #0x27\n"
 281                 "BEQ     loc_FFC912F0\n"
 282                 "ADD     R1, SP, #0xC\n"
 283                 "MOV     R0, #0\n"
 284                 "BL      sub_FFC91144\n"
 285 "loc_FFC911FC:\n"
 286                 "LDR     R0, [SP,#0x1C]\n"
 287                 "LDR     R1, [R0]\n"
 288                 "CMP     R1, #0x2C\n"
 289                 "BNE     loc_FFC9122C\n"
 290                 "LDR     R0, [SP,#0x1C]\n"
 291                 "BL      sub_FFC923F8\n"
 292                 "LDR     R0, [R7,#0x1C]\n"
 293                 "MOV     R1, #1\n"
 294                 "BL      sub_FFC173C8\n"
 295                 "BL      sub_FFC0BB70\n"                // ExitTask
 296                 "ADD     SP, SP, #0x20\n"
 297                 "LDMFD   SP!, {R4-R8,PC}\n"
 298 "loc_FFC9122C:\n"
 299                 "CMP     R1, #0x2B\n"
 300                 "BNE     loc_FFC91248\n"
 301                 "LDR     R2, [R0,#0x88]!\n"
 302                 "LDR     R1, [R0,#4]\n"
 303                 "MOV     R0, R1\n"
 304                 "BLX     R2\n"
 305                 "B       loc_FFC9177C\n"
 306 "loc_FFC91248:\n"
 307                 "CMP     R1, #0x25\n"
 308                 "BNE     loc_FFC91298\n"
 309                 "LDR     R0, [R7,#0x1C]\n"
 310                 "MOV     R1, #0x80\n"
 311                 "BL      sub_FFC173FC\n"
 312                 "LDR     R0, =0xFFC8DC38\n"
 313                 "MOV     R1, #0x80\n"
 314                 "BL      sub_FFD05880\n"
 315                 "LDR     R0, [R7,#0x1C]\n"
 316                 "MOV     R2, R8\n"
 317                 "MOV     R1, #0x80\n"
 318                 "BL      sub_FFC17300\n"
 319                 "TST     R0, #1\n"
 320                 "LDRNE   R1, =0xD1B\n"
 321                 "BNE     loc_FFC912DC\n"
 322 "loc_FFC91284:\n"
 323                 "LDR     R1, [SP,#0x1C]\n"
 324                 "LDR     R0, [R1,#0x8C]\n"
 325                 "LDR     R1, [R1,#0x88]\n"
 326                 "BLX     R1\n"
 327                 "B       loc_FFC9177C\n"
 328 "loc_FFC91298:\n"
 329                 "CMP     R1, #0x26\n"
 330                 "BNE     loc_FFC912E8\n"
 331                 "ADD     R1, SP, #0xC\n"
 332                 "BL      sub_FFC91144\n"
 333                 "LDR     R0, [R7,#0x1C]\n"
 334                 "MOV     R1, #0x100\n"
 335                 "BL      sub_FFC173FC\n"
 336                 "LDR     R0, =0xFFC8DC48\n"
 337                 "MOV     R1, #0x100\n"
 338                 "BL      sub_FFD05B08\n"
 339                 "LDR     R0, [R7,#0x1C]\n"
 340                 "MOV     R2, R8\n"
 341                 "MOV     R1, #0x100\n"
 342                 "BL      sub_FFC17300\n"
 343                 "TST     R0, #1\n"
 344                 "BEQ     loc_FFC91284\n"
 345                 "LDR     R1, =0xD25\n"
 346 "loc_FFC912DC:\n"
 347                 "LDR     R0, =0xFFC8E338\n"             // aExpdrv_c
 348                 "BL      sub_FFC0BDB8\n"                // DebugAssert
 349                 "B       loc_FFC91284\n"
 350 "loc_FFC912E8:\n"
 351                 "CMP     R1, #0x27\n"
 352                 "BNE     loc_FFC91300\n"
 353 "loc_FFC912F0:\n"
 354                 "LDR     R0, [SP,#0x1C]\n"
 355                 "ADD     R1, SP, #0xC\n"
 356                 "BL      sub_FFC91144\n"
 357                 "B       loc_FFC91284\n"
 358 "loc_FFC91300:\n"
 359                 "CMP     R1, #0x2A\n"
 360                 "BNE     loc_FFC91318\n"
 361                 "BL      sub_FFC70F80\n"
 362                 "BL      sub_FFC71D4C\n"
 363                 "BL      sub_FFC717D0\n"
 364                 "B       loc_FFC91284\n"
 365 "loc_FFC91318:\n"
 366                 "LDR     R0, [SP,#0x1C]\n"
 367                 "MOV     R4, #1\n"
 368                 "LDR     R1, [R0]\n"
 369                 "CMP     R1, #0x11\n"
 370                 "CMPNE   R1, #0x12\n"
 371                 "BNE     loc_FFC91388\n"
 372                 "LDR     R1, [R0,#0x7C]\n"
 373                 "ADD     R1, R1, R1,LSL#1\n"
 374                 "ADD     R1, R0, R1,LSL#2\n"
 375                 "SUB     R1, R1, #8\n"
 376                 "LDMIA   R1, {R2-R4}\n"
 377                 "STMIA   R6, {R2-R4}\n"
 378                 "BL      sub_FFC8FCC4\n"
 379                 "LDR     R0, [SP,#0x1C]\n"
 380                 "LDR     R1, [R0,#0x7C]\n"
 381                 "LDR     R3, [R0,#0x88]\n"
 382                 "LDR     R2, [R0,#0x8C]\n"
 383                 "ADD     R0, R0, #4\n"
 384                 "BLX     R3\n"
 385                 "LDR     R0, [SP,#0x1C]\n"
 386                 "BL      sub_FFC927D0\n"
 387                 "LDR     R0, [SP,#0x1C]\n"
 388                 "LDR     R1, [R0,#0x7C]\n"
 389                 "LDR     R3, [R0,#0x90]\n"
 390                 "LDR     R2, [R0,#0x94]\n"
 391                 "ADD     R0, R0, #4\n"
 392                 "BLX     R3\n"
 393                 "B       loc_FFC916BC\n"
 394 "loc_FFC91388:\n"
 395                 "CMP     R1, #0x13\n"
 396                 "CMPNE   R1, #0x14\n"
 397                 "CMPNE   R1, #0x15\n"
 398                 "BNE     loc_FFC9143C\n"
 399                 "ADD     R3, SP, #0xC\n"
 400                 "MOV     R2, SP\n"
 401                 "ADD     R1, SP, #0x10\n"
 402                 "BL      sub_FFC8FF0C\n"
 403                 "CMP     R0, #1\n"
 404                 "MOV     R4, R0\n"
 405                 "CMPNE   R4, #5\n"
 406                 "BNE     loc_FFC913D8\n"
 407                 "LDR     R0, [SP,#0x1C]\n"
 408                 "MOV     R2, R4\n"
 409                 "LDR     R1, [R0,#0x7C]\n"
 410                 "LDR     R12, [R0,#0xC]\n"
 411                 "LDR     R3, [R0,#4]\n"
 412                 "MOV     R0, SP\n"
 413                 "BLX     R12\n"
 414                 "B       loc_FFC91410\n"
 415 "loc_FFC913D8:\n"
 416                 "LDR     R0, [SP,#0x1C]\n"
 417                 "CMP     R4, #2\n"
 418                 "LDR     R3, [R0,#0x8C]\n"
 419                 "CMPNE   R4, #6\n"
 420                 "BNE     loc_FFC91424\n"
 421                 "LDR     R12, [R0,#0x88]\n"
 422                 "MOV     R0, SP\n"
 423                 "MOV     R2, R4\n"
 424                 "MOV     R1, #1\n"
 425                 "BLX     R12\n"
 426                 "LDR     R0, [SP,#0x1C]\n"
 427                 "MOV     R2, SP\n"
 428                 "ADD     R1, SP, #0x10\n"
 429                 "BL      sub_FFC90E90\n"
 430 "loc_FFC91410:\n"
 431                 "LDR     R0, [SP,#0x1C]\n"
 432                 "LDR     R2, [SP,#0xC]\n"
 433                 "MOV     R1, R4\n"
 434                 "BL      sub_FFC910E4\n"
 435                 "B       loc_FFC916BC\n"
 436 "loc_FFC91424:\n"
 437                 "LDR     R1, [R0,#0x7C]\n"
 438                 "LDR     R12, [R0,#0x88]\n"
 439                 "ADD     R0, R0, #4\n"
 440                 "MOV     R2, R4\n"
 441                 "BLX     R12\n"
 442                 "B       loc_FFC916BC\n"
 443 "loc_FFC9143C:\n"
 444                 "CMP     R1, #0x21\n"
 445                 "CMPNE   R1, #0x22\n"
 446                 "BNE     loc_FFC91488\n"
 447                 "LDR     R1, [R0,#0x7C]\n"
 448                 "ADD     R1, R1, R1,LSL#1\n"
 449                 "ADD     R1, R0, R1,LSL#2\n"
 450                 "SUB     R1, R1, #8\n"
 451                 "LDMIA   R1, {R2-R4}\n"
 452                 "STMIA   R6, {R2-R4}\n"
 453                 "BL      sub_FFC8F250\n"
 454                 "LDR     R0, [SP,#0x1C]\n"
 455                 "LDR     R1, [R0,#0x7C]\n"
 456                 "LDR     R3, [R0,#0x88]\n"
 457                 "LDR     R2, [R0,#0x8C]\n"
 458                 "ADD     R0, R0, #4\n"
 459                 "BLX     R3\n"
 460                 "LDR     R0, [SP,#0x1C]\n"
 461                 "BL      sub_FFC8F540\n"
 462                 "B       loc_FFC916BC\n"
 463 "loc_FFC91488:\n"
 464                 "ADD     R1, R0, #4\n"
 465                 "LDMIA   R1, {R2,R3,R12}\n"
 466                 "STMIA   R6, {R2,R3,R12}\n"
 467                 "LDR     R1, [R0]\n"
 468                 "CMP     R1, #0x24\n"
 469                 "ADDLS   PC, PC, R1,LSL#2\n"
 470                 "B       loc_FFC9169C\n"
 471 "loc_FFC914A4:\n"
 472                 "B       loc_FFC91538\n"
 473 "loc_FFC914A8:\n"
 474                 "B       loc_FFC91538\n"
 475 "loc_FFC914AC:\n"
 476                 "B       loc_FFC91540\n"
 477 "loc_FFC914B0:\n"
 478                 "B       loc_FFC91548\n"
 479 "loc_FFC914B4:\n"
 480                 "B       loc_FFC91548\n"
 481 "loc_FFC914B8:\n"
 482                 "B       loc_FFC91548\n"
 483 "loc_FFC914BC:\n"
 484                 "B       loc_FFC91538\n"
 485 "loc_FFC914C0:\n"
 486                 "B       loc_FFC91540\n"
 487 "loc_FFC914C4:\n"
 488                 "B       loc_FFC91548\n"
 489 "loc_FFC914C8:\n"
 490                 "B       loc_FFC91548\n"
 491 "loc_FFC914CC:\n"
 492                 "B       loc_FFC915A4\n"
 493 "loc_FFC914D0:\n"
 494                 "B       loc_FFC915A4\n"
 495 "loc_FFC914D4:\n"
 496                 "B       loc_FFC91690\n"
 497 "loc_FFC914D8:\n"
 498                 "B       loc_FFC91698\n"
 499 "loc_FFC914DC:\n"
 500                 "B       loc_FFC91698\n"
 501 "loc_FFC914E0:\n"
 502                 "B       loc_FFC91698\n"
 503 "loc_FFC914E4:\n"
 504                 "B       loc_FFC91698\n"
 505 "loc_FFC914E8:\n"
 506                 "B       loc_FFC9169C\n"
 507 "loc_FFC914EC:\n"
 508                 "B       loc_FFC9169C\n"
 509 "loc_FFC914F0:\n"
 510                 "B       loc_FFC9169C\n"
 511 "loc_FFC914F4:\n"
 512                 "B       loc_FFC9169C\n"
 513 "loc_FFC914F8:\n"
 514                 "B       loc_FFC9169C\n"
 515 "loc_FFC914FC:\n"
 516                 "B       loc_FFC91550\n"
 517 "loc_FFC91500:\n"
 518                 "B       loc_FFC91558\n"
 519 "loc_FFC91504:\n"
 520                 "B       loc_FFC91558\n"
 521 "loc_FFC91508:\n"
 522                 "B       loc_FFC915B0\n"
 523 "loc_FFC9150C:\n"
 524                 "B       loc_FFC915B0\n"
 525 "loc_FFC91510:\n"
 526                 "B       loc_FFC915B8\n"
 527 "loc_FFC91514:\n"
 528                 "B       loc_FFC915E8\n"
 529 "loc_FFC91518:\n"
 530                 "B       loc_FFC91618\n"
 531 "loc_FFC9151C:\n"
 532                 "B       loc_FFC91648\n"
 533 "loc_FFC91520:\n"
 534                 "B       loc_FFC91678\n"
 535 "loc_FFC91524:\n"
 536                 "B       loc_FFC91678\n"
 537 "loc_FFC91528:\n"
 538                 "B       loc_FFC9169C\n"
 539 "loc_FFC9152C:\n"
 540                 "B       loc_FFC9169C\n"
 541 "loc_FFC91530:\n"
 542                 "B       loc_FFC91680\n"
 543 "loc_FFC91534:\n"
 544                 "B       loc_FFC91688\n"
 545 "loc_FFC91538:\n"
 546                 "BL      sub_FFC8E120\n"
 547                 "B       loc_FFC9169C\n"
 548 "loc_FFC91540:\n"
 549                 "BL      sub_FFC8E3B0\n"
 550                 "B       loc_FFC9169C\n"
 551 "loc_FFC91548:\n"
 552                 "BL      sub_FFC8E5B4\n"
 553                 "B       loc_FFC9169C\n"
 554 "loc_FFC91550:\n"
 555                 "BL      sub_FFC8E81C\n"
 556                 "B       loc_FFC9169C\n"
 557 "loc_FFC91558:\n"
 558                 "BL      sub_FFC8EA10\n"
 559                 "B       loc_FFC9169C\n"
 560 //"dword_FFC91560  DCD 0xB1D \n"
 561 //"dword_FFC91564  DCD 0xBAD \n"
 562 //"dword_FFC91568  DCD 0xC24 \n"
 563 //"dword_FFC9156C  DCD 0xC32 \n"
 564 //"dword_FFC91570  DCD 0xC7B \n"
 565 //"dword_FFC91574  DCD 0x808 \n"
 566 //"dword_FFC91578  DCD 0xC8E \n"
 567 //"dword_FFC9157C  DCD 0xC94 \n"
 568 //"dword_FFC91580  DCD 0xCE8 \n"
 569 //"dword_FFC91584  DCD 0xD0E \n"
 570 //"dword_FFC91588  DCD 0xD11 \n"
 571 //"off_FFC9158C    DCD 0xFFC8DC58 \n"
 572 //"dword_FFC91590  DCD 0xD42 \n"
 573 //"dword_FFC91594  DCD 0x3C0F0 \n"
 574 //"dword_FFC91598  DCD 0xD1B \n"
 575 //"off_FFC9159C    DCD 0xFFC8DC48 \n"
 576 //"dword_FFC915A0  DCD 0xD25 \n"
 577 "loc_FFC915A4:\n"
 578                 "BL      sub_FFC8EC78_my\n"             //------------>
 579                 "MOV     R4, #0\n"
 580                 "B       loc_FFC9169C\n"
 581 "loc_FFC915B0:\n"
 582                 "BL      sub_FFC8EDB4\n"
 583                 "B       loc_FFC9169C\n"
 584 "loc_FFC915B8:\n"
 585                 "LDRH    R1, [R0,#4]\n"
 586                 "STRH    R1, [SP,#0x10]\n"
 587                 "LDRH    R1, [R5,#2]\n"
 588                 "STRH    R1, [SP,#0x12]\n"
 589                 "LDRH    R1, [R5,#4]\n"
 590                 "STRH    R1, [SP,#0x14]\n"
 591                 "LDRH    R1, [R5,#6]\n"
 592                 "STRH    R1, [SP,#0x16]\n"
 593                 "LDRH    R1, [R0,#0xC]\n"
 594                 "STRH    R1, [SP,#0x18]\n"
 595                 "BL      sub_FFC9246C\n"
 596                 "B       loc_FFC9169C\n"
 597 "loc_FFC915E8:\n"
 598                 "LDRH    R1, [R0,#4]\n"
 599                 "STRH    R1, [SP,#0x10]\n"
 600                 "LDRH    R1, [R5,#2]\n"
 601                 "STRH    R1, [SP,#0x12]\n"
 602                 "LDRH    R1, [R5,#4]\n"
 603                 "STRH    R1, [SP,#0x14]\n"
 604                 "LDRH    R1, [R5,#6]\n"
 605                 "STRH    R1, [SP,#0x16]\n"
 606                 "LDRH    R1, [R5,#8]\n"
 607                 "STRH    R1, [SP,#0x18]\n"
 608                 "BL      sub_FFC925EC\n"
 609                 "B       loc_FFC9169C\n"
 610 "loc_FFC91618:\n"
 611                 "LDRH    R1, [R5]\n"
 612                 "STRH    R1, [SP,#0x10]\n"
 613                 "LDRH    R1, [R0,#6]\n"
 614                 "STRH    R1, [SP,#0x12]\n"
 615                 "LDRH    R1, [R5,#4]\n"
 616                 "STRH    R1, [SP,#0x14]\n"
 617                 "LDRH    R1, [R5,#6]\n"
 618                 "STRH    R1, [SP,#0x16]\n"
 619                 "LDRH    R1, [R5,#8]\n"
 620                 "STRH    R1, [SP,#0x18]\n"
 621                 "BL      sub_FFC92698\n"
 622                 "B       loc_FFC9169C\n"
 623 "loc_FFC91648:\n"
 624                 "LDRH    R1, [R5]\n"
 625                 "STRH    R1, [SP,#0x10]\n"
 626                 "LDRH    R1, [R5,#2]\n"
 627                 "STRH    R1, [SP,#0x12]\n"
 628                 "LDRH    R1, [R5,#4]\n"
 629                 "STRH    R1, [SP,#0x14]\n"
 630                 "LDRH    R1, [R5,#6]\n"
 631                 "STRH    R1, [SP,#0x16]\n"
 632                 "LDRH    R1, [R0,#0xC]\n"
 633                 "STRH    R1, [SP,#0x18]\n"
 634                 "BL      sub_FFC92738\n"
 635                 "B       loc_FFC9169C\n"
 636 "loc_FFC91678:\n"
 637                 "BL      sub_FFC8F028\n"
 638                 "B       loc_FFC9169C\n"
 639 "loc_FFC91680:\n"
 640                 "BL      sub_FFC8F644\n"
 641                 "B       loc_FFC9169C\n"
 642 "loc_FFC91688:\n"
 643                 "BL      sub_FFC8F87C\n"
 644                 "B       loc_FFC9169C\n"
 645 "loc_FFC91690:\n"
 646                 "BL      sub_FFC8F9F4\n"
 647                 "B       loc_FFC9169C\n"
 648 "loc_FFC91698:\n"
 649                 "BL      sub_FFC8FB8C\n"
 650 "loc_FFC9169C:\n"
 651                 "LDR     R0, [SP,#0x1C]\n"
 652                 "LDR     R1, [R0,#0x7C]\n"
 653                 "LDR     R3, [R0,#0x88]\n"
 654                 "LDR     R2, [R0,#0x8C]\n"
 655                 "ADD     R0, R0, #4\n"
 656                 "BLX     R3\n"
 657                 "CMP     R4, #1\n"
 658                 "BNE     loc_FFC91704\n"
 659 "loc_FFC916BC:\n"
 660                 "LDR     R0, [SP,#0x1C]\n"
 661                 "MOV     R2, #0xC\n"
 662                 "LDR     R1, [R0,#0x7C]\n"
 663                 "ADD     R1, R1, R1,LSL#1\n"
 664                 "ADD     R0, R0, R1,LSL#2\n"
 665                 "SUB     R4, R0, #8\n"
 666                 "LDR     R0, =0x3C0F0\n"
 667                 "ADD     R1, SP, #0x10\n"
 668                 "BL      sub_FFE58B0C\n"
 669                 "LDR     R0, =0x3C0FC\n"
 670                 "MOV     R2, #0xC\n"
 671                 "ADD     R1, SP, #0x10\n"
 672                 "BL      sub_FFE58B0C\n"
 673                 "LDR     R0, =0x3C108\n"
 674                 "MOV     R2, #0xC\n"
 675                 "MOV     R1, R4\n"
 676                 "BL      sub_FFE58B0C\n"
 677                 "B       loc_FFC9177C\n"
 678 "loc_FFC91704:\n"
 679                 "LDR     R0, [SP,#0x1C]\n"
 680                 "LDR     R0, [R0]\n"
 681                 "CMP     R0, #0xB\n"
 682                 "BNE     loc_FFC9174C\n"
 683                 "MOV     R3, #0\n"
 684                 "STR     R3, [SP]\n"
 685                 "MOV     R3, #1\n"
 686                 "MOV     R2, #1\n"
 687                 "MOV     R1, #1\n"
 688                 "MOV     R0, #0\n"
 689                 "BL      sub_FFC8DF28\n"
 690                 "MOV     R3, #0\n"
 691                 "STR     R3, [SP]\n"
 692                 "MOV     R3, #1\n"
 693                 "MOV     R2, #1\n"
 694                 "MOV     R1, #1\n"
 695                 "MOV     R0, #0\n"
 696                 "B       loc_FFC91778\n"
 697 "loc_FFC9174C:\n"
 698                 "MOV     R3, #1\n"
 699                 "MOV     R2, #1\n"
 700                 "MOV     R1, #1\n"
 701                 "MOV     R0, #1\n"
 702                 "STR     R3, [SP]\n"
 703                 "BL      sub_FFC8DF28\n"
 704                 "MOV     R3, #1\n"
 705                 "MOV     R2, #1\n"
 706                 "MOV     R1, #1\n"
 707                 "MOV     R0, #1\n"
 708                 "STR     R3, [SP]\n"
 709 "loc_FFC91778:\n"
 710                 "BL      sub_FFC8E068\n"
 711 "loc_FFC9177C:\n"
 712                 "LDR     R0, [SP,#0x1C]\n"
 713                 "BL      sub_FFC923F8\n"
 714                 "B       loc_FFC911B4\n"
 715     );
 716 }
 717 
 718 void __attribute__((naked,noinline)) sub_FFC8EC78_my(){
 719  asm volatile(
 720                 "STMFD   SP!, {R4-R8,LR}\n"
 721                 "LDR     R7, =0x649C\n"
 722                 "MOV     R4, R0\n"
 723                 "LDR     R0, [R7,#0x1C]\n"
 724                 "MOV     R1, #0x3E\n"
 725                 "BL      sub_FFC173FC\n"
 726                 "LDRSH   R0, [R4,#4]\n"
 727                 "MOV     R2, #0\n"
 728                 "MOV     R1, #0\n"
 729                 "BL      sub_FFC8DCBC\n"
 730                 "MOV     R6, R0\n"
 731                 "LDRSH   R0, [R4,#6]\n"
 732                 "BL      sub_FFC8DDC8\n"
 733                 "LDRSH   R0, [R4,#8]\n"
 734                 "BL      sub_FFC8DE20\n"
 735                 "LDRSH   R0, [R4,#0xA]\n"
 736                 "BL      sub_FFC8DE78\n"
 737                 "LDRSH   R0, [R4,#0xC]\n"
 738                 "BL      sub_FFC8DED0\n"
 739                 "MOV     R5, R0\n"
 740                 "LDR     R0, [R4]\n"
 741                 "LDR     R8, =0x3C108\n"
 742                 "CMP     R0, #0xB\n"
 743                 "MOVEQ   R6, #0\n"
 744                 "MOVEQ   R5, #0\n"
 745                 "BEQ     loc_FFC8ED08\n"
 746                 "CMP     R6, #1\n"
 747                 "BNE     loc_FFC8ED08\n"
 748                 "LDRSH   R0, [R4,#4]\n"
 749                 "LDR     R1, =0xFFC8DC28\n"
 750                 "MOV     R2, #2\n"
 751                 "BL      sub_FFD059D4\n"
 752                 "STRH    R0, [R4,#4]\n"
 753                 "MOV     R0, #0\n"
 754                 "STR     R0, [R7,#0x28]\n"
 755                 "B       loc_FFC8ED10\n"
 756 "loc_FFC8ED08:\n"
 757                 "LDRH    R0, [R8]\n"
 758                 "STRH    R0, [R4,#4]\n"
 759 "loc_FFC8ED10:\n"
 760                 "CMP     R5, #1\n"
 761                 "LDRNEH  R0, [R8,#8]\n"
 762                 "BNE     loc_FFC8ED2C\n"
 763                 "LDRSH   R0, [R4,#0xC]\n"
 764                 "MOV     R2, #0x20\n"
 765                 "LDR     R1, =0xFFC8DCAC\n"             // "ADR     R1, 0xFFC8DCAC\n"
 766                 "BL      sub_FFC92428\n"
 767 "loc_FFC8ED2C:\n"
 768                 "STRH    R0, [R4,#0xC]\n"
 769                 "LDRSH   R0, [R4,#6]\n"
 770                 "BL      sub_FFC70CCC_my\n"             //-------------->
 771                 "LDRSH   R0, [R4,#8]\n"
 772                 "MOV     R1, #1\n"
 773                 "BL      sub_FFC714C8\n"
 774                 "MOV     R1, #0\n"
 775                 "ADD     R0, R4, #8\n"
 776                 "BL      sub_FFC71550\n"
 777                 "LDRSH   R0, [R4,#0xE]\n"
 778                 "BL      sub_FFC84BF8\n"
 779                 "LDR     R4, =0xBB8\n"
 780                 "CMP     R6, #1\n"
 781                 "BNE     loc_FFC8ED84\n"
 782                 "LDR     R0, [R7,#0x1C]\n"
 783                 "MOV     R2, R4\n"
 784                 "MOV     R1, #2\n"
 785                 "BL      sub_FFC17300\n"
 786                 "TST     R0, #1\n"
 787                 "LDRNE   R1, =0x532\n"
 788                 "LDRNE   R0, =0xFFC8E338\n"             // aExpdrv_c
 789                 "BLNE    sub_FFC0BDB8\n"                // DebugAssert
 790 "loc_FFC8ED84:\n"
 791                 "CMP     R5, #1\n"
 792                 "LDMNEFD SP!, {R4-R8,PC}\n"
 793                 "LDR     R0, [R7,#0x1C]\n"
 794                 "MOV     R2, R4\n"
 795                 "MOV     R1, #0x20\n"
 796                 "BL      sub_FFC17300\n"
 797                 "TST     R0, #1\n"
 798                 "LDRNE   R1, =0x537\n"
 799                 "LDRNE   R0, =0xFFC8E338\n"             // aExpdrv_c
 800                 "LDMNEFD SP!, {R4-R8,LR}\n"
 801                 "BNE     sub_FFC0BDB8\n"                // DebugAssert
 802                 "LDMFD   SP!, {R4-R8,PC}\n"
 803     );
 804 }
 805 
 806 void __attribute__((naked,noinline)) sub_FFC70CCC_my(){
 807  asm volatile(
 808                 "STMFD   SP!, {R4-R6,LR}\n"
 809                 "LDR     R5, =0x5F74\n"
 810                 "MOV     R4, R0\n"
 811                 "LDR     R0, [R5,#4]\n"
 812                 "CMP     R0, #1\n"
 813                 "LDRNE   R1, =0x16D\n"
 814                 "LDRNE   R0, =0xFFC70A64\n"             // aShutter_c, "ADRNE   R0, 0xFFC70A64\n"
 815                 "BLNE    sub_FFC0BDB8\n"                // DebugAssert
 816                 "CMN     R4, #0xC00\n"
 817                 "LDREQSH R4, [R5,#2]\n"
 818                 "CMN     R4, #0xC00\n"
 819                 "LDREQ   R1, =0x173\n"
 820                 "LDREQ   R0, =0xFFC70A64\n"             // aShutter_c, "ADREQ   R0, 0xFFC70A64\n"
 821                 "STRH    R4, [R5,#2]\n"
 822                 "BLEQ    sub_FFC0BDB8\n"                // DebugAssert
 823                 "MOV     R0, R4\n"
 824 //                "BL    sub_FFD71FBC\n"                //-
 825                 "BL      apex2us\n"             //+
 826                 "MOV     R4, R0\n"
 827 //                "BL    nullsub_67\n"
 828                 "MOV     R0, R4\n"
 829                 "BL      sub_FFCA4090\n"
 830                 "TST     R0, #1\n"
 831                 "LDMNEFD SP!, {R4-R6,LR}\n"
 832                 "MOVNE   R1, #0x178\n"
 833                 "LDRNE   R0, =0xFFC70A64\n"             // aShutter_c, "ADRNE   R0, 0xFFC70A64\n"
 834                 "BNE     sub_FFC0BDB8\n"                // DebugAssert
 835                 "LDMFD   SP!, {R4-R6,PC}\n"
 836     );
 837 }

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