//
// sub_180094B10 from 0x180094b10 to 0x180094b72 (98 bytes)
//
// 3 xrefs:
// > sub_1800E2F30 @ 0x1800e2f37
// > ??> @ 0x18013e4ef
// > ??> @ 0x1801b6768
//
// 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_180094B10(__int64 a1)
{
unsigned __int64 v1; // rdx
_QWORD *v3; // rcx
v1 = *(_QWORD *)(a1 + 24);
if ( v1 > 7 )
{
v3 = *(_QWORD **)a1;
if ( 2 * v1 + 2 >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free_0(v3);
}
*(_QWORD *)(a1 + 24) = 7;
*(_QWORD *)(a1 + 16) = 0;
*(_WORD *)a1 = 0;
return 0;
}