//
// CCSpriteCOpacity::createWithSpriteFrameName from 0x100476c30 to 0x100476cb9 (137 bytes)
//
// 0 xrefs:
//
// 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:30:35 +0000
//
__int64 (__fastcall ***__fastcall CCSpriteCOpacity::createWithSpriteFrameName(const char *a1))()
{
__int64 v1; // rax
__int64 v2; // r14
__int64 (__fastcall ***v3)(); // rbx
__int64 (__fastcall **v4)(); // rax
v1 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v2 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v1, a1);
v3 = (__int64 (__fastcall ***)())operator new(0x258u);
cocos2d::CCSprite::CCSprite((__int64)v3);
v4 = off_100B46DA0;
*v3 = off_100B46DA0;
v3[40] = off_100B47288;
v3[43] = off_100B47308;
if ( !v2 )
goto LABEL_5;
if ( !(unsigned __int8)cocos2d::CCSprite::initWithSpriteFrame((__int64)v3, v2) )
{
v4 = *v3;
LABEL_5:
((void (__fastcall *)(__int64 (__fastcall ***)()))v4[2])(v3);
return nullptr;
}
cocos2d::CCObject::autorelease(v3);
return v3;
}