{"type": "func", "start": 4295148096, "end": 4295148276, "name": "EditorUI::editGroup", "pseudocode": "// \n// EditorUI::editGroup from 0x10002c240 to 0x10002c2f4 (180 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x10000ac80\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; // rdi\n  SetGroupIDLayer *v4; // rbx\n  LevelEditorLayer *m_editorLayer; // rdi\n  int NextFreeGroupID; // r14d\n  std::__hash_node_base<std::__hash_node<int, void *> *>::__next_pointer next; // rdi\n  std::__hash_node_base<std::__hash_node<int, void *> *> *v8; // r15\n  std::__hash_node_base<std::__hash_node<int, void *> *> **value; // rdi\n  std::unordered_set<int> v10; // [rsp+0h] [rbp-40h] BYREF\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( !m_selectedObject )\n  {\n    if ( !(unsigned int)sub_100720070(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(&v10, 0, 32);\n  v10.__table_.__p3_.__value_ = 1.0;\n  NextFreeGroupID = LevelEditorLayer::getNextFreeGroupID(m_editorLayer, &v10);\n  next = v10.__table_.__p1_.__value_.__next_;\n  if ( v10.__table_.__p1_.__value_.__next_ )\n  {\n    do\n    {\n      v8 = next->__next_;\n      operator delete(next);\n      next = v8;\n    }\n    while ( v8 );\n  }\n  value = v10.__table_.__bucket_list_.__ptr_.__value_;\n  v10.__table_.__bucket_list_.__ptr_.__value_ = nullptr;\n  if ( value )\n    operator delete(value);\n  v4->m_nextFreeID = NextFreeGroupID;\n  ((void (__fastcall *)(SetGroupIDLayer *))v4->show)(v4);\n}", "assembly": "; \n; EditorUI::editGroup from 0x10002c240 to 0x10002c2f4 (180 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x10000ac80\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, 0x10002c240\nmov     rbp, rsp                                                       ; +0x1, 0x10002c241\npush    r15                                                            ; +0x4, 0x10002c244\npush    r14                                                            ; +0x6, 0x10002c246\npush    rbx                                                            ; +0x8, 0x10002c248\nsub     rsp, 28h                                                       ; +0x9, 0x10002c249\nmov     r14, rdi                                                       ; +0xd, 0x10002c24d\nmov     rdi, [rdi+520h]                                                ; +0x10, 0x10002c250\ntest    rdi, rdi                                                       ; +0x17, 0x10002c257\njnz     short loc_10002C273                                            ; +0x1a, 0x10002c25a\nmov     rdi, [r14+328h]                                                ; +0x1c, 0x10002c25c\ncall    sub_100720070                                                  ; +0x23, 0x10002c263\ntest    eax, eax                                                       ; +0x28, 0x10002c268\njz      short loc_10002C2E9                                            ; +0x2a, 0x10002c26a\nmov     rdi, [r14+520h]                                                ; +0x2c, 0x10002c26c\nmov     rsi, [r14+328h]                                                ; +0x33, 0x10002c273\ncall    SetGroupIDLayer__create                                        ; +0x3a, 0x10002c27a\nmov     rbx, rax                                                       ; +0x3f, 0x10002c27f\nmov     rdi, [r14+4E8h]                                                ; +0x42, 0x10002c282\nxorps   xmm0, xmm0                                                     ; +0x49, 0x10002c289\nmovaps  xmmword ptr [rbp+__p], xmm0                                    ; +0x4c, 0x10002c28c\nmovaps  xmmword ptr [rbp+var_40], xmm0                                 ; +0x50, 0x10002c290\nmov     [rbp+var_20], 3F800000h                                        ; +0x54, 0x10002c294\nlea     rsi, [rbp+var_40]                                              ; +0x5b, 0x10002c29b\ncall    LevelEditorLayer__getNextFreeGroupID                           ; +0x5f, 0x10002c29f\nmov     r14d, eax                                                      ; +0x64, 0x10002c2a4\nmov     rdi, [rbp+__p]; __p                                            ; +0x67, 0x10002c2a7\ntest    rdi, rdi                                                       ; +0x6b, 0x10002c2ab\njz      short loc_10002C2C0                                            ; +0x6e, 0x10002c2ae\nmov     r15, [rdi]                                                     ; +0x70, 0x10002c2b0\ncall    __ZdlPv; operator delete(void *)                               ; +0x73, 0x10002c2b3\nmov     rdi, r15                                                       ; +0x78, 0x10002c2b8\ntest    r15, r15                                                       ; +0x7b, 0x10002c2bb\njnz     short loc_10002C2B0                                            ; +0x7e, 0x10002c2be\nmov     rdi, [rbp+var_40]; __p                                         ; +0x80, 0x10002c2c0\nmov     [rbp+var_40], 0                                                ; +0x84, 0x10002c2c4\ntest    rdi, rdi                                                       ; +0x8c, 0x10002c2cc\njz      short loc_10002C2D6                                            ; +0x8f, 0x10002c2cf\ncall    __ZdlPv; operator delete(void *)                               ; +0x91, 0x10002c2d1\nmov     [rbx+30Ch], r14d                                               ; +0x96, 0x10002c2d6\nmov     rax, [rbx]                                                     ; +0x9d, 0x10002c2dd\nmov     rdi, rbx                                                       ; +0xa0, 0x10002c2e0\ncall    qword ptr [rax+508h]                                           ; +0xa3, 0x10002c2e3\nadd     rsp, 28h                                                       ; +0xa9, 0x10002c2e9\npop     rbx                                                            ; +0xad, 0x10002c2ed\npop     r14                                                            ; +0xae, 0x10002c2ee\npop     r15                                                            ; +0xb0, 0x10002c2f0\npop     rbp                                                            ; +0xb2, 0x10002c2f2\nretn                                                                   ; +0xb3, 0x10002c2f3", "xrefs": ["EditorUI::init @ 0x10000ac80"], "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"}