//
// cocos2d::extension::CCScale9Sprite::create from 0xd14548 to 0xd14644 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x843a0
//
// 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(
__int64 a1,
const cocos2d::CCRect *a2,
const cocos2d::CCRect *a3)
{
cocos2d::extension::CCScale9Sprite *v6; // x19
unsigned __int8 (__fastcall *v7)(cocos2d::extension::CCScale9Sprite *, __int64, _BYTE *, _BYTE *); // x25
_BYTE v9[16]; // [xsp+58h] [xbp+58h] BYREF
_BYTE v10[16]; // [xsp+68h] [xbp+68h] BYREF
v6 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v6);
v7 = *(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64, _BYTE *, _BYTE *))(*(_QWORD *)v6 + 1120LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, a2);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, a3);
if ( v7(v6, a1, v9, v10) )
{
cocos2d::CCObject::autorelease(v6);
return v6;
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
}