//
// cocos2d::CCSprite::createWithSpriteFrame from 0x18008b640 to 0x18008b6be (126 bytes)
//
// 6 xrefs:
// > cocos2d::CCMenuItemImage::setDisabledSpriteFrame @ 0x18005b6d3
// > cocos2d::CCMenuItemImage::setNormalSpriteFrame @ 0x18005bac3
// > cocos2d::CCMenuItemImage::setSelectedSpriteFrame @ 0x18005bca3
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0x18008b6e1
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5b38
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCSprite *__fastcall cocos2d::CCSprite::createWithSpriteFrame(struct cocos2d::CCSpriteFrame *a1)
{
cocos2d::CCSprite *v2; // rax
cocos2d::CCSprite *v3; // rbx
v2 = (cocos2d::CCSprite *)operator new(0x258u);
if ( v2 )
v3 = cocos2d::CCSprite::CCSprite(v2);
else
v3 = nullptr;
if ( v3 )
{
if ( a1
&& ((unsigned __int8 (__fastcall *)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))v3->initWithSpriteFrame)(
v3,
a1) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v3->~CCSprite)(v3, 1);
}
return nullptr;
}