//
// CCSpriteWithHue::createWithSpriteFrame from 0x5bc5b4 to 0x5bc69c (232 bytes)
//
// 2 xrefs:
// > CCSpriteWithHue::createWithSpriteFrameName @ 0x5bc6c0
// > ??> @ 0x75228
//
// 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 *CCSpriteWithHue::createWithSpriteFrame(cocos2d::CCSpriteFrame *a1)
{
CCSpriteWithHue *v2; // x0
CCSpriteWithHue *v3; // x19
__int64 (__fastcall **v4)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *); // x1
v2 = (CCSpriteWithHue *)operator new(0x298u, (const std::nothrow_t *)&std::nothrow);
v3 = v2;
if ( !v2 )
return nullptr;
memset(v2, 0, sizeof(CCSpriteWithHue));
cocos2d::CCSprite::CCSprite(v3);
v4 = &off_11449F0;
v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCSpriteWithHue_vtbl *)&off_11449F0;
v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_1144EE0;
v3->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_1144F60;
if ( !a1 )
{
LABEL_3:
((void (__fastcall *)(CCSpriteWithHue *))v4[2])(v3);
return nullptr;
}
if ( !CCSpriteWithHue::initWithSpriteFrame(v3, a1) )
{
v4 = (__int64 (__fastcall **)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *))v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
goto LABEL_3;
}
cocos2d::CCObject::autorelease(v3);
return v3;
}