//
// GameToolbox::serverPopupWillSwitchToScene from 0x10004827c to 0x100048318 (156 bytes)
//
// 1 xrefs:
// > AppDelegate::willSwitchToScene @ 0x1003074dc
//
// 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:39 +0000
//
__int64 __fastcall GameToolbox::serverPopupWillSwitchToScene(__int64 a1)
{
__int64 v2; // x19
__int64 result; // x0
__n128 v4; // q0
v2 = sub_100048318();
*(_QWORD *)(v2 + 392) = a1;
result = *(_QWORD *)(v2 + 384);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 512LL))(result);
if ( result != a1 )
{
v4 = cocos2d::CCObject::retain(*(_QWORD *)(v2 + 384));
(*(void (__fastcall **)(_QWORD, _QWORD, __n128))(**(_QWORD **)(v2 + 384) + 528LL))(*(_QWORD *)(v2 + 384), 0, v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1);
cocos2d::CCObject::release(*(_QWORD *)(v2 + 384));
return cocos2d::CCNode::resumeSchedulerAndActions(*(_QWORD *)(v2 + 384));
}
}
return result;
}