//
// AccountBanPopup::onTrendingUnban from 0x1400a8e30 to 0x1400a9079 (585 bytes)
//
// 2 xrefs:
// > AccountBanPopup::init @ 0x1400a71e0
// > ??> @ 0x1409132c8
//
// This function is hookable on this platform (idp: pc, 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 11:26:09 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall AccountBanPopup::onTrendingUnban(__int64 a1)
{
cocos2d::CCString *v2; // rax
char *CString; // rax
size_t v4; // r8
int v5; // ecx
char *v6; // rax
void *v7; // rcx
void *v8; // rcx
void *v9; // rcx
void *Block[2]; // [rsp+40h] [rbp-68h] BYREF
__int64 v11; // [rsp+50h] [rbp-58h]
void *v12[2]; // [rsp+58h] [rbp-50h] BYREF
__m128i si128; // [rsp+68h] [rbp-40h]
void *v14[2]; // [rsp+78h] [rbp-30h] BYREF
__m128i v15; // [rsp+88h] [rbp-20h]
*(_OWORD *)v12 = 0;
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(v12[0]) = 0;
if ( *(_DWORD *)(a1 + 1084) == 2 )
v2 = cocos2d::CCString::createWithFormat("Lift the Trending ban for %s?");
else
v2 = cocos2d::CCString::createWithFormat("Allow %s on Trending?\nOnly creators with a rated or sent level trend by default.");
CString = (char *)cocos2d::CCString::getCString(v2);
v4 = -1;
do
++v4;
while ( CString[v4] );
sub_1400405A0(v12, CString, v4);
*(_OWORD *)v14 = 0;
v15 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(v14[0]) = 0;
v5 = a1 + 1024;
if ( !a1 )
v5 = 0;
*(_OWORD *)Block = 0;
v11 = 0;
v6 = sub_1400A51F0(v5, 10, (int)"Confirm Allow", (__int64)v12, (__int64)"Allow", (__int64)Block, (__int64)v14);
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1064LL))(v6);
v7 = Block[0];
if ( Block[0] )
{
if ( ((v11 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
*(_OWORD *)Block = 0;
v11 = 0;
}
if ( v15.m128i_i64[1] > 0xFuLL )
{
v8 = v14[0];
if ( (unsigned __int64)(v15.m128i_i64[1] + 1) >= 0x1000 )
{
v8 = *((void **)v14[0] - 1);
if ( (unsigned __int64)((char *)v14[0] - (char *)v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
if ( si128.m128i_i64[1] > 0xFuLL )
{
v9 = v12[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v9 = *((void **)v12[0] - 1);
if ( (unsigned __int64)((char *)v12[0] - (char *)v9 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v9);
}
}