//
// cocos2d::CCDirector::willSwitchToScene from 0x7ca8b4 to 0x7ca8dc (40 bytes)
//
// 5 xrefs:
// > GJGarageLayer::onBack @ 0x50af34
// > cocos2d::CCDirector::pushScene @ 0x7ca922
// > cocos2d::CCDirector::replaceScene @ 0x7ca9cc
// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x7d9018
// > cocos2d::CCTransitionMoveInL::onEnter @ 0x7da2f2
//
// 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 12:00:30 +0000
//
int __fastcall cocos2d::CCDirector::willSwitchToScene(int result, int a2)
{
void (__fastcall ***v3)(_DWORD); // r0
if ( !*(_BYTE *)(result + 304) )
{
v3 = *(void (__fastcall ****)(_DWORD))(result + 272);
if ( v3 )
(**v3)(v3);
result = *(_DWORD *)(a2 + 264);
if ( result )
return (**(int (__fastcall ***)(int))result)(result);
}
return result;
}