{"type": "func", "start": 6442526880, "end": 6442527134, "name": "cocos2d::extension::CCScrollView::relocateContainer", "pseudocode": "// \n// cocos2d::extension::CCScrollView::relocateContainer from 0x1800128a0 to 0x18001299e (254 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0x180012da7\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c35c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:40 +0000\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  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 == 2 || !v8 )\n    v6 = fminf(fmaxf(v11, v15), v13);\n  if ( (unsigned int)(v8 - 1) <= 1 )\n    v7 = fmaxf(fminf(v12, v14), v16);\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 0x1800128a0 to 0x18001299e (254 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0x180012da7\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c35c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:40 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800128a0\npush    rdi                                                            ; +0x5, 0x1800128a5\nsub     rsp, 30h                                                       ; +0x6, 0x1800128a6\nmov     rbx, rcx                                                       ; +0xa, 0x1800128aa\nmovzx   edi, dl                                                        ; +0xd, 0x1800128ad\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x10, 0x1800128b0\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x15, 0x1800128b5\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x1b, 0x1800128bb\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x20, 0x1800128c0\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x26, 0x1800128c6\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x2b, 0x1800128cb\nlea     rdx, [rsp+38h+var_18]                                          ; +0x31, 0x1800128d1\nmov     rcx, rbx                                                       ; +0x36, 0x1800128d6\ncall    ?minContainerOffset@CCScrollView@extension@cocos2d@@QEAA?AVCCPoint@3@XZ; cocos2d::extension::CCScrollView::minContainerOffset(void) ; +0x39, 0x1800128d9\nmov     rdx, rax                                                       ; +0x3e, 0x1800128de\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x41, 0x1800128e1\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x46, 0x1800128e6\nxorps   xmm2, xmm2                                                     ; +0x4c, 0x1800128ec\nlea     rcx, [rsp+38h+var_18]                                          ; +0x4f, 0x1800128ef\nxorps   xmm1, xmm1                                                     ; +0x54, 0x1800128f4\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x57, 0x1800128f7\nlea     rdx, [rsp+38h+var_18]                                          ; +0x5d, 0x1800128fd\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x62, 0x180012902\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x67, 0x180012907\nmov     rcx, [rbx+1C0h]                                                ; +0x6d, 0x18001290d\nmov     rax, [rcx]                                                     ; +0x74, 0x180012914\ncall    qword ptr [rax+0C8h]                                           ; +0x77, 0x180012917\nmov     rdx, rax                                                       ; +0x7d, 0x18001291d\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x80, 0x180012920\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x85, 0x180012925\nmovss   xmm1, [rsp+38h+arg_0]                                          ; +0x8b, 0x18001292b\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0x91, 0x180012931\nmovaps  xmm3, xmm1                                                     ; +0x97, 0x180012937\nmov     eax, [rbx+1B0h]                                                ; +0x9a, 0x18001293a\nmovaps  xmm0, xmm2                                                     ; +0xa0, 0x180012940\ncmp     eax, 2                                                         ; +0xa3, 0x180012943\njz      short loc_18001294C                                            ; +0xa6, 0x180012946\ntest    eax, eax                                                       ; +0xa8, 0x180012948\njnz     short loc_180012958                                            ; +0xaa, 0x18001294a\nmaxss   xmm1, [rsp+38h+arg_18]                                         ; +0xac, 0x18001294c\nminss   xmm1, [rsp+38h+arg_10]                                         ; +0xb2, 0x180012952\ndec     eax                                                            ; +0xb8, 0x180012958\ncmp     eax, 1                                                         ; +0xba, 0x18001295a\nja      short loc_18001296B                                            ; +0xbd, 0x18001295d\nminss   xmm2, [rsp+38h+arg_14]                                         ; +0xbf, 0x18001295f\nmaxss   xmm2, [rsp+38h+arg_1C]                                         ; +0xc5, 0x180012965\nucomiss xmm2, xmm0                                                     ; +0xcb, 0x18001296b\njp      short loc_180012979                                            ; +0xce, 0x18001296e\njnz     short loc_180012979                                            ; +0xd0, 0x180012970\nucomiss xmm1, xmm3                                                     ; +0xd2, 0x180012972\njp      short loc_180012979                                            ; +0xd5, 0x180012975\njz      short loc_180012993                                            ; +0xd7, 0x180012977\nlea     rcx, [rsp+38h+var_18]                                          ; +0xd9, 0x180012979\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xde, 0x18001297e\nmovzx   r8d, dil                                                       ; +0xe4, 0x180012984\nmov     rcx, rbx                                                       ; +0xe8, 0x180012988\nmov     rdx, rax                                                       ; +0xeb, 0x18001298b\ncall    ?setContentOffset@CCScrollView@extension@cocos2d@@QEAAXVCCPoint@3@_N@Z; cocos2d::extension::CCScrollView::setContentOffset(cocos2d::CCPoint,bool) ; +0xee, 0x18001298e\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xf3, 0x180012993\nadd     rsp, 30h                                                       ; +0xf8, 0x180012998\npop     rdi                                                            ; +0xfc, 0x18001299c\nretn                                                                   ; +0xfd, 0x18001299d", "xrefs": ["cocos2d::extension::CCScrollView::deaccelerateScrolling @ 0x180012da7", "<???> @ 0x180032408", "<???> @ 0x18004c35c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}