//
// sub_1400CF5F0 from 0x1400cf5f0 to 0x1400cf696 (166 bytes)
//
// 5 xrefs:
// > sub_14068E0E0 @ 0x14068e0e7
// > ??> @ 0x140890de8
// > ??> @ 0x1408915d4
// > ??> @ 0x1408915e4
// > ??> @ 0x140914174
//
// 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:26:24 +0000
//
void __fastcall sub_1400CF5F0(__int64 *a1)
{
__int64 v1; // rbx
__int64 i; // rsi
_QWORD *v4; // rcx
v1 = *a1;
if ( *a1 )
{
for ( i = a1[1]; v1 != i; v1 += 64 )
{
sub_14003D310(v1 + 32);
sub_14003D310(v1);
}
v4 = (_QWORD *)*a1;
if ( ((a1[2] - *a1) & 0xFFFFFFFFFFFFFFC0uLL) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
}