{"type": "func", "start": 6893448, "end": 6893568, "name": "EditorUI::positionWithoutOffset", "pseudocode": "// \n// EditorUI::positionWithoutOffset from 0x692f88 to 0x693000 (120 bytes)\n// \n// 3 xrefs:\n// > EditorUI::findSnapObject @ 0x694138\n// > EditorUI::findSnapObject @ 0x69426c\n// > <???> @ 0x92790\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::positionWithoutOffset(EditorUI *a1, GameObject *a2)\n{\n  _QWORD *v2; // x8\n  _QWORD *v4; // x21\n  __int64 v5; // x0\n  _BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF\n  cocos2d::CCPoint RelativeOffset; // 0:kr00_8.8\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v4 = v2;\n  RelativeOffset = EditorUI::getRelativeOffset(a1, a2);\n  v5 = ((__int64 (__fastcall *)(GameObject *, float, float))a2->getPosition)(a2, RelativeOffset.x, RelativeOffset.y);\n  cocos2d::CCPoint::operator-(v4, v5, v8);\n  return result;\n}", "assembly": "; \n; EditorUI::positionWithoutOffset from 0x692f88 to 0x693000 (120 bytes)\n; \n; 3 xrefs:\n; > EditorUI::findSnapObject @ 0x694138\n; > EditorUI::findSnapObject @ 0x69426c\n; > <???> @ 0x92790\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, 0x692f88\nMOV             X29, SP                                                ; +0x4, 0x692f8c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x692f90\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x692f94\nADD             X20, X29, #0x40+var_10                                 ; +0x10, 0x692f98\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x692f9c\nMOV             X22, X1                                                ; +0x18, 0x692fa0\nMOV             X21, X8                                                ; +0x1c, 0x692fa4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x692fa8\nMOV             X8, X20                                                ; +0x24, 0x692fac\nLDR             X2, [X19]                                              ; +0x28, 0x692fb0\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x2c, 0x692fb4\nBL              _ZN8EditorUI17getRelativeOffsetEP10GameObject; EditorUI::getRelativeOffset(GameObject *) ; +0x30, 0x692fb8\nLDR             X1, [X22]                                              ; +0x34, 0x692fbc\nMOV             X0, X22                                                ; +0x38, 0x692fc0\nLDR             X1, [X1,#0xC0]                                         ; +0x3c, 0x692fc4\nBLR             X1                                                     ; +0x40, 0x692fc8\nMOV             X1, X20                                                ; +0x44, 0x692fcc\nMOV             X8, X21                                                ; +0x48, 0x692fd0\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x4c, 0x692fd4\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x50, 0x692fd8\nMOV             X0, X21                                                ; +0x54, 0x692fdc\nLDR             X1, [X19]                                              ; +0x58, 0x692fe0\nCMP             X2, X1                                                 ; +0x5c, 0x692fe4\nB.NE            loc_692FFC                                             ; +0x60, 0x692fe8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x64, 0x692fec\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x68, 0x692ff0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x6c, 0x692ff4\nRET                                                                    ; +0x70, 0x692ff8\nBL              .__stack_chk_fail                                      ; +0x74, 0x692ffc", "xrefs": ["EditorUI::findSnapObject @ 0x694138", "EditorUI::findSnapObject @ 0x69426c", "<???> @ 0x92790"], "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"}