//
// LevelInfoLayer::shouldDownloadLevel from 0x3b1844 to 0x3b18b6 (114 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::onUpdate @ 0x3b2182
// > LevelInfoLayer::onPlay @ 0x3b2286
// > LevelInfoLayer::onPlayReplay @ 0x3b27d2
// > LevelInfoLayer::onClone @ 0x3b2870
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool LevelInfoLayer::shouldDownloadLevel(LevelInfoLayer *a1)
{
GJGameLevel *m_level; // r1
unsigned int v2; // r5
unsigned int v3; // r5
_BYTE v5[4]; // [sp+4h] [bp-10h] BYREF
_BYTE v6[4]; // [sp+8h] [bp-Ch] BYREF
m_level = a1->m_level;
if ( m_level->m_levelType == SearchResult )
{
LOBYTE(v3) = 1;
}
else
{
sub_775C20(v5, &m_level->m_levelString);
sub_776584((int)v6, (char *)&unk_939830);
v2 = __clz(sub_774DBC(v5, v6));
sub_774008(v6);
v3 = v2 >> 5;
sub_774008(v5);
}
return v3;
}