//
// SetTextPopup::show from 0x5d3802 to 0x5d3858 (86 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:07 +0000
//
int __fastcall SetTextPopup::show(cocos2d::CCScene **this)
{
int v2; // r0
cocos2d::CCScene *v3; // r5
int v4; // r0
v2 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v3 = *(cocos2d::CCScene **)(v2 + 220);
if ( *(this + 113) )
{
v3 = *(this + 113);
}
else if ( !*(this + 116) )
{
if ( (int)cocos2d::CCScene::getHighestChildZ(*(cocos2d::CCScene **)(v2 + 220)) <= 104 )
v4 = 105;
else
v4 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
*(this + 116) = (cocos2d::CCScene *)v4;
}
if ( !*(this + 116) )
*(this + 116) = (cocos2d::CCScene *)(&dword_68 + 1);
return (*(int (__fastcall **)(cocos2d::CCScene *, cocos2d::CCScene **, _DWORD))(*(_DWORD *)v3 + 232))(
v3,
this,
*(this + 116));
}