//
// AccountBanPopup::onTrendingUnban from 0xc935b0 to 0xc93778 (456 bytes)
//
// 3 xrefs:
// > ??> @ 0xc5cb0
// > AccountBanPopup::init @ 0xc94fd0
// > ??> @ 0x1545c80
//
// 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:49 +0000
//
__int64 __fastcall AccountBanPopup::onTrendingUnban(AccountBanPopup *this, cocos2d::CCObject *a2)
{
int v3; // w1
bool v4; // zf
const char *v5; // x1
char v6; // w0
cocos2d::CCString *v7; // x0
char *CString; // x0
__int64 v9; // x0
__int64 v11[2]; // [xsp+30h] [xbp+30h] BYREF
void *v12; // [xsp+40h] [xbp+40h]
void *v13; // [xsp+48h] [xbp+48h] BYREF
char *v14; // [xsp+50h] [xbp+50h]
__int64 v15; // [xsp+58h] [xbp+58h]
__int64 v16[2]; // [xsp+60h] [xbp+60h] BYREF
void *v17; // [xsp+70h] [xbp+70h]
v11[0] = 0;
v3 = *((_DWORD *)this + 273);
v11[1] = 0;
v4 = v3 == 2;
v5 = (char *)this + 1057;
v12 = nullptr;
v6 = *((_BYTE *)this + 1056);
if ( v4 )
{
if ( (v6 & 1) != 0 )
v5 = *((const char **)this + 134);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Lift the Trending ban for %s?",
v5);
}
else
{
if ( (v6 & 1) != 0 )
v5 = *((const char **)this + 134);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Allow %s on Trending?\n"
"Only creators with a rated or sent level trend by default.",
v5);
}
CString = (char *)cocos2d::CCString::getCString(v7);
std::string::assign(v11, CString);
v13 = nullptr;
v14 = nullptr;
v15 = 0;
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
std::string::__init(v16, &byte_11B8890, 0);
v9 = AdminActionConfirmPopup::create(
(__int64)this + 1040,
10,
"Confirm Allow",
(char *)v11,
(ButtonSprite *)"Allow",
(__int64)&v13,
(__int64)v16,
1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
if ( v13 )
{
if ( v13 != v14 )
v14 += 4 * ~((unsigned __int64)(v14 - 4 - (_BYTE *)v13) >> 2);
operator delete(v13);
}
if ( (v11[0] & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}