root/platform/ixus265_elph340hs/sub/100c/capt_seq.c

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

DEFINITIONS

This source file includes following definitions.
  1. capt_seq_task
  2. sub_FF216D10_my
  3. sub_FF216B78_my
  4. sub_FF3CB6DC_my

   1 /*
   2  * capt_seq.c - auto-generated by CHDK code_gen.
   3  */
   4 #include "lolevel.h"
   5 #include "platform.h"
   6 #include "core.h"
   7 
   8 #define USE_STUBS_NRFLAG 1 // see stubs_min.S
   9 #define NR_AUTO (0)        // have to explictly reset value back to 0 to enable auto
  10 #define PAUSE_FOR_FILE_COUNTER 350  // Enable delay in capt_seq_hook_raw_here to ensure file counter is updated
  11 
  12 #include "../../../generic/capt_seq.c"
  13 
  14 
  15 /*************************************************************/
  16 //** capt_seq_task @ 0xFF093E30 - 0xFF094130, length=193
  17 void __attribute__((naked,noinline)) capt_seq_task() {
  18 asm volatile (
  19 "    STMFD   SP!, {R3-R7,LR} \n"
  20 "    LDR     R5, =0x26328 \n"
  21 "    LDR     R7, =0x3690 \n"
  22 "    MOV     R6, #0 \n"
  23 
  24 "loc_FF093E40:\n"
  25 "    LDR     R0, [R7, #4] \n"
  26 "    MOV     R2, #0 \n"
  27 "    MOV     R1, SP \n"
  28 "    BL      sub_006B8458 /*_ReceiveMessageQueue*/ \n"
  29 "    TST     R0, #1 \n"
  30 "    BEQ     loc_FF093E70 \n"
  31 "    LDR     R2, =0x429 \n"
  32 "    LDR     R1, =0xFF09371C /*'SsShootTask.c'*/ \n"
  33 "    MOV     R0, #0 \n"
  34 "    BL      _DebugAssert \n"
  35 "    BL      _ExitTask \n"
  36 "    LDMFD   SP!, {R3-R7,PC} \n"
  37 
  38 "loc_FF093E70:\n"
  39 "    LDR     R0, [SP] \n"
  40 "    LDR     R0, [R0] \n"
  41 "    CMP     R0, #1 \n"
  42 "    CMPNE   R0, #0x26 \n"
  43 "    CMPNE   R0, #0x1C \n"
  44 "    BLNE    sub_FF218104 \n"
  45 "    LDR     R0, [SP] \n"
  46 "    LDR     R1, [R0] \n"
  47 "    CMP     R1, #0x28 \n"
  48 "    ADDCC   PC, PC, R1, LSL#2 \n"
  49 "    B       loc_FF0940F4 \n"
  50 "    B       loc_FF093F3C \n"
  51 "    B       loc_FF093F54 \n"
  52 "    B       loc_FF093F60 \n"
  53 "    B       loc_FF093F74 \n"
  54 "    B       loc_FF093F6C \n"
  55 "    B       loc_FF093F80 \n"
  56 "    B       loc_FF093F88 \n"
  57 "    B       loc_FF093F90 \n"
  58 "    B       loc_FF093F9C \n"
  59 "    B       loc_FF093FE0 \n"
  60 "    B       loc_FF093FA8 \n"
  61 "    B       loc_FF093FB4 \n"
  62 "    B       loc_FF093FBC \n"
  63 "    B       loc_FF093FC8 \n"
  64 "    B       loc_FF093FD0 \n"
  65 "    B       loc_FF093FD8 \n"
  66 "    B       loc_FF093FE8 \n"
  67 "    B       loc_FF093FF0 \n"
  68 "    B       loc_FF093FF8 \n"
  69 "    B       loc_FF094000 \n"
  70 "    B       loc_FF094008 \n"
  71 "    B       loc_FF094014 \n"
  72 "    B       loc_FF09401C \n"
  73 "    B       loc_FF094024 \n"
  74 "    B       loc_FF09402C \n"
  75 "    B       loc_FF094034 \n"
  76 "    B       loc_FF09403C \n"
  77 "    B       loc_FF094044 \n"
  78 "    B       loc_FF09404C \n"
  79 "    B       loc_FF094058 \n"
  80 "    B       loc_FF094060 \n"
  81 "    B       loc_FF094068 \n"
  82 "    B       loc_FF094070 \n"
  83 "    B       loc_FF094078 \n"
  84 "    B       loc_FF094084 \n"
  85 "    B       loc_FF09408C \n"
  86 "    B       loc_FF094098 \n"
  87 "    B       loc_FF0940D4 \n"
  88 "    B       loc_FF0940E0 \n"
  89 "    B       loc_FF094104 \n"
  90 
  91 "loc_FF093F3C:\n"
  92 //"    BL      shooting_expo_iso_override\n"      // extra ISO override call doesn't appear to be needed on elph130
  93 "    BL      sub_FF0946A0 \n"
  94 "    BL      shooting_expo_param_override\n"    // added
  95 "    BL      sub_FF091114 \n"
  96 // try avoid intermittetant override failues on quick press, not needed?
  97 //"    MOV     R0, #0\n"                          // added
  98 //"    STR     R0, [R5,#0x28]\n"                  // added
  99 "    LDR     R0, [R5, #0x28] \n"
 100 "    CMP     R0, #0 \n"
 101 "    BLNE    sub_FF216D10_my \n"  // --> Patched. Old value = 0xFF216D10.
 102 "    B       loc_FF094104 \n"
 103 
 104 "loc_FF093F54:\n"
 105 "    LDR     R0, [R0, #0x10] \n"
 106 "    BL      sub_FF216B78_my \n"  // --> Patched. Old value = 0xFF216B78.
 107 "    B       loc_FF094104 \n"
 108 
 109 "loc_FF093F60:\n"
 110 "    MOV     R0, #1 \n"
 111 "    BL      sub_FF0949D4 \n"
 112 "    B       loc_FF094104 \n"
 113 
 114 "loc_FF093F6C:\n"
 115 "    BL      sub_FF0942F0 \n"
 116 "    B       loc_FF093F78 \n"
 117 
 118 "loc_FF093F74:\n"
 119 "    BL      sub_FF09467C \n"
 120 
 121 "loc_FF093F78:\n"
 122 "    STR     R6, [R5, #0x28] \n"
 123 "    B       loc_FF094104 \n"
 124 
 125 "loc_FF093F80:\n"
 126 "    BL      sub_FF094684 \n"
 127 "    B       loc_FF094104 \n"
 128 
 129 "loc_FF093F88:\n"
 130 "    BL      sub_FF0948A8 \n"
 131 "    B       loc_FF093FA0 \n"
 132 
 133 "loc_FF093F90:\n"
 134 "    LDR     R0, [R0, #0x10] \n"
 135 "    BL      sub_FF216DAC \n"
 136 "    B       loc_FF094104 \n"
 137 
 138 "loc_FF093F9C:\n"
 139 "    BL      sub_FF09492C \n"
 140 
 141 "loc_FF093FA0:\n"
 142 "    BL      sub_FF091114 \n"
 143 "    B       loc_FF094104 \n"
 144 
 145 "loc_FF093FA8:\n"
 146 "    LDR     R0, [R5, #0x50] \n"
 147 "    BL      sub_FF09514C \n"
 148 "    B       loc_FF094104 \n"
 149 
 150 "loc_FF093FB4:\n"
 151 "    BL      sub_FF095484 \n"
 152 "    B       loc_FF094104 \n"
 153 
 154 "loc_FF093FBC:\n"
 155 "    LDR     R0, [R0, #0xC] \n"
 156 "    BL      sub_FF0954EC \n"
 157 "    B       loc_FF094104 \n"
 158 
 159 "loc_FF093FC8:\n"
 160 "    BL      sub_FF095690 \n"
 161 "    B       loc_FF094104 \n"
 162 
 163 "loc_FF093FD0:\n"
 164 "    BL      sub_FF095BA0 \n"
 165 "    B       loc_FF094104 \n"
 166 
 167 "loc_FF093FD8:\n"
 168 "    BL      sub_FF095C80 \n"
 169 "    B       loc_FF094104 \n"
 170 
 171 "loc_FF093FE0:\n"
 172 "    BL      sub_FF09467C \n"
 173 "    B       loc_FF094104 \n"
 174 
 175 "loc_FF093FE8:\n"
 176 "    BL      sub_FF215E74 \n"
 177 "    B       loc_FF094104 \n"
 178 
 179 "loc_FF093FF0:\n"
 180 "    BL      sub_FF2160B8 \n"
 181 "    B       loc_FF094104 \n"
 182 
 183 "loc_FF093FF8:\n"
 184 "    BL      sub_FF216174 \n"
 185 "    B       loc_FF094104 \n"
 186 
 187 "loc_FF094000:\n"
 188 "    BL      sub_FF21624C \n"
 189 "    B       loc_FF094104 \n"
 190 
 191 "loc_FF094008:\n"
 192 "    MOV     R0, #0 \n"
 193 "    BL      sub_FF2164B4 \n"
 194 "    B       loc_FF094104 \n"
 195 
 196 "loc_FF094014:\n"
 197 "    BL      sub_FF216614 \n"
 198 "    B       loc_FF094104 \n"
 199 
 200 "loc_FF09401C:\n"
 201 "    BL      sub_FF09BE68 \n"
 202 "    B       loc_FF094104 \n"
 203 
 204 "loc_FF094024:\n"
 205 "    BL      sub_FF09BE74 \n"
 206 "    B       loc_FF094104 \n"
 207 
 208 "loc_FF09402C:\n"
 209 "    BL      sub_FF2166B0 \n"
 210 "    B       loc_FF094104 \n"
 211 
 212 "loc_FF094034:\n"
 213 "    BL      sub_FF21675C \n"
 214 "    B       loc_FF094104 \n"
 215 
 216 "loc_FF09403C:\n"
 217 "    BL      sub_FF094B48 \n"
 218 "    B       loc_FF094104 \n"
 219 
 220 "loc_FF094044:\n"
 221 "    MOV     R0, #0 \n"
 222 "    B       loc_FF094050 \n"
 223 
 224 "loc_FF09404C:\n"
 225 "    LDR     R0, [R0, #0xC] \n"
 226 
 227 "loc_FF094050:\n"
 228 "    BL      sub_FF094BD4 \n"
 229 "    B       loc_FF094104 \n"
 230 
 231 "loc_FF094058:\n"
 232 "    BL      sub_FF21631C \n"
 233 "    B       loc_FF094104 \n"
 234 
 235 "loc_FF094060:\n"
 236 "    BL      sub_FF21635C \n"
 237 "    B       loc_FF094104 \n"
 238 
 239 "loc_FF094068:\n"
 240 "    BL      sub_FF09864C \n"
 241 "    B       loc_FF094104 \n"
 242 
 243 "loc_FF094070:\n"
 244 "    BL      sub_FF098750 \n"
 245 "    B       loc_FF094104 \n"
 246 
 247 "loc_FF094078:\n"
 248 "    LDR     R0, [R0, #0xC] \n"
 249 "    BL      sub_FF21686C \n"
 250 "    B       loc_FF094104 \n"
 251 
 252 "loc_FF094084:\n"
 253 "    BL      sub_FF2168F4 \n"
 254 "    B       loc_FF094104 \n"
 255 
 256 "loc_FF09408C:\n"
 257 "    BL      sub_FF0988E0 \n"
 258 "    BL      sub_FF0987A8 \n"
 259 "    B       loc_FF094104 \n"
 260 
 261 "loc_FF094098:\n"
 262 "    MOV     R0, #1 \n"
 263 "    BL      sub_FF217604 \n"
 264 "    MOV     R0, #1 \n"
 265 "    BL      sub_FF217730 \n"
 266 "    LDR     R0, =0x26428 \n"
 267 "    LDRH    R0, [R0, #0x90] \n"
 268 "    CMP     R0, #4 \n"
 269 "    LDRNEH  R0, [R5] \n"
 270 "    SUBNE   R1, R0, #0x8200 \n"
 271 "    SUBNES  R1, R1, #0x31 \n"
 272 "    BNE     loc_FF094104 \n"
 273 "    BL      sub_FF098750 \n"
 274 "    BL      sub_FF098DE8 \n"
 275 "    BL      sub_FF098C44 \n"
 276 "    B       loc_FF094104 \n"
 277 
 278 "loc_FF0940D4:\n"
 279 "    MOV     R2, #0 \n"
 280 "    MOV     R1, #0x10 \n"
 281 "    B       loc_FF0940E8 \n"
 282 
 283 "loc_FF0940E0:\n"
 284 "    MOV     R2, #0 \n"
 285 "    MOV     R1, #0xF \n"
 286 
 287 "loc_FF0940E8:\n"
 288 "    MOV     R0, #0 \n"
 289 "    BL      sub_FF091CA4 \n"
 290 "    B       loc_FF094104 \n"
 291 
 292 "loc_FF0940F4:\n"
 293 "    LDR     R2, =0x54D \n"
 294 "    LDR     R1, =0xFF09371C /*'SsShootTask.c'*/ \n"
 295 "    MOV     R0, #0 \n"
 296 "    BL      _DebugAssert \n"
 297 
 298 "loc_FF094104:\n"
 299 "    LDR     R0, [SP] \n"
 300 "    LDR     R1, [R0, #4] \n"
 301 "    LDR     R0, [R7] \n"
 302 "    BL      sub_006B81EC /*_SetEventFlag*/ \n"
 303 "    LDR     R4, [SP] \n"
 304 "    LDR     R0, [R4, #8] \n"
 305 "    CMP     R0, #0 \n"
 306 "    LDREQ   R2, =0x11E \n"
 307 "    LDREQ   R1, =0xFF09371C /*'SsShootTask.c'*/ \n"
 308 "    BLEQ    _DebugAssert \n"
 309 "    STR     R6, [R4, #8] \n"
 310 "    B       loc_FF093E40 \n"
 311 );
 312 }
 313 
 314 /*************************************************************/
 315 //** sub_FF216D10_my @ 0xFF216D10 - 0xFF216DA8, length=39
 316 void __attribute__((naked,noinline)) sub_FF216D10_my() {
 317 asm volatile (
 318 "    STMFD   SP!, {R4-R6,LR} \n"
 319 "    BL      sub_FF093304 \n"
 320 "    MOV     R4, R0 \n"
 321 "    MOV     R0, #0xC \n"
 322 "    BL      sub_FF09A538 \n"
 323 "    LDR     R6, =0xA354 \n"
 324 "    TST     R0, #1 \n"
 325 "    MOV     R5, #1 \n"
 326 "    BNE     loc_FF216DA4 \n"
 327 "    BL      sub_FF09A594 \n"
 328 "    TST     R0, #1 \n"
 329 "    BNE     loc_FF216DA4 \n"
 330 "    BL      sub_FF09468C \n"
 331 "    BL      sub_FF096134 \n"
 332 "    MOV     R1, R4 \n"
 333 "    BL      sub_FF096190 \n"
 334 "    LDR     R0, =0x10E \n"
 335 "    MOV     R2, #4 \n"
 336 "    ADD     R1, R4, #0x30 \n"
 337 "    BL      _SetPropertyCase \n"
 338 "    MOV     R2, #4 \n"
 339 "    ADD     R1, R4, #0x34 \n"
 340 "    MOV     R0, #0x2C \n"
 341 "    BL      _SetPropertyCase \n"
 342 "    MOV     R2, #4 \n"
 343 "    ADD     R1, R4, #8 \n"
 344 "    MOV     R0, #0x3F \n"
 345 "    BL      _SetPropertyCase \n"
 346 "    BL      sub_FF2178F0 \n"
 347 "    MVN     R1, #0x1000 \n"
 348 "    BL      sub_006B8234 /*_ClearEventFlag*/ \n"
 349 "    MOV     R0, R4 \n"
 350 "    BL      sub_FF3CB2D4 \n"
 351 "    MOV     R0, R4 \n"
 352 "    BL      sub_FF3CB6DC_my \n"  // --> Patched. Old value = 0xFF3CB6DC.
 353 "    TST     R0, #1 \n"
 354 "    LDMEQFD SP!, {R4-R6,PC} \n"
 355 
 356 "loc_FF216DA4:\n"
 357 "    STR     R5, [R6] \n"
 358 "    LDMFD   SP!, {R4-R6,PC} \n"
 359 );
 360 }
 361 
 362 /*************************************************************/
 363 //** sub_FF216B78_my @ 0xFF216B78 - 0xFF216D0C, length=102
 364 void __attribute__((naked,noinline)) sub_FF216B78_my() {
 365 asm volatile (
 366 "    STMFD   SP!, {R4-R8,LR} \n"
 367 "    LDR     R7, =0x26328 \n"
 368 "    MOV     R5, R0 \n"
 369 "    LDR     R0, [R7, #0x28] \n"
 370 "    MOV     R4, #0 \n"
 371 "    CMP     R0, #0 \n"
 372 "    BEQ     loc_FF216BC4 \n"
 373 "    LDR     R0, =0xA354 \n"
 374 "    MOV     R2, R5 \n"
 375 "    LDR     R0, [R0] \n"
 376 "    MOV     R1, #1 \n"
 377 "    CMP     R0, #0 \n"
 378 "    MOVNE   R4, #0x1D \n"
 379 "    MOV     R0, R4 \n"
 380 "    BL      sub_FF091CA4 \n"
 381 "    MOV     R1, R4 \n"
 382 "    MOV     R0, R5 \n"
 383 "    BL      sub_FF217E8C \n"
 384 "    B       loc_FF216D04 \n"
 385 
 386 "loc_FF216BC4:\n"
 387 "    BL      sub_FF096134 \n"
 388 "    MOV     R1, R5 \n"
 389 "    BL      sub_FF096190 \n"
 390 "    LDR     R0, =0x10E \n"
 391 "    MOV     R2, #4 \n"
 392 "    ADD     R1, R5, #0x30 \n"
 393 "    BL      _SetPropertyCase \n"
 394 "    MOV     R2, #4 \n"
 395 "    ADD     R1, R5, #0x34 \n"
 396 "    MOV     R0, #0x2C \n"
 397 "    BL      _SetPropertyCase \n"
 398 "    LDR     R0, [R7, #0x124] \n"
 399 "    LDR     R6, =0x26428 \n"
 400 "    CMP     R0, #0 \n"
 401 "    BEQ     loc_FF216C48 \n"
 402 "    LDRH    R0, [R6, #0x8E] \n"
 403 "    CMP     R0, #3 \n"
 404 "    LDRNE   R0, [R5, #8] \n"
 405 "    CMPNE   R0, #1 \n"
 406 "    BHI     loc_FF216C28 \n"
 407 "    LDR     R0, [R7, #0xFC] \n"
 408 "    CMP     R0, #0 \n"
 409 "    LDRNE   R0, [R5, #0xC] \n"
 410 "    CMPNE   R0, #1 \n"
 411 "    BLS     loc_FF216C48 \n"
 412 
 413 "loc_FF216C28:\n"
 414 "    LDR     R0, [R7, #0xDC] \n"
 415 "    CMP     R0, #0 \n"
 416 "    BNE     loc_FF216C6C \n"
 417 "    BL      sub_FF02AB18 \n"
 418 "    TST     R0, #1 \n"
 419 "    BEQ     loc_FF216C6C \n"
 420 "    BL      sub_FF09A5F0 \n"
 421 "    B       loc_FF216C68 \n"
 422 
 423 "loc_FF216C48:\n"
 424 "    MOV     R0, #0xC \n"
 425 "    BL      sub_FF09A538 \n"
 426 "    TST     R0, #1 \n"
 427 "    BNE     loc_FF216C64 \n"
 428 "    BL      sub_FF09A594 \n"
 429 "    TST     R0, #1 \n"
 430 "    BEQ     loc_FF216C6C \n"
 431 
 432 "loc_FF216C64:\n"
 433 "    BL      sub_FF091A44 \n"
 434 
 435 "loc_FF216C68:\n"
 436 "    MOV     R4, #1 \n"
 437 
 438 "loc_FF216C6C:\n"
 439 "    TST     R4, #1 \n"
 440 "    BNE     loc_FF216CE8 \n"
 441 "    BL      sub_FF2178F0 \n"
 442 "    MVN     R1, #0x1000 \n"
 443 "    BL      sub_006B8234 /*_ClearEventFlag*/ \n"
 444 "    MOV     R0, R5 \n"
 445 "    BL      sub_FF3CA8DC \n"
 446 "    TST     R0, #1 \n"
 447 "    MOV     R4, R0 \n"
 448 "    BNE     loc_FF216CE8 \n"
 449 "    BL      sub_FF09468C \n"
 450 "    MOV     R0, R5 \n"
 451 "    BL      sub_FF3CB2D4 \n"
 452 "    LDR     R0, [R7, #0x120] \n"
 453 "    CMP     R0, #0 \n"
 454 "    BNE     loc_FF216CC0 \n"
 455 "    LDRH    R0, [R6, #0x8E] \n"
 456 "    CMP     R0, #3 \n"
 457 "    LDRNE   R0, [R5, #8] \n"
 458 "    CMPNE   R0, #1 \n"
 459 "    BHI     loc_FF216CC8 \n"
 460 
 461 "loc_FF216CC0:\n"
 462 "    MOV     R0, #2 \n"
 463 "    BL      sub_FF09BFE8 \n"
 464 
 465 "loc_FF216CC8:\n"
 466 "    LDR     R0, [R7, #0xA4] \n"
 467 "    CMP     R0, #0 \n"
 468 "    MOV     R0, R5 \n"
 469 "    BEQ     loc_FF216CE0 \n"
 470 "    BL      sub_FF3CBAD0 \n"
 471 "    B       loc_FF216D04 \n"
 472 
 473 "loc_FF216CE0:\n"
 474 "    BL      sub_FF3CB6DC_my \n"  // --> Patched. Old value = 0xFF3CB6DC.
 475 "    B       loc_FF216D04 \n"
 476 
 477 "loc_FF216CE8:\n"
 478 "    MOV     R2, R5 \n"
 479 "    MOV     R1, #1 \n"
 480 "    MOV     R0, R4 \n"
 481 "    BL      sub_FF091CA4 \n"
 482 "    MOV     R1, R4 \n"
 483 "    MOV     R0, R5 \n"
 484 "    BL      sub_FF2180A0 \n"
 485 
 486 "loc_FF216D04:\n"
 487 "    MOV     R0, #0 \n"
 488 "    STR     R0, [R7, #0x28] \n"
 489 "    LDMFD   SP!, {R4-R8,PC} \n"
 490 );
 491 }
 492 
 493 /*************************************************************/
 494 //** sub_FF3CB6DC_my @ 0xFF3CB6DC - 0xFF3CB96C, length=165
 495 void __attribute__((naked,noinline)) sub_FF3CB6DC_my() {
 496 asm volatile (
 497 "    STMFD   SP!, {R2-R8,LR} \n"
 498 "    LDR     R7, =0x26328 \n"
 499 "    MOV     R4, R0 \n"
 500 "    LDR     R0, [R7, #0x15C] \n"
 501 "    ADD     R5, R7, #0x100 \n"
 502 "    CMP     R0, #0 \n"
 503 "    LDRNEH  R0, [R5, #0x8E] \n"
 504 "    CMPNE   R0, #3 \n"
 505 "    LDRNE   R0, [R4, #8] \n"
 506 "    CMPNE   R0, #1 \n"
 507 "    BHI     loc_FF3CB714 \n"
 508 "    MOV     R0, R4 \n"
 509 "    BL      sub_FF3CB23C \n"
 510 "    BL      sub_FF2173BC \n"
 511 
 512 "loc_FF3CB714:\n"
 513 "    LDR     R0, [R7, #0x184] \n"
 514 "    CMP     R0, #2 \n"
 515 "    BNE     loc_FF3CB738 \n"
 516 "    LDRH    R0, [R5, #0x8E] \n"
 517 "    CMP     R0, #3 \n"
 518 "    LDRNE   R0, [R4, #8] \n"
 519 "    CMPNE   R0, #1 \n"
 520 "    MOVLS   R0, #3 \n"
 521 "    BLLS    sub_FF14AF4C \n"
 522 
 523 "loc_FF3CB738:\n"
 524 "    LDR     R0, =0x12F \n"
 525 "    MOV     R2, #4 \n"
 526 "    ADD     R1, SP, #4 \n"
 527 "    BL      _GetPropertyCase \n"
 528 "    TST     R0, #1 \n"
 529 "    MOVNE   R2, #0x18C \n"
 530 "    LDRNE   R1, =0xFF3CB980 /*'SsStandardCaptureSeq.c'*/ \n"
 531 "    MOVNE   R0, #0 \n"
 532 "    BLNE    _DebugAssert \n"
 533 "    LDR     R0, [SP, #4] \n"
 534 "    AND     R0, R0, #0xFF00 \n"
 535 "    CMP     R0, #0x600 \n"
 536 "    LDRNE   R0, =0xFF3CAEB8 \n"
 537 "    LDREQ   R0, =0xFF3CB6A4 \n"
 538 "    MOVNE   R1, R4 \n"
 539 "    MOVEQ   R1, #0 \n"
 540 "    BL      sub_FF0F069C \n"
 541 "    BL      wait_until_remote_button_is_released\n" // added
 542 "    BL      capt_seq_hook_set_nr\n"                 // added
 543 "    MOV     R0, R4 \n"
 544 "    BL      sub_FF3CB3D8 \n"
 545 "    LDR     R1, =0x11290 \n"
 546 "    MOV     R2, #4 \n"
 547 "    MOV     R0, #0x8A \n"
 548 "    BL      _GetPropertyCase \n"
 549 "    TST     R0, #1 \n"
 550 "    LDRNE   R2, =0x19B \n"
 551 "    LDRNE   R1, =0xFF3CB980 /*'SsStandardCaptureSeq.c'*/ \n"
 552 "    MOVNE   R0, #0 \n"
 553 "    BLNE    _DebugAssert \n"
 554 "    BL      sub_FF097750 \n"
 555 "    BL      sub_FF0837D0 \n"
 556 "    MOV     R1, #0 \n"
 557 "    MOV     R0, R4 \n"
 558 "    BL      sub_FF3CBA78 \n"
 559 "    MOV     R6, R0 \n"
 560 "    LDR     R0, [SP, #4] \n"
 561 "    LDR     R8, =0x11290 \n"
 562 "    AND     R0, R0, #0xFF00 \n"
 563 "    CMP     R0, #0x600 \n"
 564 "    LDRH    R0, [R4, #0x18] \n"
 565 "    LDRNE   R2, =0xFF3CB128 \n"
 566 "    LDREQ   R2, =0xFF3CB064 \n"
 567 "    CMP     R0, #0 \n"
 568 "    BEQ     loc_FF3CB7F4 \n"
 569 "    CMP     R0, #1 \n"
 570 "    BEQ     loc_FF3CB818 \n"
 571 "    CMP     R0, #4 \n"
 572 "    BNE     loc_FF3CB88C \n"
 573 
 574 "loc_FF3CB7F4:\n"
 575 "    STR     R6, [SP] \n"
 576 "    MOV     R3, R2 \n"
 577 "    LDR     R1, [R4, #0x34] \n"
 578 "    LDR     R2, [R8] \n"
 579 "    MOV     R0, R4 \n"
 580 "    BL      sub_FF3CACA8 \n"
 581 "    MOV     R5, R0 \n"
 582 "    BL      sub_FF0ECD00 \n"
 583 "    B       loc_FF3CB8A0 \n"
 584 
 585 "loc_FF3CB818:\n"
 586 "    STR     R6, [SP] \n"
 587 "    MOV     R3, R2 \n"
 588 "    LDR     R1, [R4, #0x34] \n"
 589 "    LDR     R2, [R8] \n"
 590 "    MOV     R0, R4 \n"
 591 "    BL      sub_FF3CAD28 \n"
 592 "    MOV     R5, R0 \n"
 593 "    MOV     R1, #0 \n"
 594 "    MOV     R0, #0x45 \n"
 595 "    BL      sub_FF032D18 \n"
 596 "    TST     R5, #1 \n"
 597 "    BNE     loc_FF3CB8A0 \n"
 598 "    LDR     R0, =0xFF3CB6A4 \n"
 599 "    MOV     R1, #0 \n"
 600 "    BL      sub_FF0F069C \n"
 601 "    MOV     R1, #1 \n"
 602 "    MOV     R0, R4 \n"
 603 "    BL      sub_FF3CBA78 \n"
 604 "    MOV     R6, R0 \n"
 605 "    LDR     R0, [R8] \n"
 606 "    BL      sub_FF3CB1C0 \n"
 607 "    LDR     R1, [R4, #0x34] \n"
 608 "    LDR     R2, [R8] \n"
 609 "    MOV     R3, R6 \n"
 610 "    MOV     R0, R4 \n"
 611 "    BL      sub_FF3CADA8 \n"
 612 "    MOV     R5, R0 \n"
 613 "    BL      sub_FF3CAC30 \n"
 614 "    B       loc_FF3CB8A0 \n"
 615 
 616 "loc_FF3CB88C:\n"
 617 "    LDR     R2, =0x1D5 \n"
 618 "    LDR     R1, =0xFF3CB980 /*'SsStandardCaptureSeq.c'*/ \n"
 619 "    MOV     R0, #0 \n"
 620 "    BL      _DebugAssert \n"
 621 "    MOV     R5, #0x1D \n"
 622 
 623 "loc_FF3CB8A0:\n"
 624 "    BL      sub_FF0837E8 \n"
 625 "    LDR     R8, =0xFF3CB6A4 \n"
 626 "    TST     R5, #1 \n"
 627 "    BNE     loc_FF3CB920 \n"
 628 "    LDR     R0, [R7, #0xF8] \n"
 629 "    CMP     R0, #0 \n"
 630 "    BNE     loc_FF3CB8D8 \n"
 631 "    MOV     R0, R4 \n"
 632 "    BL      sub_FF218718 \n"
 633 "    TST     R0, #1 \n"
 634 "    LDRNE   R2, =0x1EF \n"
 635 "    LDRNE   R1, =0xFF3CB980 /*'SsStandardCaptureSeq.c'*/ \n"
 636 "    MOVNE   R0, #0 \n"
 637 "    BLNE    _DebugAssert \n"
 638 "    BL      capt_seq_hook_raw_here \n"         // added
 639 
 640 "loc_FF3CB8D8:\n"
 641 "    MOV     R0, R4 \n"
 642 "    BL      sub_FF3CB4C0 \n"
 643 "    MOV     R0, R4 \n"
 644 "    BL      sub_FF3CB478 \n"
 645 "    CMP     R6, R8 \n"
 646 "    BEQ     loc_FF3CB920 \n"
 647 "    BL      sub_FF2178F0 \n"
 648 "    MOV     R3, #0x1FC \n"
 649 "    STR     R3, [SP] \n"
 650 "    LDR     R2, =0x3A98 \n"
 651 "    LDR     R3, =0xFF3CB980 /*'SsStandardCaptureSeq.c'*/ \n"
 652 "    MOV     R1, #4 \n"
 653 "    BL      sub_FF09A818 \n"
 654 "    CMP     R0, #0 \n"
 655 "    MOVNE   R2, #0x1FC \n"
 656 "    LDRNE   R1, =0xFF3CB980 /*'SsStandardCaptureSeq.c'*/ \n"
 657 "    MOVNE   R0, #0 \n"
 658 "    BLNE    _DebugAssert \n"
 659 
 660 "loc_FF3CB920:\n"
 661 "    MOV     R2, R4 \n"
 662 "    MOV     R1, #1 \n"
 663 "    MOV     R0, R5 \n"
 664 "    BL      sub_FF091CA4 \n"
 665 "    LDR     R0, [R7, #0x28] \n"
 666 "    CMP     R0, #0 \n"
 667 "    BEQ     loc_FF3CB954 \n"
 668 "    SUBS    R1, R6, R8 \n"
 669 "    MOVNE   R1, #1 \n"
 670 "    MOV     R2, R5 \n"
 671 "    MOV     R0, R4 \n"
 672 "    BL      sub_FF217E24 \n"
 673 "    B       loc_FF3CB968 \n"
 674 
 675 "loc_FF3CB954:\n"
 676 "    SUBS    R1, R6, R8 \n"
 677 "    MOVNE   R1, #1 \n"
 678 "    MOV     R2, R5 \n"
 679 "    MOV     R0, R4 \n"
 680 "    BL      sub_FF217DB8 \n"
 681 
 682 "loc_FF3CB968:\n"
 683 "    MOV     R0, R5 \n"
 684 "    LDMFD   SP!, {R2-R8,PC} \n"
 685 "    .ltorg\n"         // added
 686 );
 687 }

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