decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
40
decomp/DBCServer_Release_x64/full/functions/0x14004a0f0.c
Normal file
40
decomp/DBCServer_Release_x64/full/functions/0x14004a0f0.c
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004a0f0 FUN_14004a0f0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14004a0f0(longlong *param_1)
|
||||
|
||||
{
|
||||
code *pcVar1;
|
||||
ulonglong uVar2;
|
||||
longlong lVar3;
|
||||
ulonglong uVar4;
|
||||
|
||||
lVar3 = param_1[1] - *param_1;
|
||||
lVar3 = lVar3 + SUB168(SEXT816(-0x608b85ead287c92f) * SEXT816(lVar3),8);
|
||||
uVar4 = (lVar3 >> 9) - (lVar3 >> 0x3f);
|
||||
if (0x4fba3d0a96bc1a < uVar4) {
|
||||
std::_Xlength_error("vector<T> too long");
|
||||
pcVar1 = (code *)swi(3);
|
||||
(*pcVar1)();
|
||||
return;
|
||||
}
|
||||
uVar4 = uVar4 + 1;
|
||||
lVar3 = param_1[2] - *param_1;
|
||||
lVar3 = SUB168(SEXT816(-0x608b85ead287c92f) * SEXT816(lVar3),8) + lVar3;
|
||||
uVar2 = (lVar3 >> 9) - (lVar3 >> 0x3f);
|
||||
if (uVar2 < uVar4) {
|
||||
if (0x4fba3d0a96bc1b - (uVar2 >> 1) < uVar2) {
|
||||
uVar2 = 0;
|
||||
}
|
||||
else {
|
||||
uVar2 = uVar2 + (uVar2 >> 1);
|
||||
}
|
||||
if (uVar2 < uVar4) {
|
||||
uVar2 = uVar4;
|
||||
}
|
||||
FUN_140047960(param_1,uVar2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue