//
// sub_855E28 from 0x855e28 to 0x855e88 (96 bytes)
//
// 2 xrefs:
// > sub_86F80C @ 0x86f83c
// > 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[] @ 0x876eec
//
// 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
//
_QWORD *__fastcall sub_855E28(_QWORD *a1, __int64 a2, int *a3)
{
_QWORD *v3; // x7
_QWORD *v4; // x4
int v5; // w8
int v6; // w6
__int64 v7; // x2
v3 = *(_QWORD **)(*a1 + 8 * a2);
if ( !v3 )
return nullptr;
v4 = (_QWORD *)*v3;
v5 = *a3;
v6 = *(_DWORD *)(*v3 + 8LL);
while ( v5 != v6 )
{
v7 = *v4;
v3 = v4;
v4 = (_QWORD *)v7;
if ( v7 )
{
v6 = *(_DWORD *)(v7 + 8);
if ( a2 == (unsigned __int64)v6 % a1[1] )
continue;
}
return nullptr;
}
return v3;
}