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

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

DEFINITIONS

This source file includes following definitions.
  1. sub_FFD2C9B8_my
  2. sub_FFD297A4_my
  3. capt_seq_task
  4. exp_drv_task
  5. sub_FFCDD298_my
  6. sub_FFC95E50_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 
   5 static long *nrflag = (long*)0x60E8;
   6 
   7 #include "../../../generic/capt_seq.c"
   8 //please note: comments ending in question marks contain the original authors' work
   9 //since most of these functions is copied from the original fw, I corrected parts of the code,
  10 //where (in my opinion) it shouldn't differ from the original - srsa_4c
  11 
  12 void __attribute__((naked,noinline)) sub_FFD2C9B8_my(long p)
  13 {
  14   asm volatile (
  15               "STMFD   SP!, {R4-R6,LR}\n"
  16               "LDR     R3, =0x72BAC\n"
  17               "LDR     R5, =0x60E4\n"
  18               "SUB     SP, SP, #4\n"
  19               "LDR     R1, =0xFFFFFFFF\n"
  20               "STR     R0, [R5]\n"
  21               "LDR     R0, [R3]\n"
  22               "BL      sub_FFC0FB48\n"
  23               "LDR     R3, =0x9CFE0\n"
  24               "LDR     R0, [R3,#0x74]\n"
  25               "BL      sub_FFC8ABE4\n"
  26               "BL      sub_FFD2C938\n"
  27              
  28               "LDR     R3, =0x60EC\n"
  29               "LDR     R0, [R3]\n"
  30               "BL      sub_FFC8B090\n"
  31             "BL      wait_until_remote_button_is_released\n" // +
  32               "BL      capt_seq_hook_set_nr\n" // +
  33               "B       sub_FFD2C9F4\n" //jump to the rest
  34   );
  35 }
  36 
  37 void __attribute__((naked,noinline)) sub_FFD297A4_my(long p)
  38 {
  39   asm volatile (
  40               "STMFD   SP!, {R4,LR}\n"
  41               "LDR     R4, [R0,#0xC]\n"
  42               "BL      sub_FFD32564\n"
  43               "CMP     R0, #0\n"
  44               "BNE     loc_FFD297BC\n"
  45               "BL      sub_FFD32570\n"
  46     "loc_FFD297BC:\n"
  47               "MOV     R0, #0xC\n"
  48               "BL      sub_FFD32584\n"
  49               "TST     R0, #1\n"
  50               "MOV     R2, R4\n"
  51               "MOV     R0, R4\n"
  52               "BEQ     loc_FFD297E4\n"
  53               "MOV     R0, #1\n"
  54               "MOV     R1, R0\n"
  55               "LDMFD   SP!, {R4,LR}\n"
  56               "B       sub_FFD27D20\n"
  57     "loc_FFD297E4:\n"
  58               "BL      sub_FFD2B80C\n"
  59               "TST     R0, #1\n"
  60               "MOV     R2, R4\n"
  61               "MOV     R1, #1\n"
  62               "BEQ     loc_FFD29800\n"
  63               "LDMFD   SP!, {R4,LR}\n"
  64               "B       sub_FFD27D20\n"
  65     "loc_FFD29800:\n"
  66               "BL      sub_FFD67F90\n"
  67               "BL      sub_FFC14714\n"
  68               "LDR     R2, =0x9CF24\n"
  69               "ADD     R3, R4, R4,LSL#1\n"
  70               "STR     R0, [R2,R3,LSL#5]\n"
  71               "MOV     R0, R4\n"
  72               "BL      sub_FFD2D120\n"
  73               "BL      sub_FFD2BD10\n"
  74               "BL      sub_FFD2BCAC\n"
  75               "MOV     R0, R4\n"
  76 
  77               "BL      sub_FFD2C9B8_my\n"
  78               "BL      capt_seq_hook_raw_here\n"  // +
  79 
  80              // "BL      sub_FFD483A4\n"
  81 
  82               "MOV     R2, R4\n"
  83               "MOV     R1, #1\n"
  84               "BL      sub_FFD27D20\n"
  85               "LDMFD   SP!, {R4,LR}\n"
  86               "B       sub_FFD2CBAC\n"
  87   );
  88 }
  89 
  90 void __attribute__((naked,noinline)) capt_seq_task()    //IDA task_CaptSeqTask
  91 {
  92   asm volatile (
  93           "STMFD   SP!, {R4,LR}\n"
  94           "SUB     SP, SP, #4\n"
  95           "MOV     R4, SP\n"
  96           "B       loc_FFD29CE4\n"
  97     "loc_FFD29B9C:\n"
  98           "LDR     R2, [SP,#0xC-0xC]\n"
  99           "LDR     R3, [R2]\n"
 100           "MOV     R0, R2\n"
 101           "CMP     R3, #0x14\n"
 102           "LDRLS   PC, [PC,R3,LSL#2]\n"
 103           "B       loc_FFD29CB8\n"
 104           ".long loc_FFD29C08\n"
 105           ".long loc_FFD29C14\n"
 106           ".long loc_FFD29C1C\n"
 107           ".long loc_FFD29C2C\n"
 108           ".long loc_FFD29C24\n"
 109           ".long loc_FFD29C34\n"
 110           ".long loc_FFD29C3C\n"
 111           ".long loc_FFD29C48\n"
 112           ".long loc_FFD29C50\n"
 113           ".long loc_FFD29C5C\n"
 114           ".long loc_FFD29C64\n"
 115           ".long loc_FFD29C6C\n"
 116           ".long loc_FFD29C74\n"
 117           ".long loc_FFD29C7C\n"
 118           ".long loc_FFD29C84\n"
 119           ".long loc_FFD29C90\n"
 120           ".long loc_FFD29C98\n"
 121           ".long loc_FFD29CA0\n"
 122           ".long loc_FFD29CA8\n"
 123           ".long loc_FFD29CB0\n"
 124           ".long loc_FFD29CCC\n"
 125     "loc_FFD29C08:\n"
 126           "BL      sub_FFD2B47C\n"
 127           "BL      shooting_expo_param_override\n"   // +
 128         //  "BL  handle_is_off\n"
 129           "BL      sub_FFD278D0\n"
 130           "B       loc_FFD29CC8\n"
 131     "loc_FFD29C14:\n"
 132                         //"BL      sub_FFD45048\n"
 133           "BL      sub_FFD297A4_my\n"
 134                                         "B       loc_FFD29CC8\n"
 135     "loc_FFD29C1C:\n"
 136           "BL      sub_FFD2B7FC\n"
 137           "B       loc_FFD29CC8\n"
 138     "loc_FFD29C24:\n"
 139           "BL      sub_FFD2A6F4\n"
 140           "B       loc_FFD29CC8\n"
 141     "loc_FFD29C2C:\n" //shooting but. rel.
 142           "BL      sub_FFD2AB10\n"
 143        //   "BL  handle_is_on\n"            //+
 144           "B       loc_FFD29CC8\n"
 145     "loc_FFD29C34:\n"
 146           "BL      sub_FFD2AB20\n"
 147           "B       loc_FFD29CC8\n"
 148     "loc_FFD29C3C:\n"
 149           "BL      sub_FFD2B548\n"
 150           "BL      sub_FFD278D0\n"
 151           "B       loc_FFD29CC8\n"
 152     "loc_FFD29C48:\n"
 153           "BL      sub_FFD298B0\n"
 154           "B       loc_FFD29CC8\n"
 155     "loc_FFD29C50:\n"
 156           "BL      sub_FFD2B5B0\n"
 157           "BL      sub_FFD278D0\n"
 158           "B       loc_FFD29CC8\n"
 159     "loc_FFD29C5C:\n"
 160           "BL      sub_FFD2AB10\n"
 161           "B       loc_FFD29CC8\n"
 162     "loc_FFD29C64:\n"
 163           "BL      sub_FFD2BD50\n"
 164           "B       loc_FFD29CC8\n"
 165     "loc_FFD29C6C:\n"
 166           "BL      sub_FFD2C06C\n"
 167           "B       loc_FFD29CC8\n"
 168     "loc_FFD29C74:\n"
 169           "BL      sub_FFD2C0F4\n"
 170           "B       loc_FFD29CC8\n"
 171     "loc_FFD29C7C:\n"
 172           "BL      sub_FFD2C1BC\n"
 173           "B       loc_FFD29CC8\n"
 174     "loc_FFD29C84:\n"
 175           "MOV     R0, #0\n"
 176           "BL      sub_FFD2C274\n"
 177           "B       loc_FFD29CC8\n"
 178     "loc_FFD29C90:\n"
 179           "BL      sub_FFD2C3CC\n"
 180           "B       loc_FFD29CC8\n"
 181     "loc_FFD29C98:\n"
 182           "BL      sub_FFD2C464\n"
 183           "B       loc_FFD29CC8\n"
 184     "loc_FFD29CA0:\n"
 185           "BL      sub_FFD2C520\n"
 186           "B       loc_FFD29CC8\n"
 187     "loc_FFD29CA8:\n"
 188           "BL      sub_FFD2C608\n"
 189           "B       loc_FFD29CC8\n"
 190     "loc_FFD29CB0:\n"
 191           "BL      sub_FFD2C65C\n"
 192           "B       loc_FFD29CC8\n"
 193     "loc_FFD29CB8:\n"
 194           "MOV     R1, #0x330\n"
 195           "LDR     R0, =0xFFD29530\n"
 196           "ADD     R1, R1, #1\n"
 197           "BL      sub_FFC03AEC\n"
 198     "loc_FFD29CC8:\n"
 199           "LDR     R2, [SP,#0xC-0xC]\n"
 200     "loc_FFD29CCC:\n"
 201           "LDR     R3, =0x72B34\n"
 202           "LDR     R1, [R2,#4]\n"
 203           "LDR     R0, [R3]\n"
 204           "BL      sub_FFC0F9AC\n"
 205           "LDR     R0, [SP,#0xC-0xC]\n"
 206           "BL      sub_FFD295AC\n"
 207     "loc_FFD29CE4:\n"
 208           "LDR     R3, =0x72B38\n"
 209           "MOV     R1, R4\n"
 210           "LDR     R0, [R3]\n"
 211           "MOV     R2, #0\n"
 212           "BL      sub_FFC100C4\n"
 213           "TST     R0, #1\n"
 214           "BEQ     loc_FFD29B9C\n"
 215           "MOV     R1, #0x28C\n"
 216           "LDR     R0, =0xFFD29530\n" // =0xffd2952c ?
 217           "ADD     R1, R1, #2\n" // #3 ?
 218           "BL      sub_FFC03AEC\n"
 219           "BL      sub_FFC11620\n" // ExitTask
 220           "ADD     SP, SP, #4\n"
 221           "LDMFD   SP!, {R4,PC}\n"
 222   );
 223 }
 224 
 225 void __attribute__((naked,noinline)) exp_drv_task(){
 226  asm volatile(
 227 "                STMFD   SP!, {R4-R8,LR}\n"
 228 "                SUB     SP, SP, #0x14\n"
 229 "                MOV     R7, SP\n"
 230 "                B       loc_FFCDEDEC\n"
 231 "loc_FFCDEA08:\n"
 232 "                CMP     R2, #0x1E\n"
 233 "                BNE     loc_FFCDEA20\n"
 234 "                LDR     R0, [R12,#0x34]\n"
 235 "                MOV     LR, PC\n"
 236 "                LDR     PC, [R12,#0x30]\n"
 237 "                B       loc_FFCDEA80\n"
 238 "loc_FFCDEA20:\n"
 239 "                CMP     R2, #0x19\n"
 240 "                BNE     loc_FFCDEA34\n"
 241 "                MOV     R0, R12\n"
 242 "                BL      sub_FFCDE928\n"
 243 "                B       loc_FFCDEA70\n"
 244 "loc_FFCDEA34:\n"
 245 "                CMP     R2, #0x1A\n"
 246 "                BNE     loc_FFCDEA48\n"
 247 "                MOV     R0, R12\n"
 248 "                BL      sub_FFCDE964\n"
 249 "                B       loc_FFCDEA70\n"
 250 "loc_FFCDEA48:\n"
 251 "                SUB     R3, R2, #0x1B\n"
 252 "                CMP     R3, #1\n"
 253 "                BHI     loc_FFCDEA60\n"
 254 "                MOV     R0, R12\n"
 255 "                BL      sub_FFCDE9A0\n"
 256 "                B       loc_FFCDEA70\n"
 257 "loc_FFCDEA60:\n"
 258 "                CMP     R2, #0x1D\n"
 259 "                BNE     loc_FFCDEA8C\n"
 260 "                BL      sub_FFC961C8\n" //Shutter.c:372
 261 "                BL      sub_FFC97FB8\n" //ImgGain.c:436
 262 "loc_FFCDEA70:\n"
 263 "                LDR     R3, [SP]\n"
 264 "                LDR     R0, [R3,#0x34]\n"
 265 "                MOV     LR, PC\n"
 266 "                LDR     PC, [R3,#0x30]\n"
 267 "loc_FFCDEA80:\n"
 268 "                LDR     R0, [SP]\n"
 269 "                BL      sub_FFCDC724\n"
 270 "                B       loc_FFCDEDEC\n"
 271 "loc_FFCDEA8C:\n"
 272 "                CMP     R2, #0xD\n"
 273 "                MOV     R8, #1\n"
 274 "                BNE     loc_FFCDEAFC\n"
 275 "                LDR     R1, [R12,#0x24]\n"
 276 "                ADD     R1, R1, R1,LSL#1\n"
 277 "                ADD     R1, R12, R1,LSL#1\n"
 278 "                ADD     R6, SP, #0xC\n"
 279 "                SUB     R1, R1, #2\n"
 280 "                MOV     R2, #6\n"
 281 "                MOV     R0, R6\n"
 282 "                BL      _memcpy\n"
 283 "                LDR     R0, [SP]\n"
 284 "                BL      sub_FFCDDBB8\n"
 285 "                LDR     R3, [SP]\n"
 286 "                LDR     R1, [R3,#0x24]\n"
 287 "                LDR     R2, [R3,#0x34]\n"
 288 "                ADD     R0, R3, #4\n"
 289 "                MOV     LR, PC\n"
 290 "                LDR     PC, [R3,#0x30]\n"
 291 "                LDR     R0, [SP]\n"
 292 "                BL      sub_FFCDDD3C\n"
 293 "                LDR     R3, [SP]\n"
 294 "                ADD     R0, R3, #4\n"
 295 "                LDR     R1, [R3,#0x24]\n"
 296 "                LDR     R2, [R3,#0x3C]\n"
 297 "                MOV     LR, PC\n"
 298 "                LDR     PC, [R3,#0x38]\n"
 299 "                B       loc_FFCDED9C\n"
 300 "loc_FFCDEAFC:\n"
 301 "                SUB     R3, R2, #0xE\n"
 302 "                CMP     R3, #1\n"
 303 "                BHI     loc_FFCDEBB8\n"
 304 "                ADD     R6, SP, #0xC\n"
 305 "                ADD     R5, SP, #4\n"
 306 "                MOV     R0, R12\n"
 307 "                MOV     R1, R6\n"
 308 "                MOV     R2, R5\n"
 309 "                BL      sub_FFCDDDB8\n"
 310 "                MOV     R4, R0\n"
 311 "                CMP     R4, #5\n"
 312 "                CMPNE   R4, #1\n"
 313 "                BNE     loc_FFCDEB50\n"
 314 "                LDR     R12, [SP]\n"
 315 "                MOV     R0, R5\n"
 316 "                LDR     R1, [R12,#0x24]\n" //0x40 ?
 317 "                MOV     R2, R4\n"
 318 "                LDR     R3, [R12,#0x34]\n" //0x50 ?
 319 "                MOV     LR, PC\n"
 320 "                LDR     PC, [R12,#0x30]\n" //0x4C ?
 321 "                B       loc_FFCDEB88\n"
 322 "loc_FFCDEB50:\n"
 323 "                CMP     R4, #6\n"
 324 "                CMPNE   R4, #2\n"
 325 "                BNE     loc_FFCDEB98\n"
 326 "                LDR     R12, [SP]\n"
 327 "                MOV     R0, R5\n"
 328 "                MOV     R1, R8\n"
 329 "                MOV     R2, R4\n"
 330 "                LDR     R3, [R12,#0x34]\n"
 331 "                MOV     LR, PC\n"
 332 "                LDR     PC, [R12,#0x30]\n"
 333 "                MOV     R1, R6\n"
 334 "                LDR     R0, [SP]\n"
 335 "                MOV     R2, R5\n"
 336 "                BL      sub_FFCDE764\n"
 337 "loc_FFCDEB88:\n"
 338 "                MOV     R1, R4\n"
 339 "                LDR     R0, [SP]\n"
 340 "                BL      sub_FFCDE908\n"
 341 "                B       loc_FFCDED9C\n"
 342 "loc_FFCDEB98:\n"
 343 "                LDR     R12, [SP]\n"
 344 "                MOV     R2, R4\n"
 345 "                ADD     R0, R12, #4\n"
 346 "                LDR     R1, [R12,#0x24]\n" //0x40 ?
 347 "                LDR     R3, [R12,#0x34]\n" //0x50 ?
 348 "                MOV     LR, PC\n"
 349 "                LDR     PC, [R12,#0x30]\n" //0x4c ?
 350 "                B       loc_FFCDED9C\n"
 351 "loc_FFCDEBB8:\n"
 352 "                CMP     R2, #0x17\n" //SUB     R3, R2, #0x17 ?
 353 "                BNE     loc_FFCDEC0C\n" //BHI     loc_FFCDEC0C ?
 354 "                LDR     R1, [R12,#0x24]\n"
 355 "                ADD     R1, R1, R1,LSL#1\n"
 356 "                ADD     R1, R12, R1,LSL#1\n"
 357 "                ADD     R6, SP, #0xC\n"
 358 "                SUB     R1, R1, #2\n"
 359 "                MOV     R2, #6\n"
 360 "                MOV     R0, R6\n"
 361 "                BL      _memcpy\n"
 362 "                LDR     R0, [SP]\n"
 363 "                BL      sub_FFCDD6EC\n"
 364 "                LDR     R3, [SP]\n"
 365 "                ADD     R0, R3, #4\n"
 366 "                LDR     R1, [R3,#0x24]\n"
 367 "                LDR     R2, [R3,#0x34]\n"
 368 "                MOV     LR, PC\n"
 369 "                LDR     PC, [R3,#0x30]\n" //0x4c ?
 370 "                LDR     R0, [SP]\n"
 371 "                BL      sub_FFCDD8BC\n"
 372 "                B       loc_FFCDED9C\n"
 373 "loc_FFCDEC0C:\n"
 374 "                ADD     R6, SP, #0xC\n"
 375 "                ADD     R1, R12, #4\n"
 376 "                MOV     R2, #6\n"
 377 "                MOV     R0, R6\n"
 378 "                BL      _memcpy\n"
 379 "                LDR     R12, [SP]\n"
 380 "                LDR     R3, [R12]\n"
 381 "                MOV     R2, R12\n"
 382 "                CMP     R3, #0x18\n"
 383 "                LDRLS   PC, [PC,R3,LSL#2]\n"
 384 "                B       loc_FFCDED88\n"
 385 "                .long loc_FFCDEC9C\n"
 386 "                .long loc_FFCDECA8\n"
 387 "                .long loc_FFCDECB4\n"
 388 "                .long loc_FFCDECB4\n"
 389 "                .long loc_FFCDEC9C\n"
 390 "                .long loc_FFCDECA8\n"
 391 "                .long loc_FFCDECB4\n"
 392 "                .long loc_FFCDECB4\n"
 393 "                .long loc_FFCDECD8\n"
 394 "                .long loc_FFCDECD8\n"
 395 "                .long loc_FFCDED5C\n"
 396 "                .long loc_FFCDED68\n"
 397 "                .long loc_FFCDED78\n"
 398 "                .long loc_FFCDED88\n"
 399 "                .long loc_FFCDED88\n"
 400 "                .long loc_FFCDED88\n"
 401 "                .long loc_FFCDECC0\n"
 402 "                .long loc_FFCDECCC\n"
 403 "                .long loc_FFCDECE8\n"
 404 "                .long loc_FFCDECF4\n"
 405 "                .long loc_FFCDED1C\n"
 406 "                .long loc_FFCDED44\n"
 407 "                .long loc_FFCDED44\n"
 408 "                .long loc_FFCDED88\n"
 409 "                .long loc_FFCDED50\n"
 410 "loc_FFCDEC9C:\n"
 411 "                MOV     R0, R2\n"
 412 "                BL      sub_FFCDCC8C\n"
 413 "                B       loc_FFCDED84\n"
 414 "loc_FFCDECA8:\n"
 415 "                MOV     R0, R2\n"
 416 "                BL      sub_FFCDCDC8\n"
 417 "                B       loc_FFCDED84\n"
 418 "loc_FFCDECB4:\n"
 419 "                MOV     R0, R2\n"
 420 "                BL      sub_FFCDCEF8\n"
 421 "                B       loc_FFCDED84\n"
 422 "loc_FFCDECC0:\n"
 423 "                MOV     R0, R2\n"
 424 "                BL      sub_FFCDD0CC\n"
 425 "                B       loc_FFCDED84\n"
 426 "loc_FFCDECCC:\n"
 427 "                MOV     R0, R2\n"
 428 "                BL      sub_FFCDD1D4\n"
 429 "                B       loc_FFCDED84\n"
 430 "loc_FFCDECD8:\n"
 431 "                MOV     R0, R2\n"
 432 //"                BL      sub_FFCF29DC\n" // ->
 433 "                BL      sub_FFCDD298_my\n" // ->
 434 "                MOV     R8, #0\n"
 435 "                B       loc_FFCDED84\n"
 436 "loc_FFCDECE8:\n"
 437 "                MOV     R0, R2\n"
 438 "                BL      sub_FFCDD358\n"
 439 "                B       loc_FFCDED84\n"
 440 "loc_FFCDECF4:\n"
 441 "                MOV     R0, R2\n"
 442 "                LDRH    R2, [R2,#4]\n"
 443 "                LDR     R3, =0x4E220\n"
 444 "                STRH    R2, [SP,#0xC]\n"
 445 "                LDRH    R1, [R3,#4]\n"
 446 "                STRH    R1, [SP,#0x10]\n"
 447 "                LDRH    R3, [R3,#2]\n"
 448 "                STRH    R3, [SP,#0xE]\n"
 449 "                BL      sub_FFCDD4E0\n"
 450 "                B       loc_FFCDED84\n"
 451 "loc_FFCDED1C:\n"
 452 "                LDR     R3, =0x4E220\n"
 453 "                LDRH    R1, [R3]\n"
 454 "                STRH    R1, [SP,#0xC]\n"
 455 "                MOV     R0, R2\n"
 456 "                LDRH    R2, [R2,#6]\n"
 457 "                STRH    R2, [SP,#0xE]\n"
 458 "                LDRH    R3, [R3,#4]\n"
 459 "                STRH    R3, [SP,#0x10]\n"
 460 "                BL      sub_FFCDD574\n"
 461 "                B       loc_FFCDED84\n"
 462 "loc_FFCDED44:\n"
 463 "                MOV     R0, R2\n"
 464 "                BL      sub_FFCDD5F4\n"
 465 "                B       loc_FFCDED84\n"
 466 "loc_FFCDED50:\n"
 467 "                MOV     R0, R2\n"
 468 "                BL      sub_FFCDD94C\n"
 469 "                B       loc_FFCDED84\n"
 470 "loc_FFCDED5C:\n"
 471 "                MOV     R0, R2\n"
 472 "                BL      sub_FFCDDA20\n"
 473 "                B       loc_FFCDED84\n"
 474 "loc_FFCDED68:\n"
 475 "                MOV     R0, R2\n"
 476 "                MOV     R1, #0\n"
 477 "                BL      sub_FFCDDB0C\n"
 478 "                B       loc_FFCDED84\n"
 479 "loc_FFCDED78:\n"
 480 "                MOV     R0, R2\n"
 481 "                MOV     R1, #1\n"
 482 "                BL      sub_FFCDDB0C\n"
 483 "loc_FFCDED84:\n"
 484 "                LDR     R12, [SP]\n"
 485 "loc_FFCDED88:\n"
 486 "                ADD     R0, R12, #4\n"
 487 "                LDR     R1, [R12,#0x24]\n"
 488 "                LDR     R2, [R12,#0x34]\n"
 489 "                MOV     LR, PC\n"
 490 "                LDR     PC, [R12,#0x30]\n"
 491 "loc_FFCDED9C:\n"
 492 "                CMP     R8, #1\n"
 493 "                BNE     loc_FFCDEDC4\n"
 494 "                LDR     R1, [SP]\n"
 495 "                LDR     R3, [R1,#0x24]\n"
 496 "                ADD     R3, R3, R3,LSL#1\n"
 497 "                ADD     R1, R1, R3,LSL#1\n"
 498 "                MOV     R0, R6\n"
 499 "                SUB     R1, R1, #2\n"
 500 "                BL      sub_FFCDCAF4\n"
 501 "                B       loc_FFCDEDE4\n"
 502 "loc_FFCDEDC4:\n"
 503 "                MOV     R0, #1\n"
 504 "                MOV     R1, R0\n"
 505 "                MOV     R2, R0\n"
 506 "                BL      sub_FFCDCA98\n"
 507 "                MOV     R0, #1\n"
 508 "                MOV     R1, R0\n"
 509 "                MOV     R2, R0\n"
 510 "                BL      sub_FFCDCBB4\n"
 511 "loc_FFCDEDE4:\n"
 512 "                LDR     R0, [SP]\n"
 513 "                BL      sub_FFCDC724\n"
 514 "loc_FFCDEDEC:\n"
 515 "                LDR     R3, =0x4E218\n"
 516 "                MOV     R2, #0\n"
 517 "                LDR     R0, [R3]\n"
 518 "                MOV     R1, R7\n"
 519 "                BL      sub_FFC100C4\n" //ReceiveMessageQueue
 520 "                LDR     R12, [SP]\n"
 521 "                LDR     R2, [R12]\n"
 522 "                CMP     R2, #0x1F\n" //0x20 ?
 523 "                BNE     loc_FFCDEA08\n"
 524 "                MOV     R0, R12\n"
 525 "                BL      sub_FFCDC724\n"
 526 "                LDR     R3, =0x4E214\n"
 527 "                MOV     R1, #1\n"
 528 "                LDR     R0, [R3]\n"
 529 "                BL      sub_FFC0F9AC\n"// SetEventFlag
 530 "                BL      _ExitTask\n"
 531 "                ADD     SP, SP, #0x14\n"
 532 "                LDMFD   SP!, {R4-R8,PC}\n"
 533  );
 534 }
 535 void __attribute__((naked,noinline)) sub_FFCDD298_my(){
 536  asm volatile(
 537 "                STMFD   SP!, {R4,R5,LR}\n"
 538 "                LDR     R3, =0x4E214\n"
 539 "                MOV     R4, R0\n"
 540 "                MOV     R1, #0xE\n"
 541 "                LDR     R0, [R3]\n"
 542 "                BL      sub_FFC0FB48\n" //ClearEventFlag
 543 "                MOV     R1, #0\n"
 544 "                LDRSH   R0, [R4,#4]\n"
 545 "                BL      sub_FFCDC800\n"
 546 "                MOV     R5, R0\n"
 547 "                LDRSH   R0, [R4,#6]\n"
 548 "                BL      sub_FFCDC930\n"
 549 "                LDRSH   R0, [R4,#8]\n"
 550 "                BL      sub_FFCDC9CC\n"
 551 "                LDR     R3, [R4]\n"
 552 "                CMP     R3, #9\n"
 553 "                MOVEQ   R5, #0\n"
 554 "                CMP     R5, #1\n"
 555 "                LDR     R1, =0xFFCDC758\n"
 556 "                MOV     R2, #2\n"
 557 "                BNE     loc_FFCDD304\n"
 558 "                LDRSH   R0, [R4,#4]\n"
 559 "                BL      sub_FFE52F6C\n" //IrisController.c:178
 560 "                LDR     R2, =0x4E240\n"
 561 "                MOV     R3, #0\n"
 562 "                STR     R3, [R2]\n"
 563 "                B       loc_FFCDD308\n"
 564 "loc_FFCDD304:\n"
 565 "                BL      sub_FFCDCA68\n"
 566 "loc_FFCDD308:\n"
 567 "                STRH    R0, [R4,#4]\n"
 568 "                LDRSH   R0, [R4,#6]\n"
 569 "                BL      sub_FFC95E50_my\n" //Shutter.c:276 ->
 570 "                LDRSH   R0, [R4,#8]\n"
 571 "                MOV     R1, #1\n"
 572 "                BL      sub_FFC97B78\n" //ImgGain.c:292
 573 "                MOV     R1, #0\n"
 574 "                ADD     R0, R4, #8\n"
 575 "                BL      sub_FFC97C38\n" //ImgGain.c:316
 576 "                CMP     R5, #1\n"
 577 "                MOV     R1, #2\n"
 578 "                MOV     R2, #0\n"
 579 "                LDMNEFD SP!, {R4,R5,PC}\n"
 580 "                LDR     R3, =0x4E214\n"
 581 "                LDR     R0, [R3]\n"
 582 "                LDMFD   SP!, {R4,R5,LR}\n"
 583 "                B       sub_FFC0F99C\n"
 584  );
 585 }
 586 void __attribute__((naked,noinline)) sub_FFC95E50_my() { // __Shutter_c__276
 587  asm volatile(
 588 "                STMFD   SP!, {R4,LR}\n"
 589 "                LDR     R3, =0x52FC\n"
 590 "                LDR     R2, [R3]\n"
 591 "                MOV     R1, #0x114\n"
 592 "                MOV     R3, R0,LSL#16\n"
 593 "                CMP     R2, #1\n"
 594 "                ADD     R1, R1, #1\n"
 595 "                LDR     R0, =0xFFC958CC\n" // "Shutter.c"
 596 "                MOV     R4, R3,ASR#16\n"
 597 "                BEQ     loc_FFC95E7C\n"
 598 "                BL      sub_FFC03AEC\n" // DebugAssert
 599 "loc_FFC95E7C:\n"
 600 "                MOV     R1, #0x118\n"
 601 "                CMN     R4, #0xC00\n"
 602 "                LDR     R3, =0x3474E\n"
 603 "                LDR     R0, =0xFFC958CC\n" // "Shutter.c"
 604 "                ADD     R1, R1, #3\n"
 605 "                LDREQSH R4, [R3]\n"
 606 "                LDRNE   R3, =0x3474E\n"
 607 "                CMN     R4, #0xC00\n"
 608 "                STRH    R4, [R3]\n"
 609 "                BNE     loc_FFC95EA8\n"
 610 "                BL      sub_FFC03AEC\n" // DebugAssert
 611 "loc_FFC95EA8:\n"
 612 "                MOV     R0, R4\n"
 613 //"                BL      sub_FFC9F288\n"
 614 "                BL      apex2us\n" // + 
 615 "                MOV     R4, R0\n"
 616 "                BL      sub_FFCBBA64\n"
 617 "                MOV     R0, R4\n"
 618 "                BL      sub_FFC954C0\n"
 619 "                TST     R0, #1\n"
 620 "                MOV     R1, #0x120\n"
 621 "                LDR     R0, =0xFFC958CC\n" // "Shutter.c"
 622 "                LDMEQFD SP!, {R4,PC}\n"
 623 "                LDMFD   SP!, {R4,LR}\n"
 624 "                B       sub_FFC03AEC\n" // DebugAssert
 625  );
 626 }
 627 

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