{"type": "func", "start": 6442525872, "end": 6442526397, "name": "cocos2d::extension::CCScrollView::setZoomScale", "pseudocode": "// \n// cocos2d::extension::CCScrollView::setZoomScale from 0x1800124b0 to 0x1800126bd (525 bytes)\n// \n// 7 xrefs:\n// > cocos2d::extension::CCScrollView::setZoomScale @ 0x1800126f2\n// > cocos2d::extension::CCScrollView::setZoomScaleInDuration @ 0x18001277a\n// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x180013b0f\n// > <???> @ 0x180030e30\n// > <???> @ 0x180030e40\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c2fc\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::setZoomScale(cocos2d::extension::CCScrollView *this, float a2)\n{\n  __int64 v3; // rax\n  char *v4; // rdx\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  _BYTE v10[8]; // [rsp+20h] [rbp-40h] BYREF\n  float v11[2]; // [rsp+28h] [rbp-38h] BYREF\n  float v12[2]; // [rsp+30h] [rbp-30h] BYREF\n  _BYTE v13[8]; // [rsp+38h] [rbp-28h] BYREF\n  char v14; // [rsp+70h] [rbp+10h] BYREF\n  float v15; // [rsp+80h] [rbp+20h] BYREF\n  float v16; // [rsp+84h] [rbp+24h]\n  char v17; // [rsp+88h] [rbp+28h] BYREF\n\n  if ( (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 168LL))(*((_QWORD *)this + 56)) != a2 )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14);\n    if ( *((float *)this + 124) == 0.0 )\n    {\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, *((float *)this + 128) * 0.5, *((float *)this + 129) * 0.5);\n      cocos2d::CCPoint::operator=(&v14, v3);\n      v4 = (char *)cocos2d::CCNode::convertToWorldSpace(this, &v15, &v14);\n    }\n    else\n    {\n      v4 = (char *)this + 488;\n    }\n    cocos2d::CCPoint::operator=(&v14, v4);\n    v5 = cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)this + 56), &v15, &v14);\n    cocos2d::CCPoint::operator=(&v17, v5);\n    (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 160LL))(*((_QWORD *)this + 56));\n    v6 = cocos2d::CCNode::convertToWorldSpace(*((_QWORD *)this + 56), &v15, &v17);\n    cocos2d::CCPoint::operator=(v10, v6);\n    cocos2d::CCPoint::operator-(&v14, v13, v10);\n    v7 = *((_QWORD *)this + 53);\n    if ( v7 )\n      (*(void (__fastcall **)(__int64, cocos2d::extension::CCScrollView *))(*(_QWORD *)v7 + 16LL))(v7, this);\n    v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 200LL))(*((_QWORD *)this + 56));\n    cocos2d::CCPoint::operator+(v8, &v15, v13);\n    if ( !*((_BYTE *)this + 476) )\n    {\n      cocos2d::extension::CCScrollView::minContainerOffset(this, v12);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 0.0, 0.0);\n      v15 = fmaxf(v12[0], fminf(v11[0], v15));\n      v16 = fmaxf(v12[1], fminf(v11[1], v16));\n    }\n    (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 56) + 184LL))(*((_QWORD *)this + 56), &v15);\n    v9 = *((_QWORD *)this + 53);\n    if ( v9 )\n      (*(void (__fastcall **)(__int64, cocos2d::extension::CCScrollView *))(*(_QWORD *)v9 + 8LL))(v9, this);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScrollView::setZoomScale from 0x1800124b0 to 0x1800126bd (525 bytes)\n; \n; 7 xrefs:\n; > cocos2d::extension::CCScrollView::setZoomScale @ 0x1800126f2\n; > cocos2d::extension::CCScrollView::setZoomScaleInDuration @ 0x18001277a\n; > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x180013b0f\n; > <???> @ 0x180030e30\n; > <???> @ 0x180030e40\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c2fc\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-8+arg_8], rbx                                             ; +0x0, 0x1800124b0\npush    rbp                                                            ; +0x5, 0x1800124b5\nmov     rbp, rsp                                                       ; +0x6, 0x1800124b6\nsub     rsp, 60h                                                       ; +0x9, 0x1800124b9\nmov     rbx, rcx                                                       ; +0xd, 0x1800124bd\nmovaps  [rsp+60h+var_20], xmm7                                         ; +0x10, 0x1800124c0\nmov     rcx, [rcx+1C0h]                                                ; +0x15, 0x1800124c5\nmovaps  xmm7, xmm1                                                     ; +0x1c, 0x1800124cc\nmov     rax, [rcx]                                                     ; +0x1f, 0x1800124cf\ncall    qword ptr [rax+0A8h]                                           ; +0x22, 0x1800124d2\nucomiss xmm0, xmm7                                                     ; +0x28, 0x1800124d8\njp      short loc_1800124E3                                            ; +0x2b, 0x1800124db\njz      loc_1800126AD                                                  ; +0x2d, 0x1800124dd\nlea     rcx, [rbp+arg_18]                                              ; +0x33, 0x1800124e3\nmovaps  [rsp+60h+var_10], xmm6                                         ; +0x37, 0x1800124e7\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x3c, 0x1800124ec\nlea     rcx, [rbp+var_40]                                              ; +0x42, 0x1800124f2\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x46, 0x1800124f6\nlea     rcx, [rbp+arg_0]                                               ; +0x4c, 0x1800124fc\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x50, 0x180012500\nmovss   xmm0, dword ptr [rbx+1F0h]                                     ; +0x56, 0x180012506\nxorps   xmm6, xmm6                                                     ; +0x5e, 0x18001250e\nucomiss xmm0, xmm6                                                     ; +0x61, 0x180012511\njp      short loc_180012565                                            ; +0x64, 0x180012514\njnz     short loc_180012565                                            ; +0x66, 0x180012516\nmovss   xmm2, dword ptr [rbx+204h]                                     ; +0x68, 0x180012518\nlea     rcx, [rbp+arg_10]                                              ; +0x70, 0x180012520\nmovss   xmm1, dword ptr [rbx+200h]                                     ; +0x74, 0x180012524\nmulss   xmm2, cs:dword_18002BBD8                                       ; +0x7c, 0x18001252c\nmulss   xmm1, cs:dword_18002BBD8                                       ; +0x84, 0x180012534\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x8c, 0x18001253c\nmov     rdx, rax                                                       ; +0x92, 0x180012542\nlea     rcx, [rbp+arg_0]                                               ; +0x95, 0x180012545\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x99, 0x180012549\nlea     r8, [rbp+arg_0]                                                ; +0x9f, 0x18001254f\nmov     rcx, rbx                                                       ; +0xa3, 0x180012553\nlea     rdx, [rbp+arg_10]                                              ; +0xa6, 0x180012556\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xaa, 0x18001255a\nmov     rdx, rax                                                       ; +0xb0, 0x180012560\njmp     short loc_18001256C                                            ; +0xb3, 0x180012563\nlea     rdx, [rbx+1E8h]                                                ; +0xb5, 0x180012565\nlea     rcx, [rbp+arg_0]                                               ; +0xbc, 0x18001256c\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xc0, 0x180012570\nmov     rcx, [rbx+1C0h]                                                ; +0xc6, 0x180012576\nlea     r8, [rbp+arg_0]                                                ; +0xcd, 0x18001257d\nlea     rdx, [rbp+arg_10]                                              ; +0xd1, 0x180012581\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xd5, 0x180012585\nmov     rdx, rax                                                       ; +0xdb, 0x18001258b\nlea     rcx, [rbp+arg_18]                                              ; +0xde, 0x18001258e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xe2, 0x180012592\nmovss   xmm0, dword ptr [rbx+20Ch]                                     ; +0xe8, 0x180012598\nmov     rcx, [rbx+1C0h]                                                ; +0xf0, 0x1800125a0\nminss   xmm0, xmm7                                                     ; +0xf7, 0x1800125a7\nmovss   xmm1, dword ptr [rbx+208h]                                     ; +0xfb, 0x1800125ab\nmov     rax, [rcx]                                                     ; +0x103, 0x1800125b3\nmaxss   xmm1, xmm0                                                     ; +0x106, 0x1800125b6\ncall    qword ptr [rax+0A0h]                                           ; +0x10a, 0x1800125ba\nmov     rcx, [rbx+1C0h]                                                ; +0x110, 0x1800125c0\nlea     r8, [rbp+arg_18]                                               ; +0x117, 0x1800125c7\nlea     rdx, [rbp+arg_10]                                              ; +0x11b, 0x1800125cb\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x11f, 0x1800125cf\nmov     rdx, rax                                                       ; +0x125, 0x1800125d5\nlea     rcx, [rbp+var_40]                                              ; +0x128, 0x1800125d8\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x12c, 0x1800125dc\nlea     r8, [rbp+var_40]                                               ; +0x132, 0x1800125e2\nlea     rdx, [rbp+var_28]                                              ; +0x136, 0x1800125e6\nlea     rcx, [rbp+arg_0]                                               ; +0x13a, 0x1800125ea\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x13e, 0x1800125ee\nmov     rcx, [rbx+1A8h]                                                ; +0x144, 0x1800125f4\ntest    rcx, rcx                                                       ; +0x14b, 0x1800125fb\njz      short loc_180012609                                            ; +0x14e, 0x1800125fe\nmov     rax, [rcx]                                                     ; +0x150, 0x180012600\nmov     rdx, rbx                                                       ; +0x153, 0x180012603\ncall    qword ptr [rax+10h]                                            ; +0x156, 0x180012606\nmov     rcx, [rbx+1C0h]                                                ; +0x159, 0x180012609\nmov     rax, [rcx]                                                     ; +0x160, 0x180012610\ncall    qword ptr [rax+0C8h]                                           ; +0x163, 0x180012613\nmov     rcx, rax                                                       ; +0x169, 0x180012619\nlea     r8, [rbp+var_28]                                               ; +0x16c, 0x18001261c\nlea     rdx, [rbp+arg_10]                                              ; +0x170, 0x180012620\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x174, 0x180012624\ncmp     byte ptr [rbx+1DCh], 0                                         ; +0x17a, 0x18001262a\njnz     short loc_18001267F                                            ; +0x181, 0x180012631\nlea     rdx, [rbp+var_30]                                              ; +0x183, 0x180012633\nmov     rcx, rbx                                                       ; +0x187, 0x180012637\ncall    ?minContainerOffset@CCScrollView@extension@cocos2d@@QEAA?AVCCPoint@3@XZ; cocos2d::extension::CCScrollView::minContainerOffset(void) ; +0x18a, 0x18001263a\nxorps   xmm2, xmm2                                                     ; +0x18f, 0x18001263f\nlea     rcx, [rbp+var_38]                                              ; +0x192, 0x180012642\nxorps   xmm1, xmm1                                                     ; +0x196, 0x180012646\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x199, 0x180012649\nmovss   xmm0, [rbp+var_30]                                             ; +0x19f, 0x18001264f\nmovss   xmm1, [rbp+var_38]                                             ; +0x1a4, 0x180012654\nminss   xmm1, [rbp+arg_10]                                             ; +0x1a9, 0x180012659\nmovss   xmm2, [rbp+var_34]                                             ; +0x1ae, 0x18001265e\nminss   xmm2, [rbp+arg_14]                                             ; +0x1b3, 0x180012663\nmaxss   xmm0, xmm1                                                     ; +0x1b8, 0x180012668\nmovss   [rbp+arg_10], xmm0                                             ; +0x1bc, 0x18001266c\nmovss   xmm0, [rbp+var_2C]                                             ; +0x1c1, 0x180012671\nmaxss   xmm0, xmm2                                                     ; +0x1c6, 0x180012676\nmovss   [rbp+arg_14], xmm0                                             ; +0x1ca, 0x18001267a\nmov     rcx, [rbx+1C0h]                                                ; +0x1cf, 0x18001267f\nlea     rdx, [rbp+arg_10]                                              ; +0x1d6, 0x180012686\nmov     rax, [rcx]                                                     ; +0x1da, 0x18001268a\ncall    qword ptr [rax+0B8h]                                           ; +0x1dd, 0x18001268d\nmov     rcx, [rbx+1A8h]                                                ; +0x1e3, 0x180012693\nmovaps  xmm6, [rsp+60h+var_10]                                         ; +0x1ea, 0x18001269a\ntest    rcx, rcx                                                       ; +0x1ef, 0x18001269f\njz      short loc_1800126AD                                            ; +0x1f2, 0x1800126a2\nmov     rax, [rcx]                                                     ; +0x1f4, 0x1800126a4\nmov     rdx, rbx                                                       ; +0x1f7, 0x1800126a7\ncall    qword ptr [rax+8]                                              ; +0x1fa, 0x1800126aa\nmov     rbx, [rsp+60h+arg_8]                                           ; +0x1fd, 0x1800126ad\nmovaps  xmm7, [rsp+60h+var_20]                                         ; +0x202, 0x1800126b2\nadd     rsp, 60h                                                       ; +0x207, 0x1800126b7\npop     rbp                                                            ; +0x20b, 0x1800126bb\nretn                                                                   ; +0x20c, 0x1800126bc", "xrefs": ["cocos2d::extension::CCScrollView::setZoomScale @ 0x1800126f2", "cocos2d::extension::CCScrollView::setZoomScaleInDuration @ 0x18001277a", "cocos2d::extension::CCScrollView::ccTouchMoved @ 0x180013b0f", "<???> @ 0x180030e30", "<???> @ 0x180030e40", "<???> @ 0x180032408", "<???> @ 0x18004c2fc"], "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"}