//
// sub_180003300 from 0x180003300 to 0x18000339d (157 bytes)
//
// 4 xrefs:
// > cocos2d::extension::AssetsManager::update @ 0x180001bb4
// > cocos2d::extension::AssetsManager::setSearchPath @ 0x18000214e
// > cocos2d::extension::AssetsManager::setSearchPath @ 0x180002160
// > ??> @ 0x18004b1f8
//
// 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 12:15:35 +0000
//
__int64 __fastcall sub_180003300(__int64 a1, __int64 a2)
{
unsigned __int64 v4; // rdx
_QWORD *v5; // rcx
if ( a1 != a2 )
{
v4 = *(_QWORD *)(a1 + 24);
if ( v4 > 0xF )
{
v5 = *(_QWORD **)a1;
if ( v4 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v5 = (_QWORD *)*(v5 - 1);
}
j_j_free(v5);
}
*(_QWORD *)(a1 + 24) = 15;
*(_QWORD *)(a1 + 16) = 0;
*(_BYTE *)a1 = 0;
*(_OWORD *)a1 = *(_OWORD *)a2;
*(_OWORD *)(a1 + 16) = *(_OWORD *)(a2 + 16);
*(_QWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 24) = 15;
*(_BYTE *)a2 = 0;
}
return a1;
}