{"type": "func", "start": 4295206368, "end": 4295206494, "name": "EditorUI::applyOffset", "pseudocode": "// \n// EditorUI::applyOffset from 0x10003a5e0 to 0x10003a65e (126 bytes)\n// \n// 0 xrefs:\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 __fastcall EditorUI::applyOffset(EditorUI *a1, GameObject *a2)\n{\n  __int64 v3; // rax\n  char v4; // [rsp+0h] [rbp-30h] BYREF\n  _BYTE v5[40]; // [rsp+8h] [rbp-28h] BYREF\n  cocos2d::CCPoint v6; // 0:xmm0_8.8\n  double v7; // 0:xmm0_8.8\n\n  v6 = EditorUI::offsetForKey((EditorUI *)v5, (int)a2);\n  *(cocos2d::CCPoint *)&v7 = GameToolbox::getRelativeOffset((GameObject *)&v4, v6);\n  v3 = ((__int64 (__fastcall *)(GameObject *, double))a2->getPosition)(a2, v7);\n  sub_10028CCE0(v5, v3);\n  ((void (__fastcall *)(GameObject *, _BYTE *))a2->setPosition)(a2, v5);\n  GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);\n}", "assembly": "; \n; EditorUI::applyOffset from 0x10003a5e0 to 0x10003a65e (126 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x10003a5e0\nmov     rbp, rsp                                                       ; +0x1, 0x10003a5e1\npush    r15                                                            ; +0x4, 0x10003a5e4\npush    r14                                                            ; +0x6, 0x10003a5e6\npush    r12                                                            ; +0x8, 0x10003a5e8\npush    rbx                                                            ; +0xa, 0x10003a5ea\nsub     rsp, 10h                                                       ; +0xb, 0x10003a5eb\nmov     rbx, rsi                                                       ; +0xf, 0x10003a5ef\nmov     r14, rdi                                                       ; +0x12, 0x10003a5f2\nmov     edx, [rsi+404h]                                                ; +0x15, 0x10003a5f5\nlea     r15, [rbp+var_28]                                              ; +0x1b, 0x10003a5fb\nmov     rdi, r15                                                       ; +0x1f, 0x10003a5ff\ncall    EditorUI__offsetForKey                                         ; +0x22, 0x10003a602\nlea     r12, [rbp+var_30]                                              ; +0x27, 0x10003a607\nmov     rdi, r12                                                       ; +0x2b, 0x10003a60b\nmov     rsi, rbx                                                       ; +0x2e, 0x10003a60e\nmov     rdx, r15                                                       ; +0x31, 0x10003a611\ncall    GameToolbox__getRelativeOffset                                 ; +0x34, 0x10003a614\nmov     rax, [rbx]                                                     ; +0x39, 0x10003a619\nmov     rdi, rbx                                                       ; +0x3c, 0x10003a61c\ncall    qword ptr [rax+0C0h]                                           ; +0x3f, 0x10003a61f\nmov     rdi, r15                                                       ; +0x45, 0x10003a625\nmov     rsi, rax                                                       ; +0x48, 0x10003a628\nmov     rdx, r12                                                       ; +0x4b, 0x10003a62b\ncall    sub_10028CCE0                                                  ; +0x4e, 0x10003a62e\nmov     rax, [rbx]                                                     ; +0x53, 0x10003a633\nmov     rdi, rbx                                                       ; +0x56, 0x10003a636\nmov     rsi, r15                                                       ; +0x59, 0x10003a639\ncall    qword ptr [rax+0B8h]                                           ; +0x5c, 0x10003a63c\nmov     rdi, [r14+4E8h]                                                ; +0x62, 0x10003a642\nmov     rsi, rbx                                                       ; +0x69, 0x10003a649\ncall    GJBaseGameLayer__reorderObjectSection                          ; +0x6c, 0x10003a64c\nadd     rsp, 10h                                                       ; +0x71, 0x10003a651\npop     rbx                                                            ; +0x75, 0x10003a655\npop     r12                                                            ; +0x76, 0x10003a656\npop     r14                                                            ; +0x78, 0x10003a658\npop     r15                                                            ; +0x7a, 0x10003a65a\npop     rbp                                                            ; +0x7c, 0x10003a65c\nretn                                                                   ; +0x7d, 0x10003a65d", "xrefs": [], "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"}