{"type": "func", "start": 6893336, "end": 6893448, "name": "EditorUI::getRelativeOffset", "pseudocode": "// \n// EditorUI::getRelativeOffset from 0x692f18 to 0x692f88 (112 bytes)\n// \n// 6 xrefs:\n// > EditorUI::positionWithoutOffset @ 0x692fb8\n// > EditorUI::removeOffset @ 0x693038\n// > EditorUI::applyOffset @ 0x6930d8\n// > EditorUI::onCreateObject @ 0x6bff20\n// > EditorUI::ccTouchEnded @ 0x6c2e04\n// > <???> @ 0xbf280\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\ncocos2d::CCPoint EditorUI::getRelativeOffset(EditorUI *a1, GameObject *a2)\n{\n  cocos2d::CCPoint RelativeOffset; // 0:kr08_8.8\n  cocos2d::CCPoint v6; // 0:s0.4,4:s1.4\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v6 = EditorUI::offsetForKey(a1, a2->m_objectID);\n  RelativeOffset = GameToolbox::getRelativeOffset(a2, v6);\n  result.x = RelativeOffset.x;\n  result.y = RelativeOffset.y;\n  return result;\n}", "assembly": "; \n; EditorUI::getRelativeOffset from 0x692f18 to 0x692f88 (112 bytes)\n; \n; 6 xrefs:\n; > EditorUI::positionWithoutOffset @ 0x692fb8\n; > EditorUI::removeOffset @ 0x693038\n; > EditorUI::applyOffset @ 0x6930d8\n; > EditorUI::onCreateObject @ 0x6bff20\n; > EditorUI::ccTouchEnded @ 0x6c2e04\n; > <???> @ 0xbf280\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_40]!                                ; +0x0, 0x692f18\nMOV             X29, SP                                                ; +0x4, 0x692f1c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x692f20\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x692f24\nADD             X20, X29, #0x40+var_10                                 ; +0x10, 0x692f28\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x692f2c\nMOV             X22, X1                                                ; +0x18, 0x692f30\nLDR             W1, [X1,#0x3F4]; int                                   ; +0x1c, 0x692f34\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x692f38\nMOV             X21, X8                                                ; +0x24, 0x692f3c\nMOV             X8, X20                                                ; +0x28, 0x692f40\nLDR             X2, [X19]                                              ; +0x2c, 0x692f44\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x30, 0x692f48\nBL              _ZN8EditorUI12offsetForKeyEi; EditorUI::offsetForKey(int) ; +0x34, 0x692f4c\nMOV             X0, X22                                                ; +0x38, 0x692f50\nMOV             X1, X20                                                ; +0x3c, 0x692f54\nMOV             X8, X21                                                ; +0x40, 0x692f58\nBL              _ZN11GameToolbox17getRelativeOffsetEP10GameObjectN7cocos2d7CCPointE; GameToolbox::getRelativeOffset(GameObject *,cocos2d::CCPoint) ; +0x44, 0x692f5c\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x48, 0x692f60\nMOV             X0, X21                                                ; +0x4c, 0x692f64\nLDR             X1, [X19]                                              ; +0x50, 0x692f68\nCMP             X2, X1                                                 ; +0x54, 0x692f6c\nB.NE            loc_692F84                                             ; +0x58, 0x692f70\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x5c, 0x692f74\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x60, 0x692f78\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x64, 0x692f7c\nRET                                                                    ; +0x68, 0x692f80\nBL              .__stack_chk_fail                                      ; +0x6c, 0x692f84", "xrefs": ["EditorUI::positionWithoutOffset @ 0x692fb8", "EditorUI::removeOffset @ 0x693038", "EditorUI::applyOffset @ 0x6930d8", "EditorUI::onCreateObject @ 0x6bff20", "EditorUI::ccTouchEnded @ 0x6c2e04", "<???> @ 0xbf280"], "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"}