//
// cocos2d::extension::CCScale9Sprite::create from 0x18000fc70 to 0x18000fcc7 (87 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049fb4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
struct cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::create()
{
cocos2d::extension::CCScale9Sprite *v0; // rax
cocos2d::CCObject *v1; // rbx
cocos2d::extension::CCScale9Sprite *v3; // [rsp+30h] [rbp+8h]
v3 = (cocos2d::extension::CCScale9Sprite *)operator new(0x210u);
v0 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v3);
v1 = v0;
if ( v0 )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)v0 + 72LL))(v0) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v1 + 8LL))(v1, 1);
}
return nullptr;
}