//
// CCSpriteGrayscale::createWithSpriteFrameName from 0x3f2f20 to 0x3f2f3e (30 bytes)
//
// 11 xrefs:
// > GameToolbox::createOnOffSprite @ 0x3cf164
// > CreatorLayer::init @ 0x49453e
// > ProfilePage::loadPageFromUserInfo @ 0x5f9be4
// > GauntletSprite::addLockedSprite @ 0x60dc9a
// > RewardUnlockLayer::init @ 0x61991a
// > LevelAreaInnerLayer::init @ 0x6a5a42
// > GJPathSprite::changeToLockedArt @ 0x6d2500
// > GJPathPage::init @ 0x6d2fe0
// > GJPathPage::init @ 0x6d3468
// > LevelListLayer::updateStatsArt @ 0x6d67c4
// > SecretLayer5::init @ 0x6e5fc0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:15 +0000
//
CCSpriteWithHue *__fastcall CCSpriteGrayscale::createWithSpriteFrameName(char *a1)
{
cocos2d::CCSpriteFrameCache *v2; // r0
const char *v3; // r1
CCSpriteGrayscale *v4; // r0
cocos2d::CCSpriteFrame *v5; // r1
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)a1);
if ( (*a1 & 1) != 0 )
v3 = *((const char **)a1 + 2);
else
v3 = a1 + 1;
v4 = (CCSpriteGrayscale *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, v3);
return CCSpriteGrayscale::createWithSpriteFrame(v4, v5);
}