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

35 lines
1.1 KiB
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14014b9c0 FUN_14014b9c0
* Pseudocode, not original source. */
void FUN_14014b9c0(undefined8 param_1,longlong param_2)
{
undefined *puVar1;
int *piVar2;
undefined *puVar3;
undefined *local_res10 [3];
undefined8 uVar4;
uVar4 = 0xfffffffffffffffe;
FUN_14016d8c0();
local_res10[0] = PTR_DAT_1403440a0;
FUN_14004c020(local_res10,L"{ %d,%d,%d,%d }",(int)*(short *)(param_2 + 0x50),
(int)*(short *)(param_2 + 0x52),*(undefined4 *)(param_2 + 0x54),
(int)*(short *)(param_2 + 0x58),uVar4);
FUN_14004be20(param_1,local_res10);
puVar3 = local_res10[0];
if (((local_res10[0] != (undefined *)0x0) && (local_res10[0] != PTR_DAT_1403440a0)) &&
(puVar1 = local_res10[0] + -8, puVar1 != (undefined *)0x0)) {
uVar4 = FUN_14016d8c0();
FUN_14016db50(uVar4);
piVar2 = (int *)(puVar3 + -4);
*piVar2 = *piVar2 + -1;
if (*piVar2 == 0) {
FUN_14016d970(puVar1);
}
FUN_14016dbe0(uVar4);
}
return;
}