//
// LevelInfoLayer::onUpdate from 0x49b2d4 to 0x49b34c (120 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:45 +0000
//
void __fastcall LevelInfoLayer::onUpdate(GJGameLevel **this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
GameLevelManager *v4; // r0
GameLevelManager *v5; // r0
GameLevelManager *v6; // r0
if ( !*((_BYTE *)this + 356) )
{
if ( LevelInfoLayer::shouldDownloadLevel((LevelInfoLayer *)this) )
{
LevelInfoLayer::downloadLevel((LevelInfoLayer *)this);
}
else
{
v3 = (GameLevelManager *)GameLevelManager::sharedState(nullptr);
if ( GameLevelManager::isUpdateValid(v3, *((_DWORD *)*(this + 91) + 67) - *((_DWORD *)*(this + 91) + 68)) )
{
LevelInfoLayer::showUpdateAlert((int)this, 1);
}
else
{
(*(void (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 90) + 172))(*(this + 90));
v4 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 110) + 172))(*(this + 110), 1);
v5 = (GameLevelManager *)GameLevelManager::sharedState(v4);
*((_DWORD *)v5 + 213) = this + 80;
v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);
GameLevelManager::updateLevel(v6, *(this + 91));
}
}
}
}