//
// CCSpriteWithHue::initWithSpriteFrame from 0x5bc12c to 0x5bc190 (100 bytes)
//
// 5 xrefs:
// > CCSpriteWithHue::createWithSpriteFrame @ 0x5bc640
// > CCSpriteGrayscale::createWithSpriteFrame @ 0x5bd438
// > ??> @ 0x45840
// > ??> @ 0x1144de8
// > ??> @ 0x1145388
//
// 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
//
bool CCSpriteWithHue::initWithSpriteFrame(CCSpriteWithHue *a1, cocos2d::CCSpriteFrame *a2)
{
bool (__fastcall *initWithTexture_0)(CCSpriteWithHue *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21
cocos2d::CCTexture2D *Texture; // x0
initWithTexture_0 = a1->initWithTexture_0;
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
LOBYTE(initWithTexture_0) = initWithTexture_0(a1, Texture, &a2->m_obRect);
a1->setDisplayFrame(a1, a2);
return (char)initWithTexture_0;
}