//
// ReportQueuePopup::adminReportQueueFinished from 0xc51990 to 0xc51acc (316 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ReportQueuePopup::adminReportQueueFinished @ 0xc51ad0
// > ??> @ 0x6e320
// > ??> @ 0x14e83f0
//
// 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:09 +0000
//
__int64 __fastcall ReportQueuePopup::adminReportQueueFinished(
cocos2d::CCObject **this,
cocos2d::CCArray *a2,
int a3,
int a4,
int a5)
{
__int64 result; // x0
cocos2d::CCObject *v11; // x0
int v12; // w21
int v13; // w0
char *v14; // x1
PagedListPopup::fadeLoading((PagedListPopup *)this);
result = (unsigned __int8)PagedListPopup::retryPendingPage((PagedListPopup *)this);
if ( (_BYTE)result )
return result;
if ( a2 )
cocos2d::CCObject::retain(a2);
v11 = *(this + 100);
if ( v11 )
cocos2d::CCObject::release(v11);
*(this + 100) = a2;
if ( a5 > 0 )
*((_DWORD *)this + 169) = a4 / a5;
if ( a2 )
{
v12 = cocos2d::CCArray::count(a2);
PagedListPopup::updatePageUI((PagedListPopup *)this, a3, a4, v12);
if ( v12 )
return ReportQueuePopup::buildRows((ReportQueuePopup *)this, a2);
v13 = *((_DWORD *)this + 199);
if ( v13 != 1 )
goto LABEL_11;
LABEL_18:
v14 = "No open reports.";
goto LABEL_13;
}
PagedListPopup::updatePageUI((PagedListPopup *)this, a3, a4, 0);
v13 = *((_DWORD *)this + 199);
if ( v13 == 1 )
goto LABEL_18;
LABEL_11:
if ( v13 == 2 )
v14 = "Nothing flagged.";
else
v14 = "No open reports or flagged accounts.";
LABEL_13:
if ( *((_DWORD *)this + 169) )
v14 = "Nothing on this page.";
return PagedListPopup::showStatus((PagedListPopup *)this, (cocos2d::CCLabelBMFont *)v14);
}