//
// cocos2d::CCSprite::createWithTexture from 0x7f14c4 to 0x7f14fc (56 bytes)
//
// 5 xrefs:
// > GhostTrailEffect::trailSnapshot @ 0x3e4c54
// > GJGroundLayer::loadGroundSprites @ 0x545bd8
// > GJMGLayer::loadGroundSprites @ 0x5467a2
// > GJRobotSprite::init @ 0x5e6dd8
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x7e07bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:04 +0000
//
cocos2d::CCSprite *__fastcall cocos2d::CCSprite::createWithTexture(cocos2d::CCSprite *this, cocos2d::CCTexture2D *a2)
{
cocos2d::CCSprite *v3; // r4
v3 = (cocos2d::CCSprite *)operator new(0x1FCu);
cocos2d::CCSprite::CCSprite(v3);
if ( (*(int (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSprite *))(*(_DWORD *)v3 + 504))(v3, this) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v3 + 8))(v3);
return nullptr;
}
}