//
// AccountBanPopup::onFreeze from 0xc95d9c to 0xc95fa8 (524 bytes)
//
// 3 xrefs:
// > ??> @ 0xf0820
// > AccountBanPopup::init @ 0xc94ad0
// > ??> @ 0x1547438
//
// 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:53 +0000
//
__int64 __fastcall AccountBanPopup::onFreeze(AccountBanPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
int v4; // w3
const char *v5; // x1
cocos2d::CCString *v6; // x0
char *CString; // x0
int *v8; // x0
int *v9; // x2
int v10; // w1
const char *v12; // x1
int v13; // [xsp+44h] [xbp+44h] BYREF
__int64 v14; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h]
void *v16; // [xsp+58h] [xbp+58h]
void *v17; // [xsp+60h] [xbp+60h] BYREF
int *v18; // [xsp+68h] [xbp+68h]
int *v19; // [xsp+70h] [xbp+70h]
v3 = *((_QWORD *)this + 142);
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 384);
v14 = 0;
v15 = 0;
v16 = nullptr;
if ( v4 == 12 )
{
v12 = (char *)this + 1057;
if ( (*((_BYTE *)this + 1056) & 1) != 0 )
v12 = *((const char **)this + 134);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Apply all bans to %s permanently?\n"
"Covers comments, uploads and messages.",
v12,
(char *)this + 1056);
goto LABEL_6;
}
}
else
{
v14 = 0;
v4 = 0;
v15 = 0;
v16 = nullptr;
}
v5 = (char *)this + 1057;
if ( (*((_BYTE *)this + 1056) & 1) != 0 )
v5 = *((const char **)this + 134);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Apply all bans to %s for %s?\n"
"Covers comments, uploads and messages.",
v5,
off_13FB0D0[v4]);
LABEL_6:
CString = (char *)cocos2d::CCString::getCString(v6);
std::string::assign(&v14, CString);
v17 = nullptr;
v8 = nullptr;
v18 = nullptr;
v9 = nullptr;
v19 = nullptr;
v10 = 0;
v13 = 0;
while ( v9 == v8 )
{
std::vector::__push_back_slow_path((__int64)&v17, &v13);
v10 = v13 + 1;
v13 = v10;
if ( v10 > 7 )
goto LABEL_13;
LABEL_10:
v9 = v19;
v8 = v18;
}
if ( v8 )
{
*v8 = v10;
v8 = v18;
}
v18 = v8 + 1;
v10 = v13 + 1;
v13 = v10;
if ( v10 <= 7 )
goto LABEL_10;
LABEL_13:
sub_C90E50((__int64)this + 1040, 7, (char *)&v14, (__int64)&v17);
if ( v17 )
{
if ( v17 != v18 )
v18 += ~((unsigned __int64)((char *)(v18 - 1) - (_BYTE *)v17) >> 2);
operator delete(v17);
}
if ( (v14 & 1) != 0 )
operator delete(v16);
return _stack_chk_guard;
}