//
// CCSpritePlus::createWithSpriteFrame from 0x100476390 to 0x10047641a (138 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:35 +0000
//
char *__fastcall CCSpritePlus::createWithSpriteFrame(__int64 a1)
{
char *v1; // rbx
__int64 (__fastcall **v2)(); // rax
v1 = (char *)operator new(0x270u);
cocos2d::CCSprite::CCSprite((__int64)v1);
v2 = off_100B467E0;
*(_QWORD *)v1 = off_100B467E0;
*((_QWORD *)v1 + 40) = off_100B46CD8;
*((_QWORD *)v1 + 43) = off_100B46D58;
*(_OWORD *)(v1 + 600) = 0;
*(_DWORD *)(v1 + 615) = 0;
if ( !a1 )
goto LABEL_5;
if ( !(unsigned __int8)cocos2d::CCSprite::initWithSpriteFrame((__int64)v1, a1) )
{
v2 = *(__int64 (__fastcall ***)())v1;
LABEL_5:
((void (__fastcall *)(char *))v2[2])(v1);
return nullptr;
}
cocos2d::CCObject::autorelease(v1);
return v1;
}