//
// sub_14035D200 from 0x14035d200 to 0x14035d2a3 (163 bytes)
//
// 5 xrefs:
// > sub_1406AB380 @ 0x1406ab387
// > ??> @ 0x1408b9cfb
// > ??> @ 0x1408ba03c
// > ??> @ 0x1408ba04c
// > ??> @ 0x1409210a4
//
// 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:30:51 +0000
//
void __fastcall sub_14035D200(_QWORD *a1)
{
__int64 v2; // rbx
__int64 i; // rsi
_QWORD *v4; // rcx
if ( a1[1] )
{
v2 = a1[3];
for ( i = a1[4]; v2 != i; v2 += 64 )
{
sub_14003EA90((_QWORD *)(v2 + 24));
sub_14003EB00((void **)(v2 + 8));
}
v4 = (_QWORD *)a1[1];
if ( a1[2] << 6 >= 0x1000u )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
}
}