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

28 lines
801 B
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x1401be3c0 FUN_1401be3c0
* Pseudocode, not original source. */
void FUN_1401be3c0(longlong param_1)
{
undefined8 uVar1;
longlong lVar2;
longlong local_20;
longlong local_18;
uVar1 = 0xfffffffffffffffe;
while( true ) {
lVar2 = param_1;
FUN_14016db50(param_1);
if ((*(int *)(param_1 + 0x3c) < 1) && (*(int *)(param_1 + 0x38) < 1)) break;
local_20 = param_1 + 0x48;
local_18 = param_1 + 0x50;
FUN_14016dbe0(param_1);
FUN_1401c3830(&local_20,2,0xffffffff,1,uVar1,lVar2,0);
}
*(int *)(param_1 + 0x3c) = *(int *)(param_1 + 0x3c) + 1;
ResetEvent(*(HANDLE *)(param_1 + 0x50));
FUN_14016dbe0(param_1);
return;
}