//
// SetIDPopup::show from 0x1002ac7d0 to 0x1002ac84b (123 bytes)
//
// 5 xrefs:
// > ??> @ 0x1008fbdd8
// > ??> @ 0x100900490
// > ??> @ 0x100900c08
// > ??> @ 0x100901330
// > ??> @ 0x10091a430
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetIDPopup::show(SetIDPopup *a1)
{
cocos2d::CCDirector *v1; // rax
cocos2d::CCScene *m_scene; // r14
int HighestChildZ; // eax
int v4; // edx
v1 = cocos2d::CCDirector::sharedDirector();
m_scene = (cocos2d::CCScene *)a1->m_scene;
if ( m_scene )
{
if ( !a1->m_ZOrder )
LABEL_3:
a1->m_ZOrder = 105;
}
else
{
m_scene = v1->m_pRunningScene;
HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_scene);
v4 = 105;
if ( HighestChildZ >= 105 )
v4 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;
a1->m_ZOrder = v4;
if ( !v4 )
goto LABEL_3;
}
((void (__fastcall *)(cocos2d::CCScene *, SetIDPopup *))m_scene->addChild_0)(m_scene, a1);
}