//
// std::fill from 0x3659b8 to 0x365a30 (120 bytes)
//
// 3 xrefs:
// > std::vector>::_M_fill_insert @ 0x36ff4c
// > std::vector>::_M_fill_insert @ 0x370048
// > GJEffectManager::resetToggledGroups @ 0x49b3f8
//
// 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(_DWORD *a1, int a2, _DWORD *a3, int a4, unsigned __int8 *a5)
{
bool v5; // zf
int v7; // r2
_DWORD *i; // r6
v5 = a1 == a3;
v7 = *a5;
if ( v5 )
return std::__fill_bvector(a1, a2, a3, a4, *a5);
for ( i = a1 + 1; i != a3; ++i )
*i = -v7;
std::__fill_bvector(a1, a2, a1 + 1, 0, v7);
return std::__fill_bvector(i, 0, a3, a4, *a5);
}