//
// AnimatedGameObject::create from 0x4ec174 to 0x4ec208 (148 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x45bb4c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:08 +0000
//
EnhancedGameObject *__fastcall AnimatedGameObject::create(AnimatedGameObject *this, int a2)
{
EnhancedGameObject *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (EnhancedGameObject *)operator new(0x520u);
EnhancedGameObject::EnhancedGameObject(v3);
*(_DWORD *)v3 = &off_C9C5E0;
*((_DWORD *)v3 + 66) = &off_C9C994;
*((_DWORD *)v3 + 70) = &off_C9C9D4;
*((_DWORD *)v3 + 317) = &off_C9C9EC;
*((_DWORD *)v3 + 318) = &off_C9C9F8;
*((_DWORD *)v3 + 319) = 0;
*((_DWORD *)v3 + 320) = 0;
*((_DWORD *)v3 + 321) = 0;
*((_BYTE *)v3 + 1288) = 0;
*((_BYTE *)v3 + 1289) = 0;
*((_DWORD *)v3 + 323) = 0;
*((_DWORD *)v3 + 324) = 0;
*((_DWORD *)v3 + 325) = 0;
*((_BYTE *)v3 + 1304) = 0;
*((_DWORD *)v3 + 327) = 0;
if ( AnimatedGameObject::init(v3, (int)this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}