//
// sub_1003BAF90 from 0x1003baf90 to 0x1003bafd8 (72 bytes)
//
// 1 xrefs:
// > PlayLayer::onQuit @ 0x100142230
//
// 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 11:03:59 +0000
//
void __fastcall sub_1003BAF90(__int64 a1)
{
__int64 v1; // x0
if ( *(_BYTE *)(a1 + 1028) == 1 )
{
*(_BYTE *)(a1 + 1028) = 0;
if ( *(int *)(cocos2d::CCDirector::sharedDirector() + 180) >= 10 )
{
v1 = GameManager::sharedState();
GameManager::setGameVariable(v1, "0023", 0);
}
}
}