//
// sub_18000D1E0 from 0x18000d1e0 to 0x18000d27d (157 bytes)
//
// 26 xrefs:
// > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006f27e
// > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006f291
// > sub_180075110 @ 0x180075116
// > sub_1800E6120 @ 0x1800e6127
// > sub_1800E6140 @ 0x1800e6147
// > sub_1800E6150 @ 0x1800e6157
// > sub_1800E6530 @ 0x1800e654b
// > unknown_libname_6 @ 0x1800e6597
// > sub_1800E6600 @ 0x1800e6607
// > sub_1800E7DA0 @ 0x1800e7dab
// > sub_1800E7DB0 @ 0x1800e7dbb
// > sub_1800E8210 @ 0x1800e821b
// > int `Concurrency::details::ScheduleGroupSegmentBase::~ScheduleGroupSegmentBase @ 0x1800e822b
// > ??> @ 0x18013ade4
// > ??> @ 0x18013adea
// > ??> @ 0x18013ae33
// > ??> @ 0x18013ae54
// > ??> @ 0x18013ae64
// > ??> @ 0x18013bd94
// > ??> @ 0x18013bd9a
// > ??> @ 0x18013bde7
// > ??> @ 0x18013c19f
// > ??> @ 0x18013c1ec
// > ??> @ 0x18013c22c
// > ??> @ 0x18014440c
// > ??> @ 0x1801b7f60
//
// 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:21:20 +0000
//
void __fastcall sub_18000D1E0(__int64 *a1)
{
__int64 v1; // rbx
__int64 i; // rdi
_QWORD *v4; // rcx
v1 = *a1;
if ( *a1 )
{
for ( i = a1[1]; v1 != i; v1 += 32 )
sub_180005C70(v1);
v4 = (_QWORD *)*a1;
if ( ((a1[2] - *a1) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free_0(v4);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
}