//
// AnimatedGameObject::create from 0x100383150 to 0x100383200 (176 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x100254720
//
// 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 *__fastcall AnimatedGameObject::create(int a1)
{
AnimatedGameObject *v2; // x19
v2 = (AnimatedGameObject *)operator new(0x5F8u);
EnhancedGameObject::EnhancedGameObject(v2);
v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AnimatedGameObject_vtbl *)off_1007F50F0;
v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1007F5848;
v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_1007F58C8;
v2->AnimatedSpriteDelegate::__vftable = (AnimatedSpriteDelegate_vtbl *)&off_1007F58F8;
v2->SpritePartDelegate::__vftable = (SpritePartDelegate_vtbl *)&off_1007F5910;
v2->m_animationID = 0;
v2->m_animatedSprite = nullptr;
v2->m_eyeSpritePart = nullptr;
v2->m_childSprite = nullptr;
*(_WORD *)&v2->m_finishedAnimating = 0;
v2->m_currentAnimation.m_data.m_long.capacitym1 = 0;
v2->m_currentAnimation.m_data.m_long.longStorage = nullptr;
v2->m_currentAnimation.m_data.m_long.size = 0;
v2->m_notGrounded = 0;
if ( AnimatedGameObject::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(AnimatedGameObject *))v2->~AnimatedGameObject_0)(v2);
return nullptr;
}
return v2;
}