//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x18000f980 to 0x18000f9ef (111 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x180006d23
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049f6c
//
// 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
//
struct cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(
struct cocos2d::CCSpriteFrame *a1)
{
cocos2d::extension::CCScale9Sprite *v2; // rax
cocos2d::CCObject *v3; // rbx
cocos2d::extension::CCScale9Sprite *v5; // [rsp+38h] [rbp+10h]
v5 = (cocos2d::extension::CCScale9Sprite *)operator new(0x210u);
v2 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v5);
v3 = v2;
if ( v2 )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *, struct cocos2d::CCSpriteFrame *))(*(_QWORD *)v2 + 1016LL))(
v2,
a1) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
}
return nullptr;
}