//
// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x1003e29e0 to 0x1003e2a54 (116 bytes)
//
// 0 xrefs:
//
// 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:29:46 +0000
//
void *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(__int64 a1, unsigned __int64 *a2)
{
void *v2; // rbx
__m128 v4[3]; // [rsp+0h] [rbp-30h] BYREF
v2 = operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite((__int64)v2);
sub_1002787F0(v4, a2);
if ( (*(unsigned __int8 (__fastcall **)(void *, __int64, __m128 *))(*(_QWORD *)v2 + 1152LL))(v2, a1, v4) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}