//
// cocos2d::extension::AssetsManager::AssetsManager from 0x1800014e0 to 0x1800016ca (490 bytes)
//
// 3 xrefs:
// > cocos2d::extension::AssetsManager::`default constructor closure' @ 0x1800013d8
// > ??> @ 0x180032408
// > ??> @ 0x18004b054
//
// 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:34 +0000
//
// Hidden C++ exception states: #wind=8
cocos2d::extension::AssetsManager *__fastcall cocos2d::extension::AssetsManager::AssetsManager(
cocos2d::extension::AssetsManager *this,
const char *a2,
const char *a3,
const char *a4)
{
__int64 v7; // rbx
__int64 v8; // r8
__int64 v9; // r8
__int64 v10; // rcx
char *v11; // rax
_QWORD *v12; // rax
__int64 v13; // rdx
__int64 v14; // rcx
__int64 v15; // rax
cocos2d::CCScheduler *v16; // rax
cocos2d::CCObject *v18; // [rsp+20h] [rbp-28h]
_QWORD *v19; // [rsp+28h] [rbp-20h]
*(_QWORD *)this = &cocos2d::extension::AssetsManager::`vftable';
*(_OWORD *)((char *)this + 8) = 0;
*((_QWORD *)this + 3) = 0;
*((_QWORD *)this + 4) = 0;
v7 = -1;
v8 = -1;
do
++v8;
while ( a4[v8] );
sub_180003520((char *)this + 8, a4);
*(_OWORD *)((char *)this + 40) = 0;
*((_QWORD *)this + 7) = 0;
*((_QWORD *)this + 8) = 15;
*((_BYTE *)this + 40) = 0;
*(_OWORD *)((char *)this + 72) = 0;
*((_QWORD *)this + 11) = 0;
*((_QWORD *)this + 12) = 0;
v9 = -1;
do
++v9;
while ( a2[v9] );
sub_180003520((char *)this + 72, a2);
*(_OWORD *)((char *)this + 104) = 0;
*((_QWORD *)this + 15) = 0;
*((_QWORD *)this + 16) = 0;
do
++v7;
while ( a3[v7] );
sub_180003520((char *)this + 104, a3);
*(_OWORD *)((char *)this + 136) = 0;
*((_QWORD *)this + 19) = 0;
*((_QWORD *)this + 20) = 15;
*((_BYTE *)this + 136) = 0;
*((_QWORD *)this + 21) = 0;
*((_QWORD *)this + 23) = 0;
*((_DWORD *)this + 48) = 0;
*((_QWORD *)this + 25) = 0;
v10 = *((_QWORD *)this + 3);
if ( v10 )
{
v11 = (char *)this + 8;
if ( *((_QWORD *)this + 4) > 0xFu )
v11 = *((char **)this + 1);
if ( v11[v10 - 1] != 47 )
sub_1800033A0((char *)this + 8, &word_180025890, 1u);
}
v18 = (cocos2d::CCObject *)sub_18001F040(0x48u);
cocos2d::CCObject::CCObject(v18);
*(_QWORD *)v18 = &cocos2d::extension::AssetsManager::Helper::`vftable';
v19 = (_QWORD *)sub_18001F040(0x10u);
*v19 = 0;
v19[1] = 0;
v12 = (_QWORD *)sub_18001F040(0x18u);
*v12 = v12;
v12[1] = v12;
*v19 = v12;
*((_QWORD *)v18 + 7) = v19;
pthread_mutex_init((char *)v18 + 64, 0);
v15 = cocos2d::CCDirector::sharedDirector(v14, v13);
v16 = (cocos2d::CCScheduler *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 112LL))(v15);
cocos2d::CCScheduler::scheduleUpdateForTarget(v16, v18, 0, 0);
*((_QWORD *)this + 22) = v18;
return this;
}