//
// cocos2d::CCSprite::createWithTexture from 0xd87070 to 0xd870e4 (116 bytes)
//
// 6 xrefs:
// > GhostTrailEffect::trailSnapshot @ 0x6c6028
// > GJGroundLayer::loadGroundSprites @ 0x916708
// > GJMGLayer::loadGroundSprites @ 0x917940
// > GJRobotSprite::init @ 0xa3d374
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0xd6aa04
// > ??> @ 0xb9f38
//
// This function is hookable on this platform (idp: arm, 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 13:08:13 +0000
//
cocos2d::CCSprite *__fastcall cocos2d::CCSprite::createWithTexture(cocos2d::CCSprite *this, cocos2d::CCTexture2D *a2)
{
cocos2d::CCSprite *v2; // x19
float v3; // s0
v2 = (cocos2d::CCSprite *)operator new(0x258u);
v3 = cocos2d::CCSprite::CCSprite(v2);
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSprite *, float))(*(_QWORD *)v2 + 1008LL))(
v2,
this,
v3) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}