//
// GJNotificationCell::onMute from 0x73f228 to 0x73f454 (556 bytes)
//
// 3 xrefs:
// > ??> @ 0xd1728
// > GJNotificationCell::loadFromNotification @ 0x74a904
// > ??> @ 0x1546328
//
// 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:52:43 +0000
//
__int64 __fastcall GJNotificationCell::onMute(GJNotificationCell *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
int v4; // w1
__int64 v5; // x3
size_t v6; // x2
void *v7; // x1
__int64 v8; // x0
__int64 v9; // x1
__int64 v10; // t2
char *v11; // x1
cocos2d::CCString *v12; // x0
size_t v13; // x0
char *v14; // x20
const char *v15; // x1
size_t v16; // x0
ButtonSprite **v17; // x20
char *CString; // [xsp+38h] [xbp+38h]
char *v20; // [xsp+38h] [xbp+38h]
__int64 v21; // [xsp+40h] [xbp+40h] BYREF
__int64 v22; // [xsp+48h] [xbp+48h]
char *v23; // [xsp+50h] [xbp+50h]
__int64 v24[2]; // [xsp+58h] [xbp+58h] BYREF
void *v25; // [xsp+68h] [xbp+68h]
__int64 v26[2]; // [xsp+70h] [xbp+70h] BYREF
void *v27; // [xsp+80h] [xbp+80h]
v3 = *((_QWORD *)this + 70);
if ( !v3 || *(int *)(v3 + 216) <= 0 )
return _stack_chk_guard;
v4 = *(unsigned __int8 *)(v3 + 224);
v5 = v3 + 224;
if ( (v4 & 1) == 0 )
{
if ( v4 >> 1 )
{
v10 = v3 + 224;
v8 = *(_QWORD *)(v3 + 224);
v9 = *(_QWORD *)(v10 + 8);
v23 = *(char **)(v5 + 16);
v21 = v8;
v22 = v9;
goto LABEL_8;
}
LABEL_19:
v21 = 0;
v22 = 0;
v23 = nullptr;
std::string::__init(&v21, "this user", 9u);
goto LABEL_8;
}
v6 = *(_QWORD *)(v3 + 232);
if ( !v6 )
goto LABEL_19;
v7 = *(void **)(v3 + 240);
v21 = 0;
v22 = 0;
v23 = nullptr;
std::string::__init(&v21, v7, v6);
LABEL_8:
v11 = (char *)&v21 + 1;
if ( (v21 & 1) != 0 )
v11 = v23;
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Stop notifications from %s?\n"
"You stay friends / followers. Unmute from the Muted tab in your friends list.",
v11);
CString = (char *)cocos2d::CCString::getCString(v12);
v24[0] = 0;
v24[1] = 0;
v25 = nullptr;
v13 = strlen(CString);
std::string::__init(v24, CString, v13);
v14 = (char *)this + 552;
v15 = (char *)v24 + 1;
if ( (v24[0] & 1) != 0 )
v15 = (const char *)v25;
v20 = (char *)v15;
v26[0] = 0;
v26[1] = 0;
v27 = nullptr;
v16 = strlen(v15);
std::string::__init(v26, v20, v16);
v17 = (ButtonSprite **)FLAlertLayer::create(
(__int64)v14,
(cocos2d::CCLabelBMFont *)"Mute",
(char *)v26,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Mute",
300.0);
if ( (v26[0] & 1) != 0 )
operator delete(v27);
ButtonSprite::updateBGImage(v17[77], "GJ_button_06.png");
(*((void (__fastcall **)(ButtonSprite **))*v17 + 164))(v17);
if ( (v24[0] & 1) != 0 )
operator delete(v25);
if ( (v21 & 1) != 0 )
operator delete(v23);
return _stack_chk_guard;
}