{"type": "func", "start": 4299052716, "end": 4299052848, "name": "EditorUI::editGroup", "pseudocode": "// \n// EditorUI::editGroup from 0x1003e56ac to 0x1003e5730 (132 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x1003c659c\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::editGroup(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameObject *m_selectedObject; // x0\n  SetGroupIDLayer *v4; // x19\n  LevelEditorLayer *m_editorLayer; // x0\n  int NextFreeGroupID; // w20\n  std::unordered_set<int> v7; // [xsp+0h] [xbp-40h] BYREF\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( !m_selectedObject )\n  {\n    if ( !(unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )\n      return;\n    m_selectedObject = a1->m_selectedObject;\n  }\n  v4 = SetGroupIDLayer::create(m_selectedObject, a1->m_selectedObjects);\n  m_editorLayer = a1->m_editorLayer;\n  memset(&v7, 0, 32);\n  v7.__table_.__p3_.__value_ = 1.0;\n  NextFreeGroupID = LevelEditorLayer::getNextFreeGroupID(m_editorLayer, &v7);\n  sub_100017A98((__int64)&v7);\n  v4->m_nextFreeID = NextFreeGroupID;\n  ((void (__fastcall *)(SetGroupIDLayer *))v4->show)(v4);\n}", "assembly": "; \n; EditorUI::editGroup from 0x1003e56ac to 0x1003e5730 (132 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x1003c659c\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, #0x50                                          ; +0x0, 0x1003e56ac\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1003e56b0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1003e56b4\nADD             X29, SP, #0x40                                         ; +0xc, 0x1003e56b8\nMOV             X20, X0                                                ; +0x10, 0x1003e56bc\nLDR             X0, [X0,#0x520]                                        ; +0x14, 0x1003e56c0\nCBNZ            X0, loc_1003E56D8                                      ; +0x18, 0x1003e56c4\nLDR             X0, [X20,#0x328]                                       ; +0x1c, 0x1003e56c8\nBL              sub_10024A36C                                          ; +0x20, 0x1003e56cc\nCBZ             W0, loc_1003E5720                                      ; +0x24, 0x1003e56d0\nLDR             X0, [X20,#0x520]                                       ; +0x28, 0x1003e56d4\nLDR             X1, [X20,#0x328]                                       ; +0x2c, 0x1003e56d8\nBL              SetGroupIDLayer__create                                ; +0x30, 0x1003e56dc\nMOV             X19, X0                                                ; +0x34, 0x1003e56e0\nLDR             X0, [X20,#0x4E8]                                       ; +0x38, 0x1003e56e4\nMOVI            V0.16B, #0                                             ; +0x3c, 0x1003e56e8\nSTP             Q0, Q0, [SP,#0x40+var_40]                              ; +0x40, 0x1003e56ec\nMOV             W8, #0x3F800000                                        ; +0x44, 0x1003e56f0\nSTR             W8, [SP,#0x40+var_20]                                  ; +0x48, 0x1003e56f4\nMOV             X1, SP                                                 ; +0x4c, 0x1003e56f8\nBL              LevelEditorLayer__getNextFreeGroupID                   ; +0x50, 0x1003e56fc\nMOV             X20, X0                                                ; +0x54, 0x1003e5700\nMOV             X0, SP                                                 ; +0x58, 0x1003e5704\nBL              sub_100017A98                                          ; +0x5c, 0x1003e5708\nSTR             W20, [X19,#0x30C]                                      ; +0x60, 0x1003e570c\nLDR             X8, [X19]                                              ; +0x64, 0x1003e5710\nLDR             X8, [X8,#0x508]                                        ; +0x68, 0x1003e5714\nMOV             X0, X19                                                ; +0x6c, 0x1003e5718\nBLR             X8                                                     ; +0x70, 0x1003e571c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x74, 0x1003e5720\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x78, 0x1003e5724\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x7c, 0x1003e5728\nRET                                                                    ; +0x80, 0x1003e572c", "xrefs": ["EditorUI::init @ 0x1003c659c"], "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"}