{"type": "func", "start": 12583476, "end": 12583592, "name": "EditorUI::getRelativeOffset", "pseudocode": "// \n// EditorUI::getRelativeOffset from 0xc00234 to 0xc002a8 (116 bytes)\n// \n// 6 xrefs:\n// > EditorUI::onCreateObject @ 0x7ca280\n// > EditorUI::ccTouchEnded @ 0xbd66f4\n// > EditorUI::positionWithoutOffset @ 0xc002d8\n// > EditorUI::removeOffset @ 0xc004dc\n// > EditorUI::applyOffset @ 0xc0057c\n// > <???> @ 0xf9250\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:48 +0000\n// \n\ncocos2d::CCPoint *__usercall EditorUI::getRelativeOffset@<X0>(\n        cocos2d::CCPoint *__return_ptr a1@<X8>,\n        GameObject *a2@<X1>)\n{\n  _BYTE v6[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  offsetForKey((cocos2d::CCPoint *)v6, *((_DWORD *)a2 + 257));\n  GameToolbox::getRelativeOffset((__int64)a2, (cocos2d::CCPoint *)v6, a1);\n  return a1;\n}", "assembly": "; \n; EditorUI::getRelativeOffset from 0xc00234 to 0xc002a8 (116 bytes)\n; \n; 6 xrefs:\n; > EditorUI::onCreateObject @ 0x7ca280\n; > EditorUI::ccTouchEnded @ 0xbd66f4\n; > EditorUI::positionWithoutOffset @ 0xc002d8\n; > EditorUI::removeOffset @ 0xc004dc\n; > EditorUI::applyOffset @ 0xc0057c\n; > <???> @ 0xf9250\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:48 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xc00234\nMOV             X29, SP                                                ; +0x4, 0xc00238\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xc0023c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc00240\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0xc00244\nADD             X20, X29, #0x50+var_10                                 ; +0x14, 0xc00248\nMOV             X21, X8                                                ; +0x18, 0xc0024c\nLDR             W0, [X1,#0x404]; int                                   ; +0x1c, 0xc00250\nMOV             X8, X20                                                ; +0x20, 0xc00254\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0xc00258\nSTR             X1, [X29,#0x50+var_18]                                 ; +0x28, 0xc0025c\nLDR             X2, [X19]                                              ; +0x2c, 0xc00260\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x30, 0xc00264\nBL              _Z12offsetForKeyi; offsetForKey(int)                   ; +0x34, 0xc00268\nLDR             X1, [X29,#0x50+var_18]                                 ; +0x38, 0xc0026c\nMOV             X8, X21                                                ; +0x3c, 0xc00270\nMOV             X0, X1                                                 ; +0x40, 0xc00274\nMOV             X1, X20                                                ; +0x44, 0xc00278\nBL              _ZN11GameToolbox17getRelativeOffsetEP10GameObjectN7cocos2d7CCPointE; GameToolbox::getRelativeOffset(GameObject *,cocos2d::CCPoint) ; +0x48, 0xc0027c\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x4c, 0xc00280\nMOV             X0, X21                                                ; +0x50, 0xc00284\nLDR             X1, [X19]                                              ; +0x54, 0xc00288\nCMP             X2, X1                                                 ; +0x58, 0xc0028c\nB.NE            loc_C002A4                                             ; +0x5c, 0xc00290\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x60, 0xc00294\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x64, 0xc00298\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x68, 0xc0029c\nRET                                                                    ; +0x6c, 0xc002a0\nBL              .__stack_chk_fail                                      ; +0x70, 0xc002a4", "xrefs": ["EditorUI::onCreateObject @ 0x7ca280", "EditorUI::ccTouchEnded @ 0xbd66f4", "EditorUI::positionWithoutOffset @ 0xc002d8", "EditorUI::removeOffset @ 0xc004dc", "EditorUI::applyOffset @ 0xc0057c", "<???> @ 0xf9250"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}