//
// std::__fill_bvector from 0x365950 to 0x3659b2 (98 bytes)
//
// 3 xrefs:
// > std::fill @ 0x3659fc
// > std::fill @ 0x365a12
// > std::fill @ 0x365a2c
//
// 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 std::__fill_bvector(_DWORD *result, int a2, _DWORD *a3, int a4, unsigned __int8 a5)
{
_DWORD *v7; // [sp+8h] [bp-18h] BYREF
int v8; // [sp+Ch] [bp-14h]
_DWORD v9[2]; // [sp+14h] [bp-Ch] BYREF
v7 = result;
v8 = a2;
while ( v7 != a3 || v8 != a4 )
{
v9[0] = v7;
v9[1] = 1 << v8;
std::_Bit_reference::operator=((int)v9, a5);
result = std::_Bit_iterator_base::_M_bump_up(&v7);
}
return result;
}