//
// AccountBanPopup::onCommentBan from 0x764354 to 0x76440e (186 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:59:06 +0000
//
int __fastcall AccountBanPopup::onCommentBan(AccountBanPopup *this, cocos2d::CCObject *a2)
{
int v3; // r2
int v4; // r3
cocos2d::CCString *v5; // r0
char *CString; // r0
const char *v7; // r1
int v9[3]; // [sp+4h] [bp-20h] BYREF
char *v10[3]; // [sp+10h] [bp-14h] BYREF
v3 = *((_DWORD *)this + 193);
if ( v3 )
v4 = *(_DWORD *)(v3 + 296);
else
v4 = 0;
memset(v9, 0, sizeof(v9));
if ( v4 == 12 )
{
if ( (*((_BYTE *)this + 732) & 1) != 0 )
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Apply a permanent comment ban to %s?",
*((const char **)this + 185));
else
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Apply a permanent comment ban to %s?",
(const char *)this + 733);
}
else
{
if ( (*((_BYTE *)this + 732) & 1) != 0 )
v7 = *((const char **)this + 185);
else
v7 = (char *)this + 733;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Ban %s from commenting for %s?",
v7,
off_C74AA0[v4]);
}
CString = (char *)cocos2d::CCString::getCString(v5);
std::string::assign(v9, CString);
ReportPopup::reasonIndicesForTextModeration((ReportPopup *)v10);
sub_762E34((int)this + 724, 1, (int)v9, v10);
std::__vector_base::~__vector_base(v10);
return std::string::~string((int)v9);
}