{"type": "func", "start": 6878324, "end": 6878472, "name": "EditorUI::moveGamelayer", "pseudocode": "// \n// EditorUI::moveGamelayer from 0x68f474 to 0x68f508 (148 bytes)\n// \n// 4 xrefs:\n// > EditorUI::scrollWheel @ 0x6965f0\n// > EditorUI::keyDown @ 0x6c5cf0\n// > EditorUI::keyDown @ 0x6c5d10\n// > <???> @ 0x386a0\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 EditorUI::moveGamelayer(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  __int64 v2; // x1\n  cocos2d::CCLayer *m_objectLayer; // x21\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23\n  __int64 v6; // x0\n  __int64 v7; // [xsp+48h] [xbp+48h]\n  __int64 v8; // [xsp+50h] [xbp+50h] BYREF\n\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  v7 = v2;\n  setPosition = m_objectLayer->setPosition;\n  v6 = ((__int64 (__fastcall *)(cocos2d::CCLayer *, long double, long double))m_objectLayer->getPosition)(\n         m_objectLayer,\n         *(long double *)&a2.x,\n         *(long double *)&a2.y);\n  cocos2d::CCPoint::operator+(&v8, v6, v7);\n  setPosition(m_objectLayer, (const cocos2d::CCPoint *)&v8);\n  EditorUI::constrainGameLayerPosition(a1);\n}", "assembly": "; \n; EditorUI::moveGamelayer from 0x68f474 to 0x68f508 (148 bytes)\n; \n; 4 xrefs:\n; > EditorUI::scrollWheel @ 0x6965f0\n; > EditorUI::keyDown @ 0x6c5cf0\n; > EditorUI::keyDown @ 0x6c5d10\n; > <???> @ 0x386a0\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_60]!                                ; +0x0, 0x68f474\nMOV             X29, SP                                                ; +0x4, 0x68f478\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0x68f47c\nMOV             X22, X0                                                ; +0xc, 0x68f480\nLDR             X0, [X0,#0x4F8]                                        ; +0x10, 0x68f484\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x14, 0x68f488\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x18, 0x68f48c\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x1c, 0x68f490\nLDR             X21, [X0,#0x1030]                                      ; +0x20, 0x68f494\nADD             X20, X29, #0x60+var_10                                 ; +0x24, 0x68f498\nSTR             X1, [X29,#0x60+var_18]                                 ; +0x28, 0x68f49c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x68f4a0\nLDR             X2, [X21]                                              ; +0x30, 0x68f4a4\nLDR             X0, [X19]                                              ; +0x34, 0x68f4a8\nLDR             X3, [X2,#0xC0]                                         ; +0x38, 0x68f4ac\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x3c, 0x68f4b0\nMOV             X0, X21                                                ; +0x40, 0x68f4b4\nLDR             X23, [X2,#0xB8]                                        ; +0x44, 0x68f4b8\nBLR             X3                                                     ; +0x48, 0x68f4bc\nLDR             X1, [X29,#0x60+var_18]                                 ; +0x4c, 0x68f4c0\nMOV             X8, X20                                                ; +0x50, 0x68f4c4\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x54, 0x68f4c8\nMOV             X1, X20                                                ; +0x58, 0x68f4cc\nMOV             X0, X21                                                ; +0x5c, 0x68f4d0\nBLR             X23                                                    ; +0x60, 0x68f4d4\nMOV             X0, X22; this                                          ; +0x64, 0x68f4d8\nBL              _ZN8EditorUI26constrainGameLayerPositionEv; EditorUI::constrainGameLayerPosition(void) ; +0x68, 0x68f4dc\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x6c, 0x68f4e0\nLDR             X0, [X19]                                              ; +0x70, 0x68f4e4\nCMP             X1, X0                                                 ; +0x74, 0x68f4e8\nB.NE            loc_68F504                                             ; +0x78, 0x68f4ec\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x7c, 0x68f4f0\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x80, 0x68f4f4\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x84, 0x68f4f8\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x88, 0x68f4fc\nRET                                                                    ; +0x8c, 0x68f500\nBL              .__stack_chk_fail                                      ; +0x90, 0x68f504", "xrefs": ["EditorUI::scrollWheel @ 0x6965f0", "EditorUI::keyDown @ 0x6c5cf0", "EditorUI::keyDown @ 0x6c5d10", "<???> @ 0x386a0"], "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"}