{"type": "func", "start": 6442528192, "end": 6442528460, "name": "cocos2d::extension::CCScrollView::relocateContainer", "pseudocode": "// \n// cocos2d::extension::CCScrollView::relocateContainer from 0x180012dc0 to 0x180012ecc (268 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0x1800132a1\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a44c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::extension::CCScrollView::relocateContainer(cocos2d::extension::CCScrollView *this, char a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n  float v6; // xmm1_4\n  float v7; // xmm2_4\n  int v8; // eax\n  float *v9; // rax\n  _BYTE v10[24]; // [rsp+20h] [rbp-18h] BYREF\n  float v11; // [rsp+40h] [rbp+8h] BYREF\n  float v12; // [rsp+44h] [rbp+Ch]\n  float v13; // [rsp+50h] [rbp+18h] BYREF\n  float v14; // [rsp+54h] [rbp+1Ch]\n  float v15; // [rsp+58h] [rbp+20h] BYREF\n  float v16; // [rsp+5Ch] [rbp+24h]\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13);\n  v4 = cocos2d::extension::CCScrollView::minContainerOffset(this, v10);\n  cocos2d::CCPoint::operator=(&v15, v4);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 0.0);\n  cocos2d::CCPoint::operator=(&v13, v10);\n  v5 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 200LL))(*((_QWORD *)this + 56));\n  cocos2d::CCPoint::operator=(&v11, v5);\n  v6 = v11;\n  v7 = v12;\n  v8 = *((_DWORD *)this + 108);\n  if ( (v8 & 0xFFFFFFFD) == 0 )\n    v6 = fminf(v13, fmaxf(v15, v11));\n  if ( (unsigned int)(v8 - 1) <= 1 )\n    v7 = fmaxf(v16, fminf(v14, v12));\n  if ( v7 != v12 || v6 != v11 )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6, v7);\n    cocos2d::extension::CCScrollView::setContentOffset((__int64)this, v9, a2);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScrollView::relocateContainer from 0x180012dc0 to 0x180012ecc (268 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0x1800132a1\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a44c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180012dc0\npush    rdi                                                            ; +0x5, 0x180012dc5\nsub     rsp, 30h                                                       ; +0x6, 0x180012dc6\nmov     rbx, rcx                                                       ; +0xa, 0x180012dca\nmovzx   edi, dl                                                        ; +0xd, 0x180012dcd\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x10, 0x180012dd0\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x15, 0x180012dd5\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x1b, 0x180012ddb\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x20, 0x180012de0\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x26, 0x180012de6\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x2b, 0x180012deb\nlea     rdx, [rsp+38h+var_18]                                          ; +0x31, 0x180012df1\nmov     rcx, rbx                                                       ; +0x36, 0x180012df6\ncall    ?minContainerOffset@CCScrollView@extension@cocos2d@@QEAA?AVCCPoint@3@XZ; cocos2d::extension::CCScrollView::minContainerOffset(void) ; +0x39, 0x180012df9\nmov     rdx, rax                                                       ; +0x3e, 0x180012dfe\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x41, 0x180012e01\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x46, 0x180012e06\nxorps   xmm2, xmm2                                                     ; +0x4c, 0x180012e0c\nlea     rcx, [rsp+38h+var_18]                                          ; +0x4f, 0x180012e0f\nxorps   xmm1, xmm1                                                     ; +0x54, 0x180012e14\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x57, 0x180012e17\nlea     rdx, [rsp+38h+var_18]                                          ; +0x5d, 0x180012e1d\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x62, 0x180012e22\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x67, 0x180012e27\nmov     rcx, [rbx+1C0h]                                                ; +0x6d, 0x180012e2d\nmov     rax, [rcx]                                                     ; +0x74, 0x180012e34\ncall    qword ptr [rax+0C8h]                                           ; +0x77, 0x180012e37\nmov     rdx, rax                                                       ; +0x7d, 0x180012e3d\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x80, 0x180012e40\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x85, 0x180012e45\nmovss   xmm1, [rsp+38h+arg_0]                                          ; +0x8b, 0x180012e4b\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0x91, 0x180012e51\nmovaps  xmm4, xmm1                                                     ; +0x97, 0x180012e57\nmov     eax, [rbx+1B0h]                                                ; +0x9a, 0x180012e5a\nmovaps  xmm3, xmm2                                                     ; +0xa0, 0x180012e60\ntest    eax, 0FFFFFFFDh                                                ; +0xa3, 0x180012e63\njnz     short loc_180012E7E                                            ; +0xa8, 0x180012e68\nmovss   xmm0, [rsp+38h+arg_18]                                         ; +0xaa, 0x180012e6a\nmovss   xmm1, [rsp+38h+arg_10]                                         ; +0xb0, 0x180012e70\nmaxss   xmm0, xmm4                                                     ; +0xb6, 0x180012e76\nminss   xmm1, xmm0                                                     ; +0xba, 0x180012e7a\ndec     eax                                                            ; +0xbe, 0x180012e7e\ncmp     eax, 1                                                         ; +0xc0, 0x180012e80\nja      short loc_180012E99                                            ; +0xc3, 0x180012e83\nmovss   xmm0, [rsp+38h+arg_14]                                         ; +0xc5, 0x180012e85\nmovss   xmm2, [rsp+38h+arg_1C]                                         ; +0xcb, 0x180012e8b\nminss   xmm0, xmm3                                                     ; +0xd1, 0x180012e91\nmaxss   xmm2, xmm0                                                     ; +0xd5, 0x180012e95\nucomiss xmm2, xmm3                                                     ; +0xd9, 0x180012e99\njp      short loc_180012EA7                                            ; +0xdc, 0x180012e9c\njnz     short loc_180012EA7                                            ; +0xde, 0x180012e9e\nucomiss xmm1, xmm4                                                     ; +0xe0, 0x180012ea0\njp      short loc_180012EA7                                            ; +0xe3, 0x180012ea3\njz      short loc_180012EC1                                            ; +0xe5, 0x180012ea5\nlea     rcx, [rsp+38h+var_18]                                          ; +0xe7, 0x180012ea7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xec, 0x180012eac\nmovzx   r8d, dil                                                       ; +0xf2, 0x180012eb2\nmov     rcx, rbx                                                       ; +0xf6, 0x180012eb6\nmov     rdx, rax                                                       ; +0xf9, 0x180012eb9\ncall    ?setContentOffset@CCScrollView@extension@cocos2d@@QEAAXVCCPoint@3@_N@Z; cocos2d::extension::CCScrollView::setContentOffset(cocos2d::CCPoint,bool) ; +0xfc, 0x180012ebc\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x101, 0x180012ec1\nadd     rsp, 30h                                                       ; +0x106, 0x180012ec6\npop     rdi                                                            ; +0x10a, 0x180012eca\nretn                                                                   ; +0x10b, 0x180012ecb", "xrefs": ["cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0x1800132a1", "<???> @ 0x18002fdf8", "<???> @ 0x18004a44c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}