//
// SetIDPopup::show from 0x100298dc0 to 0x100298e3b (123 bytes)
//
// 4 xrefs:
// > ??> @ 0x100b03248
// > ??> @ 0x100b07b38
// > ??> @ 0x100b082f0
// > ??> @ 0x100b22568
//
// 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 12:27:52 +0000
//
__int64 __fastcall SetIDPopup::show(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // r14
int HighestChildZ; // eax
int v6; // edx
v2 = cocos2d::CCDirector::sharedDirector(a1, a2);
v3 = *(_QWORD *)(a1 + 568);
if ( v3 )
{
if ( !*(_DWORD *)(a1 + 592) )
LABEL_3:
*(_DWORD *)(a1 + 592) = 105;
}
else
{
v3 = *(_QWORD *)(v2 + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v3);
v6 = 105;
if ( HighestChildZ >= 105 )
v6 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
*(_DWORD *)(a1 + 592) = v6;
if ( !v6 )
goto LABEL_3;
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 464LL))(v3, a1);
}