-
-
Save cleverca22/409986879a95dc26754da089ff2b380d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WARNING: This function may have set the stack pointer */ | |
void _start(void) | |
{ | |
code *pcVar1; | |
uint uVar2; | |
undefined4 extraout_r2; | |
undefined4 unaff_r6; | |
undefined4 unaff_r7; | |
undefined4 unaff_r8; | |
undefined8 uVar3; | |
uVar3 = CONCAT44(unaff_r7,unaff_r6); | |
uVar2 = version(); | |
if ((uVar2 & 0x10000) == 0) { | |
write_volatile_4(0x7e200094,1); | |
write_volatile_4(0x7e20009c,0x10000); | |
write_volatile_4(0x7e20009c,0); | |
bss_init(); | |
FUN_800002cc(); | |
FUN_800002ce(); | |
FUN_800002d0(); | |
FUN_800002d2(); | |
FUN_800002d4(); | |
FUN_800002d6(); | |
FUN_80009800(); | |
FID_conflict:FID_conflict:init_3((__func *)&LAB_80009820); | |
uVar3 = FUN_800002d8(); | |
FUN_800002da(); | |
FUN_800002dc((int)uVar3,(int)((ulonglong)uVar3 >> 0x20),extraout_r2); | |
unaff_r8 = extraout_r2; | |
} | |
FUN_800061f0((int)uVar3,(int)((ulonglong)uVar3 >> 0x20),unaff_r8); | |
uVar3 = FUN_80003c2a(); | |
do { | |
pcVar1 = (code *)swi(0xe); | |
uVar3 = (*pcVar1)((int)uVar3,(int)((ulonglong)uVar3 >> 0x20)); | |
} while( true ); | |
} | |
if (0 < iVar11) { | |
local_60 = iVar7 * 0x10 + -0x1000; | |
local_5c = ((iVar7 - iVar13) - iVar4) * 0x10; | |
iVar4 = fixup_validate(0xc0100000,iVar10 + -0x3ff00000,0xc0080000,&local_60); | |
if (iVar4 != 0) { | |
fixup_apply(0xc0100000,iVar10 + -0x3ff00000,0xc0080000,&local_60); | |
} | |
} | |
FUN_80001cf2(1); | |
uVar8 = FUN_80003308(0xc0100000); | |
iVar4 = FUN_80001662(uVar5); | |
if (iVar4 != 0) { | |
bVar2 = false; | |
} | |
if (bVar2) { | |
memcpy((void *)0x60008000,&LAB_800002ea,0x200); | |
uVar3 = read_volatile_4(0x7ee02000); | |
write_volatile_4(0x7ee02000,uVar3 | 2); | |
do { | |
uVar3 = read_volatile_4(0x7ee02000); | |
} while ((uVar3 & 2) != 0); | |
FUN_800002e8(uVar8,0x60008000); | |
do { | |
blink_failure(3); | |
pcVar1 = (code *)swi(0xe); | |
(*pcVar1)(); | |
} while( true ); | |
} | |
do { | |
blink_failure(4); | |
} while( true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment