//
// sub_14026D920 from 0x14026d920 to 0x14026d9fa (218 bytes)
//
// 5 xrefs:
// > sub_14026BEC0 @ 0x14026c075
// > sub_14026C0C0 @ 0x14026c26a
// > ??> @ 0x1406866f4
// > ??> @ 0x140686704
// > ??> @ 0x1406d0b18
//
// 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_14026D920(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v4; // rbx
_QWORD *i; // rdi
_QWORD *v10; // r8
v4 = (_QWORD *)*a1;
if ( *a1 )
{
for ( i = (_QWORD *)a1[1]; v4 != i; v4 += 9 )
sub_14005E430((__int64)(v4 + 6));
v10 = (_QWORD *)*a1;
if ( (unsigned __int64)(72 * ((a1[2] - *a1) / 72LL)) >= 0x1000 )
{
if ( (unsigned __int64)v10 - *(v10 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v10 = (_QWORD *)*(v10 - 1);
}
j_j_free(v10);
}
*a1 = a2;
a1[1] = a2 + 72 * a3;
a1[2] = a2 + 72 * a4;
return 9 * a4;
}