//
// cocos2d::extension::CCScale9Sprite::updateCapInset from 0x18000f910 to 0x18000fa1a (266 bytes)
//
// 6 xrefs:
// > cocos2d::extension::CCScale9Sprite::setInsetLeft @ 0x18000fc38
// > cocos2d::extension::CCScale9Sprite::setInsetTop @ 0x18000fc48
// > cocos2d::extension::CCScale9Sprite::setInsetRight @ 0x18000fc58
// > cocos2d::extension::CCScale9Sprite::setInsetBottom @ 0x18000fc68
// > ??> @ 0x180032408
// > ??> @ 0x18004bee8
//
// 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:15:39 +0000
//
void __fastcall cocos2d::extension::CCScale9Sprite::updateCapInset(cocos2d::extension::CCScale9Sprite *this)
{
float v2; // xmm4_4
void *v3; // rdx
float v4; // xmm0_4
float v5; // xmm3_4
float v6; // xmm1_4
float v7; // xmm2_4
float v8; // xmm0_4
float v9; // xmm3_4
void *v10; // rax
__int64 v11; // rbx
__int64 v12; // rax
_BYTE v13[16]; // [rsp+30h] [rbp-28h] BYREF
_BYTE v14[24]; // [rsp+40h] [rbp-18h] BYREF
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13);
v2 = *((float *)this + 94);
if ( v2 == 0.0 && *((float *)this + 95) == 0.0 && *((float *)this + 96) == 0.0 && *((float *)this + 97) == 0.0 )
{
v3 = &unk_18004A600;
}
else
{
v4 = *((float *)this + 102);
v5 = *((float *)this + 101);
if ( *((_BYTE *)this + 412) )
{
v6 = *((float *)this + 97);
v7 = *((float *)this + 94);
v8 = (float)(v4 - *((float *)this + 95)) - v6;
v9 = (float)(v5 - *((float *)this + 96)) - v2;
}
else
{
v7 = *((float *)this + 95);
v6 = *((float *)this + 94);
v9 = (float)(v5 - v2) - *((float *)this + 96);
v8 = (float)(v4 - v7) - *((float *)this + 97);
}
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, v6, v7, v9, v8);
v3 = v10;
}
cocos2d::CCRect::operator=(v13, v3);
v11 = *(_QWORD *)this;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, (const struct cocos2d::CCRect *)v13);
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64))(v11 + 912))(this, v12);
}