//
// std::vector>::_M_erase from 0x8a9910 to 0x8a9a18 (264 bytes)
//
// 4 xrefs:
// > GJEffectManager::updateTimers @ 0x8abfc8
// > GJEffectManager::controlActionsForControlID @ 0x8b4810
// > GJEffectManager::controlActionsForTrigger @ 0x8c0318
// > ??> @ 0x55818
//
// 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
//
__int64 __fastcall std::vector::_M_erase(__int64 a1, __int64 a2)
{
__int64 v3; // x19
__int64 v4; // x1
__int64 v6; // x20
__int64 v7; // x20
int v8; // w3
int v9; // w2
__int64 v10; // x6
__int64 v11; // x5
void *v12; // x0
__int64 v13; // x4
int v14; // w11
int v15; // w10
int v16; // w9
int v17; // w8
char v18; // w7
void *v19; // x0
v3 = a2 + 56;
v4 = *(_QWORD *)(a1 + 8);
if ( v4 != v3 )
{
v6 = 0x6DB6DB6DB6DB6DB7LL * ((v4 - v3) >> 3);
if ( v6 > 0 )
{
v7 = a2 + 56 * (v6 + 1);
do
{
v8 = *(_DWORD *)(v3 + 4);
v9 = *(_DWORD *)(v3 + 8);
v10 = *(_QWORD *)(v3 + 32);
v11 = *(_QWORD *)(v3 + 40);
v12 = *(void **)(v3 - 24);
v13 = *(_QWORD *)(v3 + 48);
v3 += 56;
v14 = *(_DWORD *)(v3 - 44);
v15 = *(_DWORD *)(v3 - 40);
v16 = *(_DWORD *)(v3 - 36);
v17 = *(_DWORD *)(v3 - 32);
v18 = *(_BYTE *)(v3 - 28);
*(_BYTE *)(v3 - 112) = *(_BYTE *)(v3 - 56);
*(_DWORD *)(v3 - 100) = v14;
*(_DWORD *)(v3 - 96) = v15;
*(_DWORD *)(v3 - 92) = v16;
*(_DWORD *)(v3 - 88) = v17;
*(_BYTE *)(v3 - 84) = v18;
*(_QWORD *)(v3 - 80) = v10;
*(_QWORD *)(v3 - 24) = 0;
*(_QWORD *)(v3 - 72) = v11;
*(_QWORD *)(v3 - 16) = 0;
*(_QWORD *)(v3 - 64) = v13;
*(_QWORD *)(v3 - 8) = 0;
*(_DWORD *)(v3 - 108) = v8;
*(_DWORD *)(v3 - 104) = v9;
if ( v12 )
operator delete(v12);
}
while ( v3 != v7 );
v4 = *(_QWORD *)(a1 + 8);
}
}
v19 = *(void **)(v4 - 24);
*(_QWORD *)(a1 + 8) = v4 - 56;
if ( v19 )
operator delete(v19);
return a2;
}