//
// cocos2d::extension::CCScale9Sprite::setCapInsets from 0x1002b2998 to 0x1002b2a30 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091b758
//
// 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 11:02:21 +0000
//
__int64 __fastcall cocos2d::extension::CCScale9Sprite::setCapInsets(__int64 result, __int64 a2)
{
__int64 v3; // x19
__int64 v4; // x21
__int64 v5; // x22
double v6; // d0
_QWORD v7[2]; // [xsp+8h] [xbp-48h] BYREF
_QWORD v8[2]; // [xsp+18h] [xbp-38h] BYREF
__int64 v9; // [xsp+28h] [xbp-28h] BYREF
if ( *(_QWORD *)(result + 432) )
{
v3 = result;
sub_100026438(&v9, (double *)(result + 108));
v4 = *(_QWORD *)(v3 + 432);
sub_1000264D4(v8, v3 + 392);
v5 = *(unsigned __int8 *)(v3 + 408);
v6 = sub_1000264D4(v7, a2);
(*(void (__fastcall **)(__int64, __int64, _QWORD *, __int64, _QWORD *, double))(*(_QWORD *)v3 + 1184LL))(
v3,
v4,
v8,
v5,
v7,
v6);
return (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v3 + 320LL))(v3, &v9);
}
return result;
}