//
// sub_1002E225C from 0x1002e225c to 0x1002e22fc (160 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x1002e131c
//
// 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 11:02:48 +0000
//
__int64 __fastcall sub_1002E225C(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
if ( (*(_BYTE *)(result + 952) & 1) == 0 )
{
v1 = result;
v2 = *(_QWORD *)(result + 960);
if ( v2 )
v2 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1160LL))(v2, 0);
v3 = GameManager::sharedState(v2);
v4 = GameManager::safeModeEnabled(v3);
if ( (_DWORD)v4 )
{
v5 = GameManager::sharedState(v4);
return sub_1003B6200(v5);
}
else
{
v6 = GJAccountManager::sharedState(v4);
if ( *(_DWORD *)(v6 + 352) <= *(_DWORD *)(v6 + 356) )
{
v8 = GJAccountManager::sharedState(v6);
return GJAccountManager::showAccountNeededAlert(v8, "share lists");
}
else
{
v7 = sub_1002E4144(*(_QWORD *)(v1 + 912));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
}
}
return result;
}