//
// SetTextPopup::show from 0xa1deec to 0xa1df78 (140 bytes)
//
// 2 xrefs:
// > ??> @ 0xd4218
// > ??> @ 0x1482110
//
// 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 SetTextPopup::show(SetTextPopup *this)
{
__int64 v1; // x0
SetTextPopup *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);
v5 = *((_DWORD *)this + 148);
if ( !v4 )
{
v4 = v3;
if ( v5 )
return (*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)v4 + 464LL))(v4);
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);
}