server-re/decomp/MessageServer_Release_x64/full/functions/0x14010eba0.c

30 lines
688 B
C

/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x14010eba0 FUN_14010eba0
* Pseudocode, not original source. */
undefined4 FUN_14010eba0(uint param_1,int *param_2)
{
uint uVar1;
uint uVar2;
int iVar3;
if (param_2 == (int *)0x0) {
return 0x10;
}
iVar3 = 0;
uVar2 = param_1;
if (param_1 != 0) {
do {
iVar3 = iVar3 + 1;
uVar1 = uVar2 >> 8;
uVar2 = uVar2 >> 8;
} while (uVar1 != 0);
if (iVar3 != 0) goto LAB_14010ebd2;
}
iVar3 = 1;
LAB_14010ebd2:
*param_2 = ((param_1 >> (iVar3 * 8 - 1U & 0x1f) & 1) != 0) + 2 + iVar3;
return 0;
}