{"type": "func", "start": 3675108, "end": 3675190, "name": "EditorUI::moveGamelayer", "pseudocode": "// \n// EditorUI::moveGamelayer from 0x3813e4 to 0x381436 (82 bytes)\n// \n// 2 xrefs:\n// > EditorUI::scrollWheel @ 0x3876f4\n// > EditorUI::keyDown @ 0x3a70ba\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::moveGamelayer(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  float x; // r9\n  cocos2d::CCLayer *m_objectLayer; // r5\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  int v6; // r0\n  _BYTE v7[8]; // [sp+4h] [bp+0h] BYREF\n\n  x = a2.x;\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  setPosition = m_objectLayer->setPosition;\n  v6 = ((int (__fastcall *)(cocos2d::CCLayer *, _DWORD, _DWORD))m_objectLayer->getPosition)(\n         m_objectLayer,\n         LODWORD(a2.x),\n         LODWORD(a2.y));\n  cocos2d::CCPoint::operator+(v7, v6, LODWORD(x));\n  setPosition(m_objectLayer, (const cocos2d::CCPoint *)v7);\n  EditorUI::constrainGameLayerPosition(a1);\n}", "assembly": "; \n; EditorUI::moveGamelayer from 0x3813e4 to 0x381436 (82 bytes)\n; \n; 2 xrefs:\n; > EditorUI::scrollWheel @ 0x3876f4\n; > EditorUI::keyDown @ 0x3a70ba\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\nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3813e4\nSUB             SP, SP, #0x14                                          ; +0x4, 0x3813e8\nLDR             R4, =(__stack_chk_guard_ptr - 0x3813F6)                ; +0x6, 0x3813ea\nMOV             R6, R0                                                 ; +0x8, 0x3813ec\nMOV             R9, R1                                                 ; +0xa, 0x3813ee\nADD             R7, SP, #4                                             ; +0xc, 0x3813f0\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3813f2\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x3813f4\nLDR             R3, [R4]                                               ; +0x12, 0x3813f6\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x3813f8\nLDR.W           R3, [R0,#0x340]                                        ; +0x16, 0x3813fa\nLDR.W           R5, [R3,#0x9F0]                                        ; +0x1a, 0x3813fe\nLDR             R3, [R5]                                               ; +0x1e, 0x381402\nMOV             R0, R5                                                 ; +0x20, 0x381404\nLDR.W           R8, [R3,#0x5C]                                         ; +0x22, 0x381406\nLDR             R3, [R3,#0x60]                                         ; +0x26, 0x38140a\nBLX             R3                                                     ; +0x28, 0x38140c\nMOV             R2, R9                                                 ; +0x2a, 0x38140e\nMOV             R1, R0                                                 ; +0x2c, 0x381410\nMOV             R0, R7                                                 ; +0x2e, 0x381412\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x30, 0x381414\nMOV             R0, R5                                                 ; +0x34, 0x381418\nMOV             R1, R7                                                 ; +0x36, 0x38141a\nBLX             R8                                                     ; +0x38, 0x38141c\nMOV             R0, R6; this                                           ; +0x3a, 0x38141e\nBL              _ZN8EditorUI26constrainGameLayerPositionEv; EditorUI::constrainGameLayerPosition(void) ; +0x3c, 0x381420\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x40, 0x381424\nLDR             R3, [R4]                                               ; +0x42, 0x381426\nCMP             R2, R3                                                 ; +0x44, 0x381428\nBEQ             loc_381430                                             ; +0x46, 0x38142a\nBLX             __stack_chk_fail                                       ; +0x48, 0x38142c\nADD             SP, SP, #0x14                                          ; +0x4c, 0x381430\nPOP.W           {R4-R9,PC}                                             ; +0x4e, 0x381432", "xrefs": ["EditorUI::scrollWheel @ 0x3876f4", "EditorUI::keyDown @ 0x3a70ba"], "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"}