//
// PlayLayer::startGame from 0x10014214c to 0x1001421b8 (108 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10013ff74
//
// 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 10:59:32 +0000
//
__int64 __fastcall PlayLayer::startGame(__int64 a1)
{
__int64 v2; // x20
__int64 result; // x0
v2 = a1 + 12288;
*(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1) + 178) = 1;
*(_BYTE *)(v2 + 376) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 3256) + 344LL))(*(_QWORD *)(a1 + 3256), 1);
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 3264) + 344LL))(*(_QWORD *)(a1 + 3264), 1);
if ( (*(_BYTE *)(v2 + 1885) & 1) == 0 )
result = PlayLayer::startMusic(a1);
*(_BYTE *)(v2 + 1885) = 0;
return result;
}