{"type": "func", "start": 5370815024, "end": 5370815164, "name": "EditorUI::applyOffset", "pseudocode": "// \n// EditorUI::applyOffset from 0x140202230 to 0x1402022bc (140 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCreateObject @ 0x1401b2ce5\n// > EditorUI::transformObject @ 0x1401ffe85\n// > <???> @ 0x14091ae94\n// \n// This function is hookable on this platform (idp: pc, 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 11:28:13 +0000\n// \n\n__int64 __fastcall EditorUI::applyOffset(__int64 a1, int *a2)\n{\n  cocos2d::CCPoint *v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  char v8; // [rsp+30h] [rbp+8h] BYREF\n  char v9; // [rsp+38h] [rbp+10h] BYREF\n  char v10; // [rsp+40h] [rbp+18h] BYREF\n\n  v4 = offsetForKey((cocos2d::CCPoint *)&v10, a2[259]);\n  GameToolbox::getRelativeOffset((cocos2d::CCPoint *)&v8, (__int64)a2, v4);\n  v5 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a2 + 200LL))(a2);\n  cocos2d::CCPoint::operator+(v5, &v9, &v8);\n  (*(void (__fastcall **)(int *, char *))(*(_QWORD *)a2 + 184LL))(a2, &v9);\n  v6 = *(_QWORD *)(a1 + 1512);\n  GJBaseGameLayer::removeObjectFromSection(v6, a2);\n  return (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)v6 + 1192LL))(v6, a2);\n}", "assembly": "; \n; EditorUI::applyOffset from 0x140202230 to 0x1402022bc (140 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCreateObject @ 0x1401b2ce5\n; > EditorUI::transformObject @ 0x1401ffe85\n; > <???> @ 0x14091ae94\n; \n; This function is hookable on this platform (idp: pc, 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 11:28:13 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140202230\npush    rdi                                                            ; +0x5, 0x140202235\nsub     rsp, 20h                                                       ; +0x6, 0x140202236\nmov     rdi, rdx                                                       ; +0xa, 0x14020223a\nmov     rbx, rcx                                                       ; +0xd, 0x14020223d\nmov     edx, [rdx+40Ch]                                                ; +0x10, 0x140202240\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x16, 0x140202246\ncall    offsetForKey                                                   ; +0x1b, 0x14020224b\nmov     r8, rax                                                        ; +0x20, 0x140202250\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x23, 0x140202253\nmov     rdx, rdi                                                       ; +0x28, 0x140202258\ncall    GameToolbox__getRelativeOffset                                 ; +0x2b, 0x14020225b\nmov     rax, [rdi]                                                     ; +0x30, 0x140202260\nmov     rcx, rdi                                                       ; +0x33, 0x140202263\ncall    qword ptr [rax+0C8h]                                           ; +0x36, 0x140202266\nmov     rcx, rax                                                       ; +0x3c, 0x14020226c\nlea     r8, [rsp+28h+arg_0]                                            ; +0x3f, 0x14020226f\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x44, 0x140202274\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x49, 0x140202279\nmov     rax, [rdi]                                                     ; +0x4f, 0x14020227f\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x52, 0x140202282\nmov     rcx, rdi                                                       ; +0x57, 0x140202287\ncall    qword ptr [rax+0B8h]                                           ; +0x5a, 0x14020228a\nmov     rbx, [rbx+5E8h]                                                ; +0x60, 0x140202290\nmov     rdx, rdi                                                       ; +0x67, 0x140202297\nmov     rcx, rbx                                                       ; +0x6a, 0x14020229a\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x6d, 0x14020229d\nmov     rax, [rbx]                                                     ; +0x72, 0x1402022a2\nmov     rdx, rdi                                                       ; +0x75, 0x1402022a5\nmov     rcx, rbx                                                       ; +0x78, 0x1402022a8\ncall    qword ptr [rax+4A8h]                                           ; +0x7b, 0x1402022ab\nmov     rbx, [rsp+28h+arg_18]                                          ; +0x81, 0x1402022b1\nadd     rsp, 20h                                                       ; +0x86, 0x1402022b6\npop     rdi                                                            ; +0x8a, 0x1402022ba\nretn                                                                   ; +0x8b, 0x1402022bb", "xrefs": ["EditorUI::onCreateObject @ 0x1401b2ce5", "EditorUI::transformObject @ 0x1401ffe85", "<???> @ 0x14091ae94"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}