//
// SetIDPopup::show from 0xa1de64 to 0xa1deec (136 bytes)
//
// 5 xrefs:
// > ??> @ 0x94390
// > ??> @ 0x1480ae0
// > ??> @ 0x1481230
// > ??> @ 0x14819a0
// > ??> @ 0x14db750
//
// This function is hookable on this platform (idp: arm, 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:59:38 +0000
//
__int64 __fastcall SetIDPopup::show(SetIDPopup *this)
{
__int64 v1; // x0
SetIDPopup *v2; // x1
cocos2d::CCScene *v3; // x19
cocos2d::CCScene *v4; // x0
int v5; // w2
int HighestChildZ; // w0
v1 = cocos2d::CCDirector::sharedDirector(this);
v2 = this;
v3 = *(cocos2d::CCScene **)(v1 + 272);
v4 = *((cocos2d::CCScene **)this + 71);
if ( v4 )
{
v5 = *((_DWORD *)this + 148);
}
else
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v3);
v5 = 105;
v2 = this;
if ( HighestChildZ > 104 )
{
v5 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
v2 = this;
}
*((_DWORD *)v2 + 148) = v5;
v4 = v3;
}
if ( !v5 )
*((_DWORD *)v2 + 148) = 105;
return (*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)v4 + 464LL))(v4);
}