//
// cocos2d::CCSprite::createWithSpriteFrame from 0x1002d4118 to 0x1002d4184 (108 bytes)
//
// 3 xrefs:
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0x1002d41bc
// > GJRobotSprite::updateFrame @ 0x1002dcbfc
// > FontPreviewCell::loadFromIndex @ 0x100315a84
//
// 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 11:02:40 +0000
//
void *__fastcall cocos2d::CCSprite::createWithSpriteFrame(__int64 a1)
{
void *v2; // x19
v2 = operator new(0x258u);
cocos2d::CCSprite::CCSprite(v2);
if ( a1 && (*(unsigned int (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 1032LL))(v2, a1) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}