//
// sub_1009309D0 from 0x1009309d0 to 0x100930a3a (106 bytes)
//
// 0 xrefs:
//
// 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:38:24 +0000
//
__int64 __fastcall sub_1009309D0(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
unsigned int v3; // r12d
__int64 v4; // rax
v2 = 0;
if ( (int)sub_1007FEF90(*(_QWORD *)(a1 + 760)) > 0 )
{
v3 = 0;
while ( 1 )
{
v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 760), v3);
if ( *(_QWORD *)(v4 + 56) == a2 )
break;
if ( (int)++v3 >= (int)sub_1007FEF90(*(_QWORD *)(a1 + 760)) )
return v2;
}
return v4;
}
return v2;
}