//
// ShareLevelSettingsLayer::onUnlisted from 0x7f377c to 0x7f38ac (304 bytes)
//
// 3 xrefs:
// > ??> @ 0x74098
// > ShareLevelSettingsLayer::init @ 0x7f3028
// > ??> @ 0x1542eb8
//
// 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 12:54:36 +0000
//
__int64 __fastcall ShareLevelSettingsLayer::onUnlisted(ShareLevelSettingsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x1
__int64 v4; // x2
GameManager *v5; // x0
GameManager *v6; // x0
GameManager *GameVariable; // x0
__int64 v8; // x0
GameManager *v10; // x0
__int64 v11; // x20
__int64 v12[2]; // [xsp+30h] [xbp+30h] BYREF
void *v13; // [xsp+40h] [xbp+40h]
__int64 v14; // [xsp+48h] [xbp+48h]
v3 = *((_QWORD *)this + 85);
v4 = _stack_chk_guard;
v5 = (GameManager *)(*(unsigned __int8 *)(v3 + 616) ^ 1u);
*(_BYTE *)(v3 + 616) ^= 1u;
v14 = v4;
v6 = (GameManager *)GameManager::sharedState(v5);
GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v6, "0070");
if ( !(_BYTE)GameVariable )
{
v10 = (GameManager *)GameManager::sharedState(GameVariable);
GameManager::setGameVariable(v10, "0070", 1u);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(
v12,
"An unlisted level can only be found by entering its levelID. Once a level is unlisted, it cannot change back to listed.",
0x77u);
v11 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Unlisted",
(char *)v12,
(ButtonSprite *)"OK",
nullptr,
320.0);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11);
}
v8 = *((_QWORD *)this + 85);
if ( !*(_BYTE *)(v8 + 616) )
*(_BYTE *)(v8 + 617) = 0;
ShareLevelSettingsLayer::updateSettingsState(this);
return _stack_chk_guard;
}