{"type": "func", "start": 5369833184, "end": 5369833690, "name": "EditorUI::updateZoom", "pseudocode": "// \n// EditorUI::updateZoom from 0x1401126e0 to 0x1401128da (506 bytes)\n// \n// 8 xrefs:\n// > EditorUI::playtestStopped @ 0x140112638\n// > EditorUI::zoomIn @ 0x140112684\n// > EditorUI::zoomOut @ 0x1401126d8\n// > EditorUI::keyDown @ 0x14012594f\n// > EditorUI::keyDown @ 0x1401259e3\n// > EditorUI::scrollWheel @ 0x1401268a2\n// > EditorUI::scrollWheel @ 0x1401268fa\n// > <???> @ 0x1406c9030\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 EditorUI::updateZoom(EditorUI *a1, float a2)\n{\n  cocos2d::CCDirector *v3; // rax\n  LevelEditorLayer *m_editorLayer; // rcx\n  cocos2d::CCNode *m_objectLayer; // rbx\n  __int64 v6; // rax\n  cocos2d::CCNode *v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rax\n  cocos2d::CCNode *v10; // rax\n  _BYTE v11[8]; // [rsp+20h] [rbp-68h] BYREF\n  cocos2d::CCPoint v12; // [rsp+28h] [rbp-60h] BYREF\n  cocos2d::CCPoint v13[2]; // [rsp+30h] [rbp-58h] BYREF\n  float v14; // [rsp+90h] [rbp+8h]\n  float v15; // [rsp+94h] [rbp+Ch]\n  struct cocos2d::CCPoint v16; // [rsp+A0h] [rbp+18h] BYREF\n  struct cocos2d::CCPoint v17; // [rsp+A8h] [rbp+20h] BYREF\n\n  v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v3);\n  m_editorLayer = a1->m_editorLayer;\n  m_objectLayer = m_editorLayer->m_objectLayer;\n  v6 = (__int64)m_editorLayer->getParent(m_editorLayer);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 168LL))(v6);\n  v7 = a1->m_editorLayer->getParent(a1->m_editorLayer);\n  ((void (__fastcall *)(cocos2d::CCNode *))v7->setScale_0)(v7);\n  cocos2d::CCPoint::CCPoint(v13, v14 * 0.5, v15 * 0.5);\n  cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v16);\n  ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->setScale_0)(a1->m_editorLayer->m_objectLayer);\n  cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v17);\n  cocos2d::CCPoint::CCPoint(v13, v14 * 0.5, v15 * 0.5);\n  cocos2d::CCPoint::operator-(v8, v11, &v17);\n  v9 = (__int64)m_objectLayer->getPosition_0(m_objectLayer);\n  cocos2d::CCPoint::operator+(v9, &v12);\n  m_objectLayer->setPosition_0(m_objectLayer, &v12);\n  EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);\n  v10 = a1->m_editorLayer->getParent(a1->m_editorLayer);\n  ((void (__fastcall *)(cocos2d::CCNode *))v10->setScale_0)(v10);\n  EditorUI::updateSlider(a1);\n  ((void (__fastcall *)(GJRotationControl *))a1->m_rotationControl->setScale_0)(a1->m_rotationControl);\n  GJTransformControl::scaleButtons(a1->m_transformControl, 1.0 / a2);\n}", "assembly": "; \n; EditorUI::updateZoom from 0x1401126e0 to 0x1401128da (506 bytes)\n; \n; 8 xrefs:\n; > EditorUI::playtestStopped @ 0x140112638\n; > EditorUI::zoomIn @ 0x140112684\n; > EditorUI::zoomOut @ 0x1401126d8\n; > EditorUI::keyDown @ 0x14012594f\n; > EditorUI::keyDown @ 0x1401259e3\n; > EditorUI::scrollWheel @ 0x1401268a2\n; > EditorUI::scrollWheel @ 0x1401268fa\n; > <???> @ 0x1406c9030\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, 0x1401126e0\npush    rdi                                                            ; +0x5, 0x1401126e5\nsub     rsp, 80h                                                       ; +0x6, 0x1401126e6\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0xd, 0x1401126ed\nmov     rdi, rcx                                                       ; +0x12, 0x1401126f2\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x15, 0x1401126f5\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x1a, 0x1401126fa\nmovaps  [rsp+88h+var_48], xmm9                                         ; +0x20, 0x140112700\nmovaps  xmm9, xmm1                                                     ; +0x26, 0x140112706\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2a, 0x14011270a\nmov     rcx, rax                                                       ; +0x30, 0x140112710\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x33, 0x140112713\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x3b, 0x14011271b\nmov     rcx, [rdi+500h]                                                ; +0x41, 0x140112721\nmov     rax, [rcx]                                                     ; +0x48, 0x140112728\nmov     rbx, [rcx+0FE8h]                                               ; +0x4b, 0x14011272b\ncall    qword ptr [rax+1E8h]                                           ; +0x52, 0x140112732\nmov     rcx, rax                                                       ; +0x58, 0x140112738\nmov     rdx, [rax]                                                     ; +0x5b, 0x14011273b\ncall    qword ptr [rdx+0A8h]                                           ; +0x5e, 0x14011273e\nmov     rcx, [rdi+500h]                                                ; +0x64, 0x140112744\nmovaps  xmm7, xmm0                                                     ; +0x6b, 0x14011274b\nmov     rax, [rcx]                                                     ; +0x6e, 0x14011274e\ncall    qword ptr [rax+1E8h]                                           ; +0x71, 0x140112751\nmovss   xmm8, cs:flt_140622C24                                         ; +0x77, 0x140112757\nmov     rcx, rax                                                       ; +0x80, 0x140112760\nmovaps  xmm1, xmm8                                                     ; +0x83, 0x140112763\nmov     rdx, [rax]                                                     ; +0x87, 0x140112767\ncall    qword ptr [rdx+0A0h]                                           ; +0x8a, 0x14011276a\nmovss   xmm2, [rsp+88h+arg_4]                                          ; +0x90, 0x140112770\nlea     rcx, [rsp+88h+var_58]                                          ; +0x99, 0x140112779\nmovss   xmm1, [rsp+88h+arg_0]                                          ; +0x9e, 0x14011277e\nmovss   xmm6, cs:dword_140622B08                                       ; +0xa7, 0x140112787\nmulss   xmm2, xmm6                                                     ; +0xaf, 0x14011278f\nmulss   xmm1, xmm6                                                     ; +0xb3, 0x140112793\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb7, 0x140112797\nlea     rdx, [rsp+88h+arg_10]                                          ; +0xbd, 0x14011279d\nmov     rcx, rbx                                                       ; +0xc5, 0x1401127a5\nmov     r8, rax                                                        ; +0xc8, 0x1401127a8\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xcb, 0x1401127ab\nmov     rax, [rdi+500h]                                                ; +0xd1, 0x1401127b1\nmovaps  xmm1, xmm9                                                     ; +0xd8, 0x1401127b8\nmov     rcx, [rax+0FE8h]                                               ; +0xdc, 0x1401127bc\nmov     rax, [rcx]                                                     ; +0xe3, 0x1401127c3\ncall    qword ptr [rax+0A0h]                                           ; +0xe6, 0x1401127c6\nlea     r8, [rsp+88h+arg_10]                                           ; +0xec, 0x1401127cc\nmov     rcx, rbx                                                       ; +0xf4, 0x1401127d4\nlea     rdx, [rsp+88h+arg_18]                                          ; +0xf7, 0x1401127d7\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xff, 0x1401127df\nmovss   xmm2, [rsp+88h+arg_4]                                          ; +0x105, 0x1401127e5\nlea     rcx, [rsp+88h+var_58]                                          ; +0x10e, 0x1401127ee\nmovss   xmm1, [rsp+88h+arg_0]                                          ; +0x113, 0x1401127f3\nmulss   xmm2, xmm6                                                     ; +0x11c, 0x1401127fc\nmulss   xmm1, xmm6                                                     ; +0x120, 0x140112800\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x124, 0x140112804\nmov     rcx, rax                                                       ; +0x12a, 0x14011280a\nlea     r8, [rsp+88h+arg_18]                                           ; +0x12d, 0x14011280d\nlea     rdx, [rsp+88h+var_68]                                          ; +0x135, 0x140112815\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x13a, 0x14011281a\nmov     rax, [rbx]                                                     ; +0x140, 0x140112820\nmov     rcx, rbx                                                       ; +0x143, 0x140112823\ncall    qword ptr [rax+0C8h]                                           ; +0x146, 0x140112826\nmov     rcx, rax                                                       ; +0x14c, 0x14011282c\nlea     r8, [rsp+88h+var_68]                                           ; +0x14f, 0x14011282f\nlea     rdx, [rsp+88h+var_60]                                          ; +0x154, 0x140112834\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x159, 0x140112839\nmov     rax, [rbx]                                                     ; +0x15f, 0x14011283f\nlea     rdx, [rsp+88h+var_60]                                          ; +0x162, 0x140112842\nmov     rcx, rbx                                                       ; +0x167, 0x140112847\ncall    qword ptr [rax+0B8h]                                           ; +0x16a, 0x14011284a\nmovss   xmm1, cs:dword_1406239E8                                       ; +0x170, 0x140112850\nmov     rcx, rdi                                                       ; +0x178, 0x140112858\nmovaps  xmm2, xmm1                                                     ; +0x17b, 0x14011285b\ncall    EditorUI__constrainGameLayerPosition                           ; +0x17e, 0x14011285e\nmov     rcx, [rdi+500h]                                                ; +0x183, 0x140112863\nmov     rax, [rcx]                                                     ; +0x18a, 0x14011286a\ncall    qword ptr [rax+1E8h]                                           ; +0x18d, 0x14011286d\nmovaps  xmm1, xmm7                                                     ; +0x193, 0x140112873\nmov     rcx, rax                                                       ; +0x196, 0x140112876\nmov     rdx, [rax]                                                     ; +0x199, 0x140112879\ncall    qword ptr [rdx+0A0h]                                           ; +0x19c, 0x14011287c\nmov     rcx, rdi                                                       ; +0x1a2, 0x140112882\ncall    EditorUI__updateSlider                                         ; +0x1a5, 0x140112885\nmov     rcx, [rdi+2B8h]                                                ; +0x1aa, 0x14011288a\nmov     rax, [rcx]                                                     ; +0x1b1, 0x140112891\ndivss   xmm8, xmm9                                                     ; +0x1b4, 0x140112894\nmovaps  xmm1, xmm8                                                     ; +0x1b9, 0x140112899\ncall    qword ptr [rax+0A0h]                                           ; +0x1bd, 0x14011289d\nmov     rcx, [rdi+2D8h]                                                ; +0x1c3, 0x1401128a3\nmovaps  xmm1, xmm8                                                     ; +0x1ca, 0x1401128aa\ncall    GJTransformControl__scaleButtons                               ; +0x1ce, 0x1401128ae\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x1d3, 0x1401128b3\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x1db, 0x1401128bb\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x1e0, 0x1401128c0\nmovaps  xmm8, [rsp+88h+var_38]                                         ; +0x1e5, 0x1401128c5\nmovaps  xmm9, [rsp+88h+var_48]                                         ; +0x1eb, 0x1401128cb\nadd     rsp, 80h                                                       ; +0x1f1, 0x1401128d1\npop     rdi                                                            ; +0x1f8, 0x1401128d8\nretn                                                                   ; +0x1f9, 0x1401128d9", "xrefs": ["EditorUI::playtestStopped @ 0x140112638", "EditorUI::zoomIn @ 0x140112684", "EditorUI::zoomOut @ 0x1401126d8", "EditorUI::keyDown @ 0x14012594f", "EditorUI::keyDown @ 0x1401259e3", "EditorUI::scrollWheel @ 0x1401268a2", "EditorUI::scrollWheel @ 0x1401268fa", "<???> @ 0x1406c9030"], "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"}