//
// cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets from 0xd14b20 to 0xd14c1c (252 bytes)
//
// 1 xrefs:
// > ??> @ 0xa34f8
//
// This function is hookable on this platform (idp: arm, 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 13:07:05 +0000
//
cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets(
__int64 a1,
const cocos2d::CCRect *a2)
{
cocos2d::extension::CCScale9Sprite *v4; // x19
__int64 v5; // x25
unsigned __int8 (__fastcall *v6)(cocos2d::extension::CCScale9Sprite *, __int64, _BYTE *, _BYTE *); // x24
_BYTE v8[16]; // [xsp+58h] [xbp+58h] BYREF
_BYTE v9[16]; // [xsp+68h] [xbp+68h] BYREF
v4 = (cocos2d::extension::CCScale9Sprite *)operator new(0x208u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v4);
v5 = *(_QWORD *)(a1 + 432);
v6 = *(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64, _BYTE *, _BYTE *))(*(_QWORD *)v4 + 1112LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, (const cocos2d::CCRect *)(a1 + 392));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, a2);
if ( v6(v4, v5, v8, v9) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}