{"type": "func", "start": 4299061200, "end": 4299061324, "name": "EditorUI::moveGamelayer", "pseudocode": "// \n// EditorUI::moveGamelayer from 0x1003e77d0 to 0x1003e784c (124 bytes)\n// \n// 2 xrefs:\n// > EditorUI::keyDown @ 0x1003fa118\n// > EditorUI::scrollWheel @ 0x1003fa7ec\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall EditorUI::moveGamelayer(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  float32x2_t *v2; // x1\n  float32x2_t *v3; // x19\n  cocos2d::CCLayer *m_objectLayer; // x21\n  float32x2_t *v6; // x0\n  double v7; // d0\n  float32x2_t v8; // [xsp+8h] [xbp-28h] BYREF\n\n  v3 = v2;\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  v6 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, __n128, __n128))m_objectLayer->getPosition)(\n                        m_objectLayer,\n                        *(__n128 *)&a2.x,\n                        *(__n128 *)&a2.y);\n  *(float32x2_t *)&v7 = sub_1000229DC(v6, v3, &v8);\n  ((void (__fastcall *)(cocos2d::CCLayer *, float32x2_t *, double))m_objectLayer->setPosition)(m_objectLayer, &v8, v7);\n  EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);\n}", "assembly": "; \n; EditorUI::moveGamelayer from 0x1003e77d0 to 0x1003e784c (124 bytes)\n; \n; 2 xrefs:\n; > EditorUI::keyDown @ 0x1003fa118\n; > EditorUI::scrollWheel @ 0x1003fa7ec\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, #0x40                                          ; +0x0, 0x1003e77d0\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003e77d4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003e77d8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003e77dc\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003e77e0\nMOV             X19, X1                                                ; +0x14, 0x1003e77e4\nMOV             X20, X0                                                ; +0x18, 0x1003e77e8\nLDR             X8, [X0,#0x4E8]                                        ; +0x1c, 0x1003e77ec\nLDR             X21, [X8,#0xEE0]                                       ; +0x20, 0x1003e77f0\nLDR             X8, [X21]                                              ; +0x24, 0x1003e77f4\nLDR             X8, [X8,#0xC0]                                         ; +0x28, 0x1003e77f8\nMOV             X0, X21                                                ; +0x2c, 0x1003e77fc\nBLR             X8                                                     ; +0x30, 0x1003e7800\nADD             X8, SP, #0x30+var_28                                   ; +0x34, 0x1003e7804\nMOV             X1, X19                                                ; +0x38, 0x1003e7808\nBL              sub_1000229DC                                          ; +0x3c, 0x1003e780c\nLDR             X8, [X21]                                              ; +0x40, 0x1003e7810\nLDR             X8, [X8,#0xB8]                                         ; +0x44, 0x1003e7814\nADD             X1, SP, #0x30+var_28                                   ; +0x48, 0x1003e7818\nMOV             X0, X21                                                ; +0x4c, 0x1003e781c\nBLR             X8                                                     ; +0x50, 0x1003e7820\nMOV             W8, #0xC2C80000                                        ; +0x54, 0x1003e7824\nFMOV            S0, W8                                                 ; +0x58, 0x1003e7828\nMOV             X0, X20                                                ; +0x5c, 0x1003e782c\nFMOV            S1, S0                                                 ; +0x60, 0x1003e7830\nBL              EditorUI__constrainGameLayerPosition                   ; +0x64, 0x1003e7834\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x68, 0x1003e7838\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x6c, 0x1003e783c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x70, 0x1003e7840\nADD             SP, SP, #0x40 ; '@'                                    ; +0x74, 0x1003e7844\nRET                                                                    ; +0x78, 0x1003e7848", "xrefs": ["EditorUI::keyDown @ 0x1003fa118", "EditorUI::scrollWheel @ 0x1003fa7ec"], "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"}