//
// cocos2d::CCSprite::createWithTexture from 0x100237600 to 0x100237678 (120 bytes)
//
// 9 xrefs:
// > GJGroundLayer::init @ 0x10002bcdc
// > GJGroundLayer::init @ 0x10002bdc8
// > GJMGLayer::init @ 0x10002c9e8
// > GJMGLayer::init @ 0x10002cb1c
// > GJRobotSprite::init @ 0x10023f634
// > GJRobotSprite::init @ 0x10023f6b8
// > CCAnimatedSprite::loadType @ 0x1002fd64c
// > EditorUI::setupCreateMenu @ 0x1003e3d4c
// > EditorUI::setupCreateMenu @ 0x1003e3d68
//
// 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::createWithTexture(cocos2d::CCTexture2D *a1, const cocos2d::CCRect *a2)
{
cocos2d::CCSprite *v4; // x19
v4 = (cocos2d::CCSprite *)operator new(0x258u);
cocos2d::CCSprite::CCSprite(v4);
if ( ((unsigned int (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCTexture2D *, const cocos2d::CCRect *))v4->initWithTexture_0)(
v4,
a1,
a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(cocos2d::CCSprite *))v4->~CCSprite_0)(v4);
return nullptr;
}
return v4;
}