//
// AnimatedGameObject::create from 0x3e82fc to 0x3e8390 (148 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x36243e
//
// 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
//
AnimatedGameObject *AnimatedGameObject::create(int a1)
{
AnimatedGameObject *v2; // r4
AnimatedGameObject_vtbl *v3; // r3
AnimatedGameObject *v4; // r0
v2 = (AnimatedGameObject *)operator new(0x510u);
EnhancedGameObject::EnhancedGameObject(v2);
v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AnimatedGameObject_vtbl *)&off_A530F0;
v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A5349C;
v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A534DC;
v2->AnimatedSpriteDelegate::__vftable = (AnimatedSpriteDelegate_vtbl *)&off_A534F4;
v2->SpritePartDelegate::__vftable = (SpritePartDelegate_vtbl *)&off_A53500;
v2->m_animatedSprite = nullptr;
v2->m_childSprite = nullptr;
v2->m_eyeSpritePart = nullptr;
v2->m_finishedAnimating = 0;
v2->m_playingAnimation = 0;
v2->m_currentAnimation.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v2->m_notGrounded = 0;
v2->m_animationID = 0;
if ( AnimatedGameObject::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~AnimatedGameObject_0(v4);
}
return v2;
}