//
// SetIDPopup::show from 0x1002de7e0 to 0x1002de85c (124 bytes)
//
// 5 xrefs:
// > ??> @ 0x1007cd0a8
// > ??> @ 0x1007dc3a0
// > ??> @ 0x1007e0a48
// > ??> @ 0x1007e11c0
// > ??> @ 0x1007e18e8
//
// 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 *v2; // x0
cocos2d::CCScene *m_scene; // x20
int v4; // w2
v2 = 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 = v2->m_pRunningScene;
if ( cocos2d::CCScene::getHighestChildZ(m_scene) < 105 )
v4 = 105;
else
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);
}