//
// CCSpriteWithHue::createWithTexture from 0x6dd540 to 0x6dd60c (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x9c190
//
// 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 12:51:35 +0000
//
cocos2d::CCSprite *__fastcall CCSpriteWithHue::createWithTexture(CCSpriteWithHue *this, cocos2d::CCTexture2D *a2)
{
cocos2d::CCSprite *v3; // x0
cocos2d::CCSprite *v4; // x19
v3 = (cocos2d::CCSprite *)operator new(0x298u, (const std::nothrow_t *)&std::nothrow);
v4 = v3;
if ( v3 )
{
memset(v3, 0, 0x298u);
cocos2d::CCSprite::CCSprite(v4);
*(_QWORD *)v4 = &off_14236D0;
*((_QWORD *)v4 + 40) = &off_1423BD0;
*((_QWORD *)v4 + 43) = &off_1423C50;
if ( (unsigned __int8)CCSpriteWithHue::initWithTexture(v4, this) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v4 + 16LL))(v4);
}
return nullptr;
}