//
// SupportLayer::onLowDetail from 0x10039a500 to 0x10039a5f1 (241 bytes)
//
// 1 xrefs:
// > SupportLayer::customSetup @ 0x100398cc4
//
// 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 SupportLayer::onLowDetail(SupportLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
GameManager *v3; // rbx
__int64 v4; // rbx
_QWORD v5[2]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = GameManager::sharedState();
GameManager::unloadBackground(v2);
v3 = GameManager::sharedState();
v3->m_performanceMode = !GameManager::sharedState()->m_performanceMode;
if ( !GameManager::sharedState()->m_showedLowDetailDialog )
{
GameManager::sharedState()->m_showedLowDetailDialog = 1;
__p = operator new(0x50u);
v5[0] = 81;
v5[1] = 73;
strcpy((char *)__p, "Low detail mode disables a lot of visual effects to increase performance.");
v4 = FLAlertLayer::create_1(0, "Low Detail Mode", v5, "OK", 0, 300.0);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4);
}
}