L L4D2node

std::__adjust_heap<CIEntry*,int,CIEntry,bool(*)(CIEntry_const&,CIEntry_const&)>

0x008f53f0 · 293 bytes · unknown

_ZSt13__adjust_heapIP7CIEntryiS0_PFbRKS0_S3_EEvT_T0_S7_T1_T2_

Decompiled

void (5 params)

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* void std::__adjust_heap<CIEntry*, int, CIEntry, bool (*)(CIEntry const&, CIEntry
   const&)>(CIEntry*, int, int, CIEntry, bool (*)(CIEntry const&, CIEntry const&)) */

void std::__adjust_heap<CIEntry*,int,CIEntry,bool(*)(CIEntry_const&,CIEntry_const&)>
               (int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,
               code *param_6)

{
  int iVar1;
  undefined4 uVar2;
  char cVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  undefined4 local_24;
  undefined4 local_20;
  
  iVar6 = (int)(param_3 - 1) / 2;
  iVar7 = param_2;
  if (param_2 < iVar6) {
    do {
      iVar1 = iVar7 + 1;
      iVar5 = iVar1 * 2;
      puVar4 = (undefined4 *)(iVar1 * 0x10 + param_1);
      cVar3 = (*param_6)(puVar4,param_1 + -8 + iVar1 * 0x10);
      if (cVar3 != '\0') {
        iVar5 = iVar5 + -1;
        puVar4 = (undefined4 *)(param_1 + iVar5 * 8);
      }
      uVar2 = puVar4[1];
      *(undefined4 *)(param_1 + iVar7 * 8) = *puVar4;
      *(undefined4 *)(param_1 + 4 + iVar7 * 8) = uVar2;
      iVar7 = iVar5;
    } while (iVar5 < iVar6);
  }
  else {
    puVar4 = (undefined4 *)(param_1 + param_2 * 8);
    iVar5 = param_2;
  }
  local_24 = param_4;
  local_20 = param_5;
  if (((param_3 & 1) == 0) && (iVar5 == (int)(param_3 - 2) / 2)) {
    iVar6 = iVar5 * 2 + 2;
    uVar2 = *(undefined4 *)(param_1 + -4 + iVar6 * 8);
    iVar5 = iVar5 * 2 + 1;
    *puVar4 = *(undefined4 *)(param_1 + -8 + iVar6 * 8);
    puVar4[1] = uVar2;
    puVar4 = (undefined4 *)(param_1 + iVar5 * 8);
  }
  do {
    if (iVar5 <= param_2) {
LAB_008f5486:
      *puVar4 = local_24;
      puVar4[1] = local_20;
      return;
    }
    iVar6 = (iVar5 + -1) / 2;
    puVar4 = (undefined4 *)(param_1 + iVar6 * 8);
    cVar3 = (*param_6)(puVar4,&local_24);
    if (cVar3 == '\0') {
      puVar4 = (undefined4 *)(param_1 + iVar5 * 8);
      goto LAB_008f5486;
    }
    uVar2 = puVar4[1];
    *(undefined4 *)(param_1 + iVar5 * 8) = *puVar4;
    *(undefined4 *)(param_1 + 4 + iVar5 * 8) = uVar2;
    iVar5 = iVar6;
  } while( true );
}

SourceMod gamedata

paste into addons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)

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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)