//
// CCSpritePart::create from 0x10007ebc0 to 0x10007ec54 (148 bytes)
//
// 1 xrefs:
// > CCPartAnimSprite::initWithAnimDesc @ 0x10007e834
//
// 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
//
CCSpritePart *__fastcall CCSpritePart::create(cocos2d::CCTexture2D *a1)
{
char *v2; // x19
v2 = (char *)operator new(0x290u);
cocos2d::CCSprite::CCSprite();
*(_DWORD *)(v2 + 615) = 0;
*(_OWORD *)(v2 + 600) = 0u;
*(_QWORD *)v2 = off_10077B780;
*((_QWORD *)v2 + 40) = off_10077BC68;
*((_QWORD *)v2 + 43) = off_10077BCE8;
v2[619] = 0;
*((_OWORD *)v2 + 39) = 0u;
*((_OWORD *)v2 + 40) = 0u;
if ( CCSpritePlus::initWithTexture((CCSpritePlus *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (CCSpritePart *)v2;
}