//
// AccountReviewPopup::clearSelectedReports from 0xc46330 to 0xc4650c (476 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::FLAlert_Clicked @ 0xc4f910
// > ??> @ 0xc1de0
//
// 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:00 +0000
//
__int64 __fastcall AccountReviewPopup::clearSelectedReports(AccountReviewPopup *this)
{
char *v2; // x19
char *v3; // x22
signed int v4; // w26
unsigned int *v5; // x26
GameLevelManager *v6; // x1
cocos2d::CCString *v7; // x0
char *CString; // x0
char *v9; // x0
GameLevelManager *v10; // x0
char *v12; // x1
char *v13; // x1
GameLevelManager *v14; // x0
cocos2d::CCObject *v15; // x0
__int64 v16; // [xsp+50h] [xbp+50h] BYREF
GameLevelManager *v17; // [xsp+58h] [xbp+58h]
void *v18; // [xsp+60h] [xbp+60h]
if ( *((_QWORD *)this + 164) && *((_QWORD *)this + 170) && !*((_DWORD *)this + 309) )
{
v2 = *((char **)this + 168);
v3 = (char *)this + 1352;
v16 = 0;
v17 = nullptr;
v18 = nullptr;
while ( v3 != v2 )
{
while ( 1 )
{
v4 = *((_DWORD *)v2 + 7);
if ( (v4 & 0x80000000) == 0 && v4 < (int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 164)) )
{
v5 = (unsigned int *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 164), v4);
v6 = (GameLevelManager *)((unsigned __int8)v16 >> 1);
if ( (v16 & 1) != 0 )
v6 = v17;
if ( v6 )
std::string::append((__int64)&v16, &byte_1169BE0);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i:%i:%i",
(const char *)v5[14],
v5[15],
v5[16]);
CString = (char *)cocos2d::CCString::getCString(v7);
std::string::append((__int64)&v16, CString);
}
v9 = *((char **)v2 + 1);
if ( !v9 )
break;
do
{
v2 = v9;
v9 = *(char **)v9;
}
while ( v9 );
if ( v3 == v2 )
goto LABEL_16;
}
do
{
v12 = v2;
v2 = *((char **)v2 + 2);
if ( v12 == *(char **)v2 )
break;
v13 = v2;
v2 = *((char **)v2 + 2);
}
while ( v13 != *(char **)v2 );
}
LABEL_16:
if ( (v16 & 1) != 0 )
{
v10 = v17;
if ( !v17 )
{
LABEL_18:
operator delete(v18);
return _stack_chk_guard;
}
}
else
{
v10 = (GameLevelManager *)((int)(unsigned __int8)v16 >> 1);
if ( !(_DWORD)v10 )
return _stack_chk_guard;
}
v14 = (GameLevelManager *)GameLevelManager::sharedState(v10);
*((_QWORD *)v14 + 157) = (char *)this + 776;
v15 = (cocos2d::CCObject *)GameLevelManager::sharedState(v14);
if ( (unsigned __int8)GameLevelManager::adminClearReportedContent(
v15,
(char *)*((unsigned int *)this + 210),
(__int64)&v16) )
PagedListPopup::showLoading(this);
if ( (v16 & 1) != 0 )
goto LABEL_18;
}
return _stack_chk_guard;
}