server-re/decomp/Agent_Release_x64/full/functions/0x1400c7020.c
2026-10-14 16:45:19 -04:00

23 lines
547 B
C

/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
* Ghidra 12.1.2 decompiler output for 0x1400c7020 FUN_1400c7020
* Pseudocode, not original source. */
int FUN_1400c7020(int *param_1)
{
int iVar1;
int iVar2;
uint uVar3;
iVar1 = *param_1;
if (iVar1 != 0) {
iVar2 = iVar1 * 0x1c + -0x1c;
for (uVar3 = *(uint *)(*(longlong *)(param_1 + 4) + -4 + (longlong)iVar1 * 4); uVar3 != 0;
uVar3 = uVar3 >> 1) {
iVar2 = iVar2 + 1;
}
return iVar2;
}
return 0;
}