//
// sub_2FE19A from 0x2fe19a to 0x2fe1d8 (62 bytes)
//
// 2 xrefs:
// > std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[] @ 0x301110
// > sub_30113C @ 0x301176
//
// 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_2FE19A(_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;
}