{"type": "func", "start": 4730416, "end": 4730806, "name": "EditorUI::replaceGroupID", "pseudocode": "// \n// EditorUI::replaceGroupID from 0x482e30 to 0x482fb6 (390 bytes)\n// \n// 1 xrefs:\n// > EditorUI::dynamicGroupUpdate @ 0x48de00\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:23 +0000\n// \n\nint __fastcall EditorUI::replaceGroupID(GJBaseGameLayer **this, GameObject *a2, const char *a3, int a4)\n{\n  signed int i; // r7\n  int result; // r0\n  const char *v10; // r8\n  const char *v11; // r3\n  bool v12; // zf\n  int v13; // r3\n  int v14; // r7\n  const char *v15; // r0\n  const char *v16; // r1\n  int v17; // r3\n  const char *v18; // r3\n  const char *v19; // r3\n  const char *v20; // r3\n  cocos2d::CCString *v21; // r0\n  int CString; // r0\n\n  for ( i = 0; i < *((__int16 *)a2 + 510); ++i )\n  {\n    if ( (const char *)GameObject::getGroupID(a2, i) == a3 )\n    {\n      (*(void (__fastcall **)(GameObject *, const char *))(*(_DWORD *)a2 + 804))(a2, a3);\n      (*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 800))(a2, a4);\n      break;\n    }\n  }\n  result = GJBaseGameLayer::remapGroupParent(*(this + 236), a2, (int)a3, a4);\n  if ( *((_DWORD *)a2 + 271) == 1 )\n  {\n    v10 = *((const char **)a2 + 321);\n    if ( v10 == a3 )\n      result = EffectGameObject::setTargetID(a2, a4);\n    if ( *((const char **)a2 + 322) == a3 )\n      result = EffectGameObject::setTargetID2(a2, a4);\n    v11 = *((const char **)a2 + 372);\n    if ( *((const char **)a2 + 375) == a3 )\n      *((_DWORD *)a2 + 375) = a4;\n    v12 = v11 == a3;\n    v13 = *((_DWORD *)a2 + 223);\n    if ( v12 )\n      *((_DWORD *)a2 + 372) = a4;\n    if ( v13 != 1615 && v13 != 899 )\n    {\n      result = (*(int (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 240))(a2, 999);\n      v14 = result;\n      if ( result )\n      {\n        v15 = (const char *)(*(int (__fastcall **)(int))(*(_DWORD *)result + 472))(result);\n        result = atoi(v15);\n        v16 = *((const char **)a2 + 321);\n        if ( (const char *)result == v10 && v16 != v10 )\n        {\n          v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v16);\n          CString = cocos2d::CCString::getCString(v21);\n          result = (*(int (__fastcall **)(int, int))(*(_DWORD *)v14 + 464))(v14, CString);\n        }\n      }\n    }\n    v17 = *((_DWORD *)a2 + 223);\n    if ( v17 == 1268 )\n    {\n      SpawnTriggerGameObject::changeRemap(a2, (int)a3, a4, 0);\n      return SpawnTriggerGameObject::changeRemap(a2, (int)a3, a4, 1);\n    }\n    else if ( v17 > 1268 )\n    {\n      if ( v17 == 2068 )\n      {\n        return ChanceTriggerGameObject::editChanceObject(a2, (int)a3, a4);\n      }\n      else if ( v17 == 2903 )\n      {\n        v18 = *((const char **)a2 + 416);\n        if ( *((const char **)a2 + 415) == a3 )\n          *((_DWORD *)a2 + 415) = a4;\n        v12 = v18 == a3;\n        v19 = *((const char **)a2 + 417);\n        if ( v12 )\n          *((_DWORD *)a2 + 416) = a4;\n        v12 = v19 == a3;\n        v20 = *((const char **)a2 + 418);\n        if ( v12 )\n          *((_DWORD *)a2 + 417) = a4;\n        if ( v20 == a3 )\n          *((_DWORD *)a2 + 418) = a4;\n      }\n    }\n    else if ( v17 == 901 && *((const char **)a2 + 337) == a3 )\n    {\n      *((_DWORD *)a2 + 337) = a4;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::replaceGroupID from 0x482e30 to 0x482fb6 (390 bytes)\n; \n; 1 xrefs:\n; > EditorUI::dynamicGroupUpdate @ 0x48de00\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:23 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x482e30\nMOV             R8, R0                                                 ; +0x4, 0x482e34\nMOV             R4, R1                                                 ; +0x6, 0x482e36\nMOV             R5, R2                                                 ; +0x8, 0x482e38\nMOV             R6, R3                                                 ; +0xa, 0x482e3a\nMOVS            R7, #0                                                 ; +0xc, 0x482e3c\nLDRSH.W         R3, [R4,#0x3FC]                                        ; +0xe, 0x482e3e\nCMP             R7, R3                                                 ; +0x12, 0x482e42\nBGE             loc_482E6E                                             ; +0x14, 0x482e44\nMOV             R0, R4; this                                           ; +0x16, 0x482e46\nMOV             R1, R7; int                                            ; +0x18, 0x482e48\nBL              _ZN10GameObject10getGroupIDEi; GameObject::getGroupID(int) ; +0x1a, 0x482e4a\nCMP             R0, R5                                                 ; +0x1e, 0x482e4e\nBEQ             loc_482E56                                             ; +0x20, 0x482e50\nADDS            R7, #1                                                 ; +0x22, 0x482e52\nB               loc_482E3E                                             ; +0x24, 0x482e54\nLDR             R3, [R4]                                               ; +0x26, 0x482e56\nMOV             R0, R4                                                 ; +0x28, 0x482e58\nMOV             R1, R5                                                 ; +0x2a, 0x482e5a\nLDR.W           R3, [R3,#0x324]                                        ; +0x2c, 0x482e5c\nBLX             R3                                                     ; +0x30, 0x482e60\nLDR             R3, [R4]                                               ; +0x32, 0x482e62\nMOV             R0, R4                                                 ; +0x34, 0x482e64\nMOV             R1, R6                                                 ; +0x36, 0x482e66\nLDR.W           R3, [R3,#0x320]                                        ; +0x38, 0x482e68\nBLX             R3                                                     ; +0x3c, 0x482e6c\nMOV             R3, R6; int                                            ; +0x3e, 0x482e6e\nLDR.W           R0, [R8,#0x3B0]; this                                  ; +0x40, 0x482e70\nMOV             R1, R4; GameObject *                                   ; +0x44, 0x482e74\nMOV             R2, R5; int                                            ; +0x46, 0x482e76\nBL              _ZN15GJBaseGameLayer16remapGroupParentEP10GameObjectii; GJBaseGameLayer::remapGroupParent(GameObject *,int,int) ; +0x48, 0x482e78\nLDR.W           R3, [R4,#0x43C]                                        ; +0x4c, 0x482e7c\nCMP             R3, #1                                                 ; +0x50, 0x482e80\nBNE.W           locret_482FB2                                          ; +0x52, 0x482e82\nLDR.W           R8, [R4,#0x504]                                        ; +0x56, 0x482e86\nCMP             R8, R5                                                 ; +0x5a, 0x482e8a\nBNE             loc_482E96                                             ; +0x5c, 0x482e8c\nMOV             R0, R4; this                                           ; +0x5e, 0x482e8e\nMOV             R1, R6; int                                            ; +0x60, 0x482e90\nBL              _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x62, 0x482e92\nLDR.W           R3, [R4,#0x508]                                        ; +0x66, 0x482e96\nCMP             R3, R5                                                 ; +0x6a, 0x482e9a\nBNE             loc_482EA6                                             ; +0x6c, 0x482e9c\nMOV             R0, R4; this                                           ; +0x6e, 0x482e9e\nMOV             R1, R6; int                                            ; +0x70, 0x482ea0\nBL              _ZN16EffectGameObject12setTargetID2Ei; EffectGameObject::setTargetID2(int) ; +0x72, 0x482ea2\nLDR.W           R3, [R4,#0x5DC]                                        ; +0x76, 0x482ea6\nMOVW            R2, #0x64F                                             ; +0x7a, 0x482eaa\nCMP             R3, R5                                                 ; +0x7e, 0x482eae\nLDR.W           R3, [R4,#0x5D0]                                        ; +0x80, 0x482eb0\nIT EQ                                                                  ; +0x84, 0x482eb4\nSTREQ.W         R6, [R4,#0x5DC]                                        ; +0x86, 0x482eb6\nCMP             R3, R5                                                 ; +0x8a, 0x482eba\nLDR.W           R3, [R4,#0x37C]                                        ; +0x8c, 0x482ebc\nIT EQ                                                                  ; +0x90, 0x482ec0\nSTREQ.W         R6, [R4,#0x5D0]                                        ; +0x92, 0x482ec2\nCMP             R3, R2                                                 ; +0x96, 0x482ec6\nBEQ             loc_482EF8                                             ; +0x98, 0x482ec8\nMOVW            R2, #0x383                                             ; +0x9a, 0x482eca\nCMP             R3, R2                                                 ; +0x9e, 0x482ece\nBEQ             loc_482EF8                                             ; +0xa0, 0x482ed0\nLDR             R3, [R4]                                               ; +0xa2, 0x482ed2\nMOV             R0, R4                                                 ; +0xa4, 0x482ed4\nMOVW            R1, #0x3E7                                             ; +0xa6, 0x482ed6\nLDR.W           R3, [R3,#0xF0]                                         ; +0xaa, 0x482eda\nBLX             R3                                                     ; +0xae, 0x482ede\nMOV             R7, R0                                                 ; +0xb0, 0x482ee0\nCBZ             R0, loc_482EF8                                         ; +0xb2, 0x482ee2\nLDR             R3, [R7]                                               ; +0xb4, 0x482ee4\nLDR.W           R3, [R3,#0x1D8]                                        ; +0xb6, 0x482ee6\nBLX             R3                                                     ; +0xba, 0x482eea\nBLX             atoi                                                   ; +0xbc, 0x482eec\nLDR.W           R1, [R4,#0x504]; char *                                ; +0xc0, 0x482ef0\nCMP             R0, R8                                                 ; +0xc4, 0x482ef4\nBEQ             loc_482F94                                             ; +0xc6, 0x482ef6\nLDR.W           R3, [R4,#0x37C]                                        ; +0xc8, 0x482ef8\nMOVW            R2, #0x4F4                                             ; +0xcc, 0x482efc\nCMP             R3, R2                                                 ; +0xd0, 0x482f00\nBEQ             loc_482F36                                             ; +0xd2, 0x482f02\nBGT             loc_482F12                                             ; +0xd4, 0x482f04\nMOVW            R2, #0x385                                             ; +0xd6, 0x482f06\nCMP             R3, R2                                                 ; +0xda, 0x482f0a\nBEQ             loc_482F26                                             ; +0xdc, 0x482f0c\nPOP.W           {R4-R8,PC}                                             ; +0xde, 0x482f0e\nMOVW            R2, #0x814                                             ; +0xe2, 0x482f12\nCMP             R3, R2                                                 ; +0xe6, 0x482f16\nBEQ             loc_482F52                                             ; +0xe8, 0x482f18\nMOVW            R2, #0xB57                                             ; +0xea, 0x482f1a\nCMP             R3, R2                                                 ; +0xee, 0x482f1e\nBEQ             loc_482F60                                             ; +0xf0, 0x482f20\nPOP.W           {R4-R8,PC}                                             ; +0xf2, 0x482f22\nLDR.W           R3, [R4,#0x544]                                        ; +0xf6, 0x482f26\nCMP             R3, R5                                                 ; +0xfa, 0x482f2a\nBNE             locret_482FB2                                          ; +0xfc, 0x482f2c\nSTR.W           R6, [R4,#0x544]                                        ; +0xfe, 0x482f2e\nPOP.W           {R4-R8,PC}                                             ; +0x102, 0x482f32\nMOV             R0, R4; this                                           ; +0x106, 0x482f36\nMOV             R1, R5; int                                            ; +0x108, 0x482f38\nMOV             R2, R6; int                                            ; +0x10a, 0x482f3a\nMOVS            R3, #0; bool                                           ; +0x10c, 0x482f3c\nBL              _ZN22SpawnTriggerGameObject11changeRemapEiib; SpawnTriggerGameObject::changeRemap(int,int,bool) ; +0x10e, 0x482f3e\nMOV             R0, R4; this                                           ; +0x112, 0x482f42\nMOV             R1, R5; int                                            ; +0x114, 0x482f44\nMOV             R2, R6; int                                            ; +0x116, 0x482f46\nMOVS            R3, #1; bool                                           ; +0x118, 0x482f48\nPOP.W           {R4-R8,LR}                                             ; +0x11a, 0x482f4a\nB.W             _ZN22SpawnTriggerGameObject11changeRemapEiib; SpawnTriggerGameObject::changeRemap(int,int,bool) ; +0x11e, 0x482f4e\nMOV             R0, R4; this                                           ; +0x122, 0x482f52\nMOV             R1, R5; int                                            ; +0x124, 0x482f54\nMOV             R2, R6; int                                            ; +0x126, 0x482f56\nPOP.W           {R4-R8,LR}                                             ; +0x128, 0x482f58\nB.W             _ZN23ChanceTriggerGameObject16editChanceObjectEii; ChanceTriggerGameObject::editChanceObject(int,int) ; +0x12c, 0x482f5c\nLDR.W           R3, [R4,#0x67C]                                        ; +0x130, 0x482f60\nCMP             R3, R5                                                 ; +0x134, 0x482f64\nLDR.W           R3, [R4,#0x680]                                        ; +0x136, 0x482f66\nIT EQ                                                                  ; +0x13a, 0x482f6a\nSTREQ.W         R6, [R4,#0x67C]                                        ; +0x13c, 0x482f6c\nCMP             R3, R5                                                 ; +0x140, 0x482f70\nLDR.W           R3, [R4,#0x684]                                        ; +0x142, 0x482f72\nIT EQ                                                                  ; +0x146, 0x482f76\nSTREQ.W         R6, [R4,#0x680]                                        ; +0x148, 0x482f78\nCMP             R3, R5                                                 ; +0x14c, 0x482f7c\nLDR.W           R3, [R4,#0x688]                                        ; +0x14e, 0x482f7e\nIT EQ                                                                  ; +0x152, 0x482f82\nSTREQ.W         R6, [R4,#0x684]                                        ; +0x154, 0x482f84\nCMP             R3, R5                                                 ; +0x158, 0x482f88\nBNE             locret_482FB2                                          ; +0x15a, 0x482f8a\nSTR.W           R6, [R4,#0x688]                                        ; +0x15c, 0x482f8c\nPOP.W           {R4-R8,PC}                                             ; +0x160, 0x482f90\nCMP             R1, R8                                                 ; +0x164, 0x482f94\nBEQ             loc_482EF8                                             ; +0x166, 0x482f96\nLDR             R0, =(aI - 0x482F9E); \"%i\"                             ; +0x168, 0x482f98\nADD             R0, PC; \"%i\"                                           ; +0x16a, 0x482f9a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x16c, 0x482f9c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x170, 0x482fa0\nLDR             R3, [R7]                                               ; +0x174, 0x482fa4\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x176, 0x482fa6\nMOV             R1, R0                                                 ; +0x17a, 0x482faa\nMOV             R0, R7                                                 ; +0x17c, 0x482fac\nBLX             R3                                                     ; +0x17e, 0x482fae\nB               loc_482EF8                                             ; +0x180, 0x482fb0\nPOP.W           {R4-R8,PC}                                             ; +0x182, 0x482fb2", "xrefs": ["EditorUI::dynamicGroupUpdate @ 0x48de00"], "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"}