//
// cocos2d::CCDirector::willSwitchToScene from 0x100207424 to 0x10020747c (88 bytes)
//
// 3 xrefs:
// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x100265ca8
// > cocos2d::CCTransitionMoveInL::onEnter @ 0x100265de0
// > GJGarageLayer::onBack @ 0x1003a1140
//
// 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 11:00:57 +0000
//
__int64 __fastcall cocos2d::CCDirector::willSwitchToScene(__int64 result, __int64 a2)
{
void (__fastcall ***v3)(_QWORD, __int64); // x0
if ( (*(_BYTE *)(result + 404) & 1) == 0 )
{
v3 = *(void (__fastcall ****)(_QWORD, __int64))(result + 360);
if ( v3 )
(**v3)(v3, a2);
result = *(_QWORD *)(a2 + 320);
if ( result )
return (**(__int64 (__fastcall ***)(__int64))result)(result);
}
return result;
}