//
// cocos2d::CCSprite::createWithTexture from 0xb15c08 to 0xb15c84 (124 bytes)
//
// 10 xrefs:
// > CCAnimatedSprite::loadType @ 0x570ae8
// > EditorUI::setupCreateMenu @ 0x6b3328
// > EditorUI::setupCreateMenu @ 0x6b3348
// > GJGroundLayer::init @ 0x7ec0bc
// > GJGroundLayer::init @ 0x7ec1b0
// > GJMGLayer::init @ 0x7ece7c
// > GJMGLayer::init @ 0x7ecfb0
// > GJRobotSprite::init @ 0x8e38ac
// > GJRobotSprite::init @ 0x8e3938
// > ??> @ 0x8b7e8
//
// 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 *cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *a1)
{
__int64 v1; // x1
cocos2d::CCSprite *v3; // x19
float v4; // s0
__int64 v6; // [xsp+28h] [xbp+28h]
v6 = v1;
v3 = (cocos2d::CCSprite *)operator new(0x258u);
v4 = cocos2d::CCSprite::CCSprite(v3);
if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCTexture2D *, __int64, float))v3->initWithTexture_0)(
v3,
a1,
v6,
v4) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
v3->~CCSprite_0(v3);
return nullptr;
}
}