{"type": "func", "start": 4770484, "end": 4770662, "name": "EditorUI::onAssignNewGroupID", "pseudocode": "// \n// EditorUI::onAssignNewGroupID from 0x48cab4 to 0x48cb66 (178 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:31 +0000\n// \n\nint __fastcall EditorUI::onAssignNewGroupID(EditorUI *this, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *v3; // r0\n  cocos2d::CCArray *v4; // r7\n  int result; // r0\n  LevelEditorLayer *v6; // r0\n  int NextFreeGroupID; // r8\n  unsigned int i; // r4\n  int v9; // r9\n  _DWORD v10[5]; // [sp+0h] [bp-1Ch] BYREF\n\n  v3 = *((cocos2d::CCArray **)this + 249);\n  if ( v3 )\n    v4 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v3, a2);\n  else\n    v4 = *((cocos2d::CCArray **)this + 167);\n  result = cocos2d::CCArray::count(v4);\n  if ( result )\n  {\n    v6 = *((LevelEditorLayer **)this + 236);\n    memset(v10, 0, 16);\n    v10[4] = 1065353216;\n    NextFreeGroupID = LevelEditorLayer::getNextFreeGroupID(v6, (int)v10);\n    std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table((int)v10);\n    for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )\n    {\n      v9 = cocos2d::CCArray::objectAtIndex(v4, i);\n      if ( (*(int (__fastcall **)(int, int))(*(_DWORD *)v9 + 800))(v9, NextFreeGroupID) == 1 )\n        (*(void (__fastcall **)(_DWORD, int, int, _DWORD))(**((_DWORD **)this + 236) + 676))(\n          *((_DWORD *)this + 236),\n          v9,\n          NextFreeGroupID,\n          0);\n    }\n    return EditorUI::updateObjectInfoLabel((cocos2d::CCArray **)this);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onAssignNewGroupID from 0x48cab4 to 0x48cb66 (178 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:31 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x48CABE)                ; +0x0, 0x48cab4\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x48cab6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x48caba\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x48cabc\nMOV             R6, R0                                                 ; +0xa, 0x48cabe\nLDR.W           R0, [R0,#0x3E4]; this                                  ; +0xc, 0x48cac0\nLDR             R2, [R3]                                               ; +0x10, 0x48cac4\nSUB             SP, SP, #0x1C                                          ; +0x12, 0x48cac6\nMOV             R5, R3                                                 ; +0x14, 0x48cac8\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x16, 0x48caca\nCBZ             R0, loc_48CAD6                                         ; +0x18, 0x48cacc\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x1a, 0x48cace\nMOV             R7, R0                                                 ; +0x1e, 0x48cad2\nB               loc_48CADA                                             ; +0x20, 0x48cad4\nLDR.W           R7, [R6,#0x29C]                                        ; +0x22, 0x48cad6\nMOV             R0, R7; this                                           ; +0x26, 0x48cada\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x48cadc\nCMP             R0, #0                                                 ; +0x2c, 0x48cae0\nBEQ             loc_48CB54                                             ; +0x2e, 0x48cae2\nLDR.W           R0, [R6,#0x3B0]                                        ; +0x30, 0x48cae4\nMOV             R1, SP                                                 ; +0x34, 0x48cae8\nMOVS            R4, #0                                                 ; +0x36, 0x48caea\nMOV.W           R3, #0x3F800000                                        ; +0x38, 0x48caec\nSTR             R4, [SP,#0x1C+var_1C]                                  ; +0x3c, 0x48caf0\nSTR             R4, [SP,#0x1C+var_18]                                  ; +0x3e, 0x48caf2\nSTR             R4, [SP,#0x1C+var_14]                                  ; +0x40, 0x48caf4\nSTR             R4, [SP,#0x1C+var_10]                                  ; +0x42, 0x48caf6\nMOV             R4, SP                                                 ; +0x44, 0x48caf8\nSTR             R3, [SP,#0x1C+var_C]                                   ; +0x46, 0x48cafa\nBL              _ZN16LevelEditorLayer18getNextFreeGroupIDERKNSt6__ndk113unordered_setIiNS0_4hashIiEENS0_8equal_toIiEENS0_9allocatorIiEEEE; LevelEditorLayer::getNextFreeGroupID(std::unordered_set<int> const&) ; +0x48, 0x48cafc\nMOV             R8, R0                                                 ; +0x4c, 0x48cb00\nMOV             R0, SP                                                 ; +0x4e, 0x48cb02\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEED2Ev; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table() ; +0x50, 0x48cb04\nMOVS            R4, #0                                                 ; +0x54, 0x48cb08\nMOV             R0, R7; this                                           ; +0x56, 0x48cb0a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x58, 0x48cb0c\nCMP             R4, R0                                                 ; +0x5c, 0x48cb10\nBCS             loc_48CB42                                             ; +0x5e, 0x48cb12\nMOV             R1, R4; unsigned int                                   ; +0x60, 0x48cb14\nMOV             R0, R7; this                                           ; +0x62, 0x48cb16\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x64, 0x48cb18\nMOV             R1, R8                                                 ; +0x68, 0x48cb1c\nLDR             R3, [R0]                                               ; +0x6a, 0x48cb1e\nMOV             R9, R0                                                 ; +0x6c, 0x48cb20\nLDR.W           R3, [R3,#0x320]                                        ; +0x6e, 0x48cb22\nBLX             R3                                                     ; +0x72, 0x48cb26\nCMP             R0, #1                                                 ; +0x74, 0x48cb28\nBNE             loc_48CB3E                                             ; +0x76, 0x48cb2a\nLDR.W           R0, [R6,#0x3B0]                                        ; +0x78, 0x48cb2c\nMOV             R1, R9                                                 ; +0x7c, 0x48cb30\nMOV             R2, R8                                                 ; +0x7e, 0x48cb32\nLDR             R3, [R0]                                               ; +0x80, 0x48cb34\nLDR.W           R12, [R3,#0x2A4]                                       ; +0x82, 0x48cb36\nMOVS            R3, #0                                                 ; +0x86, 0x48cb3a\nBLX             R12                                                    ; +0x88, 0x48cb3c\nADDS            R4, #1                                                 ; +0x8a, 0x48cb3e\nB               loc_48CB0A                                             ; +0x8c, 0x48cb40\nMOV             R0, R6; this                                           ; +0x8e, 0x48cb42\nBL              _ZN8EditorUI21updateObjectInfoLabelEv; EditorUI::updateObjectInfoLabel(void) ; +0x90, 0x48cb44\nB               loc_48CB54                                             ; +0x94, 0x48cb48\nMOV             R0, R4                                                 ; +0x96, 0x48cb4a\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEED2Ev; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table() ; +0x98, 0x48cb4c\nBL              __cxa_end_cleanup                                      ; +0x9c, 0x48cb50\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xa0, 0x48cb54\nLDR             R3, [R5]                                               ; +0xa2, 0x48cb56\nCMP             R2, R3                                                 ; +0xa4, 0x48cb58\nBEQ             loc_48CB60                                             ; +0xa6, 0x48cb5a\nBLX             __stack_chk_fail                                       ; +0xa8, 0x48cb5c\nADD             SP, SP, #0x1C                                          ; +0xac, 0x48cb60\nPOP.W           {R4-R9,PC}                                             ; +0xae, 0x48cb62", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}