//
// sub_46C3B0 from 0x46c3b0 to 0x46c3ee (62 bytes)
//
// 3 xrefs:
// > sub_488790 @ 0x4887aa
// > sub_489B3C @ 0x489b56
// > sub_48CCE8 @ 0x48ccfc
//
// 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
//
_DWORD **__fastcall sub_46C3B0(_DWORD *a1, int a2, _DWORD *a3)
{
_DWORD **v3; // r5
_DWORD *i; // r3
v3 = *(_DWORD ***)(*a1 + 4 * a2);
if ( !v3 )
return nullptr;
for ( i = *v3; *a3 != i[1]; i = (_DWORD *)*i )
{
if ( !*i )
return nullptr;
v3 = (_DWORD **)i;
if ( *(_DWORD *)(*i + 4) % a1[1] != a2 )
return nullptr;
}
return v3;
}