//
// GJNotificationCell::onMute from 0x42b980 to 0x42baa8 (296 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:48:09 +0000
//
int __fastcall GJNotificationCell::onMute(int this, cocos2d::CCObject *a2)
{
int v2; // r1
char *v3; // r4
int v4; // r3
int v5; // r3
cocos2d::CCString *v6; // r0
const char *CString; // r6
size_t v8; // r0
int v9; // r9
size_t v10; // r0
char **v11; // r4
int v12[2]; // [sp+8h] [bp-2Ch] BYREF
char *v13; // [sp+10h] [bp-24h]
int v14[2]; // [sp+14h] [bp-20h] BYREF
char *v15; // [sp+1Ch] [bp-18h]
int v16[3]; // [sp+20h] [bp-14h] BYREF
v2 = *(_DWORD *)(this + 424);
v3 = (char *)this;
if ( v2 && *(int *)(v2 + 148) > 0 )
{
v4 = *(unsigned __int8 *)(v2 + 152);
if ( (v4 & 1) != 0 )
v5 = *(_DWORD *)(v2 + 156);
else
v5 = v4 >> 1;
if ( v5 )
{
std::string::basic_string(v12, v2 + 152);
}
else
{
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(v12, "this user", 9u);
}
if ( (v12[0] & 1) != 0 )
v6 = (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.",
v13);
else
v6 = (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.",
(const char *)v12 + 1);
CString = (const char *)cocos2d::CCString::getCString(v6);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v8 = strlen(CString);
std::string::__init(v14, CString, v8);
v9 = (int)(v3 + 420);
if ( (v14[0] & 1) == 0 )
v3 = (char *)v14 + 1;
v16[0] = 0;
if ( (v14[0] & 1) != 0 )
v3 = v15;
v16[1] = 0;
v16[2] = 0;
v10 = strlen(v3);
std::string::__init(v16, v3, v10);
v11 = (char **)FLAlertLayer::create(
v9,
(cocos2d::CCLabelBMFont *)"Mute",
(int)v16,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Mute",
300.0);
std::string::~string((int)v16);
ButtonSprite::updateBGImage(v11[121], "GJ_button_06.png");
(*((void (__fastcall **)(char **))*v11 + 164))(v11);
std::string::~string((int)v14);
return std::string::~string((int)v12);
}
return this;
}