//
// sub_609F50 from 0x609f50 to 0x609f7a (42 bytes)
//
// 14 xrefs:
// > sub_607BBC @ 0x607d92
// > sub_607BBC @ 0x607e38
// > sub_607BBC @ 0x607ee0
// > sub_607BBC @ 0x607f9a
// > sub_607BBC @ 0x608020
// > sub_607BBC @ 0x6080b0
// > sub_607BBC @ 0x60816e
// > sub_607BBC @ 0x60823c
// > sub_607BBC @ 0x608320
// > sub_607BBC @ 0x6083ee
// > sub_607BBC @ 0x6084e2
// > sub_607BBC @ 0x6085ce
// > sub_607BBC @ 0x60868c
// > sub_607BBC @ 0x608774
//
// 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
//
int *__fastcall sub_609F50(int *result, int a2, int a3, int **a4)
{
int i; // r4
if ( a3 != (*(_DWORD *)(a2 + 8) - *(_DWORD *)(a2 + 4)) >> 3 )
{
for ( i = *result; i; i = *(_DWORD *)(i + 12) )
result = (int *)sub_609EA8(a2, a3, *(unsigned __int8 **)(i + 4), a4);
}
return result;
}