//
// ShareLevelSettingsLayer::onUnlisted from 0x4a34d4 to 0x4a357c (168 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:49:52 +0000
//
int __fastcall ShareLevelSettingsLayer::onUnlisted(ShareLevelSettingsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
int *v5; // r4
int v6; // r3
int v8[3]; // [sp+8h] [bp-14h] BYREF
*(_BYTE *)(*((_DWORD *)this + 132) + 444) ^= 1u;
v3 = (GameManager *)GameManager::sharedState(this);
if ( !GameManager::getGameVariable(v3, "0070") )
{
v4 = (GameManager *)GameManager::sharedState(nullptr);
GameManager::setGameVariable(v4, "0070", (_BYTE *)&dword_0 + 1);
memset(v8, 0, sizeof(v8));
std::string::__init(
v8,
"An unlisted level can only be found by entering its levelID. Once a level is unlisted, it cannot change back to listed.",
0x77u);
v5 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Unlisted", (int)v8, (ButtonSprite *)"OK", nullptr, 320.0);
std::string::~string((int)v8);
(*(void (__fastcall **)(int *))(*v5 + 656))(v5);
}
v6 = *((_DWORD *)this + 132);
if ( !*(_BYTE *)(v6 + 444) )
*(_BYTE *)(v6 + 445) = 0;
return ShareLevelSettingsLayer::updateSettingsState(this);
}