//
// PlayLayer::startGame from 0x140506140 to 0x14050619f (95 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x140505a85
// > ??> @ 0x14092a8a8
//
// 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 11:33:26 +0000
//
__int64 __fastcall PlayLayer::startGame(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rdx
__int64 v4; // rcx
__int64 v5; // rdx
__int64 result; // rax
v2 = cocos2d::CCDirector::sharedDirector(a1);
LOBYTE(v3) = 1;
*(_BYTE *)(v2 + 178) = 1;
v4 = *(_QWORD *)(a1 + 3512);
*(_BYTE *)(a1 + 13144) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 336LL))(v4, v3);
LOBYTE(v5) = 1;
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 3520) + 336LL))(*(_QWORD *)(a1 + 3520), v5);
if ( !*(_BYTE *)(a1 + 14829) )
result = PlayLayer::startMusic(a1);
*(_BYTE *)(a1 + 14829) = 0;
return result;
}