//
// LevelInfoLayer::onEnterTransitionDidFinish from 0x10002dd1c to 0x10002dda4 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b07a0
//
// 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:29 +0000
//
__int64 __fastcall LevelInfoLayer::onEnterTransitionDidFinish(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 result; // x0
__int64 v5; // x0
v2 = cocos2d::CCLayer::onEnterTransitionDidFinish();
*(_BYTE *)(a1 + 645) = 1;
v3 = GameLevelManager::sharedState(v2);
result = sub_1000B2924(v3);
if ( *(_QWORD *)(a1 + 504) )
{
result = LevelInfoLayer::shouldDownloadLevel(a1);
if ( (result & 1) == 0 )
{
result = sub_1001F91E0(result);
if ( (_DWORD)result )
{
if ( (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 1140LL) - 1) >= 2 )
{
v5 = GameLevelManager::sharedState(result);
return sub_1000B3ACC(
v5,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL)),
*(unsigned int *)(*(_QWORD *)(a1 + 504) + 788LL),
0);
}
}
}
}
return result;
}