//
// CCSpriteGrayscale::createWithSpriteFrame from 0x3072a4 to 0x307318 (116 bytes)
//
// 1 xrefs:
// > CCSpriteGrayscale::createWithSpriteFrameName @ 0x307332
//
// 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
//
CCSpriteGrayscale *CCSpriteGrayscale::createWithSpriteFrame(cocos2d::CCSpriteFrame *a1)
{
CCSpriteGrayscale *v2; // r0
CCSpriteGrayscale *v3; // r4
v2 = (CCSpriteGrayscale *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);
v3 = v2;
if ( !v2 )
return v3;
memset(v2, 0, sizeof(CCSpriteGrayscale));
CCSpriteWithHue::CCSpriteWithHue(v3);
v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCSpriteGrayscale_vtbl *)&off_A43940;
v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A43BB8;
v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A43BF8;
if ( a1 && CCSpriteWithHue::initWithSpriteFrame(v3, a1) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
v3->~CCSpriteGrayscale_0(v3);
return nullptr;
}