//
// cocos2d::extension::AssetsManager::checkUpdate from 0x7a62b4 to 0x7a63f4 (320 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:57 +0000
//
int __fastcall cocos2d::extension::AssetsManager::checkUpdate(cocos2d::extension::AssetsManager *this)
{
int v2; // r2
int v3; // r3
int v4; // r0
char *v5; // r2
int v6; // r2
int v7; // r4
const char *v8; // r0
int v9; // r3
int v10; // r7
size_t v11; // r2
int v12; // r1
int v13; // r3
char *v14; // r0
unsigned __int8 *v15; // r1
char *v16; // r0
unsigned __int8 *v17; // r2
int v18; // t1
unsigned __int8 v20; // [sp+0h] [bp-14h] BYREF
char v21; // [sp+1h] [bp-13h] BYREF
size_t v22; // [sp+4h] [bp-10h]
char *v23; // [sp+8h] [bp-Ch]
v2 = *((unsigned __int8 *)this + 40);
if ( (v2 & 1) != 0 )
v3 = *((_DWORD *)this + 11);
else
v3 = v2 >> 1;
if ( !v3 )
return 0;
v4 = sub_83AED4();
*((_DWORD *)this + 16) = v4;
if ( !v4 )
return 0;
if ( (*((_BYTE *)this + 16) & 1) != 0 )
{
**((_BYTE **)this + 6) = 0;
*((_DWORD *)this + 5) = 0;
}
else
{
*((_BYTE *)this + 17) = 0;
*((_BYTE *)this + 16) = 0;
}
if ( (*((_BYTE *)this + 40) & 1) != 0 )
v5 = *((char **)this + 12);
else
v5 = (char *)this + 41;
sub_83AF54(*((_DWORD *)this + 16), 10002, v5);
sub_83AF54(*((_DWORD *)this + 16), 64, 0);
sub_83AF54(*((_DWORD *)this + 16), 20011, sub_7A5A48);
sub_83AF54(*((_DWORD *)this + 16), 10001, (char *)this + 16);
v6 = *((_DWORD *)this + 19);
if ( v6 )
sub_83AF54(*((_DWORD *)this + 16), 78, v6);
if ( !sub_83AF74(*((_DWORD *)this + 16)) )
{
v8 = (const char *)cocos2d::CCUserDefault::sharedUserDefault(nullptr);
cocos2d::CCUserDefault::getStringForKey((cocos2d::CCUserDefault *)&v20, v8);
v9 = *((unsigned __int8 *)this + 16);
v10 = v20 & 1;
if ( v10 )
v11 = v22;
else
v11 = (int)v20 >> 1;
v12 = v9 & 1;
if ( (v9 & 1) != 0 )
v13 = *((_DWORD *)this + 5);
else
v13 = v9 >> 1;
if ( v11 == v13 )
{
if ( v10 )
v14 = v23;
else
v14 = &v21;
if ( v12 )
v15 = *((unsigned __int8 **)this + 6);
else
v15 = (unsigned __int8 *)this + 17;
if ( !v10 )
{
v16 = v14 - 1;
v17 = &v15[v11];
while ( v15 != v17 )
{
v18 = (unsigned __int8)*++v16;
if ( v18 != *v15 )
goto LABEL_39;
++v15;
}
goto LABEL_38;
}
if ( !v11 || !memcmp(v14, v15, v11) )
{
LABEL_38:
cocos2d::extension::AssetsManager::sendErrorMessage((int)this, 2);
cocos2d::extension::AssetsManager::setSearchPath(this);
v7 = 0;
LABEL_40:
std::string::~string((int)&v20);
return v7;
}
}
LABEL_39:
v7 = 1;
goto LABEL_40;
}
cocos2d::extension::AssetsManager::sendErrorMessage((int)this, 1);
sub_83B0DC(*((_DWORD *)this + 16));
return 0;
}