//
// CCSpritePlus::createWithSpriteFrame from 0x3e6828 to 0x3e6898 (112 bytes)
//
// 1 xrefs:
// > CCSpritePlus::createWithSpriteFrameName @ 0x3e68ae
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:05 +0000
//
int __fastcall CCSpritePlus::createWithSpriteFrame(CCSpritePlus *this, cocos2d::CCSpriteFrame *a2)
{
int v3; // r4
v3 = operator new(0x208u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v3);
*(_DWORD *)v3 = &off_C8A600;
*(_DWORD *)(v3 + 264) = &off_C8A87C;
*(_DWORD *)(v3 + 280) = &off_C8A8BC;
*(_DWORD *)(v3 + 508) = 0;
*(_DWORD *)(v3 + 512) = 0;
*(_BYTE *)(v3 + 516) = 0;
*(_BYTE *)(v3 + 517) = 0;
*(_BYTE *)(v3 + 518) = 0;
if ( this && cocos2d::CCSprite::initWithSpriteFrame((cocos2d::CCSprite *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(int))(*(_DWORD *)v3 + 8))(v3);
return 0;
}
}