//
// CCSpritePart::create from 0x1003745c0 to 0x10037465a (154 bytes)
//
// 0 xrefs:
//
// 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)
{
__int64 v1; // rsi
char *v2; // rbx
v2 = (char *)operator new(0x290u);
cocos2d::CCSprite::CCSprite((__int64)v2, v1);
*(_OWORD *)(v2 + 600) = 0;
*(_DWORD *)(v2 + 615) = 0;
*(_QWORD *)v2 = off_10091DCA0;
*((_QWORD *)v2 + 40) = off_10091E188;
*((_QWORD *)v2 + 43) = off_10091E208;
v2[619] = 0;
*((_OWORD *)v2 + 39) = 0;
*((_OWORD *)v2 + 40) = 0;
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;
}