//
// GameManager::didExitPlayscene from 0x100376490 to 0x100376504 (116 bytes)
//
// 1 xrefs:
// > PlayLayer::onQuit @ 0x1000804ce
//
// 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:04 +0000
//
void __fastcall GameManager::didExitPlayscene(__int64 a1, __int64 a2)
{
__int64 v2; // rdi
void *v3; // rbx
if ( *(_BYTE *)(a1 + 1028) == 1 )
{
*(_BYTE *)(a1 + 1028) = 0;
if ( *(int *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 180) >= 10 )
{
v2 = qword_100BE3098;
if ( !qword_100BE3098 )
{
v3 = operator new(0x6B8u);
sub_100377960(v3);
qword_100BE3098 = (__int64)v3;
(*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 80LL))(v3);
v2 = qword_100BE3098;
}
GameManager::setGameVariable(v2, (std::string::value_type *)"0023");
}
}
}