//
// EditorSoundConfigUploadPopup::onToggleUnlisted from 0xcd3f14 to 0xcd4038 (292 bytes)
//
// 3 xrefs:
// > ??> @ 0xcc418
// > EditorSoundConfigUploadPopup::init @ 0xcd4e7c
// > ??> @ 0x1546000
//
// 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 13:06:29 +0000
//
__int64 __fastcall EditorSoundConfigUploadPopup::onToggleUnlisted(
EditorSoundConfigUploadPopup *this,
cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *v5; // x0
GameManager *GameVariable; // x0
GameManager *v7; // x0
__int64 v8; // x0
__int64 v9[2]; // [xsp+30h] [xbp+30h] BYREF
void *v10; // [xsp+40h] [xbp+40h]
v3 = (GameManager *)(*((unsigned __int8 *)this + 1104) ^ 1u);
*((_BYTE *)this + 1104) = (_BYTE)v3;
if ( !(_DWORD)v3 )
goto LABEL_2;
v5 = (GameManager *)GameManager::sharedState(v3);
GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v5, "0070");
if ( !(_BYTE)GameVariable )
{
v7 = (GameManager *)GameManager::sharedState(GameVariable);
GameManager::setGameVariable(v7, "0070", 1u);
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "Unlisted packs can only be found by ID. This cannot be changed after uploading.", 0x4Fu);
v8 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Unlisted", (char *)v9, (ButtonSprite *)"OK", nullptr, 320.0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
}
if ( !*((_BYTE *)this + 1104) )
LABEL_2:
*((_BYTE *)this + 1105) = 0;
EditorSoundConfigUploadPopup::updateVisibilityState(this);
return _stack_chk_guard;
}