//
// sub_1009A1F80 from 0x1009a1f80 to 0x1009a1fe5 (101 bytes)
//
// 1 xrefs:
// > AccountReviewPopup::buildFilterRows @ 0x10099ebef
//
// 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
//
__int64 __fastcall sub_1009A1F80(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rdi
signed int v5; // r14d
__int64 v6; // rdi
__int64 v7; // rax
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( *(_DWORD *)(a1 + 1236) == 1 )
{
v4 = *(_QWORD *)(a1 + 1312);
if ( v4 != 0 && (int)result >= 0 )
{
v5 = result;
result = sub_1007FEF90(v4);
if ( v5 < (int)result )
{
v6 = *(_QWORD *)(a1 + 1312);
v7 = sub_1007FEFE0(v6, v5);
return sub_1009A4070(v6, *(unsigned int *)(v7 + 56), *(unsigned int *)(v7 + 168));
}
}
}
return result;
}