{"type": "func", "start": 4299081580, "end": 4299081708, "name": "EditorUI::removeOffset", "pseudocode": "// \n// EditorUI::removeOffset from 0x1003ec76c to 0x1003ec7ec (128 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCreateObject @ 0x1003eb560\n// > EditorUI::transformObject @ 0x1003f7164\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::removeOffset(EditorUI *a1, GameObject *a2)\n{\n  float32x2_t *v4; // x0\n  double v5; // d0\n  float32x2_t v6; // [xsp+0h] [xbp-20h] BYREF\n  float32x2_t v7; // [xsp+8h] [xbp-18h] BYREF\n  cocos2d::CCPoint RelativeOffset; // 0:kr08_8.8\n  cocos2d::CCPoint v9; // 0:s0.4,4:s1.4\n\n  v9 = EditorUI::offsetForKey(a1, a2->m_objectID);\n  RelativeOffset = GameToolbox::getRelativeOffset(a2, v9);\n  v4 = (float32x2_t *)((__int64 (__fastcall *)(GameObject *, float, float))a2->getPosition)(\n                        a2,\n                        RelativeOffset.x,\n                        RelativeOffset.y);\n  *(float32x2_t *)&v5 = sub_1000229F0(v4, &v6, &v7);\n  ((void (__fastcall *)(GameObject *, float32x2_t *, double))a2->setPosition)(a2, &v7, v5);\n  GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);\n}", "assembly": "; \n; EditorUI::removeOffset from 0x1003ec76c to 0x1003ec7ec (128 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCreateObject @ 0x1003eb560\n; > EditorUI::transformObject @ 0x1003f7164\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003ec76c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003ec770\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003ec774\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003ec778\nMOV             X19, X1                                                ; +0x10, 0x1003ec77c\nMOV             X20, X0                                                ; +0x14, 0x1003ec780\nLDR             W1, [X1,#0x404]                                        ; +0x18, 0x1003ec784\nADD             X8, SP, #0x20+var_18                                   ; +0x1c, 0x1003ec788\nBL              EditorUI__offsetForKey                                 ; +0x20, 0x1003ec78c\nMOV             X8, SP                                                 ; +0x24, 0x1003ec790\nADD             X1, SP, #0x20+var_18                                   ; +0x28, 0x1003ec794\nMOV             X0, X19                                                ; +0x2c, 0x1003ec798\nBL              GameToolbox__getRelativeOffset                         ; +0x30, 0x1003ec79c\nLDR             X8, [X19]                                              ; +0x34, 0x1003ec7a0\nLDR             X8, [X8,#0xC0]                                         ; +0x38, 0x1003ec7a4\nMOV             X0, X19                                                ; +0x3c, 0x1003ec7a8\nBLR             X8                                                     ; +0x40, 0x1003ec7ac\nADD             X8, SP, #0x20+var_18                                   ; +0x44, 0x1003ec7b0\nMOV             X1, SP                                                 ; +0x48, 0x1003ec7b4\nBL              sub_1000229F0                                          ; +0x4c, 0x1003ec7b8\nLDR             X8, [X19]                                              ; +0x50, 0x1003ec7bc\nLDR             X8, [X8,#0xB8]                                         ; +0x54, 0x1003ec7c0\nADD             X1, SP, #0x20+var_18                                   ; +0x58, 0x1003ec7c4\nMOV             X0, X19                                                ; +0x5c, 0x1003ec7c8\nBLR             X8                                                     ; +0x60, 0x1003ec7cc\nLDR             X0, [X20,#0x4E8]                                       ; +0x64, 0x1003ec7d0\nMOV             X1, X19                                                ; +0x68, 0x1003ec7d4\nBL              GJBaseGameLayer__reorderObjectSection                  ; +0x6c, 0x1003ec7d8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x1003ec7dc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x1003ec7e0\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x1003ec7e4\nRET                                                                    ; +0x7c, 0x1003ec7e8", "xrefs": ["EditorUI::onCreateObject @ 0x1003eb560", "EditorUI::transformObject @ 0x1003f7164"], "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"}