//
// MenuLayer::onCreator from 0x10037c320 to 0x10037c39e (126 bytes)
//
// 2 xrefs:
// > MenuLayer::keyDown @ 0x10037d2cb
// > MenuLayer::init @ 0x10037afdf
//
// 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:29:06 +0000
//
__int64 __fastcall MenuLayer::onCreator(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
_QWORD *v3; // rax
char *v4; // rax
__int64 result; // rax
if ( !*(_BYTE *)(a1 + 432) )
{
if ( *(_QWORD *)(GooglePlayManager::sharedState(a1) + 320) == a1 + 416 )
*(_QWORD *)(GooglePlayManager::sharedState(a1) + 320) = 0;
*(_BYTE *)(GameManager::sharedState() + 584) = 0;
*(_BYTE *)(GameManager::sharedState() + 928) = 1;
v2 = cocos2d::CCDirector::sharedDirector(a1, a2);
v3 = CreatorLayer::scene(a1, a2);
v4 = cocos2d::CCTransitionFade::create_1((__int64)v3, 0.5);
return cocos2d::CCDirector::replaceScene(v2, v4);
}
return result;
}