//
// SetTextPopup::show from 0x10029bef0 to 0x10029bf6f (127 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b03998
//
// 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:53 +0000
//
__int64 __fastcall SetTextPopup::show(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rdi
__int64 v5; // rdx
__int64 v6; // r14
int HighestChildZ; // eax
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
v4 = *(_QWORD *)(a1 + 568);
v5 = *(unsigned int *)(a1 + 592);
if ( v4 )
{
if ( !(_DWORD)v5 )
{
LABEL_3:
*(_DWORD *)(a1 + 592) = 105;
v5 = 105;
}
}
else
{
v4 = *(_QWORD *)(v3 + 272);
if ( !(_DWORD)v5 )
{
v6 = *(_QWORD *)(v3 + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v4);
v5 = 105;
if ( HighestChildZ >= 105 )
v5 = (unsigned int)cocos2d::CCScene::getHighestChildZ(v4) + 1;
*(_DWORD *)(a1 + 592) = v5;
v4 = v6;
if ( !(_DWORD)v5 )
goto LABEL_3;
}
}
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, a1, v5);
}