//
// sub_18006F2A0 from 0x18006f2a0 to 0x18006f339 (153 bytes)
//
// 9 xrefs:
// > sub_18006E750 @ 0x18006e886
// > sub_18006E8C0 @ 0x18006ea2f
// > sub_1800E7D30 @ 0x1800e7d37
// > unknown_libname_16 @ 0x1800e8077
// > ??> @ 0x180143e17
// > ??> @ 0x180143e58
// > ??> @ 0x180143e68
// > ??> @ 0x180144412
// > ??> @ 0x1801be3c8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:56 +0000
//
void __fastcall sub_18006F2A0(_QWORD *a1)
{
__int64 v2; // rbx
__int64 i; // rdi
_QWORD *v4; // rcx
if ( a1[1] )
{
v2 = a1[3];
for ( i = a1[4]; v2 != i; v2 += 32 )
sub_180005C70(v2);
v4 = (_QWORD *)a1[1];
if ( (unsigned __int64)(32LL * a1[2]) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free_0(v4);
}
}