//
// sub_14026DA00 from 0x14026da00 to 0x14026daa9 (169 bytes)
//
// 3 xrefs:
// > sub_14026D0A0 @ 0x14026d186
// > sub_1403BC350 @ 0x1403bc3e1
// > ??> @ 0x1406d0b3c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_14026DA00(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v6; // rcx
__int64 result; // rax
v6 = *(_QWORD **)a1;
if ( v6 )
{
if ( (unsigned __int64)(68 * ((*(_QWORD *)(a1 + 16) - (_QWORD)v6) / 68LL)) >= 0x1000 )
{
if ( (unsigned __int64)v6 - *(v6 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v6 = (_QWORD *)*(v6 - 1);
}
j_j_free(v6);
}
*(_QWORD *)a1 = a2;
*(_QWORD *)(a1 + 8) = a2 + 68 * a3;
result = a2 + 68 * a4;
*(_QWORD *)(a1 + 16) = result;
return result;
}