//
// cocos2d::extension::CCScale9Sprite::create from 0x18000ef50 to 0x18000eff0 (160 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004bdd4
//
// 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
cocos2d::CCObject *__fastcall cocos2d::extension::CCScale9Sprite::create(
__int64 a1,
const struct cocos2d::CCRect *a2,
const struct cocos2d::CCRect *a3)
{
cocos2d::extension::CCScale9Sprite *v6; // rax
cocos2d::CCObject *v7; // rsi
__int64 v8; // rdi
__int64 v9; // rax
__int64 v10; // rbx
__int64 v11; // rax
_BYTE v13[16]; // [rsp+20h] [rbp-38h] BYREF
_BYTE v14[40]; // [rsp+30h] [rbp-28h] BYREF
cocos2d::extension::CCScale9Sprite *v15; // [rsp+78h] [rbp+20h]
v15 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);
v6 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v15);
v7 = v6;
if ( v6 )
{
v8 = *(_QWORD *)v6;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13, a3);
v10 = v9;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, a2);
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, __int64, __int64, __int64))(v8 + 1024))(
v7,
a1,
v11,
v10) )
{
cocos2d::CCObject::autorelease(v7);
return v7;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);
}
return nullptr;
}