//
// LevelInfoLayer::shouldDownloadLevel from 0x7e748c to 0x7e7558 (204 bytes)
//
// 6 xrefs:
// > LevelInfoLayer::onEdit @ 0x7e75c8
// > LevelInfoLayer::onClone @ 0x7e76bc
// > LevelInfoLayer::onUpdate @ 0x7e77cc
// > LevelInfoLayer::onPlay @ 0x7e7af4
// > LevelInfoLayer::onEnterTransitionDidFinish @ 0x7ecfe8
// > ??> @ 0x5e240
//
// This function is hookable on this platform (idp: arm, 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:54:29 +0000
//
bool __fastcall LevelInfoLayer::shouldDownloadLevel(LevelInfoLayer *this)
{
__int64 v1; // x0
char v2; // w1
__int64 v3; // x2
__int64 v4; // x0
__int64 v5; // x1
_BOOL4 v6; // w20
__int64 v8; // [xsp+28h] [xbp+28h] BYREF
__int64 v9; // [xsp+30h] [xbp+30h]
void *v10; // [xsp+38h] [xbp+38h]
_QWORD v11[3]; // [xsp+40h] [xbp+40h] BYREF
v1 = *((_QWORD *)this + 63);
if ( *(_DWORD *)(v1 + 1140) == 4 )
{
return 1;
}
else
{
v2 = *(_BYTE *)(v1 + 392);
v8 = 0;
v3 = v1 + 392;
v9 = 0;
v10 = nullptr;
if ( (v2 & 1) != 0 )
{
std::string::__init(&v8, *(void **)(v1 + 408), *(_QWORD *)(v1 + 400));
}
else
{
v4 = *(_QWORD *)v3;
v5 = *(_QWORD *)(v3 + 8);
v10 = *(void **)(v3 + 16);
v8 = v4;
v9 = v5;
}
memset(v11, 0, sizeof(v11));
v6 = sub_7E4E58((__int64)&v8, (__int64)v11);
if ( (v8 & 1) != 0 )
operator delete(v10);
}
return v6;
}