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