{"type": "func", "start": 4295250048, "end": 4295250699, "name": "EditorUI::replaceGroupID", "pseudocode": "// \n// EditorUI::replaceGroupID from 0x100045080 to 0x10004530b (651 bytes)\n// \n// 1 xrefs:\n// > EditorUI::dynamicGroupUpdate @ 0x100044d22\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::replaceGroupID(EditorUI *a1, GameObject *a2, int a3, int a4)\n{\n  char v4; // al\n  int v7; // r12d\n  float height; // r13d\n  int m_objectID; // eax\n  __int64 v10; // rax\n  __int64 v11; // r12\n  const char *v12; // rax\n  cocos2d::CCString *v13; // rax\n  const char *CString; // rax\n  int v15; // eax\n  char v16; // [rsp-8h] [rbp-30h]\n\n  v16 = v4;\n  if ( a2->m_groupCount <= 0 )\n  {\nLABEL_5:\n    if ( a2->m_classType != Effect )\n      return;\n  }\n  else\n  {\n    v7 = 0;\n    while ( GameObject::getGroupID(a2, v7) != a3 )\n    {\n      if ( ++v7 >= a2->m_groupCount )\n        goto LABEL_5;\n    }\n    ((void (__fastcall *)(GameObject *, _QWORD))a2->removeFromGroup)(a2, (unsigned int)a3);\n    ((void (__fastcall *)(GameObject *, _QWORD))a2->addToGroup)(a2, (unsigned int)a4);\n    if ( a2->m_classType != Effect )\n      return;\n  }\n  height = a2[1].m_obContentSize.height;\n  if ( LODWORD(height) == a3 )\n  {\n    EffectGameObject::setTargetID((EffectGameObject *)a2, a4);\n    if ( LODWORD(a2[1].m_sAdditionalTransform.a) != a3 )\n    {\nLABEL_10:\n      if ( *(_DWORD *)&a2[1]._displayedOpacity != a3 )\n        goto LABEL_11;\n      goto LABEL_16;\n    }\n  }\n  else if ( LODWORD(a2[1].m_sAdditionalTransform.a) != a3 )\n  {\n    goto LABEL_10;\n  }\n  EffectGameObject::setTargetID2((EffectGameObject *)a2, a4);\n  if ( *(_DWORD *)&a2[1]._displayedOpacity != a3 )\n  {\nLABEL_11:\n    if ( *(_DWORD *)(&a2[1].m_bUnkBool2 + 3) != a3 )\n      goto LABEL_12;\n    goto LABEL_17;\n  }\nLABEL_16:\n  *(_DWORD *)&a2[1]._displayedOpacity = a4;\n  if ( *(_DWORD *)(&a2[1].m_bUnkBool2 + 3) != a3 )\n  {\nLABEL_12:\n    m_objectID = a2->m_objectID;\n    if ( m_objectID == 899 )\n      return;\n    goto LABEL_18;\n  }\nLABEL_17:\n  *(_DWORD *)(&a2[1].m_bUnkBool2 + 3) = a4;\n  m_objectID = a2->m_objectID;\n  if ( m_objectID == 899 )\n    return;\nLABEL_18:\n  if ( m_objectID == 1615 )\n    return;\n  v10 = ((__int64 (__fastcall *)(GameObject *, __int64))a2->getChildByTag)(a2, 999);\n  if ( v10 )\n  {\n    v11 = v10;\n    v12 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 928LL))(v10);\n    if ( atoi(v12) == LODWORD(height) && LODWORD(a2[1].m_obContentSize.height) != LODWORD(height) )\n    {\n      v13 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v16);\n      CString = cocos2d::CCString::getCString(v13);\n      (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v11 + 912LL))(v11, CString);\n    }\n  }\n  v15 = a2->m_objectID;\n  if ( v15 <= 2067 )\n  {\n    if ( v15 == 901 )\n    {\n      if ( LODWORD(a2[1].m_sInverse.d) == a3 )\n        LODWORD(a2[1].m_sInverse.d) = a4;\n    }\n    else if ( v15 == 1268 )\n    {\n      SpawnTriggerGameObject::changeRemap((SpawnTriggerGameObject *)a2, a3, a4, 0);\n      SpawnTriggerGameObject::changeRemap((SpawnTriggerGameObject *)a2, a3, a4, 1);\n    }\n    return;\n  }\n  if ( v15 == 2068 )\n  {\n    ChanceTriggerGameObject::editChanceObject((ChanceTriggerGameObject *)a2, a3, a4);\n    return;\n  }\n  if ( v15 == 2903 )\n  {\n    if ( *(_DWORD *)&a2[1].m_sQuad.bl.colors == a3 )\n    {\n      a2[1].m_sQuad.bl.colors = (cocos2d::ccColor4B)a4;\n      if ( LODWORD(a2[1].m_sQuad.bl.texCoords.u) != a3 )\n      {\nLABEL_31:\n        if ( LODWORD(a2[1].m_sQuad.bl.texCoords.v) != a3 )\n          goto LABEL_32;\n        goto LABEL_39;\n      }\n    }\n    else if ( LODWORD(a2[1].m_sQuad.bl.texCoords.u) != a3 )\n    {\n      goto LABEL_31;\n    }\n    LODWORD(a2[1].m_sQuad.bl.texCoords.u) = a4;\n    if ( LODWORD(a2[1].m_sQuad.bl.texCoords.v) != a3 )\n    {\nLABEL_32:\n      if ( LODWORD(a2[1].m_sQuad.tr.vertices.x) != a3 )\n        return;\n      goto LABEL_40;\n    }\nLABEL_39:\n    LODWORD(a2[1].m_sQuad.bl.texCoords.v) = a4;\n    if ( LODWORD(a2[1].m_sQuad.tr.vertices.x) != a3 )\n      return;\nLABEL_40:\n    LODWORD(a2[1].m_sQuad.tr.vertices.x) = a4;\n  }\n}", "assembly": "; \n; EditorUI::replaceGroupID from 0x100045080 to 0x10004530b (651 bytes)\n; \n; 1 xrefs:\n; > EditorUI::dynamicGroupUpdate @ 0x100044d22\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, 0x100045080\nmov     rbp, rsp                                                       ; +0x1, 0x100045081\npush    r15                                                            ; +0x4, 0x100045084\npush    r14                                                            ; +0x6, 0x100045086\npush    r13                                                            ; +0x8, 0x100045088\npush    r12                                                            ; +0xa, 0x10004508a\npush    rbx                                                            ; +0xc, 0x10004508c\npush    rax; char                                                      ; +0xd, 0x10004508d\nmov     ebx, ecx                                                       ; +0xe, 0x10004508e\nmov     r15d, edx                                                      ; +0x10, 0x100045090\nmov     r14, rsi                                                       ; +0x13, 0x100045093\ncmp     word ptr [rsi+490h], 0                                         ; +0x16, 0x100045096\njle     short loc_1000450D0                                            ; +0x1e, 0x10004509e\nxor     r12d, r12d                                                     ; +0x20, 0x1000450a0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x23, 0x1000450a3\nmov     rdi, r14                                                       ; +0x30, 0x1000450b0\nmov     esi, r12d                                                      ; +0x33, 0x1000450b3\ncall    GameObject__getGroupID                                         ; +0x36, 0x1000450b6\ncmp     eax, r15d                                                      ; +0x3b, 0x1000450bb\njz      short loc_1000450DF                                            ; +0x3e, 0x1000450be\ninc     r12d                                                           ; +0x40, 0x1000450c0\nmovsx   eax, word ptr [r14+490h]                                       ; +0x43, 0x1000450c3\ncmp     r12d, eax                                                      ; +0x4b, 0x1000450cb\njl      short loc_1000450B0                                            ; +0x4e, 0x1000450ce\ncmp     dword ptr [r14+4E0h], 1                                        ; +0x50, 0x1000450d0\njz      short loc_10004510A                                            ; +0x58, 0x1000450d8\njmp     loc_100045193                                                  ; +0x5a, 0x1000450da\nmov     rax, [r14]                                                     ; +0x5f, 0x1000450df\nmov     rdi, r14                                                       ; +0x62, 0x1000450e2\nmov     esi, r15d                                                      ; +0x65, 0x1000450e5\ncall    qword ptr [rax+638h]                                           ; +0x68, 0x1000450e8\nmov     rax, [r14]                                                     ; +0x6e, 0x1000450ee\nmov     rdi, r14                                                       ; +0x71, 0x1000450f1\nmov     esi, ebx                                                       ; +0x74, 0x1000450f4\ncall    qword ptr [rax+630h]                                           ; +0x76, 0x1000450f6\ncmp     dword ptr [r14+4E0h], 1                                        ; +0x7c, 0x1000450fc\njnz     loc_100045193                                                  ; +0x84, 0x100045104\nmov     r13d, [r14+5B8h]                                               ; +0x8a, 0x10004510a\ncmp     r13d, r15d                                                     ; +0x91, 0x100045111\njz      short loc_100045141                                            ; +0x94, 0x100045114\ncmp     [r14+5BCh], r15d                                               ; +0x96, 0x100045116\njz      short loc_100045154                                            ; +0x9d, 0x10004511d\ncmp     [r14+690h], r15d                                               ; +0x9f, 0x10004511f\njz      short loc_100045167                                            ; +0xa6, 0x100045126\ncmp     [r14+684h], r15d                                               ; +0xa8, 0x100045128\njz      short loc_100045177                                            ; +0xaf, 0x10004512f\nmov     eax, [r14+404h]                                                ; +0xb1, 0x100045131\ncmp     eax, 383h                                                      ; +0xb8, 0x100045138\njnz     short loc_10004518C                                            ; +0xbd, 0x10004513d\njmp     short loc_100045193                                            ; +0xbf, 0x10004513f\nmov     rdi, r14                                                       ; +0xc1, 0x100045141\nmov     esi, ebx                                                       ; +0xc4, 0x100045144\ncall    EffectGameObject__setTargetID                                  ; +0xc6, 0x100045146\ncmp     [r14+5BCh], r15d                                               ; +0xcb, 0x10004514b\njnz     short loc_10004511F                                            ; +0xd2, 0x100045152\nmov     rdi, r14                                                       ; +0xd4, 0x100045154\nmov     esi, ebx                                                       ; +0xd7, 0x100045157\ncall    EffectGameObject__setTargetID2                                 ; +0xd9, 0x100045159\ncmp     [r14+690h], r15d                                               ; +0xde, 0x10004515e\njnz     short loc_100045128                                            ; +0xe5, 0x100045165\nmov     [r14+690h], ebx                                                ; +0xe7, 0x100045167\ncmp     [r14+684h], r15d                                               ; +0xee, 0x10004516e\njnz     short loc_100045131                                            ; +0xf5, 0x100045175\nmov     [r14+684h], ebx                                                ; +0xf7, 0x100045177\nmov     eax, [r14+404h]                                                ; +0xfe, 0x10004517e\ncmp     eax, 383h                                                      ; +0x105, 0x100045185\njz      short loc_100045193                                            ; +0x10a, 0x10004518a\ncmp     eax, 64Fh                                                      ; +0x10c, 0x10004518c\njnz     short loc_1000451A2                                            ; +0x111, 0x100045191\nadd     rsp, 8                                                         ; +0x113, 0x100045193\npop     rbx                                                            ; +0x117, 0x100045197\npop     r12                                                            ; +0x118, 0x100045198\npop     r13                                                            ; +0x11a, 0x10004519a\npop     r14                                                            ; +0x11c, 0x10004519c\npop     r15                                                            ; +0x11e, 0x10004519e\npop     rbp                                                            ; +0x120, 0x1000451a0\nretn                                                                   ; +0x121, 0x1000451a1\nmov     rax, [r14]                                                     ; +0x122, 0x1000451a2\nmov     rdi, r14                                                       ; +0x125, 0x1000451a5\nmov     esi, 3E7h                                                      ; +0x128, 0x1000451a8\ncall    qword ptr [rax+1D0h]                                           ; +0x12d, 0x1000451ad\ntest    rax, rax                                                       ; +0x133, 0x1000451b3\njz      short loc_10004520C                                            ; +0x136, 0x1000451b6\nmov     r12, rax                                                       ; +0x138, 0x1000451b8\nmov     rax, [rax]                                                     ; +0x13b, 0x1000451bb\nmov     rdi, r12                                                       ; +0x13e, 0x1000451be\ncall    qword ptr [rax+3A0h]                                           ; +0x141, 0x1000451c1\nmov     rdi, rax; char *                                               ; +0x147, 0x1000451c7\ncall    _atoi                                                          ; +0x14a, 0x1000451ca\nmov     esi, [r14+5B8h]                                                ; +0x14f, 0x1000451cf\ncmp     eax, r13d                                                      ; +0x156, 0x1000451d6\nsetnz   al                                                             ; +0x159, 0x1000451d9\ncmp     esi, r13d                                                      ; +0x15c, 0x1000451dc\nsetz    cl                                                             ; +0x15f, 0x1000451df\nor      cl, al                                                         ; +0x162, 0x1000451e2\njnz     short loc_10004520C                                            ; +0x164, 0x1000451e4\nlea     rdi, aI; \"%i\"                                                  ; +0x166, 0x1000451e6\nxor     eax, eax                                                       ; +0x16d, 0x1000451ed\ncall    sub_1007AB580                                                  ; +0x16f, 0x1000451ef\nmov     rdi, rax                                                       ; +0x174, 0x1000451f4\ncall    cocos2d__CCString__getCString                                  ; +0x177, 0x1000451f7\nmov     rcx, [r12]                                                     ; +0x17c, 0x1000451fc\nmov     rdi, r12                                                       ; +0x180, 0x100045200\nmov     rsi, rax                                                       ; +0x183, 0x100045203\ncall    qword ptr [rcx+390h]                                           ; +0x186, 0x100045206\nmov     eax, [r14+404h]                                                ; +0x18c, 0x10004520c\ncmp     eax, 813h                                                      ; +0x193, 0x100045213\njg      short loc_10004525B                                            ; +0x198, 0x100045218\ncmp     eax, 385h                                                      ; +0x19a, 0x10004521a\njz      short loc_100045297                                            ; +0x19f, 0x10004521f\ncmp     eax, 4F4h                                                      ; +0x1a1, 0x100045221\njnz     loc_100045193                                                  ; +0x1a6, 0x100045226\nmov     rdi, r14                                                       ; +0x1ac, 0x10004522c\nmov     esi, r15d                                                      ; +0x1af, 0x10004522f\nmov     edx, ebx                                                       ; +0x1b2, 0x100045232\nxor     ecx, ecx                                                       ; +0x1b4, 0x100045234\ncall    SpawnTriggerGameObject__changeRemap                            ; +0x1b6, 0x100045236\nmov     rdi, r14                                                       ; +0x1bb, 0x10004523b\nmov     esi, r15d                                                      ; +0x1be, 0x10004523e\nmov     edx, ebx                                                       ; +0x1c1, 0x100045241\nmov     ecx, 1                                                         ; +0x1c3, 0x100045243\nadd     rsp, 8                                                         ; +0x1c8, 0x100045248\npop     rbx                                                            ; +0x1cc, 0x10004524c\npop     r12                                                            ; +0x1cd, 0x10004524d\npop     r13                                                            ; +0x1cf, 0x10004524f\npop     r14                                                            ; +0x1d1, 0x100045251\npop     r15                                                            ; +0x1d3, 0x100045253\npop     rbp                                                            ; +0x1d5, 0x100045255\njmp     SpawnTriggerGameObject__changeRemap                            ; +0x1d6, 0x100045256\ncmp     eax, 814h                                                      ; +0x1db, 0x10004525b\njz      short loc_1000452B0                                            ; +0x1e0, 0x100045260\ncmp     eax, 0B57h                                                     ; +0x1e2, 0x100045262\njnz     loc_100045193                                                  ; +0x1e7, 0x100045267\ncmp     [r14+738h], r15d                                               ; +0x1ed, 0x10004526d\njz      short loc_1000452CB                                            ; +0x1f4, 0x100045274\ncmp     [r14+73Ch], r15d                                               ; +0x1f6, 0x100045276\njz      short loc_1000452DB                                            ; +0x1fd, 0x10004527d\ncmp     [r14+740h], r15d                                               ; +0x1ff, 0x10004527f\njz      short loc_1000452EB                                            ; +0x206, 0x100045286\ncmp     [r14+744h], r15d                                               ; +0x208, 0x100045288\njnz     loc_100045193                                                  ; +0x20f, 0x10004528f\njmp     short loc_1000452FF                                            ; +0x215, 0x100045295\ncmp     [r14+5F8h], r15d                                               ; +0x217, 0x100045297\njnz     loc_100045193                                                  ; +0x21e, 0x10004529e\nmov     [r14+5F8h], ebx                                                ; +0x224, 0x1000452a4\njmp     loc_100045193                                                  ; +0x22b, 0x1000452ab\nmov     rdi, r14                                                       ; +0x230, 0x1000452b0\nmov     esi, r15d                                                      ; +0x233, 0x1000452b3\nmov     edx, ebx                                                       ; +0x236, 0x1000452b6\nadd     rsp, 8                                                         ; +0x238, 0x1000452b8\npop     rbx                                                            ; +0x23c, 0x1000452bc\npop     r12                                                            ; +0x23d, 0x1000452bd\npop     r13                                                            ; +0x23f, 0x1000452bf\npop     r14                                                            ; +0x241, 0x1000452c1\npop     r15                                                            ; +0x243, 0x1000452c3\npop     rbp                                                            ; +0x245, 0x1000452c5\njmp     ChanceTriggerGameObject__editChanceObject                      ; +0x246, 0x1000452c6\nmov     [r14+738h], ebx                                                ; +0x24b, 0x1000452cb\ncmp     [r14+73Ch], r15d                                               ; +0x252, 0x1000452d2\njnz     short loc_10004527F                                            ; +0x259, 0x1000452d9\nmov     [r14+73Ch], ebx                                                ; +0x25b, 0x1000452db\ncmp     [r14+740h], r15d                                               ; +0x262, 0x1000452e2\njnz     short loc_100045288                                            ; +0x269, 0x1000452e9\nmov     [r14+740h], ebx                                                ; +0x26b, 0x1000452eb\ncmp     [r14+744h], r15d                                               ; +0x272, 0x1000452f2\njnz     loc_100045193                                                  ; +0x279, 0x1000452f9\nmov     [r14+744h], ebx                                                ; +0x27f, 0x1000452ff\njmp     loc_100045193                                                  ; +0x286, 0x100045306", "xrefs": ["EditorUI::dynamicGroupUpdate @ 0x100044d22"], "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"}