// // cocos2d::extension::CCScrollView::relocateContainer from 0x180012dc0 to 0x180012ecc (268 bytes) // // 3 xrefs: // > cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0x1800132a1 // > @ 0x18002fdf8 // > @ 0x18004a44c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::extension::CCScrollView::relocateContainer(cocos2d::extension::CCScrollView *this, char a2) { __int64 v4; // rax __int64 v5; // rax float v6; // xmm1_4 float v7; // xmm2_4 int v8; // eax float *v9; // rax _BYTE v10[24]; // [rsp+20h] [rbp-18h] BYREF float v11; // [rsp+40h] [rbp+8h] BYREF float v12; // [rsp+44h] [rbp+Ch] float v13; // [rsp+50h] [rbp+18h] BYREF float v14; // [rsp+54h] [rbp+1Ch] float v15; // [rsp+58h] [rbp+20h] BYREF float v16; // [rsp+5Ch] [rbp+24h] cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13); v4 = cocos2d::extension::CCScrollView::minContainerOffset(this, v10); cocos2d::CCPoint::operator=(&v15, v4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 0.0); cocos2d::CCPoint::operator=(&v13, v10); v5 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 200LL))(*((_QWORD *)this + 56)); cocos2d::CCPoint::operator=(&v11, v5); v6 = v11; v7 = v12; v8 = *((_DWORD *)this + 108); if ( (v8 & 0xFFFFFFFD) == 0 ) v6 = fminf(v13, fmaxf(v15, v11)); if ( (unsigned int)(v8 - 1) <= 1 ) v7 = fmaxf(v16, fminf(v14, v12)); if ( v7 != v12 || v6 != v11 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6, v7); cocos2d::extension::CCScrollView::setContentOffset((__int64)this, v9, a2); } }