//
// sub_1002E25E0 from 0x1002e25e0 to 0x1002e2699 (185 bytes)
//
// 1 xrefs:
// > GJEffectManager::createKeyframeCommand @ 0x1002e10d5
//
// 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
//
void __fastcall sub_1002E25E0(void **a1, unsigned __int64 a2)
{
_BYTE *v2; // r14
void *v4; // rdi
char *v5; // [rsp+8h] [rbp-58h]
_BYTE *v6; // [rsp+30h] [rbp-30h]
v2 = *a1;
if ( 0x6DB6DB6DB6DB6DB7LL * (((_BYTE *)a1[2] - (_BYTE *)*a1) >> 6) < a2 )
{
if ( a2 >= 0x92492492492493LL )
sub_1002F0FC0();
v6 = a1[1];
v5 = (char *)operator new(448 * a2);
sub_1002F17D0(a1, v2, v6, v5);
v4 = *a1;
*a1 = v5;
a1[1] = &v5[v6 - v2];
a1[2] = &v5[448 * a2];
if ( v4 )
operator delete(v4);
}
}