//
// cocos2d::CCDirector::willSwitchToScene from 0x100478a40 to 0x100478a84 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x1000a3805
// > cocos2d::CCTransitionMoveInL::onEnter @ 0x1000a4467
// > GJGarageLayer::onBack @ 0x1003553ca
//
// This function is hookable on this platform (idp: pc, 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 12:30:36 +0000
//
__int64 __fastcall cocos2d::CCDirector::willSwitchToScene(__int64 a1, __int64 a2)
{
__int64 (__fastcall ***v2)(_QWORD); // rdi
__int64 result; // rax
__int64 (__fastcall ***v4)(_QWORD); // rdi
if ( !*(_BYTE *)(a1 + 404) )
{
v2 = *(__int64 (__fastcall ****)(_QWORD))(a1 + 360);
if ( v2 )
result = (**v2)(v2);
v4 = *(__int64 (__fastcall ****)(_QWORD))(a2 + 320);
if ( v4 )
return (**v4)(v4);
}
return result;
}