{"type": "func", "start": 8127320, "end": 8127636, "name": "EditorUI::editGroup", "pseudocode": "// \n// EditorUI::editGroup from 0x7c0358 to 0x7c0494 (316 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd7d74\n// > <???> @ 0x959c8\n// > EditorUI::init @ 0x7d061c\n// > <???> @ 0x15440b8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::editGroup(EditorUI *this, cocos2d::CCObject *a2)\n{\n  EditorBuildStats *v3; // x0\n  EditorSFXManager *v4; // x0\n  EditorSFXManager *v5; // x0\n  cocos2d::CCArray *v6; // x2\n  __int64 v7; // x22\n  LevelEditorLayer *v8; // x0\n  int NextFreeGroupID; // w20\n  _QWORD *v10; // x0\n  _QWORD *v11; // x19\n  void *v12; // x0\n  __int64 v13; // x1\n  void *v15[2]; // [xsp+30h] [xbp+30h] BYREF\n  void *v16; // [xsp+40h] [xbp+40h]\n  __int64 v17; // [xsp+48h] [xbp+48h]\n  float v18; // [xsp+50h] [xbp+50h]\n\n  if ( *((_QWORD *)this + 187) || (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) )\n  {\n    v3 = (EditorBuildStats *)(*((_QWORD *)this + 180) + 14704LL);\n    *((_DWORD *)v3 + 4) = *(_DWORD *)(*((_QWORD *)this + 180) + 14720LL) + 1;\n    v4 = (EditorSFXManager *)EditorBuildStats::noteAction(v3);\n    v5 = (EditorSFXManager *)EditorSFXManager::sharedState(v4);\n    EditorSFXManager::playAction(v5, 108, 107);\n    v7 = SetGroupIDLayer::create(*((SetGroupIDLayer **)this + 187), *((GameObject **)this + 112), v6);\n    v8 = *((LevelEditorLayer **)this + 180);\n    v15[0] = nullptr;\n    v15[1] = nullptr;\n    v16 = nullptr;\n    v17 = 0;\n    v18 = 1.0;\n    NextFreeGroupID = LevelEditorLayer::getNextFreeGroupID(v8, (__int64)v15);\n    v10 = v16;\n    if ( v16 )\n    {\n      do\n      {\n        v11 = (_QWORD *)*v10;\n        operator delete(v10);\n        v10 = v11;\n      }\n      while ( v11 );\n    }\n    v12 = v15[0];\n    v15[0] = nullptr;\n    if ( v12 )\n      operator delete(v12);\n    v13 = *(_QWORD *)v7;\n    *(_DWORD *)(v7 + 808) = NextFreeGroupID;\n    (*(void (__fastcall **)(__int64))(v13 + 1312))(v7);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::editGroup from 0x7c0358 to 0x7c0494 (316 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd7d74\n; > <???> @ 0x959c8\n; > EditorUI::init @ 0x7d061c\n; > <???> @ 0x15440b8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x7c0358\nMOV             X29, SP                                                ; +0x4, 0x7c035c\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0x7c0360\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c0364\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x10, 0x7c0368\nMOV             X20, X0                                                ; +0x14, 0x7c036c\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x7c0370\nLDR             X0, [X0,#0x5D8]                                        ; +0x1c, 0x7c0374\nLDR             X1, [X1]                                               ; +0x20, 0x7c0378\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x24, 0x7c037c\nCBZ             X0, loc_7C044C                                         ; +0x28, 0x7c0380\nLDR             X19, [X20,#0x5A0]                                      ; +0x2c, 0x7c0384\nADD             X19, X19, #3,LSL#12                                    ; +0x30, 0x7c0388\nADD             X19, X19, #0x970                                       ; +0x34, 0x7c038c\nMOV             X0, X19; this                                          ; +0x38, 0x7c0390\nLDR             W1, [X19,#0x10]                                        ; +0x3c, 0x7c0394\nADD             W1, W1, #1                                             ; +0x40, 0x7c0398\nSTR             W1, [X19,#0x10]                                        ; +0x44, 0x7c039c\nBL              _ZN16EditorBuildStats10noteActionEv; EditorBuildStats::noteAction(void) ; +0x48, 0x7c03a0\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x4c, 0x7c03a4\nMOV             W1, #0x6C ; 'l'; int                                   ; +0x50, 0x7c03a8\nMOV             W2, #0x6B ; 'k'; int                                   ; +0x54, 0x7c03ac\nBL              _ZN16EditorSFXManager10playActionEii; EditorSFXManager::playAction(int,int) ; +0x58, 0x7c03b0\nLDR             X1, [X20,#0x380]; GameObject *                         ; +0x5c, 0x7c03b4\nLDR             X0, [X20,#0x5D8]; this                                 ; +0x60, 0x7c03b8\nBL              _ZN15SetGroupIDLayer6createEP10GameObjectPN7cocos2d7CCArrayE; SetGroupIDLayer::create(GameObject *,cocos2d::CCArray *) ; +0x64, 0x7c03bc\nMOV             X22, X0                                                ; +0x68, 0x7c03c0\nLDR             X0, [X20,#0x5A0]                                       ; +0x6c, 0x7c03c4\nADD             X1, X29, #0x60+var_30                                  ; +0x70, 0x7c03c8\nFMOV            S0, #1.0                                               ; +0x74, 0x7c03cc\nSTR             XZR, [X29,#0x60+var_30]                                ; +0x78, 0x7c03d0\nSTR             XZR, [X29,#0x60+var_28]                                ; +0x7c, 0x7c03d4\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x80, 0x7c03d8\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x84, 0x7c03dc\nSTR             S0, [X29,#0x60+var_10]                                 ; +0x88, 0x7c03e0\nBL              _ZN16LevelEditorLayer18getNextFreeGroupIDERKNSt6__ndk113unordered_setIiNS0_4hashIiEENS0_8equal_toIiEENS0_9allocatorIiEEEE; LevelEditorLayer::getNextFreeGroupID(std::unordered_set<int> const&) ; +0x8c, 0x7c03e4\nMOV             W20, W0                                                ; +0x90, 0x7c03e8\nLDR             X0, [X29,#0x60+var_20]; void *                         ; +0x94, 0x7c03ec\nCBZ             X0, loc_7C0404                                         ; +0x98, 0x7c03f0\nLDR             X19, [X0]                                              ; +0x9c, 0x7c03f4\nBL              _ZdlPv; operator delete(void *)                        ; +0xa0, 0x7c03f8\nMOV             X0, X19                                                ; +0xa4, 0x7c03fc\nCBNZ            X19, loc_7C03F4                                        ; +0xa8, 0x7c0400\nLDR             X0, [X29,#0x60+var_30]; void *                         ; +0xac, 0x7c0404\nSTR             XZR, [X29,#0x60+var_30]                                ; +0xb0, 0x7c0408\nCBZ             X0, loc_7C0414                                         ; +0xb4, 0x7c040c\nBL              _ZdlPv; operator delete(void *)                        ; +0xb8, 0x7c0410\nLDR             X1, [X22]                                              ; +0xbc, 0x7c0414\nMOV             X0, X22                                                ; +0xc0, 0x7c0418\nSTR             W20, [X22,#0x328]                                      ; +0xc4, 0x7c041c\nLDR             X1, [X1,#0x520]                                        ; +0xc8, 0x7c0420\nBLR             X1                                                     ; +0xcc, 0x7c0424\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xd0, 0x7c0428\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xd4, 0x7c042c\nLDR             X0, [X21]                                              ; +0xd8, 0x7c0430\nCMP             X1, X0                                                 ; +0xdc, 0x7c0434\nB.NE            loc_7C045C                                             ; +0xe0, 0x7c0438\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xe4, 0x7c043c\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xe8, 0x7c0440\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xec, 0x7c0444\nRET                                                                    ; +0xf0, 0x7c0448\nLDR             X0, [X20,#0x380]; this                                 ; +0xf4, 0x7c044c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xf8, 0x7c0450\nCBZ             W0, loc_7C0428                                         ; +0xfc, 0x7c0454\nB               loc_7C0384                                             ; +0x100, 0x7c0458\nBL              .__stack_chk_fail                                      ; +0x104, 0x7c045c\nMOV             X19, X0                                                ; +0x108, 0x7c0460\nLDR             X0, [X29,#0x60+var_20]; void *                         ; +0x10c, 0x7c0464\nCBZ             X0, loc_7C047C                                         ; +0x110, 0x7c0468\nLDR             X20, [X0]                                              ; +0x114, 0x7c046c\nBL              _ZdlPv; operator delete(void *)                        ; +0x118, 0x7c0470\nMOV             X0, X20                                                ; +0x11c, 0x7c0474\nB               loc_7C0468                                             ; +0x120, 0x7c0478\nLDR             X0, [X29,#0x60+var_30]; void *                         ; +0x124, 0x7c047c\nSTR             XZR, [X29,#0x60+var_30]                                ; +0x128, 0x7c0480\nCBZ             X0, loc_7C048C                                         ; +0x12c, 0x7c0484\nBL              _ZdlPv; operator delete(void *)                        ; +0x130, 0x7c0488\nMOV             X0, X19                                                ; +0x134, 0x7c048c\nBL              _Unwind_Resume                                         ; +0x138, 0x7c0490", "xrefs": ["EditorUI::handleEditorAction @ 0xbd7d74", "<???> @ 0x959c8", "EditorUI::init @ 0x7d061c", "<???> @ 0x15440b8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}