{"type": "func", "start": 5369899104, "end": 5369899245, "name": "EditorUI::removeOffset", "pseudocode": "// \n// EditorUI::removeOffset from 0x140122860 to 0x1401228ed (141 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCreateObject @ 0x14010f9a0\n// > EditorUI::transformObject @ 0x1401207ae\n// > <???> @ 0x1406c984c\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; // rax\n  LevelEditorLayer *m_editorLayer; // rbx\n  char v6; // [rsp+30h] [rbp+8h] BYREF\n  char v7; // [rsp+38h] [rbp+10h] BYREF\n  char v8; // [rsp+40h] [rbp+18h] BYREF\n\n  EditorUI::offsetForKey(a1, (int)&v8);\n  GameToolbox::getRelativeOffset((GameObject *)&v6, (cocos2d::CCPoint)a2);\n  v4 = a2->getPosition_0(a2);\n  cocos2d::CCPoint::operator-(v4, &v7, &v6);\n  a2->setPosition_0(a2, (const cocos2d::CCPoint *)&v7);\n  m_editorLayer = a1->m_editorLayer;\n  GJBaseGameLayer::removeObjectFromSection(m_editorLayer, a2);\n  m_editorLayer->addToSection(m_editorLayer, a2);\n}", "assembly": "; \n; EditorUI::removeOffset from 0x140122860 to 0x1401228ed (141 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCreateObject @ 0x14010f9a0\n; > EditorUI::transformObject @ 0x1401207ae\n; > <???> @ 0x1406c984c\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\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140122860\npush    rdi                                                            ; +0x5, 0x140122865\nsub     rsp, 20h                                                       ; +0x6, 0x140122866\nmov     r8d, [rdx+40Ch]                                                ; +0xa, 0x14012286a\nmov     rdi, rdx                                                       ; +0x11, 0x140122871\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x14, 0x140122874\nmov     rbx, rcx                                                       ; +0x19, 0x140122879\ncall    EditorUI__offsetForKey                                         ; +0x1c, 0x14012287c\nmov     r8, rax                                                        ; +0x21, 0x140122881\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x24, 0x140122884\nmov     rdx, rdi                                                       ; +0x29, 0x140122889\ncall    GameToolbox__getRelativeOffset                                 ; +0x2c, 0x14012288c\nmov     rax, [rdi]                                                     ; +0x31, 0x140122891\nmov     rcx, rdi                                                       ; +0x34, 0x140122894\ncall    qword ptr [rax+0C8h]                                           ; +0x37, 0x140122897\nmov     rcx, rax                                                       ; +0x3d, 0x14012289d\nlea     r8, [rsp+28h+arg_0]                                            ; +0x40, 0x1401228a0\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x45, 0x1401228a5\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x4a, 0x1401228aa\nmov     rax, [rdi]                                                     ; +0x50, 0x1401228b0\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x53, 0x1401228b3\nmov     rcx, rdi                                                       ; +0x58, 0x1401228b8\ncall    qword ptr [rax+0B8h]                                           ; +0x5b, 0x1401228bb\nmov     rbx, [rbx+500h]                                                ; +0x61, 0x1401228c1\nmov     rdx, rdi                                                       ; +0x68, 0x1401228c8\nmov     rcx, rbx                                                       ; +0x6b, 0x1401228cb\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x6e, 0x1401228ce\nmov     rax, [rbx]                                                     ; +0x73, 0x1401228d3\nmov     rdx, rdi                                                       ; +0x76, 0x1401228d6\nmov     rcx, rbx                                                       ; +0x79, 0x1401228d9\ncall    qword ptr [rax+478h]                                           ; +0x7c, 0x1401228dc\nmov     rbx, [rsp+28h+arg_18]                                          ; +0x82, 0x1401228e2\nadd     rsp, 20h                                                       ; +0x87, 0x1401228e7\npop     rdi                                                            ; +0x8b, 0x1401228eb\nretn                                                                   ; +0x8c, 0x1401228ec", "xrefs": ["EditorUI::onCreateObject @ 0x14010f9a0", "EditorUI::transformObject @ 0x1401207ae", "<???> @ 0x1406c984c"], "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"}