//
// sub_1403545C0 from 0x1403545c0 to 0x140354667 (167 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030cd8d
// > sub_1406B21A7 @ 0x1406b21b5
// > ??> @ 0x1408b8fe8
// > ??> @ 0x1408b8ff8
// > ??> @ 0x140920660
//
// 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:48 +0000
//
void __fastcall sub_1403545C0(void ***a1)
{
void **v1; // rbx
void **i; // rsi
void **v4; // rcx
v1 = *a1;
if ( *a1 )
{
for ( i = a1[1]; v1 != i; v1 += 8 )
{
sub_14003EA90(v1 + 3);
sub_14003EB00(v1 + 1);
}
v4 = *a1;
if ( (((char *)a1[2] - (char *)*a1) & 0xFFFFFFFFFFFFFFC0uLL) >= 0x1000 )
{
if ( (unsigned __int64)((char *)v4 - (_BYTE *)*(v4 - 1) - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (void **)*(v4 - 1);
}
j_j_free(v4);
*a1 = nullptr;
a1[1] = nullptr;
a1[2] = nullptr;
}
}