//
// CCAnimatedSprite::createWithType from 0x68d5c8 to 0x68d6c0 (248 bytes)
//
// 2 xrefs:
// > AnimatedGameObject::init @ 0x887d5c
// > ??> @ 0xb8d68
//
// This function is hookable on this platform (idp: arm, 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:50:33 +0000
//
__int64 __fastcall CCAnimatedSprite::createWithType(
CCAnimatedSprite *this,
cocos2d::CCTexture2D *a2,
cocos2d::CCTexture2D *a3)
{
unsigned __int8 v5; // w20
__int64 v6; // x19
v5 = (unsigned __int8)a3;
v6 = operator new(0x2D0u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v6);
*(_QWORD *)(v6 + 600) = 0;
*(_QWORD *)v6 = &off_1413BA0;
*(_QWORD *)(v6 + 320) = &off_1414098;
*(_QWORD *)(v6 + 344) = &off_1414118;
*(_QWORD *)(v6 + 608) = 0;
*(_QWORD *)(v6 + 616) = 0;
*(_QWORD *)(v6 + 624) = 0;
*(_QWORD *)(v6 + 632) = 0;
*(_QWORD *)(v6 + 640) = 0;
*(_QWORD *)(v6 + 648) = 0;
*(_QWORD *)(v6 + 656) = 0;
*(_QWORD *)(v6 + 664) = 0;
*(_QWORD *)(v6 + 672) = 0;
*(_DWORD *)(v6 + 680) = 0;
*(_QWORD *)(v6 + 688) = 0;
*(_QWORD *)(v6 + 696) = 0;
*(_QWORD *)(v6 + 704) = 0;
*(_QWORD *)(v6 + 712) = 0;
if ( (unsigned __int8)CCAnimatedSprite::initWithType((CCAnimatedSprite *)v6, (char *)this, a2, v5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
return 0;
}
}