//
// CCSpriteWithHue::createWithSpriteFrameName from 0x1005eff20 to 0x1005eff55 (53 bytes)
//
// 4 xrefs:
// > RewardUnlockLayer::init @ 0x10021c372
// > GJShopLayer::init @ 0x10032354c
// > GJShopLayer::init @ 0x1003237f6
// > SecretLayer5::init @ 0x10047a7ae
//
// 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 CCSpriteWithHue::createWithSpriteFrameName(__int64 a1)
{
cocos2d::CCSpriteFrameCache *v1; // rax
const char *v2; // rbx
cocos2d::CCSpriteFrame *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 CCSpriteWithHue::createWithSpriteFrame(v3);
}