//
// cocos2d::CCSprite::createWithTexture from 0x1002d4010 to 0x1002d4088 (120 bytes)
//
// 9 xrefs:
// > GJGroundLayer::init @ 0x10002f5bc
// > GJGroundLayer::init @ 0x10002f6a8
// > sub_1000301B0 @ 0x1000302c8
// > sub_1000301B0 @ 0x1000303fc
// > EditorUI::setupCreateMenu @ 0x10018401c
// > EditorUI::setupCreateMenu @ 0x100184038
// > GJRobotSprite::init @ 0x1002dc6a8
// > GJRobotSprite::init @ 0x1002dc72c
// > sub_100399DFC @ 0x10039a004
//
// 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(__int64 a1, __int64 a2)
{
void *v4; // x19
v4 = operator new(0x258u);
cocos2d::CCSprite::CCSprite(v4);
if ( (*(unsigned int (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v4 + 1016LL))(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}