//
// GameLevelManager::onAdminTrendingBanCompleted from 0x80b658 to 0x80b78c (308 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85a380
// > ??> @ 0xffad8
//
// 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 12:54:47 +0000
//
__int64 __fastcall GameLevelManager::onAdminTrendingBanCompleted(__int64 a1, __int64 a2, char *a3)
{
char *v5; // x19
__int64 v6; // x24
size_t v7; // x0
__int64 v8; // x0
__int64 v10; // x0
__int64 v11; // [xsp+40h] [xbp+40h] BYREF
__int64 v12; // [xsp+48h] [xbp+48h]
void *v13; // [xsp+50h] [xbp+50h]
v5 = a3 + 1;
v6 = *(_QWORD *)(a1 + 1088);
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v11 = 0;
v12 = 0;
v13 = nullptr;
v7 = strlen(v5);
std::string::__init(&v11, v5, v7);
cocos2d::CCDictionary::removeObjectForKey(v6, &v11);
if ( (v11 & 1) != 0 )
operator delete(v13);
v11 = 3222788;
v12 = 0;
v13 = nullptr;
if ( sub_7FEA60(a2, (__int64)&v11) )
{
v8 = *(_QWORD *)(a1 + 1256);
if ( v8 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 152LL))(v8);
}
else
{
v10 = *(_QWORD *)(a1 + 1256);
if ( v10 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 144LL))(v10);
}
return _stack_chk_guard;
}