//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame_1 from 0x1003f58e0 to 0x1003f592f (79 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x10035499f
//
// 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::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame_1(
cocos2d::CCSpriteFrame *a1)
{
cocos2d::extension::CCScale9Sprite *v1; // rbx
v1 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite((__int64)v1);
if ( ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteFrame *))v1->initWithSpriteFrame_0)(
v1,
a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v1->~CCScale9Sprite_0)(v1);
return nullptr;
}
return v1;
}