//
// sub_1003A2C94 from 0x1003a2c94 to 0x1003a2d64 (208 bytes)
//
// 1 xrefs:
// > GJGarageLayer::setupSpecialPage @ 0x1003a2180
//
// 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 11:03:47 +0000
//
__int64 __fastcall sub_1003A2C94(__int64 a1, unsigned int *a2)
{
__int64 v4; // x20
__int64 v5; // x23
__int64 v6; // x0
__int64 v7; // x21
__int64 v8; // x0
__int64 isIconUnlocked; // x0
__int64 v10; // x0
__int64 v11; // x0
int v12; // w22
__int64 v13; // x0
__int64 v14; // x0
v4 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 64LL))(a2);
v5 = a2[124];
v6 = GameManager::sharedState(v4);
v7 = GameManager::iconTypeToUnlockType(v6, v5);
v8 = GameManager::sharedState(v7);
isIconUnlocked = GameManager::isIconUnlocked(v8, v4, v5);
if ( (isIconUnlocked & 1) == 0 )
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1184LL))(a1, v4, v7);
v10 = GameStatsManager::sharedState(isIconUnlocked);
v11 = sub_1003D4738(v10, v7, v4);
v12 = v11;
v13 = GameStatsManager::sharedState(v11);
GameStatsManager::toggleEnableItem(v13, v7, v4, v12 ^ 1u);
v14 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 1072LL))(a2);
return sub_1003A2BE0(v14, v12 ^ 1u);
}