//
// cocos2d::CCSprite::createWithTexture from 0xd870e4 to 0xd87160 (124 bytes)
//
// 10 xrefs:
// > CCAnimatedSprite::loadType @ 0x68ce0c
// > GJGroundLayer::init @ 0x916ed4
// > GJGroundLayer::init @ 0x916fcc
// > GJMGLayer::init @ 0x917cf8
// > GJMGLayer::init @ 0x917e34
// > GJRobotSprite::init @ 0xa3d15c
// > GJRobotSprite::init @ 0xa3d1e8
// > EditorUI::setupCreateMenu @ 0xbfe2ac
// > EditorUI::setupCreateMenu @ 0xbfe2c8
// > ??> @ 0xb8d98
//
// 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,
const cocos2d::CCRect *a3)
{
cocos2d::CCSprite *v4; // x19
float v5; // s0
v4 = (cocos2d::CCSprite *)operator new(0x258u);
v5 = cocos2d::CCSprite::CCSprite(v4);
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSprite *, cocos2d::CCTexture2D *, float))(*(_QWORD *)v4 + 1016LL))(
v4,
this,
a2,
v5) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}