{"type": "func", "start": 4299089608, "end": 4299090008, "name": "EditorUI::updateZoom", "pseudocode": "// \n// EditorUI::updateZoom from 0x1003ee6c8 to 0x1003ee858 (400 bytes)\n// \n// 4 xrefs:\n// > EditorUI::zoomIn @ 0x1003c7aac\n// > EditorUI::zoomOut @ 0x1003c7b08\n// > EditorUI::playtestStopped @ 0x1003ee6c4\n// > EditorUI::scrollWheel @ 0x1003fa828\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 __fastcall EditorUI::updateZoom(EditorUI *a1, float a2)\n{\n  cocos2d::CCDirector *v4; // x0\n  LevelEditorLayer *m_editorLayer; // x0\n  cocos2d::CCNode *m_objectLayer; // x20\n  __int64 v7; // x0\n  float v8; // s9\n  __int64 v9; // x0\n  __n128 v10; // q0\n  __n128 v11; // q1\n  __n128 v12; // q0\n  __n128 v13; // q1\n  double v14; // d0\n  float32x2_t *v15; // x0\n  double v16; // d0\n  __int64 v17; // x0\n  float v18; // s8\n  float v19; // s1\n  float32x2_t v20; // [xsp+8h] [xbp-58h] BYREF\n  float32x2_t v21; // [xsp+10h] [xbp-50h] BYREF\n  float32x2_t v22; // [xsp+18h] [xbp-48h] BYREF\n  cocos2d::CCPoint v23; // [xsp+20h] [xbp-40h] BYREF\n  float v24; // [xsp+28h] [xbp-38h]\n  float v25; // [xsp+2Ch] [xbp-34h]\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 = ((__int64 (__fastcall *)(LevelEditorLayer *))a1->m_editorLayer->getParent)(a1->m_editorLayer);\n  v10 = ((__n128 (__fastcall *)(__int64, float))*(_QWORD *)(*(_QWORD *)v9 + 160LL))(v9, 1.0);\n  v10.n128_f32[0] = v24 * 0.5;\n  v11.n128_f32[0] = v25 * 0.5;\n  sub_100022980(v10, v11, &v22);\n  LODWORD(v19) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(m_objectLayer, (const cocos2d::CCPoint *)&v22).y);\n  ((void (__fastcall *)(cocos2d::CCLayer *, float, float))a1->m_editorLayer->m_objectLayer->setScale)(\n    a1->m_editorLayer->m_objectLayer,\n    a2,\n    v19);\n  cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v23);\n  v12.n128_f32[0] = v24 * 0.5;\n  v13.n128_f32[0] = v25 * 0.5;\n  sub_100022980(v12, v13, &v20);\n  *(float32x2_t *)&v14 = sub_1000229F0(&v20, &v22, &v21);\n  v15 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCNode *, double))m_objectLayer->getPosition)(\n                         m_objectLayer,\n                         v14);\n  *(float32x2_t *)&v16 = sub_1000229DC(v15, &v21, &v20);\n  ((void (__fastcall *)(cocos2d::CCNode *, float32x2_t *, double))m_objectLayer->setPosition)(m_objectLayer, &v20, v16);\n  EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);\n  v17 = ((__int64 (__fastcall *)(LevelEditorLayer *))a1->m_editorLayer->getParent)(a1->m_editorLayer);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, v8);\n  EditorUI::updateSlider(a1);\n  v18 = 1.0 / a2;\n  ((void (__fastcall *)(GJRotationControl *, float))a1->m_rotationControl->setScale)(a1->m_rotationControl, v18);\n  GJTransformControl::scaleButtons(a1->m_transformControl, v18);\n}", "assembly": "; \n; EditorUI::updateZoom from 0x1003ee6c8 to 0x1003ee858 (400 bytes)\n; \n; 4 xrefs:\n; > EditorUI::zoomIn @ 0x1003c7aac\n; > EditorUI::zoomOut @ 0x1003c7b08\n; > EditorUI::playtestStopped @ 0x1003ee6c4\n; > EditorUI::scrollWheel @ 0x1003fa828\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x1003ee6c8\nSTP             D11, D10, [SP,#0x60+var_30]                            ; +0x4, 0x1003ee6cc\nSTP             D9, D8, [SP,#0x60+var_20]                              ; +0x8, 0x1003ee6d0\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0xc, 0x1003ee6d4\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x10, 0x1003ee6d8\nADD             X29, SP, #0x60                                         ; +0x14, 0x1003ee6dc\nFMOV            S8, S0                                                 ; +0x18, 0x1003ee6e0\nMOV             X19, X0                                                ; +0x1c, 0x1003ee6e4\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x20, 0x1003ee6e8\nADD             X8, SP, #0x60+var_38                                   ; +0x24, 0x1003ee6ec\nBL              cocos2d__CCDirector__getWinSize                        ; +0x28, 0x1003ee6f0\nLDR             X0, [X19,#0x4E8]                                       ; +0x2c, 0x1003ee6f4\nLDR             X20, [X0,#0xEE0]                                       ; +0x30, 0x1003ee6f8\nLDR             X8, [X0]                                               ; +0x34, 0x1003ee6fc\nLDR             X8, [X8,#0x1F0]                                        ; +0x38, 0x1003ee700\nBLR             X8                                                     ; +0x3c, 0x1003ee704\nLDR             X8, [X0]                                               ; +0x40, 0x1003ee708\nLDR             X8, [X8,#0xA8]                                         ; +0x44, 0x1003ee70c\nBLR             X8                                                     ; +0x48, 0x1003ee710\nFMOV            S9, S0                                                 ; +0x4c, 0x1003ee714\nLDR             X0, [X19,#0x4E8]                                       ; +0x50, 0x1003ee718\nLDR             X8, [X0]                                               ; +0x54, 0x1003ee71c\nLDR             X8, [X8,#0x1F0]                                        ; +0x58, 0x1003ee720\nBLR             X8                                                     ; +0x5c, 0x1003ee724\nLDR             X8, [X0]                                               ; +0x60, 0x1003ee728\nLDR             X8, [X8,#0xA0]                                         ; +0x64, 0x1003ee72c\nFMOV            S10, #1.0                                              ; +0x68, 0x1003ee730\nFMOV            S0, #1.0                                               ; +0x6c, 0x1003ee734\nBLR             X8                                                     ; +0x70, 0x1003ee738\nFMOV            S11, #0.5                                              ; +0x74, 0x1003ee73c\nLDP             S0, S1, [SP,#0x60+var_38]                              ; +0x78, 0x1003ee740\nFMUL            S0, S0, S11                                            ; +0x7c, 0x1003ee744\nFMUL            S1, S1, S11                                            ; +0x80, 0x1003ee748\nADD             X0, SP, #0x60+var_48                                   ; +0x84, 0x1003ee74c\nBL              sub_100022980                                          ; +0x88, 0x1003ee750\nADD             X8, SP, #0x60+var_40                                   ; +0x8c, 0x1003ee754\nADD             X1, SP, #0x60+var_48                                   ; +0x90, 0x1003ee758\nMOV             X0, X20                                                ; +0x94, 0x1003ee75c\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x98, 0x1003ee760\nLDR             X8, [X19,#0x4E8]                                       ; +0x9c, 0x1003ee764\nLDR             X0, [X8,#0xEE0]                                        ; +0xa0, 0x1003ee768\nLDR             X8, [X0]                                               ; +0xa4, 0x1003ee76c\nLDR             X8, [X8,#0xA0]                                         ; +0xa8, 0x1003ee770\nFMOV            S0, S8                                                 ; +0xac, 0x1003ee774\nBLR             X8                                                     ; +0xb0, 0x1003ee778\nADD             X8, SP, #0x60+var_48                                   ; +0xb4, 0x1003ee77c\nADD             X1, SP, #0x60+var_40                                   ; +0xb8, 0x1003ee780\nMOV             X0, X20                                                ; +0xbc, 0x1003ee784\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0xc0, 0x1003ee788\nLDP             S0, S1, [SP,#0x60+var_38]                              ; +0xc4, 0x1003ee78c\nFMUL            S0, S0, S11                                            ; +0xc8, 0x1003ee790\nFMUL            S1, S1, S11                                            ; +0xcc, 0x1003ee794\nADD             X0, SP, #0x60+var_58                                   ; +0xd0, 0x1003ee798\nBL              sub_100022980                                          ; +0xd4, 0x1003ee79c\nADD             X8, SP, #0x60+var_50                                   ; +0xd8, 0x1003ee7a0\nADD             X0, SP, #0x60+var_58                                   ; +0xdc, 0x1003ee7a4\nADD             X1, SP, #0x60+var_48                                   ; +0xe0, 0x1003ee7a8\nBL              sub_1000229F0                                          ; +0xe4, 0x1003ee7ac\nLDR             X8, [X20]                                              ; +0xe8, 0x1003ee7b0\nLDR             X8, [X8,#0xC0]                                         ; +0xec, 0x1003ee7b4\nMOV             X0, X20                                                ; +0xf0, 0x1003ee7b8\nBLR             X8                                                     ; +0xf4, 0x1003ee7bc\nADD             X8, SP, #0x60+var_58                                   ; +0xf8, 0x1003ee7c0\nADD             X1, SP, #0x60+var_50                                   ; +0xfc, 0x1003ee7c4\nBL              sub_1000229DC                                          ; +0x100, 0x1003ee7c8\nLDR             X8, [X20]                                              ; +0x104, 0x1003ee7cc\nLDR             X8, [X8,#0xB8]                                         ; +0x108, 0x1003ee7d0\nADD             X1, SP, #0x60+var_58                                   ; +0x10c, 0x1003ee7d4\nMOV             X0, X20                                                ; +0x110, 0x1003ee7d8\nBLR             X8                                                     ; +0x114, 0x1003ee7dc\nMOV             W8, #0xC2C80000                                        ; +0x118, 0x1003ee7e0\nFMOV            S0, W8                                                 ; +0x11c, 0x1003ee7e4\nMOV             X0, X19                                                ; +0x120, 0x1003ee7e8\nFMOV            S1, S0                                                 ; +0x124, 0x1003ee7ec\nBL              EditorUI__constrainGameLayerPosition                   ; +0x128, 0x1003ee7f0\nLDR             X0, [X19,#0x4E8]                                       ; +0x12c, 0x1003ee7f4\nLDR             X8, [X0]                                               ; +0x130, 0x1003ee7f8\nLDR             X8, [X8,#0x1F0]                                        ; +0x134, 0x1003ee7fc\nBLR             X8                                                     ; +0x138, 0x1003ee800\nLDR             X8, [X0]                                               ; +0x13c, 0x1003ee804\nLDR             X8, [X8,#0xA0]                                         ; +0x140, 0x1003ee808\nFMOV            S0, S9                                                 ; +0x144, 0x1003ee80c\nBLR             X8                                                     ; +0x148, 0x1003ee810\nMOV             X0, X19                                                ; +0x14c, 0x1003ee814\nBL              EditorUI__updateSlider                                 ; +0x150, 0x1003ee818\nLDR             X0, [X19,#0x2A0]                                       ; +0x154, 0x1003ee81c\nFDIV            S8, S10, S8                                            ; +0x158, 0x1003ee820\nLDR             X8, [X0]                                               ; +0x15c, 0x1003ee824\nLDR             X8, [X8,#0xA0]                                         ; +0x160, 0x1003ee828\nFMOV            S0, S8                                                 ; +0x164, 0x1003ee82c\nBLR             X8                                                     ; +0x168, 0x1003ee830\nLDR             X0, [X19,#0x2C0]                                       ; +0x16c, 0x1003ee834\nFMOV            S0, S8                                                 ; +0x170, 0x1003ee838\nBL              GJTransformControl__scaleButtons                       ; +0x174, 0x1003ee83c\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x178, 0x1003ee840\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x17c, 0x1003ee844\nLDP             D9, D8, [SP,#0x60+var_20]                              ; +0x180, 0x1003ee848\nLDP             D11, D10, [SP,#0x60+var_30]                            ; +0x184, 0x1003ee84c\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x188, 0x1003ee850\nRET                                                                    ; +0x18c, 0x1003ee854", "xrefs": ["EditorUI::zoomIn @ 0x1003c7aac", "EditorUI::zoomOut @ 0x1003c7b08", "EditorUI::playtestStopped @ 0x1003ee6c4", "EditorUI::scrollWheel @ 0x1003fa828"], "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"}