//
// CCAnimatedSprite::createWithType from 0x2e4168 to 0x2e41f8 (144 bytes)
//
// 1 xrefs:
// > AnimatedGameObject::init @ 0x3e8230
//
// 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
//
CCAnimatedSprite *CCAnimatedSprite::createWithType(const char *a1, cocos2d::CCTexture2D *a2, bool a3)
{
int v6; // r4
v6 = operator new(0x220u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v6);
*(_DWORD *)v6 = &off_A3C3B0;
*(_DWORD *)(v6 + 280) = &off_A3C664;
*(_DWORD *)(v6 + 264) = &off_A3C624;
*(_DWORD *)(v6 + 516) = 0;
*(_DWORD *)(v6 + 520) = 0;
*(_DWORD *)(v6 + 508) = &unk_ACDDA8;
*(_DWORD *)(v6 + 512) = &unk_ACDDA8;
*(_DWORD *)(v6 + 524) = 0;
*(_DWORD *)(v6 + 528) = 0;
*(_DWORD *)(v6 + 532) = 0;
*(_DWORD *)(v6 + 536) = &unk_ACDDA8;
*(_DWORD *)(v6 + 540) = 0;
if ( CCAnimatedSprite::initWithType((CCAnimatedSprite *)v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return (CCAnimatedSprite *)v6;
}
else
{
(*(void (__fastcall **)(int))(*(_DWORD *)v6 + 8))(v6);
return nullptr;
}
}