//
// GJMapPack::hasCompletedMapPack from 0x10055fe20 to 0x10055fe79 (89 bytes)
//
// 3 xrefs:
// > GJAccountManager::onSyncAccountCompleted @ 0x1000d110e
// > GauntletSelectLayer::onPlay @ 0x1005729fe
// > GauntletNode::generateNode @ 0x10057514d
//
// 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 __fastcall GJMapPack::hasCompletedMapPack(GJMapPack *a1)
{
cocos2d::CCArray *m_levels; // rdi
int v3; // ebx
int v4; // r15d
cocos2d::CCArray *v5; // rdi
m_levels = a1->m_levels;
if ( m_levels )
{
v3 = 0;
if ( (unsigned int)sub_100720070(m_levels) )
{
v4 = GJMapPack::completedMaps(a1);
v5 = a1->m_levels;
if ( v5 )
v3 = sub_100720070(v5);
LOBYTE(v3) = v4 >= v3;
}
}
else
{
LOBYTE(v3) = 0;
}
return v3;
}