//
// LevelInfoLayer::onEnterTransitionDidFinish from 0x140421350 to 0x14042144c (252 bytes)
//
// 2 xrefs:
// > ??> @ 0x14078c950
// > ??> @ 0x140926834
//
// This function is hookable on this platform (idp: pc, 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:32:09 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall LevelInfoLayer::onEnterTransitionDidFinish(__int64 a1)
{
__int64 v2; // rcx
_DWORD *v3; // rax
int v4; // edx
signed int v5; // edi
__int64 v6; // rcx
void *v7; // [rsp+30h] [rbp+8h]
void *v8; // [rsp+30h] [rbp+8h]
cocos2d::CCLayer::onEnterTransitionDidFinish((cocos2d::CCLayer *)a1);
*(_BYTE *)(a1 + 645) = 1;
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::uploadDeathData(v2);
if ( *(_QWORD *)(a1 + 504) )
{
if ( !(unsigned __int8)LevelInfoLayer::shouldDownloadLevel(a1) )
{
v3 = *(_DWORD **)(a1 + 504);
v4 = v3[305];
if ( v4 != 1 && v4 != 2 )
{
v5 = v3[82] - v3[83];
v6 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v8 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v6 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::getDeathData(v6, v5, *(_DWORD *)(*(_QWORD *)(a1 + 504) + 860LL), 0);
}
}
}
}