//
// cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets from 0x1003f5b10 to 0x1003f5ba8 (152 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::resizableSpriteWithCapInsets(
cocos2d::extension::CCScale9Sprite *a1,
cocos2d::CCRect a2)
{
unsigned __int64 *v2; // rsi
cocos2d::extension::CCScale9Sprite *v3; // rbx
cocos2d::CCSpriteBatchNode *scale9Image; // r12
double v5; // xmm0_8
__m128 v7; // [rsp+8h] [rbp-48h] BYREF
__m128 v8[3]; // [rsp+18h] [rbp-38h] BYREF
v3 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite((__int64)v3);
scale9Image = a1->_scale9Image;
sub_10028D180(&v7, (unsigned __int64 *)&a1->m_spriteRect);
v5 = sub_10028D180(v8, v2);
if ( ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, __m128 *, __m128 *, double, double))v3->initWithBatchNode_0)(
v3,
scale9Image,
&v7,
v8,
v5,
*(double *)&a2.size) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v3->~CCScale9Sprite_0)(v3);
return nullptr;
}
return v3;
}