//
// std::_Bit_iterator::operator+ from 0x36590c to 0x36594a (62 bytes)
//
// 10 xrefs:
// > std::vector>::_M_fill_insert @ 0x36fec0
// > std::vector>::_M_fill_insert @ 0x36ff3c
// > std::vector>::_M_fill_insert @ 0x370038
// > std::vector>::_M_fill_insert @ 0x37005c
// > std::vector>::resize @ 0x370132
// > std::vector>::resize @ 0x370178
// > GJBaseGameLayer::addToSection @ 0x482e3c
// > GJBaseGameLayer::addToSection @ 0x482e84
// > GJBigSprite::init @ 0x50f422
// > GJBigSprite::init @ 0x50f474
//
// 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
//
int *__fastcall std::_Bit_iterator::operator+(int *result, _DWORD *a2, int a3)
{
int v3; // r2
int v4; // r3
int v5; // r1
v3 = a3 + a2[1];
v4 = v3 % 32;
v5 = *a2 + 4 * (v3 / 32);
if ( v3 % 32 < 0 )
{
v4 += 32;
v5 -= 4;
}
*result = v5;
result[1] = v4;
return result;
}