//
// cocos2d::extension::CCScale9Sprite::setCapInsets from 0x1003e2e50 to 0x1003e2eea (154 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b3cb68
//
// This function is hookable on this platform (idp: pc, 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 12:29:46 +0000
//
__int64 __fastcall cocos2d::extension::CCScale9Sprite::setCapInsets(unsigned __int64 *a1, unsigned __int64 *a2)
{
unsigned __int64 v3; // r12
unsigned int v4; // ebx
__int64 result; // rax
__m128 v6; // [rsp-58h] [rbp-58h] BYREF
__m128 v7; // [rsp-48h] [rbp-48h] BYREF
_QWORD v8[7]; // [rsp-38h] [rbp-38h] BYREF
if ( a1[54] )
{
sub_100278630(v8, (unsigned __int64 *)((char *)a1 + 108));
v3 = a1[54];
sub_1002787F0(&v7, a1 + 49);
v4 = *((unsigned __int8 *)a1 + 408);
sub_1002787F0(&v6, a2);
(*(void (__fastcall **)(unsigned __int64 *, unsigned __int64, __m128 *, _QWORD, __m128 *))(*a1 + 1184))(
a1,
v3,
&v7,
v4,
&v6);
return (*(__int64 (__fastcall **)(unsigned __int64 *, _QWORD *))(*a1 + 320))(a1, v8);
}
return result;
}