//
// sub_100239B24 from 0x100239b24 to 0x100239bb8 (148 bytes)
//
// 1 xrefs:
// > sub_100239ADC @ 0x100239b20
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100239B24(__int64 result, __int64 a2)
{
__int64 v2; // x8
unsigned int *v3; // x9
__int64 v4; // x8
__int64 v6; // x19
__int64 *v7; // x22
unsigned __int64 v8; // x23
__int64 v9; // x21
v2 = *(_QWORD *)(result + 56);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v6 = result;
v7 = *((__int64 **)v3 + 2);
v8 = (unsigned __int64)&v7[v4 - 1];
do
{
v9 = *v7;
if ( !*v7 )
break;
result = sub_100216950(*v7);
if ( result == a2 )
return sub_10024A444(*(_QWORD *)(v6 + 56), v9, 1);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
return result;
}