//
// sub_10004FB6C from 0x10004fb6c to 0x10004fc04 (152 bytes)
//
// 4 xrefs:
// > GameToolbox::extractServerPopup @ 0x100048afc
// > sub_10004FAE0 @ 0x10004faf4
// > sub_10004FAF8 @ 0x10004fb14
// > sub_10004FC04 @ 0x10004fda4
//
// 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 10:57:43 +0000
//
__int64 __fastcall sub_10004FB6C(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x20
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x0
if ( (*(_BYTE *)(result + 376) & 1) == 0 )
{
v1 = result;
if ( *(_QWORD *)(result + 368) )
{
*(_BYTE *)(result + 376) = 1;
v2 = cocos2d::CCDelayTime::create(0.0);
cocos2d::CCCallFunc::create(v1, sub_10004FC04, 0);
v3 = sub_10021D420(v2);
v4 = cocos2d::CCDirector::sharedDirector(v3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
return cocos2d::CCActionManager::addAction(v5, v3, v1, 0);
}
}
return result;
}