//
// cocos2d::CCSprite::createWithSpriteFrame from 0xb15d74 to 0xb15dec (120 bytes)
//
// 6 xrefs:
// > GJRobotSprite::updateFrame @ 0x8e34f4
// > cocos2d::CCMenuItemImage::setNormalSpriteFrame @ 0xaf6404
// > cocos2d::CCMenuItemImage::setSelectedSpriteFrame @ 0xaf643c
// > cocos2d::CCMenuItemImage::setDisabledSpriteFrame @ 0xaf6474
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0xb15e08
// > ??> @ 0x6dd10
//
// 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
//
cocos2d::CCSprite *cocos2d::CCSprite::createWithSpriteFrame(cocos2d::CCSpriteFrame *a1)
{
cocos2d::CCSprite *v2; // x19
long double v3; // q0
v2 = (cocos2d::CCSprite *)operator new(0x258u);
*(float *)&v3 = cocos2d::CCSprite::CCSprite(v2);
if ( a1
&& ((unsigned __int8 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *, float))v2->initWithSpriteFrame)(
v2,
a1,
*(float *)&v3) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
((void (__fastcall *)(cocos2d::CCSprite *, long double))v2->~CCSprite_0)(v2, v3);
return nullptr;
}
}