//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x7ac700 to 0x7ac742 (66 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x7a74b8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:03 +0000
//
cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(
cocos2d::extension::CCScale9Sprite *this,
cocos2d::CCSpriteFrame *a2)
{
cocos2d::extension::CCScale9Sprite *v3; // r4
v3 = (cocos2d::extension::CCScale9Sprite *)operator new(0x1A4u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v3);
if ( (*(int (__fastcall **)(cocos2d::extension::CCScale9Sprite *, cocos2d::extension::CCScale9Sprite *))(*(_DWORD *)v3 + 580))(
v3,
this) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *))(*(_DWORD *)v3 + 8))(v3);
return nullptr;
}
}