//
// ReportQueuePopup::adminReportQueueFinished from 0x1005236d8 to 0x100523800 (296 bytes)
//
// 2 xrefs:
// > sub_10052451C @ 0x100524520
// > ??> @ 0x1009a0248
//
// 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:13 +0000
//
__int64 __fastcall ReportQueuePopup::adminReportQueueFinished(__int64 a1, __int64 a2, int a3, int a4, int a5)
{
__int64 result; // x0
_DWORD *v11; // x0
int v12; // w23
int v13; // w8
const char *v14; // x9
const char *v15; // x8
const char *v16; // x1
sub_10051B1EC(a1);
result = sub_10051B164(a1);
if ( (result & 1) == 0 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v11 = *(_DWORD **)(a1 + 800);
if ( v11 )
cocos2d::CCObject::release(v11);
*(_QWORD *)(a1 + 800) = a2;
if ( a5 >= 1 )
*(_DWORD *)(a1 + 676) = a4 / a5;
if ( a2 )
{
v12 = sub_1002E757C(a2);
sub_10051B2A8((_QWORD *)a1, a3, a4, v12);
if ( v12 )
return sub_100523800(a1, a2);
}
else
{
sub_10051B2A8((_QWORD *)a1, a3, a4, 0);
}
v13 = *(_DWORD *)(a1 + 796);
v14 = "No open reports or flagged accounts.";
if ( v13 == 2 )
v14 = "Nothing flagged.";
if ( v13 == 1 )
v15 = "No open reports.";
else
v15 = v14;
if ( *(_DWORD *)(a1 + 676) )
v16 = "Nothing on this page.";
else
v16 = v15;
return sub_10051B1FC(a1, v16);
}
return result;
}