//
// GJMapPack::hasCompletedMapPack from 0x10058ca10 to 0x10058ca69 (89 bytes)
//
// 3 xrefs:
// > GJAccountManager::onSyncAccountCompleted @ 0x10009f6ee
// > GauntletSelectLayer::onPlay @ 0x10059fd8e
// > GauntletNode::generateNode @ 0x1005a2518
//
// 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:32:25 +0000
//
__int64 __fastcall GJMapPack::hasCompletedMapPack(__int64 a1)
{
__int64 v2; // rdi
unsigned int v3; // ebx
int v4; // r15d
__int64 v5; // rdi
v2 = *(_QWORD *)(a1 + 320);
if ( v2 )
{
v3 = 0;
if ( (unsigned int)sub_1007FEF90(v2) )
{
v4 = GJMapPack::completedMaps(a1);
v5 = *(_QWORD *)(a1 + 320);
if ( v5 )
v3 = sub_1007FEF90(v5);
LOBYTE(v3) = v4 >= (int)v3;
}
}
else
{
return 0;
}
return v3;
}