//
// sub_1009A14B0 from 0x1009a14b0 to 0x1009a15ce (286 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::buildReportedRows @ 0x10099c058
// > AccountReviewPopup::buildFilterRows @ 0x10099dc0f
//
// 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 12:39:17 +0000
//
void __fastcall sub_1009A14B0(__int64 a1, __int64 a2, double a3, double a4, double a5, double a6)
{
int v6; // r14d
__int64 v7; // r15
__int64 v8; // rax
__int64 v9; // r13
__int64 v10; // rax
__int64 v11; // rax
int v12; // eax
unsigned int v13; // r15d
int v14; // r12d
int v15; // r12d
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v7 = a1 + 1352;
v8 = *(_QWORD *)(a1 + 1352);
if ( !v8 )
goto LABEL_8;
v9 = a1 + 1352;
do
{
if ( *(_DWORD *)(v8 + 28) >= v6 )
v9 = v8;
v8 = *(_QWORD *)(v8 + 8LL * (*(_DWORD *)(v8 + 28) < v6));
}
while ( v8 );
if ( v9 == v7 || v6 < *(_DWORD *)(v9 + 28) )
LABEL_8:
v9 = a1 + 1352;
v10 = cocos2d::CCDirector::sharedDirector();
if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10)
&& (v11 = cocos2d::CCDirector::sharedDirector(),
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11) + 128) == 1)
&& (v12 = *(_DWORD *)(a1 + 1264), v12 >= 0 && v12 != v6) )
{
v13 = v6;
if ( v12 < v6 )
v13 = *(_DWORD *)(a1 + 1264);
v14 = v6;
if ( v12 > v6 )
v14 = *(_DWORD *)(a1 + 1264);
v15 = v14 + 1;
do
sub_1009A21E0(a1, v13++, v9 == a1 + 1352, a3, a4, a5, a6);
while ( v15 != v13 );
}
else
{
sub_1009A21E0(a1, (unsigned int)v6, v9 == v7, a3, a4, a5, a6);
}
*(_DWORD *)(a1 + 1264) = v6;
sub_10099B9A0(a1);
}