//
// cocos2d::CCSprite::createWithSpriteFrame from 0x7f15ac to 0x7f15e4 (56 bytes)
//
// 6 xrefs:
// > GJRobotSprite::updateFrame @ 0x5e69ae
// > FontPreviewCell::loadFromIndex @ 0x7a1894
// > cocos2d::CCMenuItemImage::setNormalSpriteFrame @ 0x7dde2c
// > cocos2d::CCMenuItemImage::setSelectedSpriteFrame @ 0x7dde48
// > cocos2d::CCMenuItemImage::setDisabledSpriteFrame @ 0x7dde64
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0x7f15f6
//
// 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 12:01:04 +0000
//
cocos2d::CCSprite *__fastcall cocos2d::CCSprite::createWithSpriteFrame(
cocos2d::CCSprite *this,
cocos2d::CCSpriteFrame *a2)
{
cocos2d::CCSprite *v3; // r4
v3 = (cocos2d::CCSprite *)operator new(0x1FCu);
cocos2d::CCSprite::CCSprite(v3);
if ( this && (*(int (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSprite *))(*(_DWORD *)v3 + 516))(v3, this) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v3 + 8))(v3);
return nullptr;
}
}