{"type": "func", "start": 5369899248, "end": 5369899389, "name": "EditorUI::applyOffset", "pseudocode": "// \n// EditorUI::applyOffset from 0x1401228f0 to 0x14012297d (141 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCreateObject @ 0x14010f9ba\n// > EditorUI::transformObject @ 0x140120c17\n// > <???> @ 0x1406c9858\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::applyOffset(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);\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::applyOffset from 0x1401228f0 to 0x14012297d (141 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCreateObject @ 0x14010f9ba\n; > EditorUI::transformObject @ 0x140120c17\n; > <???> @ 0x1406c9858\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, 0x1401228f0\npush    rdi                                                            ; +0x5, 0x1401228f5\nsub     rsp, 20h                                                       ; +0x6, 0x1401228f6\nmov     r8d, [rdx+40Ch]                                                ; +0xa, 0x1401228fa\nmov     rdi, rdx                                                       ; +0x11, 0x140122901\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x14, 0x140122904\nmov     rbx, rcx                                                       ; +0x19, 0x140122909\ncall    EditorUI__offsetForKey                                         ; +0x1c, 0x14012290c\nmov     r8, rax                                                        ; +0x21, 0x140122911\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x24, 0x140122914\nmov     rdx, rdi                                                       ; +0x29, 0x140122919\ncall    GameToolbox__getRelativeOffset                                 ; +0x2c, 0x14012291c\nmov     rax, [rdi]                                                     ; +0x31, 0x140122921\nmov     rcx, rdi                                                       ; +0x34, 0x140122924\ncall    qword ptr [rax+0C8h]                                           ; +0x37, 0x140122927\nmov     rcx, rax                                                       ; +0x3d, 0x14012292d\nlea     r8, [rsp+28h+arg_0]                                            ; +0x40, 0x140122930\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x45, 0x140122935\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x4a, 0x14012293a\nmov     rax, [rdi]                                                     ; +0x50, 0x140122940\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x53, 0x140122943\nmov     rcx, rdi                                                       ; +0x58, 0x140122948\ncall    qword ptr [rax+0B8h]                                           ; +0x5b, 0x14012294b\nmov     rbx, [rbx+500h]                                                ; +0x61, 0x140122951\nmov     rdx, rdi                                                       ; +0x68, 0x140122958\nmov     rcx, rbx                                                       ; +0x6b, 0x14012295b\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x6e, 0x14012295e\nmov     rax, [rbx]                                                     ; +0x73, 0x140122963\nmov     rdx, rdi                                                       ; +0x76, 0x140122966\nmov     rcx, rbx                                                       ; +0x79, 0x140122969\ncall    qword ptr [rax+478h]                                           ; +0x7c, 0x14012296c\nmov     rbx, [rsp+28h+arg_18]                                          ; +0x82, 0x140122972\nadd     rsp, 20h                                                       ; +0x87, 0x140122977\npop     rdi                                                            ; +0x8b, 0x14012297b\nretn                                                                   ; +0x8c, 0x14012297c", "xrefs": ["EditorUI::onCreateObject @ 0x14010f9ba", "EditorUI::transformObject @ 0x140120c17", "<???> @ 0x1406c9858"], "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"}