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

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

DEFINITIONS

This source file includes following definitions.
  1. sub_FFD290DC_my
  2. sub_FFD25ECC_my
  3. capt_seq_task
  4. exp_drv_task
  5. sub_FFCD9C44_my
  6. sub_FFC92A50_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 
   5 static long *nrflag = (long*)0x5E64; //a420 @ffd29118
   6 
   7 #include "../../../generic/capt_seq.c"
   8 
   9 void __attribute__((naked,noinline)) sub_FFD290DC_my(long p)
  10 {
  11   (void)p;
  12   asm volatile (
  13               "STMFD   SP!, {R4-R6,LR}\n"
  14               "LDR     R3, =0x726D4\n"
  15               "LDR     R5, =0x5E60\n"
  16               "SUB     SP, SP, #4\n"
  17               "LDR     R1, =0xFFFFFFFF\n"
  18               "STR     R0, [R5]\n"
  19               "LDR     R0, [R3]\n"
  20               "BL      sub_FFC0FB48\n"
  21               "LDR     R3, =0x9C780\n"
  22               "LDR     R0, [R3,#0x74]\n"
  23               "BL      sub_FFC87868\n"
  24               "BL      sub_FFD2905C\n"
  25              
  26               "LDR     R3, =0x5E68\n"
  27               "LDR     R0, [R3]\n"
  28               "BL      sub_FFC87D14\n"
  29             "BL      wait_until_remote_button_is_released\n" //+
  30               "BL      capt_seq_hook_set_nr\n" //+
  31               "B       sub_FFD29118\n"
  32   );
  33 } // a420, ok
  34 
  35 void __attribute__((naked,noinline)) sub_FFD25ECC_my(long p)
  36 {
  37   (void)p;
  38   asm volatile (
  39               "STMFD   SP!, {R4,LR}\n"
  40               "LDR     R4, [R0,#0xC]\n"
  41               "BL      sub_FFD2EC88\n"
  42               "CMP     R0, #0\n"
  43               "BNE     loc_FFD25EE4\n"
  44               "BL      sub_FFD2EC94\n"
  45     "loc_FFD25EE4:\n"
  46               "MOV     R0, #0xC\n"
  47               "BL      sub_FFD2ECA8\n"
  48               "TST     R0, #1\n"
  49               "MOV     R2, R4\n"
  50               "MOV     R0, R4\n"
  51               "BEQ     loc_FFD25F0C\n"
  52               "MOV     R0, #1\n"
  53               "MOV     R1, R0\n"
  54               "LDMFD   SP!, {R4,LR}\n"
  55               "B       sub_FFD24448\n"
  56     "loc_FFD25F0C:\n"
  57               "BL      sub_FFD27F30\n"
  58               "TST     R0, #1\n"
  59               "MOV     R2, R4\n"
  60               "MOV     R1, #1\n"
  61               "BEQ     loc_FFD25F28\n"
  62               "LDMFD   SP!, {R4,LR}\n"
  63               "B       sub_FFD24448\n"
  64     "loc_FFD25F28:\n"
  65               "BL      sub_FFC14714\n"
  66               "LDR     R2, =0x9C6C4\n"
  67               "ADD     R3, R4, R4,LSL#1\n"
  68               "STR     R0, [R2,R3,LSL#5]\n"
  69               "MOV     R0, R4\n"
  70               "BL      sub_FFD29844\n"
  71               "BL      sub_FFD28434\n"
  72               "BL      sub_FFD283D0\n"
  73               "MOV     R0, R4\n"
  74 
  75               "BL      sub_FFD290DC_my\n"
  76               "BL      capt_seq_hook_raw_here\n" //+
  77 
  78               "MOV     R2, R4\n"
  79               "MOV     R1, #1\n"
  80               "BL      sub_FFD24448\n"
  81               "LDMFD   SP!, {R4,LR}\n"
  82               "B       sub_FFD292D0\n"
  83   );
  84 } // a420, ok
  85 
  86 void __attribute__((naked,noinline)) capt_seq_task()    //IDA task_CaptSeqTask
  87 {
  88   asm volatile (//copy from orig fw @ffd262b0
  89           "STMFD   SP!, {R4,LR}\n"
  90           "SUB     SP, SP, #4\n"
  91           "MOV     R4, SP\n"
  92           "B       loc_FFD26408\n"
  93     "loc_FFD262C0:\n"
  94           "LDR     R2, [SP]\n"
  95           "LDR     R3, [R2]\n"
  96           "MOV     R0, R2\n"
  97           "CMP     R3, #0x14\n"
  98           "LDRLS   PC, [PC,R3,LSL#2]\n"
  99           "B       loc_FFD263DC\n"
 100           ".long loc_FFD2632C\n" //0, still pict mode: half-shoot, ...
 101           ".long loc_FFD26338\n" //1, shoot
 102           ".long loc_FFD26340\n"
 103           ".long loc_FFD26350\n" //3, when idle
 104           ".long loc_FFD26348\n" //4, after expo
 105           ".long loc_FFD26358\n"
 106           ".long loc_FFD26360\n"
 107           ".long loc_FFD2636C\n"
 108           ".long loc_FFD26374\n" //movie mode: just before record
 109           ".long loc_FFD26380\n"
 110           ".long loc_FFD26388\n"
 111           ".long loc_FFD26390\n"
 112           ".long loc_FFD26398\n"
 113           ".long loc_FFD263A0\n"
 114           ".long loc_FFD263A8\n"
 115           ".long loc_FFD263B4\n"
 116           ".long loc_FFD263BC\n"
 117           ".long loc_FFD263C4\n" //0x11, 2nd at change of rec. format
 118           ".long loc_FFD263CC\n"
 119           ".long loc_FFD263D4\n"
 120           ".long loc_FFD263F0\n" //0x14, 1st at change of rec. format
 121     "loc_FFD2632C:\n"
 122           "BL      sub_FFD27BA0\n"
 123           "BL      shooting_expo_param_override\n"   // +
 124           "BL      sub_FFD23FF8\n"
 125           "B       loc_FFD263EC\n"
 126     "loc_FFD26338:\n"
 127           "BL   sub_FFD25ECC_my\n"
 128           "B    loc_FFD263EC\n"
 129     "loc_FFD26340:\n"
 130           "BL   sub_FFD27F20\n"
 131           "B    loc_FFD263EC\n"
 132     "loc_FFD26348:\n"
 133           "BL   sub_FFD26E18\n"
 134           "B    loc_FFD263EC\n"
 135     "loc_FFD26350:\n"
 136           "BL   sub_FFD27234\n"
 137           "B    loc_FFD263EC\n"
 138     "loc_FFD26358:\n"
 139           "BL   sub_FFD27244\n"
 140           "B    loc_FFD263EC\n"
 141     "loc_FFD26360:\n"
 142           "BL   sub_FFD27C6C\n"
 143           "BL   sub_FFD23FF8\n"
 144           "B    loc_FFD263EC\n"
 145     "loc_FFD2636C:\n"
 146           "BL   sub_FFD25FD4\n"
 147           "B    loc_FFD263EC\n"
 148     "loc_FFD26374:\n"
 149           "BL   sub_FFD27CD4\n"
 150           "BL   sub_FFD23FF8\n"
 151           "B    loc_FFD263EC\n"
 152     "loc_FFD26380:\n"
 153           "BL   sub_FFD27234\n"
 154           "B    loc_FFD263EC\n"
 155     "loc_FFD26388:\n"
 156           "BL   sub_FFD28474\n"
 157           "B    loc_FFD263EC\n"
 158     "loc_FFD26390:\n"
 159           "BL   sub_FFD28790\n"
 160           "B    loc_FFD263EC\n"
 161     "loc_FFD26398:\n"
 162           "BL   sub_FFD28818\n"
 163           "B    loc_FFD263EC\n"
 164     "loc_FFD263A0:\n"
 165           "BL   sub_FFD288E0\n"
 166           "B    loc_FFD263EC\n"
 167     "loc_FFD263A8:\n"
 168           "MOV  R0, #0\n"
 169           "BL   sub_FFD28998\n"
 170           "B    loc_FFD263EC\n"
 171     "loc_FFD263B4:\n"
 172           "BL   sub_FFD28AF0\n"
 173           "B    loc_FFD263EC\n"
 174     "loc_FFD263BC:\n"
 175           "BL   sub_FFD28B88\n"
 176           "B    loc_FFD263EC\n"
 177     "loc_FFD263C4:\n"
 178           "BL   sub_FFD28C44\n"
 179           "B    loc_FFD263EC\n"
 180     "loc_FFD263CC:\n"
 181           "BL   sub_FFD28D2C\n"
 182           "B    loc_FFD263EC\n"
 183     "loc_FFD263D4:\n"
 184           "BL   sub_FFD28D80\n"
 185           "B    loc_FFD263EC\n"
 186     "loc_FFD263DC:\n"
 187           "MOV  R1, #0x330\n"
 188           "LDR  R0, =0xFFD25C58\n"
 189           "ADD  R1, R1, #1\n"
 190           "BL   sub_FFC03AEC\n"
 191     "loc_FFD263EC:\n"
 192           "LDR  R2, [SP]\n"
 193     "loc_FFD263F0:\n"
 194           "LDR  R3, =0x7265C\n"
 195           "LDR  R1, [R2, #4]\n"
 196           "LDR  R0, [R3]\n"
 197           "BL   sub_FFC0F9AC\n"
 198           "LDR  R0, [SP]\n"
 199           "BL   sub_FFD25CD4\n"
 200     "loc_FFD26408:\n"
 201           "LDR  R3, =0x72660\n"
 202           "MOV  R1, R4\n"
 203           "LDR  R0, [R3]\n"
 204           "MOV  R2, #0\n"
 205           "BL   sub_FFC100C4\n"
 206           "TST  R0, #1\n"
 207           "BEQ  loc_FFD262C0\n"
 208           "MOV  R1, #0x28C\n"
 209           "LDR  R0, =0xFFD25C58\n"
 210           "ADD  R1, R1, #2\n"
 211           "BL   sub_FFC03AEC\n"
 212           "BL   sub_FFC11620\n"
 213           "ADD  SP, SP, #4\n"
 214           "LDMFD        SP!, {R4, PC}\n"
 215   );
 216 } // a420, ok
 217 
 218 void __attribute__((naked,noinline)) exp_drv_task(){
 219  asm volatile(// a420 @ffcdb3a4
 220 "                 STMFD   SP!, {R4-R8,LR}\n"
 221 "                 SUB     SP, SP, #0x14\n"
 222 "                 MOV     R7, SP\n"
 223 "                 B       loc_FFCDB798\n"
 224 " loc_FFCDB3B4:\n"
 225 "                 CMP     R2, #0x1E\n"
 226 "                 BNE     loc_FFCDB3CC\n"
 227 "                 LDR     R0, [R12,#0x34]\n"
 228 "                 MOV     LR, PC\n"
 229 "                 LDR     PC, [R12,#0x30]\n"
 230 "                 B       loc_FFCDB42C\n"
 231 " loc_FFCDB3CC:\n"
 232 "                 CMP     R2, #0x19\n"
 233 "                 BNE     loc_FFCDB3E0\n"
 234 "                 MOV     R0, R12\n"
 235 "                 BL      sub_FFCDB2D4\n"
 236 "                 B       loc_FFCDB41C\n"
 237 " loc_FFCDB3E0:\n"
 238 "                 CMP     R2, #0x1A\n"
 239 "                 BNE     loc_FFCDB3F4\n"
 240 "                 MOV     R0, R12\n"
 241 "                 BL      sub_FFCDB310\n"
 242 "                 B       loc_FFCDB41C\n"
 243 " loc_FFCDB3F4:\n"
 244 "                 SUB     R3, R2, #0x1B\n"
 245 "                 CMP     R3, #1\n"
 246 "                 BHI     loc_FFCDB40C\n"
 247 "                 MOV     R0, R12\n"
 248 "                 BL      sub_FFCDB34C\n"
 249 "                 B       loc_FFCDB41C\n"
 250 " loc_FFCDB40C:\n"
 251 "                 CMP     R2, #0x1D\n"
 252 "                 BNE     loc_FFCDB438\n"
 253 "                 BL      sub_FFC92DC8\n"
 254 "                 BL      sub_FFC94BB8\n"
 255 " loc_FFCDB41C:\n"
 256 "                 LDR     R3, [SP]\n"
 257 "                 LDR     R0, [R3,#0x34]\n"
 258 "                 MOV     LR, PC\n"
 259 "                 LDR     PC, [R3,#0x30]\n"
 260 " loc_FFCDB42C:\n"
 261 "                 LDR     R0, [SP]\n"
 262 "                 BL      sub_FFCD90D0\n"
 263 "                 B       loc_FFCDB798\n"
 264 " loc_FFCDB438:\n"
 265 "                 CMP     R2, #0xD\n"
 266 "                 MOV     R8, #1\n"
 267 "                 BNE     loc_FFCDB4A8\n"
 268 "                 LDR     R1, [R12,#0x24]\n"
 269 "                 ADD     R1, R1, R1,LSL#1\n"
 270 "                 ADD     R1, R12, R1,LSL#1\n"
 271 "                 ADD     R6, SP, #0x0C\n"
 272 "                 SUB     R1, R1, #2\n"
 273 "                 MOV     R2, #6\n"
 274 "                 MOV     R0, R6\n"
 275 "                 BL      sub_FFE9AAC8\n"
 276 "                 LDR     R0, [SP]\n"
 277 "                 BL      sub_FFCDA564\n"
 278 "                 LDR     R3, [SP]\n"
 279 "                 LDR     R1, [R3,#0x24]\n"
 280 "                 LDR     R2, [R3,#0x34]\n"
 281 "                 ADD     R0, R3, #4\n"
 282 "                 MOV     LR, PC\n"
 283 "                 LDR     PC, [R3,#0x30]\n"
 284 "                 LDR     R0, [SP]\n"
 285 "                 BL      sub_FFCDA6E8\n"
 286 "                 LDR     R3, [SP]\n"
 287 "                 ADD     R0, R3, #4\n"
 288 "                 LDR     R1, [R3,#0x24]\n"
 289 "                 LDR     R2, [R3,#0x3C]\n"
 290 "                 MOV     LR, PC\n"
 291 "                 LDR     PC, [R3,#0x38]\n"
 292 "                 B       loc_FFCDB748\n"
 293 " loc_FFCDB4A8:\n"
 294 "                 SUB     R3, R2, #0xE\n"
 295 "                 CMP     R3, #1\n"
 296 "                 BHI     loc_FFCDB564\n"
 297 "                 ADD     R6, SP, #0x0C\n"
 298 "                 ADD     R5, SP, #0x04\n"
 299 "                 MOV     R0, R12\n"
 300 "                 MOV     R1, R6\n"
 301 "                 MOV     R2, R5\n"
 302 "                 BL      sub_FFCDA764\n"
 303 "                 MOV     R4, R0\n"
 304 "                 CMP     R4, #5\n"
 305 "                 CMPNE   R4, #1\n"
 306 "                 BNE     loc_FFCDB4FC\n"
 307 "                 LDR     R12, [SP]\n"
 308 "                 MOV     R0, R5\n"
 309 "                 LDR     R1, [R12,#0x24]\n"
 310 "                 MOV     R2, R4\n"
 311 "                 LDR     R3, [R12,#0x34]\n"
 312 "                 MOV     LR, PC\n"
 313 "                 LDR     PC, [R12,#0x30]\n"
 314 "                 B       loc_FFCDB534\n"
 315 " loc_FFCDB4FC:\n"
 316 "                 CMP     R4, #6\n"
 317 "                 CMPNE   R4, #2\n"
 318 "                 BNE     loc_FFCDB544\n"
 319 "                 LDR     R12, [SP]\n"
 320 "                 MOV     R0, R5\n"
 321 "                 MOV     R1, R8\n"
 322 "                 MOV     R2, R4\n"
 323 "                 LDR     R3, [R12,#0x34]\n"
 324 "                 MOV     LR, PC\n"
 325 "                 LDR     PC, [R12,#0x30]\n"
 326 "                 MOV     R1, R6\n"
 327 "                 LDR     R0, [SP]\n"
 328 "                 MOV     R2, R5\n"
 329 "                 BL      sub_FFCDB110\n"
 330 " loc_FFCDB534:\n"
 331 "                 MOV     R1, R4\n"
 332 "                 LDR     R0, [SP]\n"
 333 "                 BL      sub_FFCDB2B4\n"
 334 "                 B       loc_FFCDB748\n"
 335 " loc_FFCDB544:\n"
 336 "                 LDR     R12, [SP]\n"
 337 "                 MOV     R2, R4\n"
 338 "                 ADD     R0, R12, #4\n"
 339 "                 LDR     R1, [R12,#0x24]\n"
 340 "                 LDR     R3, [R12,#0x34]\n"
 341 "                 MOV     LR, PC\n"
 342 "                 LDR     PC, [R12,#0x30]\n"
 343 "                 B       loc_FFCDB748\n"
 344 " loc_FFCDB564:\n"
 345 "                 CMP     R2, #0x17\n"
 346 "                 BNE     loc_FFCDB5B8\n"
 347 "                 LDR     R1, [R12,#0x24]\n"
 348 "                 ADD     R1, R1, R1,LSL#1\n"
 349 "                 ADD     R1, R12, R1,LSL#1\n"
 350 "                 ADD     R6, SP, #0x0C\n"
 351 "                 SUB     R1, R1, #2\n"
 352 "                 MOV     R2, #6\n"
 353 "                 MOV     R0, R6\n"
 354 "                 BL      sub_FFE9AAC8\n"
 355 "                 LDR     R0, [SP]\n"
 356 "                 BL      sub_FFCDA098\n"
 357 "                 LDR     R3, [SP]\n"
 358 "                 ADD     R0, R3, #4\n"
 359 "                 LDR     R1, [R3,#0x24]\n"
 360 "                 LDR     R2, [R3,#0x34]\n"
 361 "                 MOV     LR, PC\n"
 362 "                 LDR     PC, [R3,#0x30]\n"
 363 "                 LDR     R0, [SP]\n"
 364 "                 BL      sub_FFCDA268\n"
 365 "                 B       loc_FFCDB748\n"
 366 " loc_FFCDB5B8:\n"
 367 "                 ADD     R6, SP, #0x0C\n"
 368 "                 ADD     R1, R12, #4\n"
 369 "                 MOV     R2, #6\n"
 370 "                 MOV     R0, R6\n"
 371 "                 BL      sub_FFE9AAC8\n"
 372 "                 LDR     R12, [SP]\n"
 373 "                 LDR     R3, [R12]\n"
 374 "                 MOV     R2, R12\n"
 375 "                 CMP     R3, #0x18\n"
 376 "                 LDRLS   PC, [PC,R3,LSL#2]\n"
 377 "                 B       loc_FFCDB734\n"
 378 "                 .long loc_FFCDB648\n"
 379 "                 .long loc_FFCDB654\n"
 380 "                 .long loc_FFCDB660\n"
 381 "                 .long loc_FFCDB660\n"
 382 "                 .long loc_FFCDB648\n"
 383 "                 .long loc_FFCDB654\n"
 384 "                 .long loc_FFCDB660\n"
 385 "                 .long loc_FFCDB660\n"
 386 "                 .long loc_FFCDB684\n"
 387 "                 .long loc_FFCDB684\n"
 388 "                 .long loc_FFCDB708\n"
 389 "                 .long loc_FFCDB714\n"
 390 "                 .long loc_FFCDB724\n"
 391 "                 .long loc_FFCDB734\n"
 392 "                 .long loc_FFCDB734\n"
 393 "                 .long loc_FFCDB734\n"
 394 "                 .long loc_FFCDB66C\n"
 395 "                 .long loc_FFCDB678\n"
 396 "                 .long loc_FFCDB694\n"
 397 "                 .long loc_FFCDB6A0\n"
 398 "                 .long loc_FFCDB6C8\n"
 399 "                 .long loc_FFCDB6F0\n"
 400 "                 .long loc_FFCDB6F0\n"
 401 "                 .long loc_FFCDB734\n"
 402 "                 .long loc_FFCDB6FC\n"
 403 " loc_FFCDB648:\n"
 404 "                 MOV     R0, R2\n"
 405 "                 BL      sub_FFCD9638\n"
 406 "                 B       loc_FFCDB730\n"
 407 " loc_FFCDB654:\n"
 408 "                 MOV     R0, R2\n"
 409 "                 BL      sub_FFCD9774\n"
 410 "                 B       loc_FFCDB730\n"
 411 " loc_FFCDB660:\n"
 412 "                 MOV     R0, R2\n"
 413 "                 BL      sub_FFCD98A4\n"
 414 "                 B       loc_FFCDB730\n"
 415 " loc_FFCDB66C:\n"
 416 "                 MOV     R0, R2\n"
 417 "                 BL      sub_FFCD9A78\n"
 418 "                 B       loc_FFCDB730\n"
 419 " loc_FFCDB678:\n"
 420 "                 MOV     R0, R2\n"
 421 "                 BL      sub_FFCD9B80\n"
 422 "                 B       loc_FFCDB730\n"
 423 " loc_FFCDB684:\n"
 424 "                 MOV     R0, R2\n"
 425 "                 BL      sub_FFCD9C44_my\n" //
 426 "                 MOV     R8, #0\n"
 427 "                 B       loc_FFCDB730\n"
 428 " loc_FFCDB694:\n"
 429 "                 MOV     R0, R2\n"
 430 "                 BL      sub_FFCD9D04\n"
 431 "                 B       loc_FFCDB730\n"
 432 " loc_FFCDB6A0:\n"
 433 "                 MOV     R0, R2\n"
 434 "                 LDRH    R2, [R2,#4]\n"
 435 "                 LDR     R3, =0x4DD38\n"
 436 "                 STRH    R2, [SP,#0x0C]\n"
 437 "                 LDRH    R1, [R3,#4]\n"
 438 "                 STRH    R1, [SP,#0x10]\n"
 439 "                 LDRH    R3, [R3,#2]\n"
 440 "                 STRH    R3, [SP,#0x0E]\n"
 441 "                 BL      sub_FFCD9E8C\n"
 442 "                 B       loc_FFCDB730\n"
 443 " loc_FFCDB6C8:\n"
 444 "                 LDR     R3, =0x4DD38\n"
 445 "                 LDRH    R1, [R3]\n"
 446 "                 STRH    R1, [SP,#0x0C]\n"
 447 "                 MOV     R0, R2\n"
 448 "                 LDRH    R2, [R2,#6]\n"
 449 "                 STRH    R2, [SP,#0x0E]\n"
 450 "                 LDRH    R3, [R3,#4]\n"
 451 "                 STRH    R3, [SP,#0x10]\n"
 452 "                 BL      sub_FFCD9F20\n"
 453 "                 B       loc_FFCDB730\n"
 454 " loc_FFCDB6F0:\n"
 455 "                 MOV     R0, R2\n"
 456 "                 BL      sub_FFCD9FA0\n"
 457 "                 B       loc_FFCDB730\n"
 458 " loc_FFCDB6FC:\n"
 459 "                 MOV     R0, R2\n"
 460 "                 BL      sub_FFCDA2F8\n"
 461 "                 B       loc_FFCDB730\n"
 462 " loc_FFCDB708:\n"
 463 "                 MOV     R0, R2\n"
 464 "                 BL      sub_FFCDA3CC\n"
 465 "                 B       loc_FFCDB730\n"
 466 " loc_FFCDB714:\n"
 467 "                 MOV     R0, R2\n"
 468 "                 MOV     R1, #0\n"
 469 "                 BL      sub_FFCDA4B8\n"
 470 "                 B       loc_FFCDB730\n"
 471 " loc_FFCDB724:\n"
 472 "                 MOV     R0, R2\n"
 473 "                 MOV     R1, #1\n"
 474 "                 BL      sub_FFCDA4B8\n"
 475 " loc_FFCDB730:\n"
 476 "                 LDR     R12, [SP]\n"
 477 " loc_FFCDB734:\n"
 478 "                 ADD     R0, R12, #4\n"
 479 "                 LDR     R1, [R12,#0x24]\n"
 480 "                 LDR     R2, [R12,#0x34]\n"
 481 "                 MOV     LR, PC\n"
 482 "                 LDR     PC, [R12,#0x30]\n"
 483 " loc_FFCDB748:\n"
 484 "                 CMP     R8, #1\n"
 485 "                 BNE     loc_FFCDB770\n"
 486 "                 LDR     R1, [SP]\n"
 487 "                 LDR     R3, [R1,#0x24]\n"
 488 "                 ADD     R3, R3, R3,LSL#1\n"
 489 "                 ADD     R1, R1, R3,LSL#1\n"
 490 "                 MOV     R0, R6\n"
 491 "                 SUB     R1, R1, #2\n"
 492 "                 BL      sub_FFCD94A0\n"
 493 "                 B       loc_FFCDB790\n"
 494 " loc_FFCDB770:\n"
 495 "                 MOV     R0, #1\n"
 496 "                 MOV     R1, R0\n"
 497 "                 MOV     R2, R0\n"
 498 "                 BL      sub_FFCD9444\n"
 499 "                 MOV     R0, #1\n"
 500 "                 MOV     R1, R0\n"
 501 "                 MOV     R2, R0\n"
 502 "                 BL      sub_FFCD9560\n"
 503 " loc_FFCDB790:\n"
 504 "                 LDR     R0, [SP]\n"
 505 "                 BL      sub_FFCD90D0\n"
 506 " loc_FFCDB798:\n"
 507 "                 LDR     R3, =0x4DD30\n"
 508 "                 MOV     R2, #0\n"
 509 "                 LDR     R0, [R3]\n"
 510 "                 MOV     R1, R7\n"
 511 "                 BL      sub_FFC100C4\n"
 512 "                 LDR     R12, [SP]\n"
 513 "                 LDR     R2, [R12]\n"
 514 "                 CMP     R2, #0x1F\n"
 515 "                 BNE     loc_FFCDB3B4\n"
 516 "                 MOV     R0, R12\n"
 517 "                 BL      sub_FFCD90D0\n"
 518 "                 LDR     R3, =0x4DD2C\n"
 519 "                 MOV     R1, #1\n"
 520 "                 LDR     R0, [R3]\n"
 521 "                 BL      sub_FFC0F9AC\n"
 522 "                 BL      sub_FFC11620\n"
 523 "                 ADD     SP, SP, #0x14\n"
 524 "                 LDMFD   SP!, {R4-R8,PC}\n"
 525  );
 526 } // a420
 527 
 528 void __attribute__((naked,noinline)) sub_FFCD9C44_my(){//
 529  asm volatile(
 530 "                 STMFD   SP!, {R4,R5,LR}\n"
 531 "                 LDR     R3, =0x4DD2C\n"
 532 "                 MOV     R4, R0\n"
 533 "                 MOV     R1, #0xE\n"
 534 "                 LDR     R0, [R3]\n"
 535 "                 BL      sub_FFC0FB48\n"
 536 "                 MOV     R1, #0\n"
 537 "                 LDRSH   R0, [R4,#4]\n"
 538 "                 BL      sub_FFCD91AC\n"
 539 "                 MOV     R5, R0\n"
 540 "                 LDRSH   R0, [R4,#6]\n"
 541 "                 BL      sub_FFCD92DC\n"
 542 "                 LDRSH   R0, [R4,#8]\n"
 543 "                 BL      sub_FFCD9378\n"
 544 "                 LDR     R3, [R4]\n"
 545 "                 CMP     R3, #9\n"
 546 "                 MOVEQ   R5, #0\n"
 547 "                 CMP     R5, #1\n"
 548 "                 LDR     R1, =0xFFCD9104\n"
 549 "                 MOV     R2, #2\n"
 550 "                 BNE     loc_FFCD9CB0\n"
 551 "                 LDRSH   R0, [R4,#4]\n"
 552 "                 BL      sub_FFE47B78\n"
 553 "                 LDR     R2, =0x4DD58\n"
 554 "                 MOV     R3, #0\n"
 555 "                 STR     R3, [R2]\n"
 556 "                 B       loc_FFCD9CB4\n"
 557 " loc_FFCD9CB0:\n"
 558 "                 BL      sub_FFCD9414\n"
 559 " loc_FFCD9CB4:\n"
 560 "                 STRH    R0, [R4,#4]\n"
 561 "                 LDRSH   R0, [R4,#6]\n"
 562 "                 BL      sub_FFC92A50_my\n" //
 563 "                 LDRSH   R0, [R4,#8]\n"
 564 "                 MOV     R1, #1\n"
 565 "                 BL      sub_FFC94778\n"
 566 "                 MOV     R1, #0\n"
 567 "                 ADD     R0, R4, #8\n"
 568 "                 BL      sub_FFC94838\n"
 569 "                 CMP     R5, #1\n"
 570 "                 MOV     R1, #2\n"
 571 "                 MOV     R2, #0\n"
 572 "                 LDMNEFD SP!, {R4,R5,PC}\n"
 573 "                 LDR     R3, =0x4DD2C\n"
 574 "                 LDR     R0, [R3]\n"
 575 "                 LDMFD   SP!, {R4,R5,LR}\n"
 576 "                 B       sub_FFC0F99C\n"
 577  );
 578 }// a420
 579 
 580 void __attribute__((naked,noinline)) sub_FFC92A50_my() {
 581  asm volatile(
 582 "                 STMFD   SP!, {R4,LR}\n"
 583 "                 LDR     R3, =0x5078\n"
 584 "                 LDR     R2, [R3]\n"
 585 "                 MOV     R1, #0x114\n"
 586 "                 MOV     R3, R0,LSL#16\n"
 587 "                 CMP     R2, #1\n"
 588 "                 ADD     R1, R1, #1\n"
 589 "                 LDR     R0, =0xFFC924CC\n"
 590 "                 MOV     R4, R3,ASR#16\n"
 591 "                 BEQ     loc_FFC92A7C\n"
 592 "                 BL      sub_FFC03AEC\n"
 593 " loc_FFC92A7C:\n"
 594 "                 MOV     R1, #0x118\n"
 595 "                 CMN     R4, #0xC00\n"
 596 "                 LDR     R3, =0x34276\n"
 597 "                 LDR     R0, =0xFFC924CC\n"
 598 "                 ADD     R1, R1, #3\n"
 599 "                 LDREQSH R4, [R3]\n"
 600 "                 LDRNE   R3, =0x34276\n"
 601 "                 CMN     R4, #0xC00\n"
 602 "                 STRH    R4, [R3]\n"
 603 "                 BNE     loc_FFC92AA8\n"
 604 "                 BL      sub_FFC03AEC\n"
 605 " loc_FFC92AA8:\n"
 606 "                 MOV     R0, R4\n"
 607 "                 BL      apex2us\n" //previously sub_FFC93B4C
 608 "                 MOV     R4, R0\n"
 609 "                 BL      sub_FFCB8664\n"
 610 "                 MOV     R0, R4\n"
 611 "                 BL      sub_FFC920C0\n"
 612 "                 TST     R0, #1\n"
 613 "                 MOV     R1, #0x120\n"
 614 "                 LDR     R0, =0xFFC924CC\n"
 615 "                 LDMEQFD SP!, {R4,PC}\n"
 616 "                 LDMFD   SP!, {R4,LR}\n"
 617 "                 B       sub_FFC03AEC\n"
 618  );
 619 }// a420

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