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

53 lines
1.2 KiB
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x1401c70a0 FUN_1401c70a0
* Pseudocode, not original source. */
undefined8 FUN_1401c70a0(longlong param_1,undefined1 *param_2)
{
longlong lVar1;
undefined8 uVar2;
undefined1 uVar3;
uVar2 = (**(code **)(*(longlong *)(param_1 + -0x70) + 0x58))();
FUN_14016db50();
if ((*(longlong **)(param_1 + 0x1500) == (longlong *)0x0) ||
(lVar1 = **(longlong **)(param_1 + 0x1500), lVar1 == 0)) {
uVar3 = 0;
}
else {
uVar3 = *(undefined1 *)(lVar1 + 0x80);
}
*param_2 = uVar3;
if ((*(longlong **)(param_1 + 0x560) == (longlong *)0x0) ||
(lVar1 = **(longlong **)(param_1 + 0x560), lVar1 == 0)) goto switchD_1401c7139_default;
switch(*(undefined4 *)(lVar1 + 0x100)) {
case 0:
FUN_14016dbe0(uVar2);
uVar2 = 1;
break;
case 1:
FUN_14016dbe0(uVar2);
uVar2 = 1;
break;
case 2:
FUN_14016dbe0(uVar2);
uVar2 = 2;
break;
case 3:
FUN_14016dbe0(uVar2);
uVar2 = 2;
break;
case 4:
FUN_14016dbe0(uVar2);
uVar2 = 3;
break;
case 5:
default:
switchD_1401c7139_default:
FUN_14016dbe0(uVar2);
uVar2 = 0;
}
return uVar2;
}