//
// AccountBanPopup::onFreeze from 0x764fb8 to 0x7650a6 (238 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:07 +0000
//
int __fastcall AccountBanPopup::onFreeze(AccountBanPopup *this, cocos2d::CCObject *a2)
{
int v2; // r1
int v4; // r2
int v5; // r3
int v6; // r2
cocos2d::CCString *v7; // r0
char *CString; // r0
const char *v9; // r1
int i; // [sp+0h] [bp-20h] BYREF
int v12[3]; // [sp+4h] [bp-1Ch] BYREF
char *v13; // [sp+10h] [bp-10h] BYREF
int *v14; // [sp+14h] [bp-Ch]
int *v15; // [sp+18h] [bp-8h]
v2 = *((_DWORD *)this + 196);
if ( v2 )
v4 = *(_DWORD *)(v2 + 296);
else
v4 = 0;
memset(v12, 0, sizeof(v12));
v5 = *((unsigned __int8 *)this + 732);
if ( v4 == 12 )
{
v6 = v5 << 31;
if ( (v5 & 1) != 0 )
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Apply all bans to %s permanently?\n"
"Covers comments, uploads and messages.",
*((const char **)this + 185),
v6);
else
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Apply all bans to %s permanently?\n"
"Covers comments, uploads and messages.",
(const char *)this + 733,
v6);
}
else
{
if ( (v5 & 1) != 0 )
v9 = *((const char **)this + 185);
else
v9 = (char *)this + 733;
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Apply all bans to %s for %s?\n"
"Covers comments, uploads and messages.",
v9,
off_C74AA0[v4]);
}
CString = (char *)cocos2d::CCString::getCString(v7);
std::string::assign(v12, CString);
v13 = nullptr;
v14 = nullptr;
v15 = nullptr;
for ( i = 0; i <= 7; ++i )
{
if ( v14 == v15 )
{
std::vector::__push_back_slow_path((int)&v13, &i);
}
else
{
if ( v14 )
*v14 = i;
++v14;
}
}
sub_762E34((int)this + 724, 7, (int)v12, &v13);
std::__vector_base::~__vector_base(&v13);
return std::string::~string((int)v12);
}