//
// cocos2d::extension::CCScale9Sprite::setCapInsets from 0x7ac014 to 0x7ac092 (126 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
//
int __fastcall cocos2d::extension::CCScale9Sprite::setCapInsets(int result, const cocos2d::CCRect *a2)
{
int v3; // r4
int v4; // r11
int v5; // r10
void (__fastcall *v6)(int, int, _BYTE *, int, _BYTE *); // [sp+Ch] [bp-10h]
_BYTE v7[8]; // [sp+14h] [bp-8h] BYREF
_BYTE v8[16]; // [sp+1Ch] [bp+0h] BYREF
_BYTE v9[16]; // [sp+2Ch] [bp+10h] BYREF
v3 = result;
if ( *(_DWORD *)(result + 372) )
{
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7, (const cocos2d::CCSize *)(result + 104));
v4 = *(_DWORD *)(v3 + 372);
v6 = *(void (__fastcall **)(int, int, _BYTE *, int, _BYTE *))(*(_DWORD *)v3 + 592);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, (const cocos2d::CCRect *)(v3 + 332));
v5 = *(unsigned __int8 *)(v3 + 348);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, a2);
v6(v3, v4, v8, v5, v9);
return (*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 160))(v3, v7);
}
return result;
}