// // EditorUI::replaceGroupID from 0x7c39b0 to 0x7c3c2c (636 bytes) // // 2 xrefs: // > EditorUI::dynamicGroupUpdate @ 0x7d3ba4 // > @ 0xb1100 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:54:07 +0000 // __int64 __fastcall EditorUI::replaceGroupID(GJBaseGameLayer **this, GameObject *a2, unsigned int a3, unsigned int a4) { signed int v8; // w19 unsigned int v9; // w1 __int64 result; // x0 int v11; // w19 __int64 v12; // x0 __int64 v13; // x23 const char *v14; // x0 int v15; // w0 const char *v16; // x1 cocos2d::CCString *v17; // x0 __int64 CString; // x0 int v19; // w0 v8 = 0; if ( *((__int16 *)a2 + 584) > 0 ) { while ( 1 ) { v9 = v8++; if ( (unsigned int)GameObject::getGroupID(a2, v9) == a3 ) break; if ( *((__int16 *)a2 + 584) <= v8 ) goto LABEL_6; } (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)a2 + 1608LL))(a2, a3); (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)a2 + 1600LL))(a2, a4); } LABEL_6: GJBaseGameLayer::remapGroupParent(*(this + 180), a2, a3, a4); result = *((unsigned int *)a2 + 312); if ( (_DWORD)result == 1 ) { v11 = *((_DWORD *)a2 + 366); if ( a3 == v11 ) EffectGameObject::setTargetID(a2, a4); if ( a3 == *((_DWORD *)a2 + 367) ) EffectGameObject::setTargetID2(a2, a4); if ( a3 == *((_DWORD *)a2 + 420) ) { v19 = *((_DWORD *)a2 + 417); *((_DWORD *)a2 + 420) = a4; if ( a3 != v19 ) goto LABEL_14; } else if ( a3 != *((_DWORD *)a2 + 417) ) { goto LABEL_14; } *((_DWORD *)a2 + 417) = a4; LABEL_14: result = *((unsigned int *)a2 + 257); if ( (_DWORD)result != 1615 && (_DWORD)result != 899 ) { v12 = (*(__int64 (__fastcall **)(GameObject *, __int64))(*(_QWORD *)a2 + 480LL))(a2, 999); v13 = v12; if ( v12 ) { v14 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 944LL))(v12); v15 = atoi(v14); v16 = (const char *)*((unsigned int *)a2 + 366); if ( v11 == v15 && v11 != (_DWORD)v16 ) { v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v16); CString = cocos2d::CCString::getCString(v17); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 928LL))(v13, CString); } } result = *((unsigned int *)a2 + 257); } if ( (_DWORD)result == 1268 ) { SpawnTriggerGameObject::changeRemap(a2, a3, a4, 0); return SpawnTriggerGameObject::changeRemap(a2, a3, a4, 1); } else if ( (int)result <= 1268 ) { if ( (_DWORD)result == 901 ) { result = *((unsigned int *)a2 + 382); if ( (_DWORD)result == a3 ) *((_DWORD *)a2 + 382) = a4; } } else if ( (_DWORD)result == 2068 ) { return ChanceTriggerGameObject::editChanceObject(a2, a3, a4); } else if ( (_DWORD)result == 2903 ) { if ( *((_DWORD *)a2 + 463) == a3 ) *((_DWORD *)a2 + 463) = a4; if ( *((_DWORD *)a2 + 464) == a3 ) *((_DWORD *)a2 + 464) = a4; if ( *((_DWORD *)a2 + 465) == a3 ) *((_DWORD *)a2 + 465) = a4; result = *((unsigned int *)a2 + 466); if ( (_DWORD)result == a3 ) *((_DWORD *)a2 + 466) = a4; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source