{"type": "func", "start": 8141232, "end": 8141868, "name": "EditorUI::replaceGroupID", "pseudocode": "// \n// EditorUI::replaceGroupID from 0x7c39b0 to 0x7c3c2c (636 bytes)\n// \n// 2 xrefs:\n// > EditorUI::dynamicGroupUpdate @ 0x7d3ba4\n// > <???> @ 0xb1100\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:07 +0000\n// \n\n__int64 __fastcall EditorUI::replaceGroupID(GJBaseGameLayer **this, GameObject *a2, unsigned int a3, unsigned int a4)\n{\n  signed int v8; // w19\n  unsigned int v9; // w1\n  __int64 result; // x0\n  int v11; // w19\n  __int64 v12; // x0\n  __int64 v13; // x23\n  const char *v14; // x0\n  int v15; // w0\n  const char *v16; // x1\n  cocos2d::CCString *v17; // x0\n  __int64 CString; // x0\n  int v19; // w0\n\n  v8 = 0;\n  if ( *((__int16 *)a2 + 584) > 0 )\n  {\n    while ( 1 )\n    {\n      v9 = v8++;\n      if ( (unsigned int)GameObject::getGroupID(a2, v9) == a3 )\n        break;\n      if ( *((__int16 *)a2 + 584) <= v8 )\n        goto LABEL_6;\n    }\n    (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)a2 + 1608LL))(a2, a3);\n    (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)a2 + 1600LL))(a2, a4);\n  }\nLABEL_6:\n  GJBaseGameLayer::remapGroupParent(*(this + 180), a2, a3, a4);\n  result = *((unsigned int *)a2 + 312);\n  if ( (_DWORD)result == 1 )\n  {\n    v11 = *((_DWORD *)a2 + 366);\n    if ( a3 == v11 )\n      EffectGameObject::setTargetID(a2, a4);\n    if ( a3 == *((_DWORD *)a2 + 367) )\n      EffectGameObject::setTargetID2(a2, a4);\n    if ( a3 == *((_DWORD *)a2 + 420) )\n    {\n      v19 = *((_DWORD *)a2 + 417);\n      *((_DWORD *)a2 + 420) = a4;\n      if ( a3 != v19 )\n        goto LABEL_14;\n    }\n    else if ( a3 != *((_DWORD *)a2 + 417) )\n    {\n      goto LABEL_14;\n    }\n    *((_DWORD *)a2 + 417) = a4;\nLABEL_14:\n    result = *((unsigned int *)a2 + 257);\n    if ( (_DWORD)result != 1615 && (_DWORD)result != 899 )\n    {\n      v12 = (*(__int64 (__fastcall **)(GameObject *, __int64))(*(_QWORD *)a2 + 480LL))(a2, 999);\n      v13 = v12;\n      if ( v12 )\n      {\n        v14 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 944LL))(v12);\n        v15 = atoi(v14);\n        v16 = (const char *)*((unsigned int *)a2 + 366);\n        if ( v11 == v15 && v11 != (_DWORD)v16 )\n        {\n          v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v16);\n          CString = cocos2d::CCString::getCString(v17);\n          (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 928LL))(v13, CString);\n        }\n      }\n      result = *((unsigned int *)a2 + 257);\n    }\n    if ( (_DWORD)result == 1268 )\n    {\n      SpawnTriggerGameObject::changeRemap(a2, a3, a4, 0);\n      return SpawnTriggerGameObject::changeRemap(a2, a3, a4, 1);\n    }\n    else if ( (int)result <= 1268 )\n    {\n      if ( (_DWORD)result == 901 )\n      {\n        result = *((unsigned int *)a2 + 382);\n        if ( (_DWORD)result == a3 )\n          *((_DWORD *)a2 + 382) = a4;\n      }\n    }\n    else if ( (_DWORD)result == 2068 )\n    {\n      return ChanceTriggerGameObject::editChanceObject(a2, a3, a4);\n    }\n    else if ( (_DWORD)result == 2903 )\n    {\n      if ( *((_DWORD *)a2 + 463) == a3 )\n        *((_DWORD *)a2 + 463) = a4;\n      if ( *((_DWORD *)a2 + 464) == a3 )\n        *((_DWORD *)a2 + 464) = a4;\n      if ( *((_DWORD *)a2 + 465) == a3 )\n        *((_DWORD *)a2 + 465) = a4;\n      result = *((unsigned int *)a2 + 466);\n      if ( (_DWORD)result == a3 )\n        *((_DWORD *)a2 + 466) = a4;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::replaceGroupID from 0x7c39b0 to 0x7c3c2c (636 bytes)\n; \n; 2 xrefs:\n; > EditorUI::dynamicGroupUpdate @ 0x7d3ba4\n; > <???> @ 0xb1100\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:07 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7c39b0\nMOV             X29, SP                                                ; +0x4, 0x7c39b4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7c39b8\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0x7c39bc\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x7c39c0\nMOV             X23, X0                                                ; +0x14, 0x7c39c4\nMOV             X20, X1                                                ; +0x18, 0x7c39c8\nMOV             W21, W2                                                ; +0x1c, 0x7c39cc\nLDRSH           W0, [X1,#0x490]                                        ; +0x20, 0x7c39d0\nMOV             W22, W3                                                ; +0x24, 0x7c39d4\nMOV             W19, #0                                                ; +0x28, 0x7c39d8\nCMP             W0, WZR                                                ; +0x2c, 0x7c39dc\nB.GT            loc_7C39F4                                             ; +0x30, 0x7c39e0\nB               loc_7C3A34                                             ; +0x34, 0x7c39e4\nLDRSH           W0, [X20,#0x490]                                       ; +0x38, 0x7c39e8\nCMP             W0, W19                                                ; +0x3c, 0x7c39ec\nB.LE            loc_7C3A34                                             ; +0x40, 0x7c39f0\nMOV             W1, W19; int                                           ; +0x44, 0x7c39f4\nMOV             X0, X20; this                                          ; +0x48, 0x7c39f8\nADD             W19, W19, #1                                           ; +0x4c, 0x7c39fc\nBL              _ZN10GameObject10getGroupIDEi; GameObject::getGroupID(int) ; +0x50, 0x7c3a00\nCMP             W0, W21                                                ; +0x54, 0x7c3a04\nB.NE            loc_7C39E8                                             ; +0x58, 0x7c3a08\nLDR             X2, [X20]                                              ; +0x5c, 0x7c3a0c\nMOV             X0, X20                                                ; +0x60, 0x7c3a10\nMOV             W1, W21                                                ; +0x64, 0x7c3a14\nLDR             X2, [X2,#0x648]                                        ; +0x68, 0x7c3a18\nBLR             X2                                                     ; +0x6c, 0x7c3a1c\nLDR             X2, [X20]                                              ; +0x70, 0x7c3a20\nMOV             X0, X20                                                ; +0x74, 0x7c3a24\nMOV             W1, W22                                                ; +0x78, 0x7c3a28\nLDR             X2, [X2,#0x640]                                        ; +0x7c, 0x7c3a2c\nBLR             X2                                                     ; +0x80, 0x7c3a30\nLDR             X0, [X23,#0x5A0]; this                                 ; +0x84, 0x7c3a34\nMOV             X1, X20; GameObject *                                  ; +0x88, 0x7c3a38\nMOV             W2, W21; int                                           ; +0x8c, 0x7c3a3c\nMOV             W3, W22; int                                           ; +0x90, 0x7c3a40\nBL              _ZN15GJBaseGameLayer16remapGroupParentEP10GameObjectii; GJBaseGameLayer::remapGroupParent(GameObject *,int,int) ; +0x94, 0x7c3a44\nLDR             W0, [X20,#0x4E0]                                       ; +0x98, 0x7c3a48\nCMP             W0, #1                                                 ; +0x9c, 0x7c3a4c\nB.EQ            loc_7C3A68                                             ; +0xa0, 0x7c3a50\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa4, 0x7c3a54\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xa8, 0x7c3a58\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xac, 0x7c3a5c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb0, 0x7c3a60\nRET                                                                    ; +0xb4, 0x7c3a64\nLDR             W19, [X20,#0x5B8]                                      ; +0xb8, 0x7c3a68\nCMP             W21, W19                                               ; +0xbc, 0x7c3a6c\nB.EQ            loc_7C3C04                                             ; +0xc0, 0x7c3a70\nLDR             W0, [X20,#0x5BC]                                       ; +0xc4, 0x7c3a74\nCMP             W21, W0                                                ; +0xc8, 0x7c3a78\nB.EQ            loc_7C3BF4                                             ; +0xcc, 0x7c3a7c\nLDR             W0, [X20,#0x690]                                       ; +0xd0, 0x7c3a80\nCMP             W21, W0                                                ; +0xd4, 0x7c3a84\nB.EQ            loc_7C3B84                                             ; +0xd8, 0x7c3a88\nLDR             W0, [X20,#0x684]                                       ; +0xdc, 0x7c3a8c\nCMP             W21, W0                                                ; +0xe0, 0x7c3a90\nB.EQ            loc_7C3B94                                             ; +0xe4, 0x7c3a94\nLDR             W0, [X20,#0x404]                                       ; +0xe8, 0x7c3a98\nCMP             W0, #0x64F                                             ; +0xec, 0x7c3a9c\nB.EQ            loc_7C3B14                                             ; +0xf0, 0x7c3aa0\nCMP             W0, #0x383                                             ; +0xf4, 0x7c3aa4\nB.EQ            loc_7C3B14                                             ; +0xf8, 0x7c3aa8\nLDR             X2, [X20]                                              ; +0xfc, 0x7c3aac\nMOV             X0, X20                                                ; +0x100, 0x7c3ab0\nMOV             W1, #0x3E7                                             ; +0x104, 0x7c3ab4\nLDR             X2, [X2,#0x1E0]                                        ; +0x108, 0x7c3ab8\nBLR             X2                                                     ; +0x10c, 0x7c3abc\nMOV             X23, X0                                                ; +0x110, 0x7c3ac0\nCBZ             X0, loc_7C3B10                                         ; +0x114, 0x7c3ac4\nLDR             X1, [X23]                                              ; +0x118, 0x7c3ac8\nLDR             X1, [X1,#0x3B0]                                        ; +0x11c, 0x7c3acc\nBLR             X1                                                     ; +0x120, 0x7c3ad0\nBL              .atoi                                                  ; +0x124, 0x7c3ad4\nCMP             W19, W0                                                ; +0x128, 0x7c3ad8\nLDR             W1, [X20,#0x5B8]; char *                               ; +0x12c, 0x7c3adc\nB.NE            loc_7C3B10                                             ; +0x130, 0x7c3ae0\nCMP             W19, W1                                                ; +0x134, 0x7c3ae4\nB.EQ            loc_7C3B10                                             ; +0x138, 0x7c3ae8\nADRL            X0, (aSongidI+8); this                                 ; +0x13c, 0x7c3aec\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x144, 0x7c3af4\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x148, 0x7c3af8\nMOV             X1, X0                                                 ; +0x14c, 0x7c3afc\nLDR             X2, [X23]                                              ; +0x150, 0x7c3b00\nMOV             X0, X23                                                ; +0x154, 0x7c3b04\nLDR             X2, [X2,#0x3A0]                                        ; +0x158, 0x7c3b08\nBLR             X2                                                     ; +0x15c, 0x7c3b0c\nLDR             W0, [X20,#0x404]                                       ; +0x160, 0x7c3b10\nCMP             W0, #0x4F4                                             ; +0x164, 0x7c3b14\nB.EQ            loc_7C3BBC                                             ; +0x168, 0x7c3b18\nB.LE            loc_7C3B68                                             ; +0x16c, 0x7c3b1c\nCMP             W0, #0x814                                             ; +0x170, 0x7c3b20\nB.EQ            loc_7C3B9C                                             ; +0x174, 0x7c3b24\nCMP             W0, #0xB57                                             ; +0x178, 0x7c3b28\nB.NE            loc_7C3A54                                             ; +0x17c, 0x7c3b2c\nLDR             W0, [X20,#0x73C]                                       ; +0x180, 0x7c3b30\nCMP             W0, W21                                                ; +0x184, 0x7c3b34\nB.EQ            loc_7C3C14                                             ; +0x188, 0x7c3b38\nLDR             W0, [X20,#0x740]                                       ; +0x18c, 0x7c3b3c\nCMP             W0, W21                                                ; +0x190, 0x7c3b40\nB.EQ            loc_7C3C24                                             ; +0x194, 0x7c3b44\nLDR             W0, [X20,#0x744]                                       ; +0x198, 0x7c3b48\nCMP             W0, W21                                                ; +0x19c, 0x7c3b4c\nB.EQ            loc_7C3C1C                                             ; +0x1a0, 0x7c3b50\nLDR             W0, [X20,#0x748]                                       ; +0x1a4, 0x7c3b54\nCMP             W0, W21                                                ; +0x1a8, 0x7c3b58\nB.NE            loc_7C3A54                                             ; +0x1ac, 0x7c3b5c\nSTR             W22, [X20,#0x748]                                      ; +0x1b0, 0x7c3b60\nB               loc_7C3A54                                             ; +0x1b4, 0x7c3b64\nCMP             W0, #0x385                                             ; +0x1b8, 0x7c3b68\nB.NE            loc_7C3A54                                             ; +0x1bc, 0x7c3b6c\nLDR             W0, [X20,#0x5F8]                                       ; +0x1c0, 0x7c3b70\nCMP             W0, W21                                                ; +0x1c4, 0x7c3b74\nB.NE            loc_7C3A54                                             ; +0x1c8, 0x7c3b78\nSTR             W22, [X20,#0x5F8]                                      ; +0x1cc, 0x7c3b7c\nB               loc_7C3A54                                             ; +0x1d0, 0x7c3b80\nLDR             W0, [X20,#0x684]                                       ; +0x1d4, 0x7c3b84\nSTR             W22, [X20,#0x690]                                      ; +0x1d8, 0x7c3b88\nCMP             W21, W0                                                ; +0x1dc, 0x7c3b8c\nB.NE            loc_7C3A98                                             ; +0x1e0, 0x7c3b90\nSTR             W22, [X20,#0x684]                                      ; +0x1e4, 0x7c3b94\nB               loc_7C3A98                                             ; +0x1e8, 0x7c3b98\nMOV             X0, X20; this                                          ; +0x1ec, 0x7c3b9c\nMOV             W1, W21; int                                           ; +0x1f0, 0x7c3ba0\nMOV             W2, W22; int                                           ; +0x1f4, 0x7c3ba4\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x1f8, 0x7c3ba8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x1fc, 0x7c3bac\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x200, 0x7c3bb0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x204, 0x7c3bb4\nB               _ZN23ChanceTriggerGameObject16editChanceObjectEii; ChanceTriggerGameObject::editChanceObject(int,int) ; +0x208, 0x7c3bb8\nMOV             X0, X20; this                                          ; +0x20c, 0x7c3bbc\nMOV             W1, W21; int                                           ; +0x210, 0x7c3bc0\nMOV             W2, W22; int                                           ; +0x214, 0x7c3bc4\nMOV             W3, #0; bool                                           ; +0x218, 0x7c3bc8\nBL              _ZN22SpawnTriggerGameObject11changeRemapEiib; SpawnTriggerGameObject::changeRemap(int,int,bool) ; +0x21c, 0x7c3bcc\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x220, 0x7c3bd0\nMOV             X0, X20; this                                          ; +0x224, 0x7c3bd4\nMOV             W1, W21; int                                           ; +0x228, 0x7c3bd8\nMOV             W2, W22; int                                           ; +0x22c, 0x7c3bdc\nMOV             W3, #1; bool                                           ; +0x230, 0x7c3be0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x234, 0x7c3be4\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x238, 0x7c3be8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x23c, 0x7c3bec\nB               _ZN22SpawnTriggerGameObject11changeRemapEiib; SpawnTriggerGameObject::changeRemap(int,int,bool) ; +0x240, 0x7c3bf0\nMOV             X0, X20; this                                          ; +0x244, 0x7c3bf4\nMOV             W1, W22; int                                           ; +0x248, 0x7c3bf8\nBL              _ZN16EffectGameObject12setTargetID2Ei; EffectGameObject::setTargetID2(int) ; +0x24c, 0x7c3bfc\nB               loc_7C3A80                                             ; +0x250, 0x7c3c00\nMOV             X0, X20; this                                          ; +0x254, 0x7c3c04\nMOV             W1, W22; int                                           ; +0x258, 0x7c3c08\nBL              _ZN16EffectGameObject11setTargetIDEi; EffectGameObject::setTargetID(int) ; +0x25c, 0x7c3c0c\nB               loc_7C3A74                                             ; +0x260, 0x7c3c10\nSTR             W22, [X20,#0x73C]                                      ; +0x264, 0x7c3c14\nB               loc_7C3B3C                                             ; +0x268, 0x7c3c18\nSTR             W22, [X20,#0x744]                                      ; +0x26c, 0x7c3c1c\nB               loc_7C3B54                                             ; +0x270, 0x7c3c20\nSTR             W22, [X20,#0x740]                                      ; +0x274, 0x7c3c24\nB               loc_7C3B48                                             ; +0x278, 0x7c3c28", "xrefs": ["EditorUI::dynamicGroupUpdate @ 0x7d3ba4", "<???> @ 0xb1100"], "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"}