{"type": "func", "start": 3691176, "end": 3691268, "name": "EditorUI::removeOffset", "pseudocode": "// \n// EditorUI::removeOffset from 0x3852a8 to 0x385304 (92 bytes)\n// \n// 2 xrefs:\n// > EditorUI::transformObject @ 0x3856e4\n// > EditorUI::onCreateObject @ 0x3a3f5a\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\nvoid EditorUI::removeOffset(EditorUI *a1, GameObject *a2)\n{\n  const cocos2d::CCPoint *v4; // r0\n  cocos2d::CCPoint v5; // [sp+4h] [bp-8h] BYREF\n  _BYTE v6[8]; // [sp+Ch] [bp+0h] BYREF\n\n  EditorUI::getRelativeOffset(&v5, a1, a2);\n  v4 = a2->getPosition(a2);\n  cocos2d::CCPoint::operator-(v6, v4, &v5);\n  a2->setPosition(a2, (const cocos2d::CCPoint *)v6);\n  GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);\n}", "assembly": "; \n; EditorUI::removeOffset from 0x3852a8 to 0x385304 (92 bytes)\n; \n; 2 xrefs:\n; > EditorUI::transformObject @ 0x3856e4\n; > EditorUI::onCreateObject @ 0x3a3f5a\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.W          {R4-R8,LR}                                             ; +0x0, 0x3852a8\nSUB             SP, SP, #0x18                                          ; +0x4, 0x3852ac\nLDR             R5, =(__stack_chk_guard_ptr - 0x3852BC)                ; +0x6, 0x3852ae\nADD.W           R8, SP, #0x18+var_14                                   ; +0x8, 0x3852b0\nMOV             R4, R1                                                 ; +0xc, 0x3852b4\nMOV             R6, R0                                                 ; +0xe, 0x3852b6\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3852b8\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x3852ba\nMOV             R1, R6; GameObject *                                   ; +0x14, 0x3852bc\nMOV             R2, R4                                                 ; +0x16, 0x3852be\nMOV             R0, R8; this                                           ; +0x18, 0x3852c0\nLDR             R3, [R5]                                               ; +0x1a, 0x3852c2\nADD             R7, SP, #0xC                                           ; +0x1c, 0x3852c4\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1e, 0x3852c6\nBL              _ZN8EditorUI17getRelativeOffsetEP10GameObject; EditorUI::getRelativeOffset(GameObject *) ; +0x20, 0x3852c8\nLDR             R3, [R4]                                               ; +0x24, 0x3852cc\nMOV             R0, R4                                                 ; +0x26, 0x3852ce\nLDR             R3, [R3,#0x60]                                         ; +0x28, 0x3852d0\nBLX             R3                                                     ; +0x2a, 0x3852d2\nMOV             R2, R8                                                 ; +0x2c, 0x3852d4\nMOV             R1, R0                                                 ; +0x2e, 0x3852d6\nMOV             R0, R7                                                 ; +0x30, 0x3852d8\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x32, 0x3852da\nLDR             R3, [R4]                                               ; +0x36, 0x3852de\nMOV             R0, R4                                                 ; +0x38, 0x3852e0\nMOV             R1, R7                                                 ; +0x3a, 0x3852e2\nLDR             R3, [R3,#0x5C]                                         ; +0x3c, 0x3852e4\nBLX             R3                                                     ; +0x3e, 0x3852e6\nLDR.W           R0, [R6,#0x340]; this                                  ; +0x40, 0x3852e8\nMOV             R1, R4; GameObject *                                   ; +0x44, 0x3852ec\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x46, 0x3852ee\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x4a, 0x3852f2\nLDR             R3, [R5]                                               ; +0x4c, 0x3852f4\nCMP             R2, R3                                                 ; +0x4e, 0x3852f6\nBEQ             loc_3852FE                                             ; +0x50, 0x3852f8\nBLX             __stack_chk_fail                                       ; +0x52, 0x3852fa\nADD             SP, SP, #0x18                                          ; +0x56, 0x3852fe\nPOP.W           {R4-R8,PC}                                             ; +0x58, 0x385300", "xrefs": ["EditorUI::transformObject @ 0x3856e4", "EditorUI::onCreateObject @ 0x3a3f5a"], "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"}