//
// LevelInfoLayer::onEnterTransitionDidFinish from 0x7ecfb8 to 0x7ed048 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0xd1068
// > ??> @ 0x143bf18
//
// 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 12:54:33 +0000
//
__int64 __fastcall LevelInfoLayer::onEnterTransitionDidFinish(LevelInfoLayer *this)
{
GameLevelManager *v2; // x0
__int64 result; // x0
GameLevelManager *v4; // x0
cocos2d::CCLayer::onEnterTransitionDidFinish(this);
*((_BYTE *)this + 645) = (unsigned __int8)&dword_0 + 1;
v2 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));
GameLevelManager::uploadDeathData(v2);
result = *((_QWORD *)this + 63);
if ( result )
{
result = LevelInfoLayer::shouldDownloadLevel(this);
if ( !(_BYTE)result )
{
result = PlatformToolbox::isNetworkAvailable((PlatformToolbox *)result);
if ( (_BYTE)result )
{
result = (unsigned int)(*(_DWORD *)(*((_QWORD *)this + 63) + 1140LL) - 1);
if ( (unsigned int)result > 1 )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result);
return GameLevelManager::getDeathData(
v4,
*(_DWORD *)(*((_QWORD *)this + 63) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 63) + 332LL),
*(_DWORD *)(*((_QWORD *)this + 63) + 788LL),
0);
}
}
}
}
return result;
}