//
// CCSpriteCOpacity::createWithSpriteFrame from 0x100476ba0 to 0x100476c16 (118 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::createWithSpriteFrame(__int64 a1))()
{
__int64 (__fastcall ***v1)(); // rbx
__int64 (__fastcall **v2)(); // rax
v1 = (__int64 (__fastcall ***)())operator new(0x258u);
cocos2d::CCSprite::CCSprite((__int64)v1);
v2 = off_100B46DA0;
*v1 = off_100B46DA0;
v1[40] = off_100B47288;
v1[43] = off_100B47308;
if ( !a1 )
goto LABEL_5;
if ( !(unsigned __int8)cocos2d::CCSprite::initWithSpriteFrame((__int64)v1, a1) )
{
v2 = *v1;
LABEL_5:
((void (__fastcall *)(__int64 (__fastcall ***)()))v2[2])(v1);
return nullptr;
}
cocos2d::CCObject::autorelease(v1);
return v1;
}