CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>::InsertRebalance
0x00befb40 · 2562 bytes · __thiscall
_ZN10CUtlRBTreeIN27CDmxSerializationDictionary16DmxElementInfo_tEiPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_iEiEE15InsertRebalanceEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t, int, bool
(*)(CDmxSerializationDictionary::DmxElementInfo_t const&,
CDmxSerializationDictionary::DmxElementInfo_t const&),
CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t, int>, int>
>::InsertRebalance(int) */
void __thiscall
CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
::InsertRebalance(CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
*this,int param_1)
{
int iVar1;
int *piVar2;
int iVar3;
int iVar4;
int iVar5;
undefined4 *puVar6;
undefined4 *puVar7;
do {
iVar1 = *(int *)(this + 0x10);
if (param_1 == iVar1) {
LAB_00befba4:
*(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18 + 0xc) = 1;
return;
}
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00befed5;
LAB_00befb71:
puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x18);
}
else {
if (param_1 != -1) goto LAB_00befb71;
LAB_00befed5:
puVar6 = &Links(int)::s_Sentinel;
}
iVar1 = puVar6[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar1 == -1) goto LAB_00befea0;
LAB_00befb91:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
}
else {
if (iVar1 != -1) goto LAB_00befb91;
LAB_00befea0:
puVar6 = &Links(int)::s_Sentinel;
}
if (puVar6[3] != 0) {
iVar1 = *(int *)(this + 0x10);
goto LAB_00befba4;
}
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00befe45;
LAB_00befbd9:
puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x18);
}
else {
if (param_1 != -1) goto LAB_00befbd9;
LAB_00befe45:
puVar6 = &Links(int)::s_Sentinel;
}
iVar1 = puVar6[2];
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) goto LAB_00befe14;
LAB_00befbf9:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
}
else {
if (iVar1 != -1) goto LAB_00befbf9;
LAB_00befe14:
puVar6 = &Links(int)::s_Sentinel;
}
iVar5 = puVar6[2];
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) goto LAB_00befddc;
LAB_00befc16:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
}
else {
if (iVar1 != -1) goto LAB_00befc16;
LAB_00befddc:
puVar6 = &Links(int)::s_Sentinel;
}
iVar4 = puVar6[2];
if (Links(int)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00befc2a;
}
if (iVar4 == -1) goto LAB_00befdaa;
LAB_00befc33:
piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x18);
}
else {
LAB_00befc2a:
if (iVar4 != -1) goto LAB_00befc33;
LAB_00befdaa:
piVar2 = &Links(int)::s_Sentinel;
}
if (iVar1 == *piVar2) {
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) goto LAB_00beffe4;
LAB_00befc55:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18);
}
else {
if (iVar5 != -1) goto LAB_00befc55;
LAB_00beffe4:
puVar6 = &Links(int)::s_Sentinel;
}
iVar4 = puVar6[1];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = DAT_00f71ec0;
if (iVar4 != -1) {
iVar3 = *(int *)(*(int *)(this + 4) + iVar4 * 0x18 + 0xc);
}
if (iVar3 == 0) {
LAB_00befc86:
*(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18 + 0xc) = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar4 * 0x18 + 0xc) = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18 + 0xc) = 0;
param_1 = iVar5;
}
else {
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00bf02d5;
LAB_00beff59:
iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x18 + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_00beff70;
LAB_00bf02e8:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_00beff70;
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar4 == -1) goto LAB_00bf0340;
LAB_00beff79:
if (param_1 != *(int *)(*(int *)(this + 4) + iVar4 * 0x18 + 4)) goto LAB_00beff8e;
LAB_00bf0358:
RotateLeft(this,iVar1);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
}
iVar5 = puVar6[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) {
puVar7 = &Links(int)::s_Sentinel;
puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x18);
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18);
puVar7 = puVar6;
}
iVar5 = puVar7[2];
param_1 = iVar1;
}
else {
if (param_1 != -1) goto LAB_00beff59;
LAB_00bf02d5:
iVar4 = DAT_00f71ebc;
if (Links(int)::s_Sentinel == '\0') goto LAB_00bf02e8;
LAB_00beff70:
if (iVar4 != -1) goto LAB_00beff79;
LAB_00bf0340:
if (param_1 == DAT_00f71eb8) goto LAB_00bf0358;
LAB_00beff8e:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
}
puVar6[3] = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18 + 0xc) = 0;
RotateRight(this,iVar5);
}
}
else {
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) goto LAB_00bf0074;
LAB_00befcd1:
piVar2 = (int *)(*(int *)(this + 4) + iVar5 * 0x18);
}
else {
if (iVar5 != -1) goto LAB_00befcd1;
LAB_00bf0074:
piVar2 = &Links(int)::s_Sentinel;
}
iVar4 = *piVar2;
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar4 == -1) goto LAB_00bf0040;
LAB_00befced:
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar4 * 0x18);
}
else {
if (iVar4 != -1) goto LAB_00befced;
LAB_00bf0040:
puVar6 = &Links(int)::s_Sentinel;
}
if (puVar6[3] == 0) goto LAB_00befc86;
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00bf0235;
LAB_00befd16:
iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x18 + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_00befd2d;
LAB_00bf0248:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_00befd2d;
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar4 == -1) goto LAB_00bf02a0;
LAB_00befd36:
piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x18);
}
else {
if (param_1 != -1) goto LAB_00befd16;
LAB_00bf0235:
iVar4 = DAT_00f71ebc;
if (Links(int)::s_Sentinel == '\0') goto LAB_00bf0248;
LAB_00befd2d:
if (iVar4 != -1) goto LAB_00befd36;
LAB_00bf02a0:
piVar2 = &Links(int)::s_Sentinel;
}
if (param_1 == *piVar2) {
RotateRight(this,iVar1);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar1 == -1) {
puVar6 = &Links(int)::s_Sentinel;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
}
iVar5 = puVar6[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = -1;
DAT_00f71ebc = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar5 == -1) {
puVar7 = &Links(int)::s_Sentinel;
puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x18);
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18);
puVar7 = puVar6;
}
iVar5 = puVar7[2];
param_1 = iVar1;
}
else {
puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
}
puVar6[3] = 1;
*(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18 + 0xc) = 0;
RotateLeft(this,iVar5);
}
} while( true );
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.