//
// sub_D1ADB8 from 0xd1adb8 to 0xd1ae00 (72 bytes)
//
// 0 xrefs:
//
// 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_D1ADB8(__int64 *a1, int a2, unsigned __int64 a3)
{
__int64 v3; // x3
unsigned __int64 v4; // x4
int v5; // w5
v3 = *a1;
v4 = *(_QWORD *)(*a1 - 24);
if ( a3 >= v4 )
return -1;
v5 = *(_DWORD *)(v3 + 4 * a3);
if ( v5 == a2 )
{
while ( ++a3 < v4 )
{
if ( *(_DWORD *)(v3 + 4 * a3) != v5 )
return a3;
}
return -1;
}
return a3;
}