//
// sub_140373070 from 0x140373070 to 0x140373130 (192 bytes)
//
// 19 xrefs:
// > GJEffectManager::dGJEffectManager @ 0x140364e4d
// > GJEffectManager::dGJEffectManager @ 0x140364e71
// > sub_14036F770 @ 0x14036f7a7
// > sub_14036F7E0 @ 0x14036f847
// > sub_14036FCB0 @ 0x14036fcb0
// > sub_1403725F0 @ 0x1403726c0
// > sub_1403725F0 @ 0x1403727a0
// > sub_140376050 @ 0x1403761b8
// > sub_140376050 @ 0x14037622d
// > sub_140376AD0 @ 0x140376ae6
// > sub_140378360 @ 0x14037839d
// > sub_14037A970 @ 0x14037a976
// > sub_1405034F0 @ 0x1405035b4
// > sub_1405034F0 @ 0x1405035c0
// > sub_140515E30 @ 0x1405161d2
// > sub_140515E30 @ 0x14051620e
// > ??> @ 0x1408bbd34
// > ??> @ 0x1408bbd44
// > ??> @ 0x140921f38
//
// 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:31:00 +0000
//
void __fastcall sub_140373070(_QWORD *a1)
{
_QWORD *v1; // rbx
_QWORD *i; // rdi
_QWORD *v4; // r8
v1 = (_QWORD *)*a1;
if ( *a1 )
{
for ( i = (_QWORD *)a1[1]; v1 != i; v1 += 7 )
sub_140069730((__int64)(v1 + 4));
v4 = (_QWORD *)*a1;
if ( (unsigned __int64)(56 * ((a1[2] - *a1) / 56LL)) >= 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;
}
}