{"type": "func", "start": 12584100, "end": 12584260, "name": "EditorUI::removeOffset", "pseudocode": "// \n// EditorUI::removeOffset from 0xc004a4 to 0xc00544 (160 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCreateObject @ 0x7ca2e4\n// > EditorUI::transformObject @ 0xc010f8\n// > <???> @ 0x9d780\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\n__int64 __fastcall EditorUI::removeOffset(GJBaseGameLayer **this, GameObject *a2)\n{\n  __int64 v4; // x0\n  long double v5; // q0\n  _BYTE v7[8]; // [xsp+48h] [xbp+48h] BYREF\n  __int64 v8; // [xsp+50h] [xbp+50h] BYREF\n\n  EditorUI::getRelativeOffset((cocos2d::CCPoint *)v7, a2);\n  v4 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2);\n  cocos2d::CCPoint::operator-(&v8, v4, v7, v5);\n  (*(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL))(a2, &v8);\n  GJBaseGameLayer::reorderObjectSection(*(this + 180), a2);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::removeOffset from 0xc004a4 to 0xc00544 (160 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCreateObject @ 0x7ca2e4\n; > EditorUI::transformObject @ 0xc010f8\n; > <???> @ 0x9d780\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_60]!                                ; +0x0, 0xc004a4\nMOV             X29, SP                                                ; +0x4, 0xc004a8\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xc004ac\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc004b0\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0xc004b4\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0xc004b8\nADD             X22, X29, #0x60+var_18                                 ; +0x18, 0xc004bc\nMOV             X19, X1                                                ; +0x1c, 0xc004c0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xc004c4\nMOV             X8, X22                                                ; +0x24, 0xc004c8\nMOV             X23, X0                                                ; +0x28, 0xc004cc\nADD             X21, X29, #0x60+var_10                                 ; +0x2c, 0xc004d0\nLDR             X2, [X20]                                              ; +0x30, 0xc004d4\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x34, 0xc004d8\nBL              _ZN8EditorUI17getRelativeOffsetEP10GameObject; EditorUI::getRelativeOffset(GameObject *) ; +0x38, 0xc004dc\nLDR             X1, [X19]                                              ; +0x3c, 0xc004e0\nMOV             X0, X19                                                ; +0x40, 0xc004e4\nLDR             X1, [X1,#0xC0]                                         ; +0x44, 0xc004e8\nBLR             X1                                                     ; +0x48, 0xc004ec\nMOV             X8, X21                                                ; +0x4c, 0xc004f0\nMOV             X1, X22                                                ; +0x50, 0xc004f4\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x54, 0xc004f8\nLDR             X2, [X19]                                              ; +0x58, 0xc004fc\nMOV             X0, X19                                                ; +0x5c, 0xc00500\nMOV             X1, X21                                                ; +0x60, 0xc00504\nLDR             X2, [X2,#0xB8]                                         ; +0x64, 0xc00508\nBLR             X2                                                     ; +0x68, 0xc0050c\nLDR             X0, [X23,#0x5A0]; this                                 ; +0x6c, 0xc00510\nMOV             X1, X19; GameObject *                                  ; +0x70, 0xc00514\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x74, 0xc00518\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x78, 0xc0051c\nLDR             X0, [X20]                                              ; +0x7c, 0xc00520\nCMP             X1, X0                                                 ; +0x80, 0xc00524\nB.NE            loc_C00540                                             ; +0x84, 0xc00528\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x88, 0xc0052c\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x8c, 0xc00530\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x90, 0xc00534\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x94, 0xc00538\nRET                                                                    ; +0x98, 0xc0053c\nBL              .__stack_chk_fail                                      ; +0x9c, 0xc00540", "xrefs": ["EditorUI::onCreateObject @ 0x7ca2e4", "EditorUI::transformObject @ 0xc010f8", "<???> @ 0x9d780"], "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"}