//
// SetIDPopup::show from 0x8c3100 to 0x8c3188 (136 bytes)
//
// 6 xrefs:
// > ??> @ 0x6dcf8
// > ??> @ 0x119aa08
// > ??> @ 0x119b118
// > ??> @ 0x119b848
// > ??> @ 0x119bf58
// > ??> @ 0x11ef418
//
// 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 SetIDPopup::show(SetIDPopup *a1)
{
cocos2d::CCDirector *v1; // x0
SetIDPopup *v2; // x1
cocos2d::CCScene *m_pRunningScene; // x19
cocos2d::CCNode *m_scene; // x0
int m_ZOrder; // w2
int HighestChildZ; // w0
v1 = cocos2d::CCDirector::sharedDirector();
v2 = a1;
m_pRunningScene = v1->m_pRunningScene;
m_scene = a1->m_scene;
if ( m_scene )
{
m_ZOrder = a1->m_ZOrder;
}
else
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_pRunningScene);
m_ZOrder = 105;
v2 = a1;
if ( HighestChildZ > 104 )
{
m_ZOrder = cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1;
v2 = a1;
}
v2->m_ZOrder = m_ZOrder;
m_scene = m_pRunningScene;
}
if ( !m_ZOrder )
v2->m_ZOrder = 105;
((void (__fastcall *)(cocos2d::CCNode *))m_scene->addChild_0)(m_scene);
}