//
// std::vector>::_M_erase from 0x8a9418 to 0x8a950c (244 bytes)
//
// 4 xrefs:
// > GJEffectManager::controlActionsForControlID @ 0x8b435c
// > GJEffectManager::updateCountForItem @ 0x8bd094
// > GJEffectManager::controlActionsForTrigger @ 0x8c01b4
// > ??> @ 0xb4888
//
// 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
void *v8; // x1
__int64 v9; // x4
__int64 v10; // x3
__int64 v11; // x2
int v12; // w12
int v13; // w11
int v14; // w10
char v15; // w9
int v16; // w8
int v17; // w7
int v18; // w6
char v19; // w5
void *v20; // x0
v3 = a2 + 64;
v4 = *(_QWORD *)(a1 + 8);
if ( v4 != v3 )
{
v6 = (v4 - v3) >> 6;
if ( v6 > 0 )
{
v7 = a2 + ((v6 + 1) << 6);
do
{
v8 = *(void **)(v3 - 24);
v3 += 64;
v9 = *(_QWORD *)(v3 - 24);
v10 = *(_QWORD *)(v3 - 16);
v11 = *(_QWORD *)(v3 - 8);
v12 = *(_DWORD *)(v3 - 60);
v13 = *(_DWORD *)(v3 - 56);
v14 = *(_DWORD *)(v3 - 52);
v15 = *(_BYTE *)(v3 - 48);
v16 = *(_DWORD *)(v3 - 44);
v17 = *(_DWORD *)(v3 - 40);
v18 = *(_DWORD *)(v3 - 36);
v19 = *(_BYTE *)(v3 - 32);
*(_BYTE *)(v3 - 128) = *(_BYTE *)(v3 - 64);
*(_DWORD *)(v3 - 124) = v12;
*(_DWORD *)(v3 - 120) = v13;
*(_DWORD *)(v3 - 116) = v14;
*(_BYTE *)(v3 - 112) = v15;
*(_DWORD *)(v3 - 108) = v16;
*(_DWORD *)(v3 - 104) = v17;
*(_DWORD *)(v3 - 100) = v18;
*(_BYTE *)(v3 - 96) = v19;
*(_QWORD *)(v3 - 88) = v9;
*(_QWORD *)(v3 - 24) = 0;
*(_QWORD *)(v3 - 80) = v10;
*(_QWORD *)(v3 - 16) = 0;
*(_QWORD *)(v3 - 72) = v11;
*(_QWORD *)(v3 - 8) = 0;
if ( v8 )
operator delete(v8);
}
while ( v3 != v7 );
v4 = *(_QWORD *)(a1 + 8);
}
}
v20 = *(void **)(v4 - 24);
*(_QWORD *)(a1 + 8) = v4 - 64;
if ( v20 )
operator delete(v20);
return a2;
}