//
// cocos2d::CCSprite::createWithTexture_1 from 0x1002d3f90 to 0x1002d3ff8 (104 bytes)
//
// 5 xrefs:
// > sub_10002F8E8 @ 0x10002f9cc
// > sub_100030518 @ 0x1000305ec
// > GJRobotSprite::init @ 0x1002dc79c
// > GhostTrailEffect::trailSnapshot @ 0x100391a70
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x1004672d8
//
// 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 11:02:40 +0000
//
void *__fastcall cocos2d::CCSprite::createWithTexture_1(__int64 a1)
{
void *v2; // x19
v2 = operator new(0x258u);
cocos2d::CCSprite::CCSprite(v2);
if ( (*(unsigned int (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 1008LL))(v2, a1) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}