{"type": "func", "start": 5370498160, "end": 5370498930, "name": "EditorUI::updateZoom", "pseudocode": "// \n// EditorUI::updateZoom from 0x1401b4c70 to 0x1401b4f72 (770 bytes)\n// \n// 3 xrefs:\n// > EditorUI::updateZoom_1 @ 0x1401b4c55\n// > EditorUI::ccTouchMoved @ 0x1401c07b7\n// > <???> @ 0x14091a144\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 11:27:57 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCAction *__fastcall EditorUI::updateZoom(__int64 a1, float a2, __int64 a3)\n{\n  _QWORD *v5; // rcx\n  __int64 v6; // rdi\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rax\n  __int64 v10; // rax\n  struct cocos2d::CCAction *result; // rax\n  __int64 v12; // rcx\n  __int64 v13; // rdx\n  struct cocos2d::CCAction *v14; // rbx\n  struct cocos2d::CCFiniteTimeAction *v15; // rbx\n  struct cocos2d::CCFadeTo *v16; // rax\n  struct cocos2d::CCAction *v17; // rbx\n  void *v18; // [rsp+20h] [rbp-98h] BYREF\n  _BYTE v19[8]; // [rsp+28h] [rbp-90h] BYREF\n  _BYTE v20[8]; // [rsp+30h] [rbp-88h] BYREF\n  _BYTE v21[8]; // [rsp+38h] [rbp-80h] BYREF\n  char Buffer[32]; // [rsp+40h] [rbp-78h] BYREF\n\n  v5 = *(_QWORD **)(a1 + 1512);\n  v6 = v5[537];\n  v7 = (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 504LL))(v5);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 168LL))(v7);\n  v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1512) + 504LL))(*(_QWORD *)(a1 + 1512));\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);\n  cocos2d::CCNode::convertToNodeSpace(v6, v19, a3);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);\n  cocos2d::CCNode::convertToWorldSpace(v6, v20, v19);\n  cocos2d::CCPoint::operator-(a3, v21, v20);\n  v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 200LL))(v6);\n  cocos2d::CCPoint::operator+(v9, &v18, v21);\n  (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v6 + 184LL))(v6, &v18);\n  EditorUI::constrainGameLayerPosition(a1);\n  v10 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1512) + 504LL))(*(_QWORD *)(a1 + 1512));\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 160LL))(v10);\n  EditorUI::updateSlider(a1);\n  (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 160LL))(*(_QWORD *)(a1 + 808));\n  result = (struct cocos2d::CCAction *)GJTransformControl::scaleButtons(*(_QWORD *)(a1 + 840));\n  if ( *(_QWORD *)(a1 + 1600) )\n  {\n    v12 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v18 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v18);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v12 = qword_14090BFD0;\n    }\n    result = (struct cocos2d::CCAction *)GameManager::getGameVariable(v12, \"0195\");\n    if ( !(_BYTE)result )\n    {\n      sub_1401A8CE0(Buffer, \"Zoom: %.02f\", a2);\n      (**(void (__fastcall ***)(__int64, char *))(*(_QWORD *)(a1 + 1600) + 360LL))(\n        *(_QWORD *)(a1 + 1600) + 360LL,\n        Buffer);\n      LOBYTE(v13) = 1;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1600) + 336LL))(*(_QWORD *)(a1 + 1600), v13);\n      if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 1600) + 368LL) + 32LL))(*(_QWORD *)(a1 + 1600) + 368LL) != 0xFF\n        && !cocos2d::CCNode::getActionByTag(*(cocos2d::CCNode **)(a1 + 1600), 129) )\n      {\n        v14 = cocos2d::CCFadeTo::create(0.1, 0xFFu);\n        (*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v14 + 64LL))(v14, 129);\n        cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 1600), v14);\n      }\n      cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 1600), 130);\n      v15 = cocos2d::CCDelayTime::create(0.89999998);\n      v16 = cocos2d::CCFadeTo::create(0.30000001, 0);\n      v17 = cocos2d::CCSequence::create(v15, v16, 0);\n      (*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v17 + 64LL))(v17, 130);\n      return cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 1600), v17);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::updateZoom from 0x1401b4c70 to 0x1401b4f72 (770 bytes)\n; \n; 3 xrefs:\n; > EditorUI::updateZoom_1 @ 0x1401b4c55\n; > EditorUI::ccTouchMoved @ 0x1401c07b7\n; > <???> @ 0x14091a144\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 11:27:57 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x1401b4c70\npush    rbx                                                            ; +0x3, 0x1401b4c73\npush    rsi                                                            ; +0x4, 0x1401b4c74\npush    rdi                                                            ; +0x5, 0x1401b4c75\nsub     rsp, 0A0h                                                      ; +0x6, 0x1401b4c76\nmovaps  xmmword ptr [rax-28h], xmm6                                    ; +0xd, 0x1401b4c7d\nmovaps  xmmword ptr [rax-38h], xmm7                                    ; +0x11, 0x1401b4c81\nmovaps  xmmword ptr [rax-48h], xmm8                                    ; +0x15, 0x1401b4c85\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x1401b4c8a\nxor     rax, rsp                                                       ; +0x21, 0x1401b4c91\nmov     [rsp+0B8h+var_58], rax                                         ; +0x24, 0x1401b4c94\nmov     rbx, r8                                                        ; +0x29, 0x1401b4c99\nmovaps  xmm8, xmm1                                                     ; +0x2c, 0x1401b4c9c\nmov     rsi, rcx                                                       ; +0x30, 0x1401b4ca0\nmov     rcx, [rcx+5E8h]                                                ; +0x33, 0x1401b4ca3\nmov     rdi, [rcx+10C8h]                                               ; +0x3a, 0x1401b4caa\nmov     rax, [rcx]                                                     ; +0x41, 0x1401b4cb1\ncall    qword ptr [rax+1F8h]                                           ; +0x44, 0x1401b4cb4\nmov     rcx, [rax]                                                     ; +0x4a, 0x1401b4cba\nmov     rdx, [rcx+0A8h]                                                ; +0x4d, 0x1401b4cbd\nmov     rcx, rax                                                       ; +0x54, 0x1401b4cc4\ncall    rdx                                                            ; +0x57, 0x1401b4cc7\nmovaps  xmm6, xmm0                                                     ; +0x59, 0x1401b4cc9\nmov     rcx, [rsi+5E8h]                                                ; +0x5c, 0x1401b4ccc\nmov     rax, [rcx]                                                     ; +0x63, 0x1401b4cd3\ncall    qword ptr [rax+1F8h]                                           ; +0x66, 0x1401b4cd6\nmov     rcx, [rax]                                                     ; +0x6c, 0x1401b4cdc\nmov     rdx, [rcx+0A0h]                                                ; +0x6f, 0x1401b4cdf\nmovss   xmm7, cs:flt_140835080                                         ; +0x76, 0x1401b4ce6\nmovaps  xmm1, xmm7                                                     ; +0x7e, 0x1401b4cee\nmov     rcx, rax                                                       ; +0x81, 0x1401b4cf1\ncall    rdx                                                            ; +0x84, 0x1401b4cf4\nmov     r8, rbx                                                        ; +0x86, 0x1401b4cf6\nlea     rdx, [rsp+0B8h+var_90]                                         ; +0x89, 0x1401b4cf9\nmov     rcx, rdi                                                       ; +0x8e, 0x1401b4cfe\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x91, 0x1401b4d01\nmov     rax, [rdi]                                                     ; +0x97, 0x1401b4d07\nmovaps  xmm1, xmm8                                                     ; +0x9a, 0x1401b4d0a\nmov     rcx, rdi                                                       ; +0x9e, 0x1401b4d0e\ncall    qword ptr [rax+0A0h]                                           ; +0xa1, 0x1401b4d11\nlea     r8, [rsp+0B8h+var_90]                                          ; +0xa7, 0x1401b4d17\nlea     rdx, [rsp+0B8h+var_88]                                         ; +0xac, 0x1401b4d1c\nmov     rcx, rdi                                                       ; +0xb1, 0x1401b4d21\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xb4, 0x1401b4d24\nlea     r8, [rsp+0B8h+var_88]                                          ; +0xba, 0x1401b4d2a\nlea     rdx, [rsp+0B8h+var_80]                                         ; +0xbf, 0x1401b4d2f\nmov     rcx, rbx                                                       ; +0xc4, 0x1401b4d34\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xc7, 0x1401b4d37\nmov     rax, [rdi]                                                     ; +0xcd, 0x1401b4d3d\nmov     rcx, rdi                                                       ; +0xd0, 0x1401b4d40\ncall    qword ptr [rax+0C8h]                                           ; +0xd3, 0x1401b4d43\nlea     r8, [rsp+0B8h+var_80]                                          ; +0xd9, 0x1401b4d49\nlea     rdx, [rsp+0B8h+var_98]                                         ; +0xde, 0x1401b4d4e\nmov     rcx, rax                                                       ; +0xe3, 0x1401b4d53\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xe6, 0x1401b4d56\nmov     rax, [rdi]                                                     ; +0xec, 0x1401b4d5c\nlea     rdx, [rsp+0B8h+var_98]                                         ; +0xef, 0x1401b4d5f\nmov     rcx, rdi                                                       ; +0xf4, 0x1401b4d64\ncall    qword ptr [rax+0B8h]                                           ; +0xf7, 0x1401b4d67\nmovss   xmm1, cs:dword_140835FA8                                       ; +0xfd, 0x1401b4d6d\nmovaps  xmm2, xmm1                                                     ; +0x105, 0x1401b4d75\nmov     rcx, rsi                                                       ; +0x108, 0x1401b4d78\ncall    EditorUI__constrainGameLayerPosition                           ; +0x10b, 0x1401b4d7b\nmov     rcx, [rsi+5E8h]                                                ; +0x110, 0x1401b4d80\nmov     rax, [rcx]                                                     ; +0x117, 0x1401b4d87\ncall    qword ptr [rax+1F8h]                                           ; +0x11a, 0x1401b4d8a\nmov     rcx, [rax]                                                     ; +0x120, 0x1401b4d90\nmov     rdx, [rcx+0A0h]                                                ; +0x123, 0x1401b4d93\nmovaps  xmm1, xmm6                                                     ; +0x12a, 0x1401b4d9a\nmov     rcx, rax                                                       ; +0x12d, 0x1401b4d9d\ncall    rdx                                                            ; +0x130, 0x1401b4da0\nmov     rcx, rsi                                                       ; +0x132, 0x1401b4da2\ncall    EditorUI__updateSlider                                         ; +0x135, 0x1401b4da5\nmov     rcx, [rsi+328h]                                                ; +0x13a, 0x1401b4daa\ndivss   xmm7, xmm8                                                     ; +0x141, 0x1401b4db1\nmov     rax, [rcx]                                                     ; +0x146, 0x1401b4db6\nmovaps  xmm1, xmm7                                                     ; +0x149, 0x1401b4db9\ncall    qword ptr [rax+0A0h]                                           ; +0x14c, 0x1401b4dbc\nmovaps  xmm1, xmm7                                                     ; +0x152, 0x1401b4dc2\nmov     rcx, [rsi+348h]                                                ; +0x155, 0x1401b4dc5\ncall    GJTransformControl__scaleButtons                               ; +0x15c, 0x1401b4dcc\ncmp     qword ptr [rsi+640h], 0                                        ; +0x161, 0x1401b4dd1\njz      loc_1401B4F44                                                  ; +0x169, 0x1401b4dd9\nmov     rcx, cs:qword_14090BFD0                                        ; +0x16f, 0x1401b4ddf\ntest    rcx, rcx                                                       ; +0x176, 0x1401b4de6\njnz     short loc_1401B4E1D                                            ; +0x179, 0x1401b4de9\nmov     ecx, 6E8h; Size                                                ; +0x17b, 0x1401b4deb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x180, 0x1401b4df0\nmov     [rsp+0B8h+var_98], rax                                         ; +0x185, 0x1401b4df5\nmov     rcx, rax                                                       ; +0x18a, 0x1401b4dfa\ncall    GameManager__GameManager                                       ; +0x18d, 0x1401b4dfd\nnop                                                                    ; +0x192, 0x1401b4e02\nmov     cs:qword_14090BFD0, rax                                        ; +0x193, 0x1401b4e03\nmov     rcx, [rax]                                                     ; +0x19a, 0x1401b4e0a\nmov     rdx, [rcx+48h]                                                 ; +0x19d, 0x1401b4e0d\nmov     rcx, rax                                                       ; +0x1a1, 0x1401b4e11\ncall    rdx                                                            ; +0x1a4, 0x1401b4e14\nmov     rcx, cs:qword_14090BFD0                                        ; +0x1a6, 0x1401b4e16\nlea     rdx, a0195; \"0195\"                                             ; +0x1ad, 0x1401b4e1d\ncall    GameManager__getGameVariable                                   ; +0x1b4, 0x1401b4e24\ntest    al, al                                                         ; +0x1b9, 0x1401b4e29\njnz     loc_1401B4F44                                                  ; +0x1bb, 0x1401b4e2b\nxorps   xmm2, xmm2                                                     ; +0x1c1, 0x1401b4e31\ncvtss2sd xmm2, xmm8                                                    ; +0x1c4, 0x1401b4e34\nmovq    r8, xmm2                                                       ; +0x1c9, 0x1401b4e39\nlea     rdx, aZoom02f; \"Zoom: %.02f\"                                   ; +0x1ce, 0x1401b4e3e\nlea     rcx, [rsp+0B8h+Buffer]; Buffer                                 ; +0x1d5, 0x1401b4e45\ncall    sub_1401A8CE0                                                  ; +0x1da, 0x1401b4e4a\nmov     rcx, [rsi+640h]                                                ; +0x1df, 0x1401b4e4f\nadd     rcx, 168h                                                      ; +0x1e6, 0x1401b4e56\nmov     rax, [rcx]                                                     ; +0x1ed, 0x1401b4e5d\nlea     rdx, [rsp+0B8h+Buffer]                                         ; +0x1f0, 0x1401b4e60\ncall    qword ptr [rax]                                                ; +0x1f5, 0x1401b4e65\nmov     rcx, [rsi+640h]                                                ; +0x1f7, 0x1401b4e67\nmov     rax, [rcx]                                                     ; +0x1fe, 0x1401b4e6e\nmov     dl, 1                                                          ; +0x201, 0x1401b4e71\ncall    qword ptr [rax+150h]                                           ; +0x203, 0x1401b4e73\nmov     rcx, [rsi+640h]                                                ; +0x209, 0x1401b4e79\nadd     rcx, 170h                                                      ; +0x210, 0x1401b4e80\nmov     rax, [rcx]                                                     ; +0x217, 0x1401b4e87\ncall    qword ptr [rax+20h]                                            ; +0x21a, 0x1401b4e8a\ncmp     al, 0FFh                                                       ; +0x21d, 0x1401b4e8d\njnb     short loc_1401B4EDD                                            ; +0x21f, 0x1401b4e8f\nmov     edx, 81h                                                       ; +0x221, 0x1401b4e91\nmov     rcx, [rsi+640h]                                                ; +0x226, 0x1401b4e96\ncall    cs:?getActionByTag@CCNode@cocos2d@@QEAAPEAVCCAction@2@H@Z; cocos2d::CCNode::getActionByTag(int) ; +0x22d, 0x1401b4e9d\ntest    rax, rax                                                       ; +0x233, 0x1401b4ea3\njnz     short loc_1401B4EDD                                            ; +0x236, 0x1401b4ea6\nmov     dl, 0FFh                                                       ; +0x238, 0x1401b4ea8\nmovss   xmm0, cs:dword_140834E00                                       ; +0x23a, 0x1401b4eaa\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x242, 0x1401b4eb2\nmov     rbx, rax                                                       ; +0x248, 0x1401b4eb8\nmov     rcx, [rax]                                                     ; +0x24b, 0x1401b4ebb\nmov     r8, [rcx+40h]                                                  ; +0x24e, 0x1401b4ebe\nmov     edx, 81h                                                       ; +0x252, 0x1401b4ec2\nmov     rcx, rax                                                       ; +0x257, 0x1401b4ec7\ncall    r8                                                             ; +0x25a, 0x1401b4eca\nmov     rdx, rbx                                                       ; +0x25d, 0x1401b4ecd\nmov     rcx, [rsi+640h]                                                ; +0x260, 0x1401b4ed0\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x267, 0x1401b4ed7\nmov     edx, 82h                                                       ; +0x26d, 0x1401b4edd\nmov     rcx, [rsi+640h]                                                ; +0x272, 0x1401b4ee2\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x279, 0x1401b4ee9\nmovss   xmm0, cs:dword_14083502C                                       ; +0x27f, 0x1401b4eef\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x287, 0x1401b4ef7\nmov     rbx, rax                                                       ; +0x28d, 0x1401b4efd\nxor     edx, edx                                                       ; +0x290, 0x1401b4f00\nmovss   xmm0, cs:dword_140834EA0                                       ; +0x292, 0x1401b4f02\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x29a, 0x1401b4f0a\nxor     r8d, r8d                                                       ; +0x2a0, 0x1401b4f10\nmov     rdx, rax                                                       ; +0x2a3, 0x1401b4f13\nmov     rcx, rbx                                                       ; +0x2a6, 0x1401b4f16\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x2a9, 0x1401b4f19\nmov     rbx, rax                                                       ; +0x2af, 0x1401b4f1f\nmov     rcx, [rax]                                                     ; +0x2b2, 0x1401b4f22\nmov     r8, [rcx+40h]                                                  ; +0x2b5, 0x1401b4f25\nmov     edx, 82h                                                       ; +0x2b9, 0x1401b4f29\nmov     rcx, rax                                                       ; +0x2be, 0x1401b4f2e\ncall    r8                                                             ; +0x2c1, 0x1401b4f31\nmov     rdx, rbx                                                       ; +0x2c4, 0x1401b4f34\nmov     rcx, [rsi+640h]                                                ; +0x2c7, 0x1401b4f37\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x2ce, 0x1401b4f3e\nmov     rcx, [rsp+0B8h+var_58]                                         ; +0x2d4, 0x1401b4f44\nxor     rcx, rsp; StackCookie                                          ; +0x2d9, 0x1401b4f49\ncall    __security_check_cookie                                        ; +0x2dc, 0x1401b4f4c\nmovaps  xmm6, [rsp+0B8h+var_28]                                        ; +0x2e1, 0x1401b4f51\nmovaps  xmm7, [rsp+0B8h+var_38]                                        ; +0x2e9, 0x1401b4f59\nmovaps  xmm8, [rsp+0B8h+var_48]                                        ; +0x2f1, 0x1401b4f61\nadd     rsp, 0A0h                                                      ; +0x2f7, 0x1401b4f67\npop     rdi                                                            ; +0x2fe, 0x1401b4f6e\npop     rsi                                                            ; +0x2ff, 0x1401b4f6f\npop     rbx                                                            ; +0x300, 0x1401b4f70\nretn                                                                   ; +0x301, 0x1401b4f71", "xrefs": ["EditorUI::updateZoom_1 @ 0x1401b4c55", "EditorUI::ccTouchMoved @ 0x1401c07b7", "<???> @ 0x14091a144"], "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"}