//
// GameToolbox::serverPopupWillSwitchToScene from 0x3ccb58 to 0x3ccbbc (100 bytes)
//
// 1 xrefs:
// > AppDelegate::willSwitchToScene @ 0x3f6c14
//
// 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:46:38 +0000
//
GameToolbox *__fastcall GameToolbox::serverPopupWillSwitchToScene(GameToolbox *this, cocos2d::CCScene *a2)
{
int v3; // r4
GameToolbox *result; // r0
v3 = sub_3CC5EC();
*(_DWORD *)(v3 + 300) = this;
result = *(GameToolbox **)(v3 + 296);
if ( result )
{
result = (GameToolbox *)(*(int (__fastcall **)(GameToolbox *))(*(_DWORD *)result + 256))(result);
if ( this != result )
{
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(v3 + 296));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v3 + 296) + 264))(*(_DWORD *)(v3 + 296), 0);
(*(void (__fastcall **)(GameToolbox *))(*(_DWORD *)this + 232))(this);
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v3 + 296));
return (GameToolbox *)cocos2d::CCNode::resumeSchedulerAndActions(*(cocos2d::CCNode **)(v3 + 296));
}
}
return result;
}