//
// cocos2d::CCSprite::create from 0x100288430 to 0x100288500 (208 bytes)
//
// 1 xrefs:
// > GJBigSprite::updateSpriteVisibility @ 0x100268b43
//
// 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
//
cocos2d::CCSprite *__fastcall cocos2d::CCSprite::create(const char *a1, const cocos2d::CCRect *a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x258u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v2);
*(_QWORD *)v2 = off_1008F36A8;
*((_QWORD *)v2 + 40) = off_1008F3B80;
*((_QWORD *)v2 + 43) = off_1008F3C00;
v2[379] = 0;
*((_QWORD *)v2 + 52) = 0;
sub_10028D130(v2 + 424, a2);
sub_10028CC30(v2 + 444);
sub_10028CC30(v2 + 452);
*(_WORD *)(v2 + 559) = 0;
*(_OWORD *)(v2 + 564) = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *, const char *, const cocos2d::CCRect *))(*(_QWORD *)v2 + 1040LL))(
v2,
a1,
a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (cocos2d::CCSprite *)v2;
}