//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x18000f370 to 0x18000f3fd (141 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004be34
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(
__int64 a1,
const struct cocos2d::CCRect *a2)
{
cocos2d::extension::CCScale9Sprite *v4; // rax
cocos2d::CCObject *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
_BYTE v9[24]; // [rsp+20h] [rbp-18h] BYREF
cocos2d::extension::CCScale9Sprite *v10; // [rsp+50h] [rbp+18h]
v10 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);
v4 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v10);
v5 = v4;
if ( v4 )
{
v6 = *(_QWORD *)v4;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, a2);
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(v6 + 1040))(v5, a1, v7) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
}
return nullptr;
}