//
// sub_100428CF4 from 0x100428cf4 to 0x100428d94 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x100826d38
//
// 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_100428CF4(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v4; // x22
_QWORD *v5; // x24
__int64 v9; // x23
__int64 result; // x0
v4 = (_QWORD *)(a1 + 40);
v5 = *(_QWORD **)(a1 + 40);
if ( v5 == (_QWORD *)(a1 + 40) )
return 0;
while ( 1 )
{
v9 = v5 ? (__int64)(v5 - 1) : 0LL;
if ( (**(unsigned int (__fastcall ***)(__int64))v9)(v9) == (_DWORD)a3 )
{
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64))(*(_QWORD *)v9 + 88LL))(v9, a2, a3, a4);
if ( (_DWORD)result )
break;
}
v5 = (_QWORD *)*v5;
if ( v5 == v4 )
return 0;
}
return result;
}