//
// CCSpriteWithHue::createWithTexture from 0x1005efd70 to 0x1005efe25 (181 bytes)
//
// 0 xrefs:
//
// 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
//
CCSpriteWithHue *__fastcall CCSpriteWithHue::createWithTexture(
cocos2d::CCTexture2D *a1,
const cocos2d::CCRect *a2,
bool a3)
{
_QWORD *v4; // rax
_QWORD *v5; // rbx
v4 = operator new(0x298u, &std::nothrow);
if ( !v4 )
return nullptr;
v5 = v4;
__bzero(v4, 664);
cocos2d::CCSprite::CCSprite((__int64)v5, 664);
*v5 = off_10097A1A8;
v5[40] = off_10097A698;
v5[43] = off_10097A718;
if ( !cocos2d::CCSprite::initWithTexture((cocos2d::CCSprite *)v5, a1, a2, a3) )
{
(*(void (__fastcall **)(_QWORD *))(*v5 + 16LL))(v5);
return nullptr;
}
*(_OWORD *)((char *)v5 + 596) = xmmword_100821A30;
CCSpriteWithHue::initShader((CCSpriteWithHue *)v5);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return (CCSpriteWithHue *)v5;
}