//
// sub_18000D280 from 0x18000d280 to 0x18000d2eb (107 bytes)
//
// 26 xrefs:
// > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d13f
// > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d152
// > sub_180072BD0 @ 0x180072bd6
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0a27
// > sub_1800E0A60 @ 0x1800e0a67
// > unknown_libname_1 @ 0x1800e0a77
// > sub_1800E0ED0 @ 0x1800e0eeb
// > sub_1800E0F30 @ 0x1800e0f37
// > sub_1800E0FA0 @ 0x1800e0fa7
// > int `_wcstombs_l_helper @ 0x1800e1037
// > sub_1800E1040 @ 0x1800e1047
// > sub_1800E2800 @ 0x1800e280b
// > sub_1800E2810 @ 0x1800e281b
// > sub_1800E2C50 @ 0x1800e2c5b
// > int `Concurrency::details::ScheduleGroupSegmentBase::~ScheduleGroupSegmentBase @ 0x1800e2c6b
// > ??> @ 0x180131f2f
// > ??> @ 0x180131f35
// > ??> @ 0x180131f83
// > ??> @ 0x180132e1b
// > ??> @ 0x180132e21
// > ??> @ 0x180132e6b
// > ??> @ 0x1801331ef
// > ??> @ 0x180133234
// > ??> @ 0x180133270
// > ??> @ 0x18013b05c
// > ??> @ 0x1801adef4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_18000D280(__int64 *a1)
{
__int64 v2; // rcx
_QWORD *v3; // rcx
__int64 result; // rax
v2 = *a1;
if ( v2 )
{
sub_18000CF70(v2, a1[1]);
v3 = (_QWORD *)*a1;
if ( ((a1[2] - *a1) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free_0(v3);
result = 0;
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
return result;
}