//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0xd14870 to 0xd14940 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x7ec10
//
// 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(
__int64 a1,
const cocos2d::CCRect *a2)
{
cocos2d::extension::CCScale9Sprite *v4; // x19
const cocos2d::CCRect *v5; // x1
unsigned __int8 (__fastcall *v6)(cocos2d::extension::CCScale9Sprite *, __int64, _BYTE *); // x22
_BYTE v8[16]; // [xsp+48h] [xbp+48h] BYREF
v4 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v4);
v5 = a2;
v6 = *(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64, _BYTE *))(*(_QWORD *)v4 + 1152LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, v5);
if ( v6(v4, a1, v8) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}