{"type": "func", "start": 7394532, "end": 7394590, "name": "EditorUI::getRelativeOffset", "pseudocode": "// \n// EditorUI::getRelativeOffset from 0x70d4e4 to 0x70d51e (58 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onCreateObject @ 0x487380\n// > EditorUI::ccTouchEnded @ 0x6f0f10\n// > EditorUI::positionWithoutOffset @ 0x70d53a\n// > EditorUI::removeOffset @ 0x70d6a0\n// > EditorUI::applyOffset @ 0x70d700\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:57:42 +0000\n// \n\nEditorUI *__fastcall EditorUI::getRelativeOffset(EditorUI *this, GameObject *a2, int a3)\n{\n  _BYTE v6[8]; // [sp+4h] [bp-10h] BYREF\n\n  offsetForKey((cocos2d::CCPoint *)v6, *(_DWORD *)(a3 + 892));\n  GameToolbox::getRelativeOffset(this, a3, (cocos2d::CCPoint *)v6);\n  return this;\n}", "assembly": "; \n; EditorUI::getRelativeOffset from 0x70d4e4 to 0x70d51e (58 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onCreateObject @ 0x487380\n; > EditorUI::ccTouchEnded @ 0x6f0f10\n; > EditorUI::positionWithoutOffset @ 0x70d53a\n; > EditorUI::removeOffset @ 0x70d6a0\n; > EditorUI::applyOffset @ 0x70d700\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:57:42 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x70d4e4\nSUB             SP, SP, #0x14                                          ; +0x2, 0x70d4e6\nLDR             R4, =(__stack_chk_guard_ptr - 0x70D4F4)                ; +0x4, 0x70d4e8\nADD             R6, SP, #0x14+var_10                                   ; +0x6, 0x70d4ea\nMOV             R5, R0                                                 ; +0x8, 0x70d4ec\nMOV             R7, R2                                                 ; +0xa, 0x70d4ee\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x70d4f0\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x70d4f2\nLDR.W           R1, [R2,#0x37C]                                        ; +0x10, 0x70d4f4\nMOV             R0, R6; this                                           ; +0x14, 0x70d4f8\nLDR             R3, [R4]                                               ; +0x16, 0x70d4fa\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x18, 0x70d4fc\nBL              _Z12offsetForKeyi; offsetForKey(int)                   ; +0x1a, 0x70d4fe\nMOV             R0, R5                                                 ; +0x1e, 0x70d502\nMOV             R2, R6                                                 ; +0x20, 0x70d504\nMOV             R1, R7                                                 ; +0x22, 0x70d506\nBL              _ZN11GameToolbox17getRelativeOffsetEP10GameObjectN7cocos2d7CCPointE; GameToolbox::getRelativeOffset(GameObject *,cocos2d::CCPoint) ; +0x24, 0x70d508\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x28, 0x70d50c\nLDR             R3, [R4]                                               ; +0x2a, 0x70d50e\nMOV             R0, R5                                                 ; +0x2c, 0x70d510\nCMP             R2, R3                                                 ; +0x2e, 0x70d512\nBEQ             loc_70D51A                                             ; +0x30, 0x70d514\nBLX             __stack_chk_fail                                       ; +0x32, 0x70d516\nADD             SP, SP, #0x14                                          ; +0x36, 0x70d51a\nPOP             {R4-R7,PC}                                             ; +0x38, 0x70d51c", "xrefs": ["EditorUI::onCreateObject @ 0x487380", "EditorUI::ccTouchEnded @ 0x6f0f10", "EditorUI::positionWithoutOffset @ 0x70d53a", "EditorUI::removeOffset @ 0x70d6a0", "EditorUI::applyOffset @ 0x70d700"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}