//
// SupportLayer::onLowDetail from 0x539b9c to 0x539c34 (152 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:13 +0000
//
unsigned __int8 *__fastcall SupportLayer::onLowDetail(SupportLayer *this, cocos2d::CCObject *a2)
{
int v2; // r0
GameManager *v3; // r0
GameManager *v4; // r4
GameManager *v5; // r0
unsigned __int8 *result; // r0
int v7; // r4
int *v8; // r4
int v9[3]; // [sp+8h] [bp-10h] BYREF
v2 = GameManager::sharedState(this);
v3 = (GameManager *)GameManager::unloadBackground(v2);
v4 = (GameManager *)GameManager::sharedState(v3);
v5 = (GameManager *)GameManager::sharedState(v4);
*((_BYTE *)v4 + 725) = *((_BYTE *)v5 + 725) ^ 1;
result = (unsigned __int8 *)GameManager::sharedState(v5);
v7 = result[734];
if ( !result[734] )
{
v9[0] = result[734];
v9[1] = v7;
v9[2] = v7;
*(_BYTE *)(GameManager::sharedState((GameManager *)result) + 734) = 1;
std::string::__init(v9, "Low detail mode disables a lot of visual effects to increase performance.", 0x49u);
v8 = FLAlertLayer::create(
v7,
(cocos2d::CCLabelBMFont *)"Low Detail Mode",
(int)v9,
(ButtonSprite *)"OK",
(ButtonSprite *)v7,
300.0);
std::string::~string((int)v9);
return (unsigned __int8 *)(*(int (__fastcall **)(int *))(*v8 + 656))(v8);
}
return result;
}