//
// cocos2d::extension::CCScale9Sprite::create from 0x1003f5440 to 0x1003f54cd (141 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::create(
const char *a1,
cocos2d::CCRect a2,
cocos2d::CCRect a3)
{
unsigned __int64 *v3; // rdx
unsigned __int64 *v4; // rsi
unsigned __int64 *v5; // r15
cocos2d::extension::CCScale9Sprite *v6; // rbx
double v7; // xmm0_8
__m128 v9; // [rsp+8h] [rbp-48h] BYREF
__m128 v10[3]; // [rsp+18h] [rbp-38h] BYREF
v5 = v3;
v6 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite((__int64)v6);
sub_10028D180(&v9, v4);
v7 = sub_10028D180(v10, v5);
if ( ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCScale9Sprite *, const char *, __m128 *, __m128 *, double, double, double, double))v6->initWithFile)(
v6,
a1,
&v9,
v10,
v7,
*(double *)&a2.size,
*(double *)&a3.origin,
*(double *)&a3.size) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v6->~CCScale9Sprite_0)(v6);
return nullptr;
}
return v6;
}