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

38 lines
829 B
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14020c240 FUN_14020c240
* Pseudocode, not original source. */
undefined8 FUN_14020c240(int *param_1)
{
int iVar1;
uint uVar2;
uint *puVar3;
int iVar4;
iVar1 = *param_1;
if (iVar1 == 0) {
return 0;
}
if ((iVar1 != 1) && (1 < iVar1)) {
iVar1 = FUN_1402010a0();
iVar4 = 0x1c;
uVar2 = 1;
if (0x1c < iVar1) {
puVar3 = (uint *)(*(longlong *)(param_1 + 4) + 4);
do {
if ((*puVar3 & uVar2) == 0) {
return 0;
}
uVar2 = uVar2 * 2;
if (0xfffffff < uVar2) {
puVar3 = puVar3 + 1;
uVar2 = 1;
}
iVar4 = iVar4 + 1;
} while (iVar4 < iVar1);
}
}
return 1;
}