//
// cocos2d::CCSprite::createWithTexture from 0x7f14fc to 0x7f1538 (60 bytes)
//
// 9 xrefs:
// > CCAnimatedSprite::loadType @ 0x3c39c6
// > GJGroundLayer::init @ 0x5460d0
// > GJGroundLayer::init @ 0x546178
// > GJMGLayer::init @ 0x546a26
// > GJMGLayer::init @ 0x546af8
// > GJRobotSprite::init @ 0x5e6d1a
// > GJRobotSprite::init @ 0x5e6d84
// > EditorUI::setupCreateMenu @ 0x70c026
// > EditorUI::setupCreateMenu @ 0x70c03a
//
// 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,
const cocos2d::CCRect *a3)
{
cocos2d::CCSprite *v5; // r4
v5 = (cocos2d::CCSprite *)operator new(0x1FCu);
cocos2d::CCSprite::CCSprite(v5);
if ( (*(int (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSprite *, cocos2d::CCTexture2D *))(*(_DWORD *)v5 + 508))(
v5,
this,
a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v5 + 8))(v5);
return nullptr;
}
}