//
// CCSpritePart::createWithSpriteFrameName from 0x10007ead4 to 0x10007eb98 (196 bytes)
//
// 1 xrefs:
// > CCPartAnimSprite::initWithAnimDesc @ 0x10007e878
//
// 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::createWithSpriteFrameName(const char *a1)
{
char *v2; // x19
std::string __str; // [xsp+8h] [xbp-28h] BYREF
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::initWithSpriteFrameName((CCSpritePlus *)v2, a1) )
{
sub_100009900(&__str, (char *)a1);
std::string::operator=((std::string *)v2 + 26, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (CCSpritePart *)v2;
}