root/platform/ixus70_sd1000/sub/102a/capt_seq.c

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

DEFINITIONS

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

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