//
// cocos2d::CCSprite::create_2 from 0x100288660 to 0x100288718 (184 bytes)
//
// 14 xrefs:
// > EditorUI::setupDeleteMenu @ 0x10000cbee
// > EditorUI::setupDeleteMenu @ 0x10000cd79
// > EditorUI::setupDeleteMenu @ 0x10000cdc1
// > EditorUI::setupDeleteMenu @ 0x10000d293
// > EditorUI::spriteFromObjectString @ 0x100033f61
// > AnimatedGameObject::setupChildSprites @ 0x1001b67f6
// > AnimatedGameObject::setupChildSprites @ 0x1001b6953
// > AnimatedGameObject::setupChildSprites @ 0x1001b69b6
// > AnimatedGameObject::setupChildSprites @ 0x1001b6b02
// > AnimatedGameObject::setupChildSprites @ 0x1001b6e2d
// > ShaderLayer::setupShader @ 0x1003ca9fd
// > PlayerObject::init @ 0x1003fb8e4
// > LevelPage::init @ 0x100435507
// > GJRobotSprite::init @ 0x1005dbf40
//
// 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_2()
{
__int64 v0; // rsi
char *v1; // rbx
v1 = (char *)operator new(0x258u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v1);
*(_QWORD *)v1 = off_1008F36A8;
*((_QWORD *)v1 + 40) = off_1008F3B80;
*((_QWORD *)v1 + 43) = off_1008F3C00;
v1[379] = 0;
*((_QWORD *)v1 + 52) = 0;
sub_10028D130(v1 + 424, v0);
sub_10028CC30(v1 + 444);
sub_10028CC30(v1 + 452);
*(_WORD *)(v1 + 559) = 0;
*(_OWORD *)(v1 + 564) = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v1 + 80LL))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (cocos2d::CCSprite *)v1;
}