//
// cocos2d::extension::CCScrollView::updateInset from 0x180012ea0 to 0x180012fa7 (263 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCScrollView::setContentSize @ 0x180012e86
// > ??> @ 0x180030f58
// > ??> @ 0x180030f68
// > ??> @ 0x180032408
// > ??> @ 0x18004c3e0
//
// 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:40 +0000
//
void __fastcall cocos2d::extension::CCScrollView::updateInset(cocos2d::extension::CCScrollView *this)
{
__int64 v2; // rax
cocos2d::CCPoint *v3; // rax
__int64 v4; // rax
char v5; // [rsp+40h] [rbp+8h] BYREF
if ( *((_QWORD *)this + 56) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v5, 0.0, 0.0);
cocos2d::CCPoint::operator=((char *)this + 460, &v5);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v5,
(float)(*((float *)this + 128) * 0.2) + *((float *)this + 115),
(float)(*((float *)this + 129) * 0.2) + *((float *)this + 116));
cocos2d::CCPoint::operator=((char *)this + 460, v2);
v3 = cocos2d::extension::CCScrollView::minContainerOffset((__int64)this, (cocos2d::CCPoint *)&v5);
cocos2d::CCPoint::operator=((char *)this + 468, v3);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v5,
*((float *)this + 117) - (float)(*((float *)this + 128) * 0.2),
*((float *)this + 118) - (float)(*((float *)this + 129) * 0.2));
cocos2d::CCPoint::operator=((char *)this + 468, v4);
}
}