//
// SetTextPopup::show from 0x10037dae4 to 0x10037db64 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x100936420
//
// 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 11:03:28 +0000
//
__int64 __fastcall SetTextPopup::show(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
int v4; // w2
int v5; // w2
v2 = cocos2d::CCDirector::sharedDirector();
v3 = *(_QWORD *)(a1 + 568);
v4 = *(_DWORD *)(a1 + 592);
if ( v3 )
{
if ( !v4 )
LABEL_3:
*(_DWORD *)(a1 + 592) = 105;
}
else
{
v3 = *(_QWORD *)(v2 + 272);
if ( !v4 )
{
v5 = (int)cocos2d::CCScene::getHighestChildZ(*(_QWORD *)(v2 + 272)) < 105
? 105
: cocos2d::CCScene::getHighestChildZ(v3) + 1;
*(_DWORD *)(a1 + 592) = v5;
if ( !v5 )
goto LABEL_3;
}
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 464LL))(v3, a1);
}