//
// CCSpritePlus::createWithSpriteFrame from 0x1001b7bc0 to 0x1001b7c50 (144 bytes)
//
// 1 xrefs:
// > CCSpritePlus::createWithSpriteFrameName @ 0x1001b7c88
//
// 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)
{
char *v2; // x19
__int64 (__fastcall **v3)(); // x8
v2 = (char *)operator new(0x270u);
cocos2d::CCSprite::CCSprite(v2);
v3 = &off_1007B2F88;
*(_QWORD *)v2 = &off_1007B2F88;
*((_QWORD *)v2 + 40) = off_1007B3470;
*((_QWORD *)v2 + 43) = off_1007B34F0;
*(_OWORD *)(v2 + 600) = 0u;
*(_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;
}