//
// sub_1002CD080 from 0x1002cd080 to 0x1002cd139 (185 bytes)
//
// 1 xrefs:
// > GJEffectManager::createKeyframeCommand @ 0x1002cbb75
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:11 +0000
//
void __fastcall sub_1002CD080(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_1002DBA80();
v6 = a1[1];
v5 = (char *)operator new(448 * a2);
sub_1002DC290(a1, v2, v6, v5);
v4 = *a1;
*a1 = v5;
a1[1] = &v5[v6 - v2];
a1[2] = &v5[448 * a2];
if ( v4 )
operator delete(v4);
}
}