//
// ReportQueuePopup::onOpenAuthor from 0x1400c94d0 to 0x1400c9535 (101 bytes)
//
// 2 xrefs:
// > ReportQueuePopup::buildRows @ 0x1400c839b
// > ??> @ 0x140913f58
//
// This function is hookable on this platform (idp: pc, 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:26:22 +0000
//
int __fastcall ReportQueuePopup::onOpenAuthor(__int64 a1, __int64 a2)
{
int result; // eax
cocos2d::CCArray *v4; // rcx
signed int v5; // ebx
struct cocos2d::CCObject *v6; // rax
__int64 v7; // rax
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = *(cocos2d::CCArray **)(a1 + 800);
v5 = result;
if ( v4 && result >= 0 )
{
result = cocos2d::CCArray::count(v4);
if ( v5 < result )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 800), v5);
v7 = ProfilePage::create(*((unsigned int *)v6 + 14), 0);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1064LL))(v7);
}
}
return result;
}