root/platform/ixus230_elph310hs/sub/100a/capt_seq.c

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

DEFINITIONS

This source file includes following definitions.
  1. capt_seq_task
  2. sub_FF18C3EC_my
  3. exp_drv_task
  4. sub_FF0BD2F4_my
  5. sub_FF0AC8DC_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_entry.S
   9 #define NR_AUTO (0)                 // have to explictly reset value back to 0 to enable auto
  10 #define PAUSE_FOR_FILE_COUNTER 100 // Enable delay in capt_seq_hook_raw_here to ensure file counter is updated
  11 
  12 #include "../../../generic/capt_seq.c"
  13 
  14 /*************************************************************/
  15 //** capt_seq_task @ 0xFF0769F8 - 0xFF076D04, length=196
  16 void __attribute__((naked,noinline)) capt_seq_task() {
  17 asm volatile (
  18 "    STMFD   SP!, {R3-R9,LR} \n"
  19 "    LDR     R4, =0x3B3CC \n"
  20 "    LDR     R7, =0x2E98 \n"
  21 "    MOV     R6, #0 \n"
  22 
  23 "loc_FF076A08:\n"
  24 "    LDR     R0, [R7, #4] \n"
  25 "    MOV     R2, #0 \n"
  26 "    MOV     R1, SP \n"
  27 "    BL      sub_FF02B314 /*_ReceiveMessageQueue*/ \n"
  28 "    TST     R0, #1 \n"
  29 "    BEQ     loc_FF076A34 \n"
  30 "    LDR     R1, =0x491 \n"
  31 "    LDR     R0, =0xFF0764B4 /*'SsShootTask.c'*/ \n"
  32 "    BL      _DebugAssert \n"
  33 "    BL      _ExitTask \n"
  34 "    LDMFD   SP!, {R3-R9,PC} \n"
  35 
  36 "loc_FF076A34:\n"
  37 "    LDR     R0, [SP] \n"
  38 "    LDR     R1, [R0] \n"
  39 "    CMP     R1, #0x23 \n"
  40 "    ADDCC   PC, PC, R1, LSL#2 \n"
  41 "    B       loc_FF076CCC \n"
  42 "    B       loc_FF076AD4 \n"
  43 "    B       loc_FF076AEC \n"
  44 "    B       loc_FF076B68 \n"
  45 "    B       loc_FF076B7C \n"
  46 "    B       loc_FF076B74 \n"
  47 "    B       loc_FF076B88 \n"
  48 "    B       loc_FF076B90 \n"
  49 "    B       loc_FF076B98 \n"
  50 "    B       loc_FF076BB4 \n"
  51 "    B       loc_FF076BF4 \n"
  52 "    B       loc_FF076BC0 \n"
  53 "    B       loc_FF076BCC \n"
  54 "    B       loc_FF076BD4 \n"
  55 "    B       loc_FF076BDC \n"
  56 "    B       loc_FF076BE4 \n"
  57 "    B       loc_FF076BEC \n"
  58 "    B       loc_FF076BFC \n"
  59 "    B       loc_FF076C04 \n"
  60 "    B       loc_FF076C0C \n"
  61 "    B       loc_FF076C14 \n"
  62 "    B       loc_FF076C1C \n"
  63 "    B       loc_FF076C28 \n"
  64 "    B       loc_FF076C30 \n"
  65 "    B       loc_FF076C38 \n"
  66 "    B       loc_FF076C40 \n"
  67 "    B       loc_FF076C48 \n"
  68 "    B       loc_FF076C54 \n"
  69 "    B       loc_FF076C5C \n"
  70 "    B       loc_FF076C64 \n"
  71 "    B       loc_FF076C6C \n"
  72 "    B       loc_FF076C74 \n"
  73 "    B       loc_FF076C80 \n"
  74 "    B       loc_FF076C88 \n"
  75 "    B       loc_FF076C94 \n"
  76 "    B       loc_FF076CD8 \n"
  77 
  78 "loc_FF076AD4:\n"
  79 "    BL    shooting_expo_iso_override\n"
  80 "    BL      sub_FF0772A4 \n"
  81 "    BL    shooting_expo_param_override\n"
  82 "    BL      sub_FF07416C \n"
  83 //"  LDR     R0, [R4, #0x28] \n"  // 3 lines removed - redundant with added lines below
  84 //"  CMP     R0, #0 \n"
  85 //"  BLNE    _sub_FF18C580 \n"
  86         "    MOV     R0, #0 \n" // added
  87         "    STR     R0, [R4,#0x28] \n" //added, fixes overrides behavior at short shutter press (S95)
  88 "    B       loc_FF076CD8 \n"
  89 
  90 "loc_FF076AEC:\n"
  91 "    LDR     R5, [R0, #0x10] \n"
  92 "    LDR     R0, [R4, #0x28] \n"
  93 "    CMP     R0, #0 \n"
  94 "    BNE     loc_FF076B40 \n"
  95 "    LDRH    R0, [R4] \n"
  96 "    SUB     R1, R0, #0x8200 \n"
  97 "    SUBS    R1, R1, #0x2F \n"
  98 "    SUBNE   R1, R0, #0x8200 \n"
  99 "    SUBNES  R1, R1, #0x2E \n"
 100 "    BLEQ    sub_FF0790F0 \n"
 101 "    BL      sub_FF078D90 \n"
 102 "    MOV     R1, R5 \n"
 103 "    BL      sub_FF078DE8 \n"
 104 "    LDR     R0, =0x10F \n"
 105 "    MOV     R2, #4 \n"
 106 "    ADD     R1, R5, #0x24 \n"
 107 "    BL      _SetPropertyCase \n"
 108 "    MOV     R2, #4 \n"
 109 "    ADD     R1, R5, #0x28 \n"
 110 "    MOV     R0, #0x2C \n"
 111 "    BL      _SetPropertyCase \n"
 112 
 113 "loc_FF076B40:\n"
 114 "    MOV     R0, R5 \n"
 115 "    BL      sub_FF18C3EC_my \n"  // --> Patched. Old value = 0xFF18C3EC.
 116 "    BL    capt_seq_hook_raw_here \n"
 117 "    MOV     R8, R0 \n"
 118 "    MOV     R2, R5 \n"
 119 "    MOV     R1, #1 \n"
 120 "    BL      sub_FF074B24 \n"
 121 "    TST     R8, #1 \n"
 122 "    MOVEQ   R0, R5 \n"
 123 "    BLEQ    sub_FF18BD5C \n"
 124 "    B       loc_FF076CD8 \n"
 125 
 126 "loc_FF076B68:\n"
 127 "    MOV     R0, #1 \n"
 128 "    BL      sub_FF0775A0 \n"
 129 "    B       loc_FF076CD8 \n"
 130 
 131 "loc_FF076B74:\n"
 132 "    BL      sub_FF076EA8 \n"
 133 "    B       loc_FF076B80 \n"
 134 
 135 "loc_FF076B7C:\n"
 136 "    BL      sub_FF077284 \n"
 137 
 138 "loc_FF076B80:\n"
 139 "    STR     R6, [R4, #0x28] \n"
 140 "    B       loc_FF076CD8 \n"
 141 
 142 "loc_FF076B88:\n"
 143 "    BL      sub_FF07728C \n"
 144 "    B       loc_FF076CD8 \n"
 145 
 146 "loc_FF076B90:\n"
 147 "    BL      sub_FF077478 \n"
 148 "    B       loc_FF076BB8 \n"
 149 
 150 "loc_FF076B98:\n"
 151 "    LDR     R5, [R0, #0x10] \n"
 152 "    MOV     R0, R5 \n"
 153 "    BL      sub_FF18C608 \n"
 154 "    MOV     R2, R5 \n"
 155 "    MOV     R1, #9 \n"
 156 "    BL      sub_FF074B24 \n"
 157 "    B       loc_FF076CD8 \n"
 158 
 159 "loc_FF076BB4:\n"
 160 "    BL      sub_FF077508 \n"
 161 
 162 "loc_FF076BB8:\n"
 163 "    BL      sub_FF07416C \n"
 164 "    B       loc_FF076CD8 \n"
 165 
 166 "loc_FF076BC0:\n"
 167 "    LDR     R0, [R4, #0x58] \n"
 168 "    BL      sub_FF077C2C \n"
 169 "    B       loc_FF076CD8 \n"
 170 
 171 "loc_FF076BCC:\n"
 172 "    BL      sub_FF077F10 \n"
 173 "    B       loc_FF076CD8 \n"
 174 
 175 "loc_FF076BD4:\n"
 176 "    BL      sub_FF077F74 \n"
 177 "    B       loc_FF076CD8 \n"
 178 
 179 "loc_FF076BDC:\n"
 180 "    BL      sub_FF078168 \n"
 181 "    B       loc_FF076CD8 \n"
 182 
 183 "loc_FF076BE4:\n"
 184 "    BL      sub_FF0785B8 \n"
 185 "    B       loc_FF076CD8 \n"
 186 
 187 "loc_FF076BEC:\n"
 188 "    BL      sub_FF078668 \n"
 189 "    B       loc_FF076CD8 \n"
 190 
 191 "loc_FF076BF4:\n"
 192 "    BL      sub_FF077284 \n"
 193 "    B       loc_FF076CD8 \n"
 194 
 195 "loc_FF076BFC:\n"
 196 "    BL      sub_FF18AFD0 \n"
 197 "    B       loc_FF076CD8 \n"
 198 
 199 "loc_FF076C04:\n"
 200 "    BL      sub_FF18B23C \n"
 201 "    B       loc_FF076CD8 \n"
 202 
 203 "loc_FF076C0C:\n"
 204 "    BL      sub_FF18B2F8 \n"
 205 "    B       loc_FF076CD8 \n"
 206 
 207 "loc_FF076C14:\n"
 208 "    BL      sub_FF18B3CC \n"
 209 "    B       loc_FF076CD8 \n"
 210 
 211 "loc_FF076C1C:\n"
 212 "    MOV     R0, #0 \n"
 213 "    BL      sub_FF18B680 \n"
 214 "    B       loc_FF076CD8 \n"
 215 
 216 "loc_FF076C28:\n"
 217 "    BL      sub_FF18B7F0 \n"
 218 "    B       loc_FF076CD8 \n"
 219 
 220 "loc_FF076C30:\n"
 221 "    BL      sub_FF18B884 \n"
 222 "    B       loc_FF076CD8 \n"
 223 
 224 "loc_FF076C38:\n"
 225 "    BL      sub_FF18B940 \n"
 226 "    B       loc_FF076CD8 \n"
 227 
 228 "loc_FF076C40:\n"
 229 "    BL      sub_FF077758 \n"
 230 "    B       loc_FF076CD8 \n"
 231 
 232 "loc_FF076C48:\n"
 233 "    BL      sub_FF0777EC \n"
 234 "    BL      sub_FF028E3C \n"
 235 "    B       loc_FF076CD8 \n"
 236 
 237 "loc_FF076C54:\n"
 238 "    BL      sub_FF18B49C \n"
 239 "    B       loc_FF076CD8 \n"
 240 
 241 "loc_FF076C5C:\n"
 242 "    BL      sub_FF18B504 \n"
 243 "    B       loc_FF076CD8 \n"
 244 
 245 "loc_FF076C64:\n"
 246 "    BL      sub_FF07ACBC \n"
 247 "    B       loc_FF076CD8 \n"
 248 
 249 "loc_FF076C6C:\n"
 250 "    BL      sub_FF07AD44 \n"
 251 "    B       loc_FF076CD8 \n"
 252 
 253 "loc_FF076C74:\n"
 254 "    LDR     R0, [R0, #0xC] \n"
 255 "    BL      sub_FF18BA68 \n"
 256 "    B       loc_FF076CD8 \n"
 257 
 258 "loc_FF076C80:\n"
 259 "    BL      sub_FF18BAD8 \n"
 260 "    B       loc_FF076CD8 \n"
 261 
 262 "loc_FF076C88:\n"
 263 "    BL      sub_FF07ADAC \n"
 264 "    BL      sub_FF07AD64 \n"
 265 "    B       loc_FF076CD8 \n"
 266 
 267 "loc_FF076C94:\n"
 268 "    MOV     R0, #1 \n"
 269 "    BL      sub_FF18CD70 \n"
 270 "    MOV     R0, #1 \n"
 271 "    BL      sub_FF18CEA4 \n"
 272 "    LDRH    R0, [R4, #0x98] \n"
 273 "    CMP     R0, #4 \n"
 274 "    LDRNEH  R0, [R4] \n"
 275 "    SUBNE   R1, R0, #0x8200 \n"
 276 "    SUBNES  R1, R1, #0x2B \n"
 277 "    BNE     loc_FF076CD8 \n"
 278 "    BL      sub_FF07AD44 \n"
 279 "    BL      sub_FF07B378 \n"
 280 "    BL      sub_FF07B1D4 \n"
 281 "    B       loc_FF076CD8 \n"
 282 
 283 "loc_FF076CCC:\n"
 284 "    LDR     R1, =0x5F2 \n"
 285 "    LDR     R0, =0xFF0764B4 /*'SsShootTask.c'*/ \n"
 286 "    BL      _DebugAssert \n"
 287 
 288 "loc_FF076CD8:\n"
 289 "    LDR     R0, [SP] \n"
 290 "    LDR     R1, [R0, #4] \n"
 291 "    LDR     R0, [R7] \n"
 292 "    BL      sub_FF081D00 /*_SetEventFlag*/ \n"
 293 "    LDR     R5, [SP] \n"
 294 "    LDR     R0, [R5, #8] \n"
 295 "    CMP     R0, #0 \n"
 296 "    LDREQ   R1, =0x117 \n"
 297 "    LDREQ   R0, =0xFF0764B4 /*'SsShootTask.c'*/ \n"
 298 "    BLEQ    _DebugAssert \n"
 299 "    STR     R6, [R5, #8] \n"
 300 "    B       loc_FF076A08 \n"
 301 );
 302 }
 303 
 304 /*************************************************************/
 305 //** sub_FF18C3EC_my @ 0xFF18C3EC - 0xFF18C57C, length=101
 306 void __attribute__((naked,noinline)) sub_FF18C3EC_my() {
 307 asm volatile (
 308 "    STMFD   SP!, {R3-R7,LR} \n"
 309 "    LDR     R5, =0x3B3CC \n"
 310 "    MOV     R4, R0 \n"
 311 "    LDR     R0, [R5, #0x28] \n"
 312 "    LDR     R6, =0x820D \n"
 313 "    CMP     R0, #0 \n"
 314 "    MOV     R7, #0 \n"
 315 "    BNE     loc_FF18C47C \n"
 316 "    LDR     R0, [R5, #0xBC] \n"
 317 "    CMP     R0, #0 \n"
 318 "    BNE     loc_FF18C42C \n"
 319 "    MOV     R0, #0xC \n"
 320 "    BL      sub_FF07CA70 \n"
 321 "    TST     R0, #1 \n"
 322 "    BEQ     loc_FF18C47C \n"
 323 "    B       loc_FF18C474 \n"
 324 
 325 "loc_FF18C42C:\n"
 326 "    LDRH    R0, [R5] \n"
 327 "    CMP     R0, R6 \n"
 328 "    LDRNEH  R0, [R5, #0x96] \n"
 329 "    CMPNE   R0, #3 \n"
 330 "    LDRNE   R0, [R4, #8] \n"
 331 "    CMPNE   R0, #1 \n"
 332 "    BLS     loc_FF18C45C \n"
 333 "    BL      sub_FF022E64 \n"
 334 "    TST     R0, #1 \n"
 335 "    BEQ     loc_FF18C47C \n"
 336 "    BL      sub_FF07CAD8 \n"
 337 "    B       loc_FF18C474 \n"
 338 
 339 "loc_FF18C45C:\n"
 340 "    MOV     R0, #0xC \n"
 341 "    BL      sub_FF07CA70 \n"
 342 "    TST     R0, #1 \n"
 343 "    BEQ     loc_FF18C47C \n"
 344 "    BL      sub_FF18CBE8 \n"
 345 "    BL      sub_FF074820 \n"
 346 
 347 "loc_FF18C474:\n"
 348 "    MOV     R0, #1 \n"
 349 "    LDMFD   SP!, {R3-R7,PC} \n"
 350 
 351 "loc_FF18C47C:\n"
 352 "    BL      sub_FF077294 \n"
 353 "    LDR     R0, [R5, #0x28] \n"
 354 "    CMP     R0, #0 \n"
 355 "    BNE     loc_FF18C568 \n"
 356 "    MOV     R0, R4 \n"
 357 "    BL      sub_FF18BC50 \n"
 358 "    TST     R0, #1 \n"
 359 "    LDMNEFD SP!, {R3-R7,PC} \n"
 360 "    LDR     R0, [R5, #0xBC] \n"
 361 "    CMP     R0, #0 \n"
 362 "    LDRNEH  R0, [R5] \n"
 363 "    CMPNE   R0, R6 \n"
 364 "    LDRNEH  R0, [R5, #0x96] \n"
 365 "    CMPNE   R0, #3 \n"
 366 "    LDRNE   R0, [R4, #8] \n"
 367 "    CMPNE   R0, #1 \n"
 368 "    BHI     loc_FF18C4D8 \n"
 369 "    MOV     R0, R4 \n"
 370 "    BL      sub_FF18C020 \n"
 371 "    BL      sub_FF18CB2C \n"
 372 "    LDR     R0, [R5, #0xBC] \n"
 373 "    CMP     R0, #0 \n"
 374 "    BEQ     loc_FF18C4F4 \n"
 375 
 376 "loc_FF18C4D8:\n"
 377 "    LDRH    R0, [R5] \n"
 378 "    CMP     R0, R6 \n"
 379 "    LDRNEH  R0, [R5, #0x96] \n"
 380 "    CMPNE   R0, #3 \n"
 381 "    LDRNE   R0, [R4, #8] \n"
 382 "    CMPNE   R0, #1 \n"
 383 "    BHI     loc_FF18C4FC \n"
 384 
 385 "loc_FF18C4F4:\n"
 386 "    MOV     R0, #2 \n"
 387 "    BL      sub_FF07E118 \n"
 388 
 389 "loc_FF18C4FC:\n"
 390 "    BL      wait_until_remote_button_is_released\n" // added
 391 "    BL      capt_seq_hook_set_nr\n"                 // added
 392 "    LDRH    R0, [R5] \n"
 393 "    SUB     R1, R0, #0x8200 \n"
 394 "    SUBS    R1, R1, #0x2E \n"
 395 "    BNE     loc_FF18C558 \n"
 396 "    MOV     R5, #1 \n"
 397 "    MOV     R2, #2 \n"
 398 "    MOV     R1, SP \n"
 399 "    ADD     R0, R2, #0x15C \n"
 400 "    STR     R5, [SP] \n"
 401 "    BL      _GetPropertyCase \n"
 402 "    TST     R0, #1 \n"
 403 "    MOVNE   R1, #0xC5 \n"
 404 "    LDRNE   R0, =0xFF18C6EC /*'SsCaptureSeq.c'*/ \n"
 405 "    BLNE    _DebugAssert \n"
 406 "    LDRH    R0, [SP] \n"
 407 "    CMP     R0, #1 \n"
 408 "    BLS     loc_FF18C550 \n"
 409 "    MOV     R0, R4 \n"
 410 "    STR     R5, [R4, #0xD8] \n"
 411 "    BL      sub_FF2EE7A8 \n"
 412 "    B       loc_FF18C560 \n"
 413 
 414 "loc_FF18C550:\n"
 415 "    MOV     R0, #0 \n"
 416 "    STR     R0, [R4, #0xD8] \n"
 417 
 418 "loc_FF18C558:\n"
 419 "    MOV     R0, R4 \n"
 420 "    BL      sub_FF2EE3E4 \n"
 421 
 422 "loc_FF18C560:\n"
 423 "    MOV     R7, R0 \n"
 424 "    B       loc_FF18C578 \n"
 425 
 426 "loc_FF18C568:\n"
 427 "    LDR     R0, =0x7154 \n"
 428 "    LDR     R0, [R0] \n"
 429 "    CMP     R0, #0 \n"
 430 "    MOVNE   R7, #0x1D \n"
 431 
 432 "loc_FF18C578:\n"
 433 "    MOV     R0, R7 \n"
 434 "    LDMFD   SP!, {R3-R7,PC} \n"
 435 );
 436 }
 437 
 438 /*************************************************************/
 439 //** exp_drv_task @ 0xFF0C0E24 - 0xFF0C1488, length=410
 440 void __attribute__((naked,noinline)) exp_drv_task() {
 441 asm volatile (
 442 "    STMFD   SP!, {R4-R9,LR} \n"
 443 "    SUB     SP, SP, #0x24 \n"
 444 "    LDR     R6, =0x42D0 \n"
 445 "    LDR     R7, =0xBB8 \n"
 446 "    LDR     R4, =0x58390 \n"
 447 "    MOV     R0, #0 \n"
 448 "    ADD     R5, SP, #0x14 \n"
 449 "    STR     R0, [SP, #0x10] \n"
 450 
 451 "loc_FF0C0E44:\n"
 452 "    LDR     R0, [R6, #0x20] \n"
 453 "    MOV     R2, #0 \n"
 454 "    ADD     R1, SP, #0x20 \n"
 455 "    BL      sub_FF02B314 /*_ReceiveMessageQueue*/ \n"
 456 "    LDR     R0, [SP, #0x10] \n"
 457 "    CMP     R0, #1 \n"
 458 "    BNE     loc_FF0C0E90 \n"
 459 "    LDR     R0, [SP, #0x20] \n"
 460 "    LDR     R0, [R0] \n"
 461 "    CMP     R0, #0x14 \n"
 462 "    CMPNE   R0, #0x15 \n"
 463 "    CMPNE   R0, #0x16 \n"
 464 "    CMPNE   R0, #0x17 \n"
 465 "    BEQ     loc_FF0C0FF0 \n"
 466 "    CMP     R0, #0x29 \n"
 467 "    BEQ     loc_FF0C0F78 \n"
 468 "    ADD     R1, SP, #0x10 \n"
 469 "    MOV     R0, #0 \n"
 470 "    BL      sub_FF0C0DD4 \n"
 471 
 472 "loc_FF0C0E90:\n"
 473 "    LDR     R0, [SP, #0x20] \n"
 474 "    LDR     R1, [R0] \n"
 475 "    CMP     R1, #0x2F \n"
 476 "    BNE     loc_FF0C0EBC \n"
 477 "    BL      sub_FF0C2254 \n"
 478 "    LDR     R0, [R6, #0x1C] \n"
 479 "    MOV     R1, #1 \n"
 480 "    BL      sub_FF081D00 /*_SetEventFlag*/ \n"
 481 "    BL      _ExitTask \n"
 482 "    ADD     SP, SP, #0x24 \n"
 483 "    LDMFD   SP!, {R4-R9,PC} \n"
 484 
 485 "loc_FF0C0EBC:\n"
 486 "    CMP     R1, #0x2E \n"
 487 "    BNE     loc_FF0C0ED8 \n"
 488 "    LDR     R2, [R0, #0x8C]! \n"
 489 "    LDR     R1, [R0, #4] \n"
 490 "    MOV     R0, R1 \n"
 491 "    BLX     R2 \n"
 492 "    B       loc_FF0C1480 \n"
 493 
 494 "loc_FF0C0ED8:\n"
 495 "    CMP     R1, #0x27 \n"
 496 "    BNE     loc_FF0C0F28 \n"
 497 "    LDR     R0, [R6, #0x1C] \n"
 498 "    MOV     R1, #0x80 \n"
 499 "    BL      sub_FF081D34 /*_ClearEventFlag*/ \n"
 500 "    LDR     R0, =0xFF0BBDD8 \n"
 501 "    MOV     R1, #0x80 \n"
 502 "    BL      sub_FF17C4A8 \n"
 503 "    LDR     R0, [R6, #0x1C] \n"
 504 "    MOV     R2, R7 \n"
 505 "    MOV     R1, #0x80 \n"
 506 "    BL      sub_FF081C40 /*_WaitForAllEventFlag*/ \n"
 507 "    TST     R0, #1 \n"
 508 "    LDRNE   R1, =0x151F \n"
 509 "    BNE     loc_FF0C0FE4 \n"
 510 
 511 "loc_FF0C0F14:\n"
 512 "    LDR     R1, [SP, #0x20] \n"
 513 "    LDR     R0, [R1, #0x90] \n"
 514 "    LDR     R1, [R1, #0x8C] \n"
 515 "    BLX     R1 \n"
 516 "    B       loc_FF0C1480 \n"
 517 
 518 "loc_FF0C0F28:\n"
 519 "    CMP     R1, #0x28 \n"
 520 "    BNE     loc_FF0C0F70 \n"
 521 "    ADD     R1, SP, #0x10 \n"
 522 "    BL      sub_FF0C0DD4 \n"
 523 "    LDR     R0, [R6, #0x1C] \n"
 524 "    MOV     R1, #0x100 \n"
 525 "    BL      sub_FF081D34 /*_ClearEventFlag*/ \n"
 526 "    LDR     R0, =0xFF0BBDE8 \n"
 527 "    MOV     R1, #0x100 \n"
 528 "    BL      sub_FF17C860 \n"
 529 "    LDR     R0, [R6, #0x1C] \n"
 530 "    MOV     R2, R7 \n"
 531 "    MOV     R1, #0x100 \n"
 532 "    BL      sub_FF081C40 /*_WaitForAllEventFlag*/ \n"
 533 "    TST     R0, #1 \n"
 534 "    BEQ     loc_FF0C0F14 \n"
 535 "    LDR     R1, =0x1529 \n"
 536 "    B       loc_FF0C0FE4 \n"
 537 
 538 "loc_FF0C0F70:\n"
 539 "    CMP     R1, #0x29 \n"
 540 "    BNE     loc_FF0C0F88 \n"
 541 
 542 "loc_FF0C0F78:\n"
 543 "    LDR     R0, [SP, #0x20] \n"
 544 "    ADD     R1, SP, #0x10 \n"
 545 "    BL      sub_FF0C0DD4 \n"
 546 "    B       loc_FF0C0F14 \n"
 547 
 548 "loc_FF0C0F88:\n"
 549 "    CMP     R1, #0x2C \n"
 550 "    BNE     loc_FF0C0FA0 \n"
 551 "    BL      sub_FF0ACB90 \n"
 552 "    BL      sub_FF0AD864 \n"
 553 "    BL      sub_FF0AD3C8 \n"
 554 "    B       loc_FF0C0F14 \n"
 555 
 556 "loc_FF0C0FA0:\n"
 557 "    CMP     R1, #0x2D \n"
 558 "    BNE     loc_FF0C0FF0 \n"
 559 "    LDR     R0, [R6, #0x1C] \n"
 560 "    MOV     R1, #4 \n"
 561 "    BL      sub_FF081D34 /*_ClearEventFlag*/ \n"
 562 "    LDR     R1, =0xFF0BBE08 \n"
 563 "    LDR     R0, =0xFFFFF400 \n"
 564 "    MOV     R2, #4 \n"
 565 "    BL      sub_FF0AC5E0 \n"
 566 "    BL      sub_FF0AC870 \n"
 567 "    LDR     R0, [R6, #0x1C] \n"
 568 "    MOV     R2, R7 \n"
 569 "    MOV     R1, #4 \n"
 570 "    BL      sub_FF081B5C /*_WaitForAnyEventFlag*/ \n"
 571 "    TST     R0, #1 \n"
 572 "    BEQ     loc_FF0C0F14 \n"
 573 "    LDR     R1, =0x1551 \n"
 574 
 575 "loc_FF0C0FE4:\n"
 576 "    LDR     R0, =0xFF0BC598 /*'ExpDrv.c'*/ \n"
 577 "    BL      _DebugAssert \n"
 578 "    B       loc_FF0C0F14 \n"
 579 
 580 "loc_FF0C0FF0:\n"
 581 "    LDR     R0, [SP, #0x20] \n"
 582 "    MOV     R8, #1 \n"
 583 "    LDR     R1, [R0] \n"
 584 "    CMP     R1, #0x12 \n"
 585 "    CMPNE   R1, #0x13 \n"
 586 "    BNE     loc_FF0C1058 \n"
 587 "    LDR     R1, [R0, #0x7C] \n"
 588 "    ADD     R1, R1, R1, LSL#1 \n"
 589 "    ADD     R1, R0, R1, LSL#2 \n"
 590 "    SUB     R1, R1, #8 \n"
 591 "    LDMIA   R1, {R2,R3,R9} \n"
 592 "    STMIA   R5, {R2,R3,R9} \n"
 593 "    BL      sub_FF0BEFE8 \n"
 594 "    LDR     R0, [SP, #0x20] \n"
 595 "    LDR     R1, [R0, #0x7C] \n"
 596 "    LDR     R3, [R0, #0x8C] \n"
 597 "    LDR     R2, [R0, #0x90] \n"
 598 "    ADD     R0, R0, #4 \n"
 599 "    BLX     R3 \n"
 600 "    LDR     R0, [SP, #0x20] \n"
 601 "    BL      sub_FF0C2664 \n"
 602 "    LDR     R0, [SP, #0x20] \n"
 603 "    LDR     R1, [R0, #0x7C] \n"
 604 "    LDR     R2, [R0, #0x98] \n"
 605 "    LDR     R3, [R0, #0x94] \n"
 606 "    B       loc_FF0C136C \n"
 607 
 608 "loc_FF0C1058:\n"
 609 "    CMP     R1, #0x14 \n"
 610 "    CMPNE   R1, #0x15 \n"
 611 "    CMPNE   R1, #0x16 \n"
 612 "    CMPNE   R1, #0x17 \n"
 613 "    BNE     loc_FF0C1110 \n"
 614 "    ADD     R3, SP, #0x10 \n"
 615 "    ADD     R2, SP, #4 \n"
 616 "    ADD     R1, SP, #0x14 \n"
 617 "    BL      sub_FF0BF250 \n"
 618 "    CMP     R0, #1 \n"
 619 "    MOV     R9, R0 \n"
 620 "    CMPNE   R9, #5 \n"
 621 "    BNE     loc_FF0C10AC \n"
 622 "    LDR     R0, [SP, #0x20] \n"
 623 "    MOV     R2, R9 \n"
 624 "    LDR     R1, [R0, #0x7C]! \n"
 625 "    LDR     R12, [R0, #0x10]! \n"
 626 "    LDR     R3, [R0, #4] \n"
 627 "    ADD     R0, SP, #4 \n"
 628 "    BLX     R12 \n"
 629 "    B       loc_FF0C10E4 \n"
 630 
 631 "loc_FF0C10AC:\n"
 632 "    LDR     R0, [SP, #0x20] \n"
 633 "    CMP     R9, #2 \n"
 634 "    LDR     R3, [R0, #0x90] \n"
 635 "    CMPNE   R9, #6 \n"
 636 "    BNE     loc_FF0C10F8 \n"
 637 "    LDR     R12, [R0, #0x8C] \n"
 638 "    MOV     R2, R9 \n"
 639 "    MOV     R1, #1 \n"
 640 "    ADD     R0, SP, #4 \n"
 641 "    BLX     R12 \n"
 642 "    LDR     R0, [SP, #0x20] \n"
 643 "    ADD     R2, SP, #4 \n"
 644 "    ADD     R1, SP, #0x14 \n"
 645 "    BL      sub_FF0C0AC4 \n"
 646 
 647 "loc_FF0C10E4:\n"
 648 "    LDR     R0, [SP, #0x20] \n"
 649 "    LDR     R2, [SP, #0x10] \n"
 650 "    MOV     R1, R9 \n"
 651 "    BL      sub_FF0C0D74 \n"
 652 "    B       loc_FF0C1374 \n"
 653 
 654 "loc_FF0C10F8:\n"
 655 "    LDR     R1, [R0, #0x7C] \n"
 656 "    LDR     R12, [R0, #0x8C] \n"
 657 "    MOV     R2, R9 \n"
 658 "    ADD     R0, R0, #4 \n"
 659 "    BLX     R12 \n"
 660 "    B       loc_FF0C1374 \n"
 661 
 662 "loc_FF0C1110:\n"
 663 "    CMP     R1, #0x23 \n"
 664 "    CMPNE   R1, #0x24 \n"
 665 "    BNE     loc_FF0C115C \n"
 666 "    LDR     R1, [R0, #0x7C] \n"
 667 "    ADD     R1, R1, R1, LSL#1 \n"
 668 "    ADD     R1, R0, R1, LSL#2 \n"
 669 "    SUB     R1, R1, #8 \n"
 670 "    LDMIA   R1, {R2,R3,R9} \n"
 671 "    STMIA   R5, {R2,R3,R9} \n"
 672 "    BL      sub_FF0BDD58 \n"
 673 "    LDR     R0, [SP, #0x20] \n"
 674 "    LDR     R1, [R0, #0x7C] \n"
 675 "    LDR     R3, [R0, #0x8C] \n"
 676 "    LDR     R2, [R0, #0x90] \n"
 677 "    ADD     R0, R0, #4 \n"
 678 "    BLX     R3 \n"
 679 "    LDR     R0, [SP, #0x20] \n"
 680 "    BL      sub_FF0BE22C \n"
 681 "    B       loc_FF0C1374 \n"
 682 
 683 "loc_FF0C115C:\n"
 684 "    ADD     R1, R0, #4 \n"
 685 "    LDMIA   R1, {R2,R3,R9} \n"
 686 "    STMIA   R5, {R2,R3,R9} \n"
 687 "    LDR     R1, [R0] \n"
 688 "    CMP     R1, #0x27 \n"
 689 "    ADDCC   PC, PC, R1, LSL#2 \n"
 690 "    B       loc_FF0C135C \n"
 691 "    B       loc_FF0C1214 \n"
 692 "    B       loc_FF0C1214 \n"
 693 "    B       loc_FF0C121C \n"
 694 "    B       loc_FF0C1224 \n"
 695 "    B       loc_FF0C1224 \n"
 696 "    B       loc_FF0C1224 \n"
 697 "    B       loc_FF0C1214 \n"
 698 "    B       loc_FF0C121C \n"
 699 "    B       loc_FF0C1224 \n"
 700 "    B       loc_FF0C1224 \n"
 701 "    B       loc_FF0C123C \n"
 702 "    B       loc_FF0C123C \n"
 703 "    B       loc_FF0C1348 \n"
 704 "    B       loc_FF0C1350 \n"
 705 "    B       loc_FF0C1350 \n"
 706 "    B       loc_FF0C1350 \n"
 707 "    B       loc_FF0C1350 \n"
 708 "    B       loc_FF0C1358 \n"
 709 "    B       loc_FF0C135C \n"
 710 "    B       loc_FF0C135C \n"
 711 "    B       loc_FF0C135C \n"
 712 "    B       loc_FF0C135C \n"
 713 "    B       loc_FF0C135C \n"
 714 "    B       loc_FF0C135C \n"
 715 "    B       loc_FF0C122C \n"
 716 "    B       loc_FF0C1234 \n"
 717 "    B       loc_FF0C1234 \n"
 718 "    B       loc_FF0C1248 \n"
 719 "    B       loc_FF0C1248 \n"
 720 "    B       loc_FF0C1250 \n"
 721 "    B       loc_FF0C1288 \n"
 722 "    B       loc_FF0C12C0 \n"
 723 "    B       loc_FF0C12F8 \n"
 724 "    B       loc_FF0C1330 \n"
 725 "    B       loc_FF0C1330 \n"
 726 "    B       loc_FF0C135C \n"
 727 "    B       loc_FF0C135C \n"
 728 "    B       loc_FF0C1338 \n"
 729 "    B       loc_FF0C1340 \n"
 730 
 731 "loc_FF0C1214:\n"
 732 "    BL      sub_FF0BC3CC \n"
 733 "    B       loc_FF0C135C \n"
 734 
 735 "loc_FF0C121C:\n"
 736 "    BL      sub_FF0BC6C4 \n"
 737 "    B       loc_FF0C135C \n"
 738 
 739 "loc_FF0C1224:\n"
 740 "    BL      sub_FF0BC92C \n"
 741 "    B       loc_FF0C135C \n"
 742 
 743 "loc_FF0C122C:\n"
 744 "    BL      sub_FF0BCC20 \n"
 745 "    B       loc_FF0C135C \n"
 746 
 747 "loc_FF0C1234:\n"
 748 "    BL      sub_FF0BCE38 \n"
 749 "    B       loc_FF0C135C \n"
 750 
 751 "loc_FF0C123C:\n"
 752 "    BL      sub_FF0BD2F4_my \n"  // --> Patched. Old value = 0xFF0BD2F4.
 753 "    MOV     R8, #0 \n"
 754 "    B       loc_FF0C135C \n"
 755 
 756 "loc_FF0C1248:\n"
 757 "    BL      sub_FF0BD4CC \n"
 758 "    B       loc_FF0C135C \n"
 759 
 760 "loc_FF0C1250:\n"
 761 "    LDRH    R1, [R0, #4] \n"
 762 "    STRH    R1, [SP, #0x14] \n"
 763 "    LDRH    R1, [R4, #2] \n"
 764 "    STRH    R1, [SP, #0x16] \n"
 765 "    LDRH    R1, [R4, #4] \n"
 766 "    STRH    R1, [SP, #0x18] \n"
 767 "    LDRH    R1, [R4, #6] \n"
 768 "    STRH    R1, [SP, #0x1A] \n"
 769 "    LDRH    R1, [R0, #0xC] \n"
 770 "    STRH    R1, [SP, #0x1C] \n"
 771 "    LDRH    R1, [R4, #0xA] \n"
 772 "    STRH    R1, [SP, #0x1E] \n"
 773 "    BL      sub_FF0C22E8 \n"
 774 "    B       loc_FF0C135C \n"
 775 
 776 "loc_FF0C1288:\n"
 777 "    LDRH    R1, [R0, #4] \n"
 778 "    STRH    R1, [SP, #0x14] \n"
 779 "    LDRH    R1, [R4, #2] \n"
 780 "    STRH    R1, [SP, #0x16] \n"
 781 "    LDRH    R1, [R4, #4] \n"
 782 "    STRH    R1, [SP, #0x18] \n"
 783 "    LDRH    R1, [R4, #6] \n"
 784 "    STRH    R1, [SP, #0x1A] \n"
 785 "    LDRH    R1, [R4, #8] \n"
 786 "    STRH    R1, [SP, #0x1C] \n"
 787 "    LDRH    R1, [R4, #0xA] \n"
 788 "    STRH    R1, [SP, #0x1E] \n"
 789 "    BL      sub_FF0C2464 \n"
 790 "    B       loc_FF0C135C \n"
 791 
 792 "loc_FF0C12C0:\n"
 793 "    LDRH    R1, [R4] \n"
 794 "    STRH    R1, [SP, #0x14] \n"
 795 "    LDRH    R1, [R0, #6] \n"
 796 "    STRH    R1, [SP, #0x16] \n"
 797 "    LDRH    R1, [R4, #4] \n"
 798 "    STRH    R1, [SP, #0x18] \n"
 799 "    LDRH    R1, [R4, #6] \n"
 800 "    STRH    R1, [SP, #0x1A] \n"
 801 "    LDRH    R1, [R4, #8] \n"
 802 "    STRH    R1, [SP, #0x1C] \n"
 803 "    LDRH    R1, [R4, #0xA] \n"
 804 "    STRH    R1, [SP, #0x1E] \n"
 805 "    BL      sub_FF0C2518 \n"
 806 "    B       loc_FF0C135C \n"
 807 
 808 "loc_FF0C12F8:\n"
 809 "    LDRH    R1, [R4] \n"
 810 "    STRH    R1, [SP, #0x14] \n"
 811 "    LDRH    R1, [R4, #2] \n"
 812 "    STRH    R1, [SP, #0x16] \n"
 813 "    LDRH    R1, [R4, #4] \n"
 814 "    STRH    R1, [SP, #0x18] \n"
 815 "    LDRH    R1, [R4, #6] \n"
 816 "    STRH    R1, [SP, #0x1A] \n"
 817 "    LDRH    R1, [R0, #0xC] \n"
 818 "    STRH    R1, [SP, #0x1C] \n"
 819 "    LDRH    R1, [R4, #0xA] \n"
 820 "    STRH    R1, [SP, #0x1E] \n"
 821 "    BL      sub_FF0C25C0 \n"
 822 "    B       loc_FF0C135C \n"
 823 
 824 "loc_FF0C1330:\n"
 825 "    BL      sub_FF0BDB0C \n"
 826 "    B       loc_FF0C135C \n"
 827 
 828 "loc_FF0C1338:\n"
 829 "    BL      sub_FF0BE330 \n"
 830 "    B       loc_FF0C135C \n"
 831 
 832 "loc_FF0C1340:\n"
 833 "    BL      sub_FF0BE890 \n"
 834 "    B       loc_FF0C135C \n"
 835 
 836 "loc_FF0C1348:\n"
 837 "    BL      sub_FF0BEAB4 \n"
 838 "    B       loc_FF0C135C \n"
 839 
 840 "loc_FF0C1350:\n"
 841 "    BL      sub_FF0BEC70 \n"
 842 "    B       loc_FF0C135C \n"
 843 
 844 "loc_FF0C1358:\n"
 845 "    BL      sub_FF0BEDE0 \n"
 846 
 847 "loc_FF0C135C:\n"
 848 "    LDR     R0, [SP, #0x20] \n"
 849 "    LDR     R1, [R0, #0x7C] \n"
 850 "    LDR     R2, [R0, #0x90] \n"
 851 "    LDR     R3, [R0, #0x8C] \n"
 852 
 853 "loc_FF0C136C:\n"
 854 "    ADD     R0, R0, #4 \n"
 855 "    BLX     R3 \n"
 856 
 857 "loc_FF0C1374:\n"
 858 "    LDR     R1, [SP, #0x20] \n"
 859 "    LDR     R0, [R1] \n"
 860 "    CMP     R0, #0x10 \n"
 861 "    BEQ     loc_FF0C13AC \n"
 862 "    BGT     loc_FF0C139C \n"
 863 "    CMP     R0, #1 \n"
 864 "    CMPNE   R0, #4 \n"
 865 "    CMPNE   R0, #0xE \n"
 866 "    BNE     loc_FF0C13BC \n"
 867 "    B       loc_FF0C13AC \n"
 868 
 869 "loc_FF0C139C:\n"
 870 "    CMP     R0, #0x13 \n"
 871 "    CMPNE   R0, #0x17 \n"
 872 "    CMPNE   R0, #0x1A \n"
 873 "    BNE     loc_FF0C13BC \n"
 874 
 875 "loc_FF0C13AC:\n"
 876 "    LDRH    R0, [R4] \n"
 877 "    STRH    R0, [SP, #0x14] \n"
 878 "    LDRH    R0, [R4, #8] \n"
 879 "    STRH    R0, [SP, #0x1C] \n"
 880 
 881 "loc_FF0C13BC:\n"
 882 "    CMP     R8, #1 \n"
 883 "    BNE     loc_FF0C1408 \n"
 884 "    LDR     R0, [R1, #0x7C] \n"
 885 "    MOV     R2, #0xC \n"
 886 "    ADD     R0, R0, R0, LSL#1 \n"
 887 "    ADD     R0, R1, R0, LSL#2 \n"
 888 "    SUB     R8, R0, #8 \n"
 889 "    LDR     R0, =0x58390 \n"
 890 "    ADD     R1, SP, #0x14 \n"
 891 "    BL      sub_FF3A2A58 \n"
 892 "    LDR     R0, =0x5839C \n"
 893 "    MOV     R2, #0xC \n"
 894 "    ADD     R1, SP, #0x14 \n"
 895 "    BL      sub_FF3A2A58 \n"
 896 "    LDR     R0, =0x583A8 \n"
 897 "    MOV     R2, #0xC \n"
 898 "    MOV     R1, R8 \n"
 899 "    BL      sub_FF3A2A58 \n"
 900 "    B       loc_FF0C1480 \n"
 901 
 902 "loc_FF0C1408:\n"
 903 "    LDR     R0, [R1] \n"
 904 "    MOV     R3, #1 \n"
 905 "    CMP     R0, #0xB \n"
 906 "    BNE     loc_FF0C144C \n"
 907 "    MOV     R2, #0 \n"
 908 "    STRD    R2, [SP] \n"
 909 "    MOV     R2, R3 \n"
 910 "    MOV     R1, R3 \n"
 911 "    MOV     R0, #0 \n"
 912 "    BL      sub_FF0BC1A0 \n"
 913 "    MOV     R3, #1 \n"
 914 "    MOV     R2, #0 \n"
 915 "    STRD    R2, [SP] \n"
 916 "    MOV     R2, R3 \n"
 917 "    MOV     R1, R3 \n"
 918 "    MOV     R0, #0 \n"
 919 "    B       loc_FF0C147C \n"
 920 
 921 "loc_FF0C144C:\n"
 922 "    MOV     R2, #1 \n"
 923 "    STRD    R2, [SP] \n"
 924 "    MOV     R3, R2 \n"
 925 "    MOV     R1, R2 \n"
 926 "    MOV     R0, R2 \n"
 927 "    BL      sub_FF0BC1A0 \n"
 928 "    MOV     R3, #1 \n"
 929 "    MOV     R2, R3 \n"
 930 "    MOV     R1, R3 \n"
 931 "    MOV     R0, R3 \n"
 932 "    STR     R3, [SP] \n"
 933 "    STR     R3, [SP, #4] \n"
 934 
 935 "loc_FF0C147C:\n"
 936 "    BL      sub_FF0BC318 \n"
 937 
 938 "loc_FF0C1480:\n"
 939 "    LDR     R0, [SP, #0x20] \n"
 940 "    BL      sub_FF0C2254 \n"
 941 "    B       loc_FF0C0E44 \n"
 942 );
 943 }
 944 
 945 /*************************************************************/
 946 //** sub_FF0BD2F4_my @ 0xFF0BD2F4 - 0xFF0BD3BC, length=51
 947 void __attribute__((naked,noinline)) sub_FF0BD2F4_my() {
 948 asm volatile (
 949 "    STMFD   SP!, {R4-R8,LR} \n"
 950 "    LDR     R7, =0x42D0 \n"
 951 "    MOV     R4, R0 \n"
 952 "    LDR     R0, [R7, #0x1C] \n"
 953 "    MOV     R1, #0x3E \n"
 954 "    BL      sub_FF081D34 /*_ClearEventFlag*/ \n"
 955 "    MOV     R2, #0 \n"
 956 "    LDRSH   R0, [R4, #4] \n"
 957 "    MOV     R1, R2 \n"
 958 "    BL      sub_FF0BBE68 \n"
 959 "    MOV     R5, R0 \n"
 960 "    LDRSH   R0, [R4, #6] \n"
 961 "    BL      sub_FF0BBFB8 \n"
 962 "    LDRSH   R0, [R4, #8] \n"
 963 "    BL      sub_FF0BC010 \n"
 964 "    LDRSH   R0, [R4, #0xA] \n"
 965 "    BL      sub_FF0BC068 \n"
 966 "    LDRSH   R0, [R4, #0xC] \n"
 967 "    MOV     R1, #0 \n"
 968 "    BL      sub_FF0BC0C0 \n"
 969 "    MOV     R6, R0 \n"
 970 "    LDRSH   R0, [R4, #0xE] \n"
 971 "    BL      sub_FF0C2284 \n"
 972 "    LDR     R0, [R4] \n"
 973 "    LDR     R8, =0x583A8 \n"
 974 "    CMP     R0, #0xB \n"
 975 "    MOVEQ   R5, #0 \n"
 976 "    MOVEQ   R6, R5 \n"
 977 "    BEQ     loc_FF0BD390 \n"
 978 "    CMP     R5, #1 \n"
 979 "    BNE     loc_FF0BD390 \n"
 980 "    LDRSH   R0, [R4, #4] \n"
 981 "    LDR     R1, =0xFF0BBDC8 \n"
 982 "    MOV     R2, #2 \n"
 983 "    BL      sub_FF17C5FC \n"
 984 "    STRH    R0, [R4, #4] \n"
 985 "    MOV     R0, #0 \n"
 986 "    STR     R0, [R7, #0x28] \n"
 987 "    B       loc_FF0BD398 \n"
 988 
 989 "loc_FF0BD390:\n"
 990 "    LDRH    R0, [R8] \n"
 991 "    STRH    R0, [R4, #4] \n"
 992 
 993 "loc_FF0BD398:\n"
 994 "    CMP     R6, #1 \n"
 995 "    LDRNEH  R0, [R8, #8] \n"
 996 "    BNE     loc_FF0BD3B4 \n"
 997 "    LDRSH   R0, [R4, #0xC] \n"
 998 "    LDR     R1, =0xFF0BBE4C \n"
 999 "    MOV     R2, #0x20 \n"
1000 "    BL      sub_FF0C22A4 \n"
1001 
1002 "loc_FF0BD3B4:\n"
1003 "    STRH    R0, [R4, #0xC] \n"
1004 "    LDRSH   R0, [R4, #6] \n"
1005 "    BL      sub_FF0AC8DC_my \n"  // --> Patched. Old value = 0xFF0AC8DC.
1006 "    LDR     PC, =0xFF0BD3C0 \n"  // Continue in firmware
1007 );
1008 }
1009 
1010 /*************************************************************/
1011 //** sub_FF0AC8DC_my @ 0xFF0AC8DC - 0xFF0AC91C, length=17
1012 void __attribute__((naked,noinline)) sub_FF0AC8DC_my() {
1013 asm volatile (
1014 "    STMFD   SP!, {R4-R6,LR} \n"
1015 "    LDR     R5, =0x3F6C \n"
1016 "    MOV     R4, R0 \n"
1017 "    LDR     R0, [R5, #4] \n"
1018 "    CMP     R0, #1 \n"
1019 "    LDRNE   R1, =0x14D \n"
1020 "    LDRNE   R0, =0xFF0AC714 /*'Shutter.c'*/ \n"
1021 "    BLNE    _DebugAssert \n"
1022 "    CMN     R4, #0xC00 \n"
1023 "    LDREQSH R4, [R5, #2] \n"
1024 "    CMN     R4, #0xC00 \n"
1025 "    LDREQ   R1, =0x153 \n"
1026 "    LDREQ   R0, =0xFF0AC714 /*'Shutter.c'*/ \n"
1027 "    STRH    R4, [R5, #2] \n"
1028 "    BLEQ    _DebugAssert \n"
1029 "    MOV     R0, R4 \n"
1030 "    BL      apex2us \n"  // --> Patched. Old value = _apex2us.
1031 "    LDR     PC, =0xFF0AC920 \n"  // Continue in firmware
1032 );
1033 }

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