//
// LevelBadgePopup::show from 0x1400e6930 to 0x1400e69b9 (137 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072cb88
// > ??> @ 0x140914ce4
//
// 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:26:33 +0000
//
__int64 __fastcall LevelBadgePopup::show(__int64 a1)
{
cocos2d::CCScene *v2; // rbx
int v3; // eax
v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
if ( *(_QWORD *)(a1 + 568) )
{
v2 = *(cocos2d::CCScene **)(a1 + 568);
}
else
{
if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 120 )
v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;
else
v3 = 120;
*(_DWORD *)(a1 + 592) = v3;
}
if ( !*(_DWORD *)(a1 + 592) )
*(_DWORD *)(a1 + 592) = 120;
return (*(__int64 (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);
}