{"type": "func", "start": 6905800, "end": 6906284, "name": "EditorUI::updateZoom", "pseudocode": "// \n// EditorUI::updateZoom from 0x695fc8 to 0x6961ac (484 bytes)\n// \n// 4 xrefs:\n// > EditorUI::playtestStopped @ 0x696278\n// > EditorUI::zoomGameLayer @ 0x6964cc\n// > EditorUI::zoomGameLayer @ 0x6964e8\n// > <???> @ 0xaa358\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 *v4; // x0\n  LevelEditorLayer *m_editorLayer; // x0\n  cocos2d::CCNode *m_objectLayer; // x21\n  __int64 v7; // x0\n  float v8; // s11\n  cocos2d::CCNode *v9; // x0\n  __int64 v10; // x0\n  cocos2d::CCNode *v11; // x0\n  float v12; // s1\n  float v13; // [xsp+70h] [xbp+70h]\n  float v14; // [xsp+74h] [xbp+74h]\n  cocos2d::CCPoint v15; // [xsp+78h] [xbp+78h] BYREF\n  _BYTE v16[8]; // [xsp+80h] [xbp+80h] BYREF\n  __int64 v17; // [xsp+88h] [xbp+88h] BYREF\n  cocos2d::CCPoint v18; // [xsp+90h] [xbp+90h] BYREF\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  WinSize = cocos2d::CCDirector::getWinSize(v4);\n  m_editorLayer = a1->m_editorLayer;\n  m_objectLayer = m_editorLayer->m_objectLayer;\n  v7 = ((__int64 (__fastcall *)(LevelEditorLayer *, float, float))m_editorLayer->getParent)(\n         m_editorLayer,\n         WinSize.width,\n         WinSize.height);\n  v8 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 168LL))(v7);\n  v9 = a1->m_editorLayer->getParent(a1->m_editorLayer);\n  v9->setScale(v9, 1.0);\n  cocos2d::CCPoint::CCPoint(&v18, v13 * 0.5, v14 * 0.5);\n  LODWORD(v12) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v18).y);\n  ((void (__fastcall *)(cocos2d::CCLayer *, float, float))a1->m_editorLayer->m_objectLayer->setScale)(\n    a1->m_editorLayer->m_objectLayer,\n    a2,\n    v12);\n  cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v15);\n  cocos2d::CCPoint::CCPoint(&v18, v13 * 0.5, v14 * 0.5);\n  cocos2d::CCPoint::operator-(&v17, &v18, v16);\n  v10 = (__int64)m_objectLayer->getPosition(m_objectLayer);\n  cocos2d::CCPoint::operator+(&v18, v10, &v17);\n  m_objectLayer->setPosition(m_objectLayer, &v18);\n  EditorUI::constrainGameLayerPosition(a1);\n  v11 = a1->m_editorLayer->getParent(a1->m_editorLayer);\n  v11->setScale(v11, v8);\n  EditorUI::updateSlider(a1);\n  a1->m_rotationControl->setScale(a1->m_rotationControl, 1.0 / a2);\n  GJTransformControl::scaleButtons(a1->m_transformControl, 1.0 / a2);\n}", "assembly": "; \n; EditorUI::updateZoom from 0x695fc8 to 0x6961ac (484 bytes)\n; \n; 4 xrefs:\n; > EditorUI::playtestStopped @ 0x696278\n; > EditorUI::zoomGameLayer @ 0x6964cc\n; > EditorUI::zoomGameLayer @ 0x6964e8\n; > <???> @ 0xaa358\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\nSTP             X29, X30, [SP,#var_A0]!                                ; +0x0, 0x695fc8\nMOV             X29, SP                                                ; +0x4, 0x695fcc\nSTP             X21, X22, [SP,#0xA0+var_80]                            ; +0x8, 0x695fd0\nSTP             D10, D11, [SP,#0xA0+var_48]                            ; +0xc, 0x695fd4\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x695fd8\nSTP             D8, D9, [SP,#0xA0+var_58]                              ; +0x14, 0x695fdc\nFMOV            S10, S0                                                ; +0x18, 0x695fe0\nSTR             X25, [SP,#0xA0+var_60]                                 ; +0x1c, 0x695fe4\nSTP             X19, X20, [SP,#0xA0+var_90]                            ; +0x20, 0x695fe8\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x695fec\nMOV             X19, X0                                                ; +0x28, 0x695ff0\nFMOV            S9, #0.5                                               ; +0x2c, 0x695ff4\nADD             X20, X29, #0xA0+var_10                                 ; +0x30, 0x695ff8\nFMOV            S8, #1.0                                               ; +0x34, 0x695ffc\nADD             X25, X29, #0xA0+var_28                                 ; +0x38, 0x696000\nLDR             X0, [X22]; this                                        ; +0x3c, 0x696004\nSTP             X23, X24, [SP,#0xA0+var_70]                            ; +0x40, 0x696008\nSTR             X0, [X29,#0xA0+var_8]                                  ; +0x44, 0x69600c\nADD             X24, X29, #0xA0+var_20                                 ; +0x48, 0x696010\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4c, 0x696014\nADD             X23, X29, #0xA0+var_18                                 ; +0x50, 0x696018\nADD             X8, X29, #0xA0+var_30                                  ; +0x54, 0x69601c\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x58, 0x696020\nLDR             X1, [X19,#0x4F8]                                       ; +0x5c, 0x696024\nMOV             X0, X1                                                 ; +0x60, 0x696028\nLDR             X2, [X1]                                               ; +0x64, 0x69602c\nLDR             X21, [X1,#0x1030]                                      ; +0x68, 0x696030\nLDR             X1, [X2,#0x1F0]                                        ; +0x6c, 0x696034\nBLR             X1                                                     ; +0x70, 0x696038\nLDR             X1, [X0]                                               ; +0x74, 0x69603c\nLDR             X1, [X1,#0xA8]                                         ; +0x78, 0x696040\nBLR             X1                                                     ; +0x7c, 0x696044\nLDR             X1, [X19,#0x4F8]                                       ; +0x80, 0x696048\nFMOV            S11, S0                                                ; +0x84, 0x69604c\nMOV             X0, X1                                                 ; +0x88, 0x696050\nLDR             X1, [X1]                                               ; +0x8c, 0x696054\nLDR             X1, [X1,#0x1F0]                                        ; +0x90, 0x696058\nBLR             X1                                                     ; +0x94, 0x69605c\nLDR             X1, [X0]                                               ; +0x98, 0x696060\nFMOV            S0, S8                                                 ; +0x9c, 0x696064\nLDR             X1, [X1,#0xA0]                                         ; +0xa0, 0x696068\nBLR             X1                                                     ; +0xa4, 0x69606c\nLDR             S0, [X29,#0xA0+var_30]                                 ; +0xa8, 0x696070\nMOV             X0, X20; this                                          ; +0xac, 0x696074\nLDR             S1, [X29,#0xA0+var_2C]                                 ; +0xb0, 0x696078\nFMUL            S0, S0, S9; float                                      ; +0xb4, 0x69607c\nFMUL            S1, S1, S9; float                                      ; +0xb8, 0x696080\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xbc, 0x696084\nMOV             X8, X25                                                ; +0xc0, 0x696088\nMOV             X1, X20; cocos2d::CCPoint *                            ; +0xc4, 0x69608c\nMOV             X0, X21; this                                          ; +0xc8, 0x696090\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xcc, 0x696094\nLDR             X0, [X19,#0x4F8]                                       ; +0xd0, 0x696098\nFMOV            S0, S10                                                ; +0xd4, 0x69609c\nLDR             X1, [X0,#0x1030]                                       ; +0xd8, 0x6960a0\nMOV             X0, X1                                                 ; +0xdc, 0x6960a4\nLDR             X1, [X1]                                               ; +0xe0, 0x6960a8\nLDR             X1, [X1,#0xA0]                                         ; +0xe4, 0x6960ac\nBLR             X1                                                     ; +0xe8, 0x6960b0\nMOV             X8, X24                                                ; +0xec, 0x6960b4\nMOV             X1, X25; cocos2d::CCPoint *                            ; +0xf0, 0x6960b8\nMOV             X0, X21; this                                          ; +0xf4, 0x6960bc\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0xf8, 0x6960c0\nLDR             S0, [X29,#0xA0+var_30]                                 ; +0xfc, 0x6960c4\nMOV             X0, X20; this                                          ; +0x100, 0x6960c8\nLDR             S1, [X29,#0xA0+var_2C]                                 ; +0x104, 0x6960cc\nFMUL            S0, S0, S9; float                                      ; +0x108, 0x6960d0\nFMUL            S1, S1, S9; float                                      ; +0x10c, 0x6960d4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x110, 0x6960d8\nMOV             X8, X23                                                ; +0x114, 0x6960dc\nMOV             X0, X20                                                ; +0x118, 0x6960e0\nMOV             X1, X24                                                ; +0x11c, 0x6960e4\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x120, 0x6960e8\nLDR             X1, [X21]                                              ; +0x124, 0x6960ec\nMOV             X0, X21                                                ; +0x128, 0x6960f0\nLDR             X1, [X1,#0xC0]                                         ; +0x12c, 0x6960f4\nBLR             X1                                                     ; +0x130, 0x6960f8\nMOV             X8, X20                                                ; +0x134, 0x6960fc\nMOV             X1, X23                                                ; +0x138, 0x696100\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x13c, 0x696104\nLDR             X2, [X21]                                              ; +0x140, 0x696108\nMOV             X1, X20                                                ; +0x144, 0x69610c\nMOV             X0, X21                                                ; +0x148, 0x696110\nLDR             X2, [X2,#0xB8]                                         ; +0x14c, 0x696114\nBLR             X2                                                     ; +0x150, 0x696118\nMOV             X0, X19; this                                          ; +0x154, 0x69611c\nBL              _ZN8EditorUI26constrainGameLayerPositionEv; EditorUI::constrainGameLayerPosition(void) ; +0x158, 0x696120\nLDR             X1, [X19,#0x4F8]                                       ; +0x15c, 0x696124\nMOV             X0, X1                                                 ; +0x160, 0x696128\nLDR             X1, [X1]                                               ; +0x164, 0x69612c\nLDR             X1, [X1,#0x1F0]                                        ; +0x168, 0x696130\nBLR             X1                                                     ; +0x16c, 0x696134\nLDR             X1, [X0]                                               ; +0x170, 0x696138\nFMOV            S0, S11                                                ; +0x174, 0x69613c\nLDR             X1, [X1,#0xA0]                                         ; +0x178, 0x696140\nBLR             X1                                                     ; +0x17c, 0x696144\nMOV             X0, X19; this                                          ; +0x180, 0x696148\nBL              _ZN8EditorUI12updateSliderEv; EditorUI::updateSlider(void) ; +0x184, 0x69614c\nFDIV            S8, S8, S10                                            ; +0x188, 0x696150\nLDR             X1, [X19,#0x2B0]                                       ; +0x18c, 0x696154\nMOV             X0, X1                                                 ; +0x190, 0x696158\nLDR             X1, [X1]                                               ; +0x194, 0x69615c\nLDR             X1, [X1,#0xA0]                                         ; +0x198, 0x696160\nFMOV            S0, S8                                                 ; +0x19c, 0x696164\nBLR             X1                                                     ; +0x1a0, 0x696168\nFMOV            S0, S8; float                                          ; +0x1a4, 0x69616c\nLDR             X0, [X19,#0x2D0]; this                                 ; +0x1a8, 0x696170\nBL              _ZN18GJTransformControl12scaleButtonsEf; GJTransformControl::scaleButtons(float) ; +0x1ac, 0x696174\nLDR             X1, [X29,#0xA0+var_8]                                  ; +0x1b0, 0x696178\nLDR             X0, [X22]                                              ; +0x1b4, 0x69617c\nCMP             X1, X0                                                 ; +0x1b8, 0x696180\nB.NE            loc_6961A8                                             ; +0x1bc, 0x696184\nLDP             X19, X20, [SP,#0xA0+var_90]                            ; +0x1c0, 0x696188\nLDP             D8, D9, [SP,#0xA0+var_58]                              ; +0x1c4, 0x69618c\nLDP             X21, X22, [SP,#0xA0+var_80]                            ; +0x1c8, 0x696190\nLDP             D10, D11, [SP,#0xA0+var_48]                            ; +0x1cc, 0x696194\nLDP             X23, X24, [SP,#0xA0+var_70]                            ; +0x1d0, 0x696198\nLDR             X25, [SP,#0xA0+var_60]                                 ; +0x1d4, 0x69619c\nLDP             X29, X30, [SP+0xA0+var_A0],#0xA0                       ; +0x1d8, 0x6961a0\nRET                                                                    ; +0x1dc, 0x6961a4\nBL              .__stack_chk_fail                                      ; +0x1e0, 0x6961a8", "xrefs": ["EditorUI::playtestStopped @ 0x696278", "EditorUI::zoomGameLayer @ 0x6964cc", "EditorUI::zoomGameLayer @ 0x6964e8", "<???> @ 0xaa358"], "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"}