//
// std::vector>::erase from 0x49ef94 to 0x49efd4 (64 bytes)
//
// 3 xrefs:
// > GJEffectManager::controlActionsForControlID @ 0x4a294a
// > GJEffectManager::controlActionsForTrigger @ 0x4a2da8
// > GJEffectManager::updateCountForItem @ 0x4a34f6
//
// 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
//
_BYTE *__fastcall std::vector::erase(int a1, _BYTE *a2)
{
_BYTE *v2; // r2
_BYTE *v3; // r3
_BYTE *v6; // r0
int i; // r4
_BYTE *v8; // r7
int v9; // r0
v2 = a2 + 48;
v3 = *(_BYTE **)(a1 + 4);
if ( a2 + 48 != v3 )
{
v6 = a2;
for ( i = -1431655765 * ((v3 - v2) >> 4); ; --i )
{
v8 = v6 + 48;
if ( i <= 0 )
break;
CountTriggerAction::operator=(v6, v6 + 48, v2);
v6 = v8;
}
}
v9 = *(_DWORD *)(a1 + 4);
*(_DWORD *)(a1 + 4) = v9 - 48;
std::_Vector_base::~_Vector_base((void **)(v9 - 12));
return a2;
}