//
// CCSpriteWithHue::create_1 from 0x1005efae0 to 0x1005efb79 (153 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
//
cocos2d::CCSprite *__fastcall CCSpriteWithHue::create_1(__int64 a1)
{
cocos2d::CCSprite *v1; // rax
cocos2d::CCSprite *v2; // rbx
const char *v3; // r14
v1 = (cocos2d::CCSprite *)operator new(0x298u, &std::nothrow);
if ( !v1 )
return nullptr;
v2 = v1;
__bzero(v1, 664);
cocos2d::CCSprite::CCSprite((__int64)v2, 664);
v2->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCSprite_vtbl *)off_10097A1A8;
v2->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10097A698;
v2->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10097A718;
if ( (*(_BYTE *)a1 & 1) != 0 )
v3 = *(const char **)(a1 + 16);
else
v3 = (const char *)(a1 + 1);
if ( !cocos2d::CCSprite::initWithFile_1(v2, v3) )
{
((void (__fastcall *)(cocos2d::CCSprite *))v2->~CCSprite_0)(v2);
return nullptr;
}
cocos2d::CCObject::autorelease(v2);
return v2;
}