//
// sub_1000C7EEC from 0x1000c7eec to 0x1000c7f84 (152 bytes)
//
// 2 xrefs:
// > MenuLayer::init @ 0x100304c58
// > GJAccountManager::linkToAccount @ 0x100447d3c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:58:50 +0000
//
__int64 __fastcall sub_1000C7EEC(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
__int64 v4; // x0
result = GJAccountManager::sharedState(a1);
if ( *(_DWORD *)(result + 352) > *(_DWORD *)(result + 356) )
{
v3 = GameManager::sharedState(result);
result = GameManager::getGameVariable(v3, "0241");
if ( (result & 1) != 0 )
{
if ( (*(_BYTE *)(a1 + 472) & 1) == 0 )
{
*(_BYTE *)(a1 + 472) = 1;
return sub_1000C7938(a1);
}
}
else
{
v4 = GameManager::sharedState(result);
result = GameManager::safeModeEnabled(v4);
if ( (result & 1) == 0 )
{
if ( (unsigned int)cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 776)) )
result = sub_1000C7AE4(a1);
else
result = sub_1000C7938(a1);
*(_BYTE *)(a1 + 472) = 1;
}
}
}
return result;
}