//
// AccountReviewPopup::adminReportedContentFinished from 0x100545180 to 0x1005452fc (380 bytes)
//
// 2 xrefs:
// > sub_1005465F8 @ 0x1005465fc
// > ??> @ 0x1009a8c38
//
// 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 11:07:45 +0000
//
__int64 __fastcall AccountReviewPopup::adminReportedContentFinished(__int64 result, int a2, __int64 a3, __int64 a4)
{
__int64 v4; // x19
_DWORD *v7; // x0
int v8; // w8
int v9; // w22
int v10; // w23
int v11; // w10
bool v12; // zf
int v13; // w10
int v14; // w11
int v15; // w8
const char *v16; // x1
if ( *(_DWORD *)(result + 840) == a2 )
{
v4 = result;
if ( !*(_DWORD *)(result + 1236) )
{
sub_10051B1EC(result);
result = sub_10051B164(v4);
if ( (result & 1) == 0 )
{
*(_DWORD *)(v4 + 1260) = 0;
if ( a3 )
cocos2d::CCObject::retain(a3);
v7 = *(_DWORD **)(v4 + 1312);
if ( v7 )
cocos2d::CCObject::release(v7);
*(_QWORD *)(v4 + 1312) = a3;
v8 = *(_DWORD *)(a4 + 108);
if ( v8 >= 1 )
*(_DWORD *)(v4 + 676) = *(_DWORD *)(a4 + 104) / v8;
*(_QWORD *)(v4 + 1368) = *(_QWORD *)(a4 + 40);
*(_DWORD *)(v4 + 1376) = *(_DWORD *)(a4 + 48);
if ( a3 )
v9 = sub_1002E757C(a3);
else
v9 = 0;
if ( *(_DWORD *)(v4 + 1240) )
{
v10 = 0;
}
else if ( (*(_DWORD *)(v4 + 1372) + *(_DWORD *)(v4 + 1368) < 0)
^ __OFADD__(*(_DWORD *)(v4 + 1372), *(_DWORD *)(v4 + 1368))
| (*(_DWORD *)(v4 + 1372) + *(_DWORD *)(v4 + 1368) == 0) )
{
v10 = 0;
}
else
{
v10 = 1;
}
v11 = *(_DWORD *)(v4 + 676);
v12 = v11 == 0;
if ( v11 <= 0 )
v13 = 0;
else
v13 = v10;
if ( v12 )
v14 = v10;
else
v14 = 0;
sub_10051B2A8((_QWORD *)v4, *(_DWORD *)a4 + v10, v13 + *(_DWORD *)(a4 + 104), v14 + v9);
if ( v9 )
return sub_1005452FC(v4, a3);
v15 = *(_DWORD *)(v4 + 676);
if ( v10 )
{
if ( !v15 )
return sub_1005452FC(v4, a3);
}
else if ( !v15 )
{
if ( *(_DWORD *)(v4 + 1240) )
v16 = "Nothing reported of this type.";
else
v16 = "No reported content.";
return sub_10051B1FC(v4, v16);
}
v16 = "Nothing on this page.";
return sub_10051B1FC(v4, v16);
}
}
}
return result;
}