//
// GameManager::didExitPlayscene from 0x10038ba90 to 0x10038bb04 (116 bytes)
//
// 1 xrefs:
// > PlayLayer::onQuit @ 0x1000b2f65
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GameManager::didExitPlayscene(GameManager *a1)
{
GameManager *v1; // rdi
void *v2; // rbx
if ( a1->m_unkBool8 )
{
a1->m_unkBool8 = 0;
if ( cocos2d::CCDirector::sharedDirector()->m_nSmoothFixCounter >= 10 )
{
v1 = (GameManager *)qword_1009A0E18;
if ( !qword_1009A0E18 )
{
v2 = operator new(0x638u);
sub_10038CE40(v2);
qword_1009A0E18 = (__int64)v2;
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 80LL))(v2);
v1 = (GameManager *)qword_1009A0E18;
}
GameManager::setGameVariable(v1, "0023", 0);
}
}
}