decomp DBCServer_Release and inspect/document database

This commit is contained in:
Benjamin Palko 2026-10-14 23:22:03 -04:00
parent 4b267cbe05
commit 7834b98bf0
28222 changed files with 843300 additions and 144 deletions

View file

@ -0,0 +1,41 @@
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14004aa80 FUN_14004aa80
* Pseudocode, not original source. */
void FUN_14004aa80(longlong *param_1)
{
code *pcVar1;
longlong lVar2;
ulonglong uVar3;
ulonglong uVar4;
lVar2 = param_1[1] - *param_1;
lVar2 = lVar2 / 6 + (lVar2 >> 0x3f);
uVar4 = (lVar2 >> 1) - (lVar2 >> 0x3f);
if (0x1555555555555554 < uVar4) {
std::_Xlength_error("vector<T> too long");
pcVar1 = (code *)swi(3);
(*pcVar1)();
return;
}
uVar4 = uVar4 + 1;
uVar3 = (param_1[2] - *param_1) / 0xc;
if (uVar3 < uVar4) {
if (0x1555555555555555 - (uVar3 >> 1) < uVar3) {
uVar3 = 0;
if (uVar4 != 0) {
uVar3 = uVar4;
}
FUN_140048b80(param_1,uVar3);
return;
}
uVar3 = uVar3 + (uVar3 >> 1);
if (uVar3 < uVar4) {
uVar3 = uVar4;
}
FUN_140048b80(param_1,uVar3);
}
return;
}