//
// LevelInfoLayer::onEnterTransitionDidFinish from 0x49f272 to 0x49f2ce (92 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:48 +0000
//
int __fastcall LevelInfoLayer::onEnterTransitionDidFinish(LevelInfoLayer *this)
{
GameLevelManager *v2; // r0
GameLevelManager *v3; // r0
int result; // r0
GameLevelManager *v5; // r0
v2 = (GameLevelManager *)cocos2d::CCLayer::onEnterTransitionDidFinish(this);
*((_BYTE *)this + 437) = 1;
v3 = (GameLevelManager *)GameLevelManager::sharedState(v2);
result = GameLevelManager::uploadDeathData(v3);
if ( *((_DWORD *)this + 91) )
{
result = LevelInfoLayer::shouldDownloadLevel(this);
if ( !result )
{
result = PlatformToolbox::isNetworkAvailable(nullptr);
if ( result )
{
if ( (unsigned int)(*(_DWORD *)(*((_DWORD *)this + 91) + 952) - 1) > 1 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result);
return GameLevelManager::getDeathData(
v5,
*(_DWORD *)(*((_DWORD *)this + 91) + 268) - *(_DWORD *)(*((_DWORD *)this + 91) + 272),
*(_DWORD *)(*((_DWORD *)this + 91) + 612),
0);
}
}
}
}
return result;
}