//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrameName from 0x18000f630 to 0x18000f6a2 (114 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004be7c
//
// 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
//
struct cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrameName(
const char *a1)
{
cocos2d::extension::CCScale9Sprite *v2; // rax
cocos2d::CCObject *v3; // rbx
cocos2d::extension::CCScale9Sprite *v5; // [rsp+38h] [rbp+10h]
v5 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);
v2 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v5);
v3 = v2;
if ( v2 )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *, const char *))(*(_QWORD *)v2 + 1048LL))(
v2,
a1) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
}
return nullptr;
}