{"type": "func", "start": 3691044, "end": 3691102, "name": "EditorUI::getRelativeOffset", "pseudocode": "// \n// EditorUI::getRelativeOffset from 0x385224 to 0x38525e (58 bytes)\n// \n// 5 xrefs:\n// > EditorUI::positionWithoutOffset @ 0x38527a\n// > EditorUI::removeOffset @ 0x3852c8\n// > EditorUI::applyOffset @ 0x385328\n// > EditorUI::onCreateObject @ 0x3a3c32\n// > EditorUI::ccTouchEnded @ 0x3a55d0\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(cocos2d::CCPoint *__return_ptr retstr, EditorUI *a2, GameObject *a3)\n{\n  cocos2d::CCPoint v5; // r2\n  cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF\n\n  EditorUI::offsetForKey(&v7, a2, a3->m_objectID);\n  LODWORD(v5.x) = &v7;\n  GameToolbox::getRelativeOffset(retstr, a3, v5);\n  return retstr;\n}", "assembly": "; \n; EditorUI::getRelativeOffset from 0x385224 to 0x38525e (58 bytes)\n; \n; 5 xrefs:\n; > EditorUI::positionWithoutOffset @ 0x38527a\n; > EditorUI::removeOffset @ 0x3852c8\n; > EditorUI::applyOffset @ 0x385328\n; > EditorUI::onCreateObject @ 0x3a3c32\n; > EditorUI::ccTouchEnded @ 0x3a55d0\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            {R4-R7,LR}                                             ; +0x0, 0x385224\nSUB             SP, SP, #0x14                                          ; +0x2, 0x385226\nLDR             R4, =(__stack_chk_guard_ptr - 0x385234)                ; +0x4, 0x385228\nADD             R6, SP, #0x14+var_10                                   ; +0x6, 0x38522a\nMOV             R5, R0                                                 ; +0x8, 0x38522c\nMOV             R7, R2                                                 ; +0xa, 0x38522e\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x385230\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x385232\nMOV             R0, R6; this                                           ; +0x10, 0x385234\nLDR.W           R2, [R2,#0x374]                                        ; +0x12, 0x385236\nLDR             R3, [R4]                                               ; +0x16, 0x38523a\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x18, 0x38523c\nBL              _ZN8EditorUI12offsetForKeyEi; EditorUI::offsetForKey(int) ; +0x1a, 0x38523e\nMOV             R0, R5                                                 ; +0x1e, 0x385242\nMOV             R2, R6                                                 ; +0x20, 0x385244\nMOV             R1, R7                                                 ; +0x22, 0x385246\nBL              _ZN11GameToolbox17getRelativeOffsetEP10GameObjectN7cocos2d7CCPointE; GameToolbox::getRelativeOffset(GameObject *,cocos2d::CCPoint) ; +0x24, 0x385248\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x28, 0x38524c\nLDR             R3, [R4]                                               ; +0x2a, 0x38524e\nMOV             R0, R5                                                 ; +0x2c, 0x385250\nCMP             R2, R3                                                 ; +0x2e, 0x385252\nBEQ             loc_38525A                                             ; +0x30, 0x385254\nBLX             __stack_chk_fail                                       ; +0x32, 0x385256\nADD             SP, SP, #0x14                                          ; +0x36, 0x38525a\nPOP             {R4-R7,PC}                                             ; +0x38, 0x38525c", "xrefs": ["EditorUI::positionWithoutOffset @ 0x38527a", "EditorUI::removeOffset @ 0x3852c8", "EditorUI::applyOffset @ 0x385328", "EditorUI::onCreateObject @ 0x3a3c32", "EditorUI::ccTouchEnded @ 0x3a55d0"], "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"}