//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0xd14940 to 0xd149c8 (136 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0xd0cd34
// > ??> @ 0x840d0
//
// 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:07:05 +0000
//
cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(
cocos2d::extension::CCScale9Sprite *this,
cocos2d::CCSpriteFrame *a2)
{
cocos2d::extension::CCScale9Sprite *v3; // x19
v3 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v3);
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *, cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)v3 + 1160LL))(
v3,
this) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)v3 + 16LL))(v3);
return nullptr;
}
}