//
// cocos2d::CCFileUtils::init from 0x180072930 to 0x1800729e7 (183 bytes)
//
// 4 xrefs:
// > cocos2d::CCFileUtilsWin32::init @ 0x18007dde1
// > ??> @ 0x180106a40
// > ??> @ 0x18014cf68
// > ??> @ 0x1801be5d8
//
// 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:57 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall cocos2d::CCFileUtils::init(cocos2d::CCFileUtils *this)
{
void *v2; // rcx
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__m128i si128; // [rsp+40h] [rbp-28h]
sub_18006E750((__int64 *)this + 5, (__int64)this + 64);
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500);
LOBYTE(Block[0]) = 0;
sub_18006E8C0((__int64 *)this + 2, (__int128 *)Block);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v2 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v2 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v2 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v2);
}
return 1;
}