//
// sub_100118CCC from 0x100118ccc to 0x100118d90 (196 bytes)
//
// 1 xrefs:
// > sub_1003053A0 @ 0x1003053a0
//
// 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:59:11 +0000
//
__int64 __fastcall sub_100118CCC(__int64 result)
{
__int64 v1; // x0
int v3; // w19
__int64 v4; // x0
char *v5; // x0
if ( (byte_1009F3A80 & 1) == 0 )
{
v1 = GameManager::sharedState(result);
result = GameManager::getIntGameVariable(v1, "0227");
if ( (unsigned int)result <= 4 && ((1 << result) & 0x1A) != 0 )
{
v3 = result;
result = GJAccountManager::sharedState(result);
if ( *(_DWORD *)(result + 352) > *(_DWORD *)(result + 356) )
{
if ( v3 == 3 && (result = sub_1001181C4(result), (_DWORD)result) )
{
v4 = GameManager::sharedState(result);
return GameManager::setIntGameVariable(v4, "0227", 0);
}
else
{
result = sub_1001F91E0(result);
if ( (_DWORD)result )
{
byte_1009F3A80 = 1;
v5 = sub_1001180E8(v3 == 3);
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v5 + 1312LL))(v5);
}
}
}
}
}
return result;
}