//
// CCSpriteGrayscale::createWithSpriteFrameName from 0x1006c4260 to 0x1006c4295 (53 bytes)
//
// 11 xrefs:
// > RewardUnlockLayer::init @ 0x1001ffa02
// > LevelAreaInnerLayer::init @ 0x100266ecc
// > CreatorLayer::init @ 0x10028287a
// > GJPathPage::init @ 0x1002e9f8b
// > GJPathPage::init @ 0x1002ea69c
// > GJPathSprite::changeToLockedArt @ 0x1002ec735
// > LevelListLayer::updateStatsArt @ 0x10034a25d
// > GauntletSprite::addLockedSprite @ 0x10037fe3b
// > SecretLayer5::init @ 0x10046f14b
// > sub_1004E8E80 @ 0x1004e8f2f
// > ProfilePage::loadPageFromUserInfo @ 0x1008a0f8c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:35:33 +0000
//
__int64 (__fastcall ***__fastcall CCSpriteGrayscale::createWithSpriteFrameName(__int64 a1))()
{
__int64 v1; // rax
const char *v2; // rbx
__int64 v3; // rax
v1 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( (*(_BYTE *)a1 & 1) != 0 )
v2 = *(const char **)(a1 + 16);
else
v2 = (const char *)(a1 + 1);
v3 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v1, v2);
return CCSpriteGrayscale::createWithSpriteFrame(v3);
}