//
// sub_100393EDC from 0x100393edc to 0x100393f48 (108 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x100392f44
//
// 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:03:39 +0000
//
__int64 __fastcall sub_100393EDC(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x19
__int64 v3; // x0
__int64 IntGameVariable; // x20
__int64 v5; // x0
__int64 v6; // x0
void *v7; // x0
if ( (*(_BYTE *)(result + 619) & 1) == 0 )
{
v1 = *(_QWORD *)(result + 608);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 1936);
v3 = GameManager::sharedState(result);
IntGameVariable = GameManager::getIntGameVariable(v3, "0098");
v5 = GameManager::sharedState(IntGameVariable);
v6 = GameManager::getIntGameVariable(v5, "0164");
v7 = LevelLeaderboard::create(v2, IntGameVariable, v6);
return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v7 + 1312LL))(v7);
}
}
return result;
}