//
// AccountBanPopup::onTrendingBan from 0xc92770 to 0xc92994 (548 bytes)
//
// 3 xrefs:
// > ??> @ 0x54c58
// > AccountBanPopup::init @ 0xc94fcc
// > ??> @ 0x1541de0
//
// 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:48 +0000
//
__int64 __fastcall AccountBanPopup::onTrendingBan(AccountBanPopup *this, cocos2d::CCObject *a2)
{
const char *v2; // x1
char *v3; // x19
cocos2d::CCString *v4; // x0
size_t v5; // x0
ReportPopup *v6; // x0
__int64 v7; // x19
char *CString; // [xsp+48h] [xbp+48h]
__int64 v10[2]; // [xsp+58h] [xbp+58h] BYREF
void *v11; // [xsp+68h] [xbp+68h]
void *v12; // [xsp+70h] [xbp+70h] BYREF
char *v13; // [xsp+78h] [xbp+78h]
__int64 v14[2]; // [xsp+88h] [xbp+88h] BYREF
void *v15; // [xsp+98h] [xbp+98h]
__int64 v16[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v17; // [xsp+B0h] [xbp+B0h]
v2 = (char *)this + 1057;
if ( (*((_BYTE *)this + 1056) & 1) != 0 )
v2 = *((const char **)this + 134);
v3 = (char *)this + 1040;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Ban %s from Trending?\n"
"Their levels leave the tab now and stay out until allowed again.",
v2);
v10[0] = 0;
CString = (char *)cocos2d::CCString::getCString(v4);
v10[1] = 0;
v11 = nullptr;
v5 = strlen(CString);
v6 = (ReportPopup *)std::string::__init(v10, CString, v5);
ReportPopup::reasonIndicesForUploadModeration((__int64 *)&v12, v6);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
std::string::__init(v14, &byte_11B8890, 0);
v7 = AdminActionConfirmPopup::create(
(__int64)v3,
9,
"Confirm Ban",
(char *)v10,
(ButtonSprite *)"Ban",
(__int64)&v12,
(__int64)v14,
1);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
if ( v12 )
{
if ( v12 != v13 )
v13 += 4 * ~((unsigned __int64)(v13 - 4 - (_BYTE *)v12) >> 2);
operator delete(v12);
}
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
std::string::__init(
v16,
"The player is not told. The reason and categories only go to the moderator log.\n"
"\n"
"No duration: the ban stays until a moderator allows the account again or RobTop rates one of their levels.",
0xBBu);
AdminActionConfirmPopup::addHelp(v7, "Trending Ban", (char *)v16);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
return _stack_chk_guard;
}