//
// cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets from 0x7ac7fc to 0x7ac884 (136 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:03 +0000
//
cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets(
int a1,
const cocos2d::CCRect *a2)
{
cocos2d::extension::CCScale9Sprite *v4; // r4
int v5; // r10
int (__fastcall *v6)(cocos2d::extension::CCScale9Sprite *, int, _BYTE *, _BYTE *); // r8
_BYTE v8[16]; // [sp+4h] [bp-24h] BYREF
_BYTE v9[16]; // [sp+14h] [bp-14h] BYREF
v4 = (cocos2d::extension::CCScale9Sprite *)operator new(0x1A4u);
cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v4);
v5 = *(_DWORD *)(a1 + 372);
v6 = *(int (__fastcall **)(cocos2d::extension::CCScale9Sprite *, int, _BYTE *, _BYTE *))(*(_DWORD *)v4 + 556);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, (const cocos2d::CCRect *)(a1 + 332));
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 *))(*(_DWORD *)v4 + 8))(v4);
return nullptr;
}
}