//
// SpriteDescription::createDescription from 0x5732b8 to 0x573388 (208 bytes)
//
// 2 xrefs:
// > CCAnimateFrameCache::addDict @ 0x573518
// > ??> @ 0x74a30
//
// 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
//
SpriteDescription *SpriteDescription::createDescription(DS_Dictionary *a1)
{
__int64 v2; // x19
v2 = operator new(0x68u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v2);
*(_QWORD *)v2 = &off_1136AD0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 56));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 64));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 72));
*(_DWORD *)(v2 + 84) = 0;
*(_DWORD *)(v2 + 88) = 0;
*(_BYTE *)(v2 + 92) = 0;
*(_QWORD *)(v2 + 96) = 0;
*(_DWORD *)(v2 + 80) = 0;
if ( SpriteDescription::initDescription((SpriteDescription *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (SpriteDescription *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}