server-re/decomp/DBCServer_Release_x64/full/functions/0x14020c870.c

37 lines
812 B
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14020c870 FUN_14020c870
* Pseudocode, not original source. */
bool FUN_14020c870(uint *param_1)
{
uint uVar1;
int *piVar2;
ulonglong uVar3;
int iVar4;
uVar1 = *param_1;
uVar3 = (ulonglong)uVar1;
if (uVar1 != 0) {
if (uVar1 == 1) {
return true;
}
if (1 < (int)uVar1) {
iVar4 = 0;
if (0 < (int)uVar1) {
piVar2 = *(int **)(param_1 + 4);
iVar4 = 0;
do {
if (*piVar2 == 0xfffffff) {
iVar4 = iVar4 + 1;
}
piVar2 = piVar2 + 1;
uVar3 = uVar3 - 1;
} while (uVar3 != 0);
}
return (int)uVar1 / 2 <= iVar4;
}
}
return false;
}