//
// sub_14026AF90 from 0x14026af90 to 0x14026b04e (190 bytes)
//
// 3 xrefs:
// > sub_140269450 @ 0x1402694df
// > sub_14026B5D0 @ 0x14026b711
// > ??> @ 0x1406d08c0
//
// 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_14026AF90(__int64 *a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v6; // rcx
_QWORD *v9; // rcx
__int64 result; // rax
v6 = *a1;
if ( v6 )
{
sub_140257C30(v6, a1[1]);
v9 = (_QWORD *)*a1;
if ( (unsigned __int64)(448 * ((a1[2] - *a1) / 448)) >= 0x1000 )
{
if ( (unsigned __int64)v9 - *(v9 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v9 = (_QWORD *)*(v9 - 1);
}
j_j_free(v9);
}
*a1 = a2;
a1[1] = a2 + 448 * a3;
result = a2 + 448 * a4;
a1[2] = result;
return result;
}