//
// sub_10002BE60 from 0x10002be60 to 0x10002bec8 (104 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x100028c98
//
// 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:57:28 +0000
//
__int64 __fastcall sub_10002BE60(__int64 result)
{
__int64 v1; // x19
int v2; // w8
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x19
__int64 isPlatformer; // x0
if ( (*(_BYTE *)(result + 488) & 1) == 0 )
{
v1 = result;
v2 = *(_DWORD *)(GameManager::sharedState(result) + 1048);
v3 = *(_QWORD *)(v1 + 504);
if ( v2 < 1 )
{
v5 = (unsigned int)(*(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332));
isPlatformer = GJGameLevel::isPlatformer(v3);
v4 = sub_10051E860(v5, isPlatformer);
}
else
{
v4 = sub_100245D7C(v3);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
return result;
}