//
// GJMapPack::hasCompletedMapPack from 0x1000d4dec to 0x1000d4e38 (76 bytes)
//
// 3 xrefs:
// > GauntletSelectLayer::onPlay @ 0x100255518
// > GauntletNode::generateNode @ 0x100257934
// > GJAccountManager::onSyncAccountCompleted @ 0x1004461c4
//
// 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 10:58:56 +0000
//
__int64 __fastcall GJMapPack::hasCompletedMapPack(__int64 a1)
{
__int64 result; // x0
int v3; // w19
__int64 v4; // x0
result = *(_QWORD *)(a1 + 320);
if ( result )
{
result = sub_1002E757C(result);
if ( (_DWORD)result )
{
v3 = sub_1000D4D50(a1);
v4 = *(_QWORD *)(a1 + 320);
if ( v4 )
LODWORD(v4) = sub_1002E757C(v4);
return v3 >= (int)v4;
}
}
return result;
}