//
// std::vector>::_M_check_len from 0x49d3f4 to 0x49d428 (52 bytes)
//
// 2 xrefs:
// > GJEffectManager::spawnGroup @ 0x49f68c
// > GJEffectManager::spawnObject @ 0x49fc48
//
// 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
//
unsigned int __fastcall std::vector::_M_check_len(_DWORD *a1, unsigned int a2, int a3)
{
unsigned int v3; // r3
unsigned int result; // r0
v3 = -1227133513 * ((a1[1] - *a1) >> 3);
if ( 76695844 - v3 < a2 )
sub_7731C4(a3, a2, a3);
if ( v3 < a2 )
result = v3 + a2;
else
result = 1840700270 * ((a1[1] - *a1) >> 3);
if ( result < v3 )
return 76695844;
if ( result >= 0x4924924 )
return 76695844;
return result;
}