//
// CCSpriteGrayscale::create from 0x30711c to 0x307194 (120 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 CCSpriteGrayscale::create(const char **a1)
{
CCSpriteWithHue *v2; // r0
CCSpriteWithHue *v3; // r4
const char *v4; // r1
v2 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);
v3 = v2;
if ( !v2 )
return v3;
memset(v2, 0, sizeof(CCSpriteWithHue));
CCSpriteWithHue::CCSpriteWithHue(v3);
v4 = *a1;
v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCSpriteWithHue_vtbl *)&off_A43940;
v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A43BB8;
v3->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A43BF8;
if ( cocos2d::CCSprite::initWithFile(v3, v4) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
v3->~CCSpriteWithHue_0(v3);
return nullptr;
}