//
// CCSpriteCOpacity::createWithSpriteFrame from 0x6c8a5c to 0x6c8b04 (168 bytes)
//
// 2 xrefs:
// > CCSpriteCOpacity::createWithSpriteFrameName @ 0x6c8b20
// > ??> @ 0xdf8b8
//
// This function is hookable on this platform (idp: arm, 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:51:22 +0000
//
cocos2d::CCSprite *__fastcall CCSpriteCOpacity::createWithSpriteFrame(
CCSpriteCOpacity *this,
cocos2d::CCSpriteFrame *a2)
{
cocos2d::CCSprite *v3; // x19
__int64 (__fastcall **v4)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *); // x0
v3 = (cocos2d::CCSprite *)operator new(0x258u);
cocos2d::CCSprite::CCSprite(v3);
v4 = &off_1421D10;
*(_QWORD *)v3 = &off_1421D10;
*((_QWORD *)v3 + 40) = &off_14221F8;
*((_QWORD *)v3 + 43) = &off_1422278;
if ( !this )
goto LABEL_2;
if ( !(unsigned __int8)cocos2d::CCSprite::initWithSpriteFrame(v3, this) )
{
v4 = *(__int64 (__fastcall ***)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *))v3;
LABEL_2:
((void (__fastcall *)(cocos2d::CCSprite *))v4[2])(v3);
return nullptr;
}
cocos2d::CCObject::autorelease(v3);
return v3;
}