//
// cocos2d::CCSprite::createWithTexture_1 from 0x100273610 to 0x1002736d1 (193 bytes)
//
// 7 xrefs:
// > PlatformToolbox::spriteFromSavedFile @ 0x1004bd78f
// > GJRobotSprite::init @ 0x1006adb4f
// > GJGroundLayer::loadGroundSprites @ 0x1006be27f
// > GJGroundLayer::loadGroundSprites @ 0x1006be38f
// > GJMGLayer::loadGroundSprites @ 0x1006bf32f
// > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x1006c8407
// > GhostTrailEffect::trailSnapshot @ 0x1006d0aa5
//
// This function is hookable on this platform (idp: pc, 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 12:27:38 +0000
//
char *__fastcall cocos2d::CCSprite::createWithTexture_1(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x258u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v1);
*(_QWORD *)v1 = off_100AF9ED0;
*((_QWORD *)v1 + 40) = off_100AFA3B8;
*((_QWORD *)v1 + 43) = off_100AFA438;
v1[379] = 0;
*((_QWORD *)v1 + 52) = 0;
sub_1002787A0(v1 + 424);
sub_1002782A0(v1 + 444);
sub_1002782A0(v1 + 452);
*(_WORD *)(v1 + 559) = 0;
*(_OWORD *)(v1 + 564) = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *, __int64))(*(_QWORD *)v1 + 1008LL))(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}