//
// CCSpritePlus::createWithSpriteFrame from 0x100481a30 to 0x100481aba (138 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
//
CCSpritePlus *__fastcall CCSpritePlus::createWithSpriteFrame(cocos2d::CCSpriteFrame *a1)
{
__int64 v1; // rsi
char *v2; // rbx
__int64 (__fastcall **v3)(); // rax
v2 = (char *)operator new(0x270u);
cocos2d::CCSprite::CCSprite((__int64)v2, v1);
v3 = off_10093C5C8;
*(_QWORD *)v2 = off_10093C5C8;
*((_QWORD *)v2 + 40) = off_10093CAB0;
*((_QWORD *)v2 + 43) = off_10093CB30;
*(_OWORD *)(v2 + 600) = 0;
*(_DWORD *)(v2 + 615) = 0;
if ( !a1 )
goto LABEL_5;
if ( !cocos2d::CCSprite::initWithSpriteFrame((cocos2d::CCSprite *)v2, a1) )
{
v3 = *(__int64 (__fastcall ***)())v2;
LABEL_5:
((void (__fastcall *)(char *))v3[2])(v2);
return nullptr;
}
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (CCSpritePlus *)v2;
}