//
// ThreadOptionsPopup::onMuteRow from 0xc646cc to 0xc647b4 (232 bytes)
//
// 3 xrefs:
// > ??> @ 0xf2bc0
// > ThreadOptionsPopup::init @ 0xc7f418
// > ??> @ 0x1547590
//
// 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:05:24 +0000
//
__int64 __fastcall ThreadOptionsPopup::onMuteRow(ThreadOptionsPopup *this, cocos2d::CCObject *a2)
{
cocos2d::CCObject *v3; // x0
__int64 v4; // x1
int v5; // w2
char *v6; // x1
char *v7; // x4
char v8; // w4
GameLevelManager *updated; // x0
int v10; // w21
_QWORD v12[2]; // [xsp+30h] [xbp+30h] BYREF
void *v13; // [xsp+40h] [xbp+40h]
v3 = (cocos2d::CCObject *)GameLevelManager::sharedState(_stack_chk_guard);
v4 = *((_QWORD *)this + 129);
v5 = *(unsigned __int8 *)(v4 + 204);
v6 = (char *)*(unsigned int *)(v4 + 56);
if ( v5 )
v7 = "0";
else
v7 = "1";
v8 = *v7;
v12[0] = 2;
v12[1] = 0;
v13 = nullptr;
BYTE1(v12[0]) = v8;
updated = (GameLevelManager *)GameLevelManager::updateThread(v3, v6, 10, (char *)v12);
v10 = (unsigned __int8)updated;
if ( (v12[0] & 1) != 0 )
operator delete(v13);
if ( v10 )
{
*(_QWORD *)(GameLevelManager::sharedState(updated) + 1264) = (char *)this + 1016;
*((_DWORD *)this + 262) = 10;
}
return _stack_chk_guard;
}