Created
May 26, 2016 17:18
-
-
Save TuxSH/70f889c609023ac1ad0c12a7aab2005d to your computer and use it in GitHub Desktop.
PXIPS9_GetCTRCardAutoStartupBit
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
int __fastcall PXIPS9_GetCTRCardAutoStartupBit(int *res) | |
{ | |
int *v1; // r4@1 | |
unsigned int v2; // r0@2 | |
int v4; // r0@6 | |
int result_cmd51; // [sp+0h] [bp-18h]@3 | |
int result_cmda3; // [sp+4h] [bp-14h]@6 | |
v1 = res; | |
if ( sub_4B88C() ) | |
{ | |
LOBYTE(v2) = 0; | |
success: | |
*(_BYTE *)v1 = v2; | |
return 0; | |
} | |
sub_37EB4(0x80CE8D0, &result_cmd51); | |
if ( !(result_cmd51 & 0x40000000) ) | |
{ | |
sub_35940(0x80CE8D0, &result_cmda3); | |
v4 = result_cmda3; | |
if ( result_cmda3 != -1 ) | |
{ | |
v2 = (v4 & 0x200000u) >> 21; | |
goto success; | |
} | |
} | |
return 0xC9010402; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment