//
// sub_14035D500 from 0x14035d500 to 0x14035d5b4 (180 bytes)
//
// 9 xrefs:
// > sub_14035A160 @ 0x14035a321
// > sub_14054E6E0 @ 0x14054e871
// > sub_1406AB310 @ 0x1406ab317
// > sub_1406C0480 @ 0x1406c0487
// > ??> @ 0x1408b99af
// > ??> @ 0x1408ba064
// > ??> @ 0x1408ba074
// > ??> @ 0x1408d995f
// > ??> @ 0x1409210ec
//
// 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_14035D500(_QWORD *a1)
{
void **v2; // rbx
void **i; // rsi
_QWORD *v4; // rcx
if ( a1[1] )
{
v2 = (void **)a1[3];
for ( i = (void **)a1[4]; v2 != i; v2 += 29 )
{
sub_140069730((__int64)(v2 + 25));
sub_140358980(v2, (__int64)v2);
}
v4 = (_QWORD *)a1[1];
if ( (unsigned __int64)(232LL * 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(v4);
}
}