//
// cocos2d::extension::CCScale9Sprite::create from 0x18000f760 to 0x18000f7ba (90 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004be94
//
// This function is hookable on this platform (idp: pc, 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 12:15:39 +0000
//
// 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 *)sub_18001F040(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;
}