{"type": "func", "start": 6893728, "end": 6893888, "name": "EditorUI::applyOffset", "pseudocode": "// \n// EditorUI::applyOffset from 0x6930a0 to 0x693140 (160 bytes)\n// \n// 3 xrefs:\n// > EditorUI::transformObject @ 0x693abc\n// > EditorUI::onCreateObject @ 0x6c0174\n// > <???> @ 0xaf020\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  __int64 v4; // x0\n  _BYTE v5[8]; // [xsp+48h] [xbp+48h] BYREF\n  __int64 v6; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint RelativeOffset; // 0:kr00_8.8\n\n  RelativeOffset = EditorUI::getRelativeOffset(a1, a2);\n  v4 = ((__int64 (__fastcall *)(GameObject *, float, float))a2->getPosition)(a2, RelativeOffset.x, RelativeOffset.y);\n  cocos2d::CCPoint::operator+(&v6, v4, v5);\n  a2->setPosition(a2, (const cocos2d::CCPoint *)&v6);\n  GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);\n}", "assembly": "; \n; EditorUI::applyOffset from 0x6930a0 to 0x693140 (160 bytes)\n; \n; 3 xrefs:\n; > EditorUI::transformObject @ 0x693abc\n; > EditorUI::onCreateObject @ 0x6c0174\n; > <???> @ 0xaf020\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x6930a0\nMOV             X29, SP                                                ; +0x4, 0x6930a4\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x6930a8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6930ac\nMOV             X19, X1                                                ; +0x10, 0x6930b0\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x6930b4\nADD             X22, X29, #0x60+var_18                                 ; +0x18, 0x6930b8\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x1c, 0x6930bc\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6930c0\nMOV             X8, X22                                                ; +0x24, 0x6930c4\nMOV             X23, X0                                                ; +0x28, 0x6930c8\nADD             X21, X29, #0x60+var_10                                 ; +0x2c, 0x6930cc\nLDR             X2, [X20]                                              ; +0x30, 0x6930d0\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x34, 0x6930d4\nBL              _ZN8EditorUI17getRelativeOffsetEP10GameObject; EditorUI::getRelativeOffset(GameObject *) ; +0x38, 0x6930d8\nLDR             X1, [X19]                                              ; +0x3c, 0x6930dc\nMOV             X0, X19                                                ; +0x40, 0x6930e0\nLDR             X1, [X1,#0xC0]                                         ; +0x44, 0x6930e4\nBLR             X1                                                     ; +0x48, 0x6930e8\nMOV             X8, X21                                                ; +0x4c, 0x6930ec\nMOV             X1, X22                                                ; +0x50, 0x6930f0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x54, 0x6930f4\nLDR             X2, [X19]                                              ; +0x58, 0x6930f8\nMOV             X0, X19                                                ; +0x5c, 0x6930fc\nMOV             X1, X21                                                ; +0x60, 0x693100\nLDR             X2, [X2,#0xB8]                                         ; +0x64, 0x693104\nBLR             X2                                                     ; +0x68, 0x693108\nLDR             X0, [X23,#0x4F8]; this                                 ; +0x6c, 0x69310c\nMOV             X1, X19; GameObject *                                  ; +0x70, 0x693110\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x74, 0x693114\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x78, 0x693118\nLDR             X0, [X20]                                              ; +0x7c, 0x69311c\nCMP             X1, X0                                                 ; +0x80, 0x693120\nB.NE            loc_69313C                                             ; +0x84, 0x693124\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x88, 0x693128\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x8c, 0x69312c\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x90, 0x693130\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x94, 0x693134\nRET                                                                    ; +0x98, 0x693138\nBL              .__stack_chk_fail                                      ; +0x9c, 0x69313c", "xrefs": ["EditorUI::transformObject @ 0x693abc", "EditorUI::onCreateObject @ 0x6c0174", "<???> @ 0xaf020"], "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"}