//
// cocos2d::CCSprite::createWithSpriteFrame from 0xd87250 to 0xd872c8 (120 bytes)
//
// 7 xrefs:
// > GJRobotSprite::updateFrame @ 0xa3cdec
// > FontPreviewCell::loadFromIndex @ 0xd02c74
// > cocos2d::CCMenuItemImage::setNormalSpriteFrame @ 0xd670d0
// > cocos2d::CCMenuItemImage::setSelectedSpriteFrame @ 0xd67108
// > cocos2d::CCMenuItemImage::setDisabledSpriteFrame @ 0xd67140
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0xd872e4
// > ??> @ 0x943a8
//
// 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 13:08:13 +0000
//
cocos2d::CCSprite *__fastcall cocos2d::CCSprite::createWithSpriteFrame(
cocos2d::CCSprite *this,
cocos2d::CCSpriteFrame *a2)
{
cocos2d::CCSprite *v3; // x19
long double v4; // q0
v3 = (cocos2d::CCSprite *)operator new(0x258u);
*(float *)&v4 = cocos2d::CCSprite::CCSprite(v3);
if ( this
&& (*(unsigned __int8 (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSprite *, float))(*(_QWORD *)v3 + 1032LL))(
v3,
this,
*(float *)&v4) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *, long double))(*(_QWORD *)v3 + 16LL))(v3, v4);
return nullptr;
}
}