//
// sub_1003AC8A0 from 0x1003ac8a0 to 0x1003ac970 (208 bytes)
//
// 1 xrefs:
// > SecretLayer3::init @ 0x1003ab78c
//
// 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:52 +0000
//
void __fastcall sub_1003AC8A0(_BYTE *a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x20
__int64 v6; // x20
_QWORD *v7; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
if ( (a1[424] & 1) == 0 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 1056LL))(a2, 0);
v4 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 344LL))(a2, 0);
v5 = GameStatsManager::sharedState(v4);
sub_100009900(__p, "0001");
v6 = GameStatsManager::unlockSpecialChest(v5, __p);
if ( v9 < 0 )
operator delete(__p[0]);
if ( v6 )
{
v7 = RewardUnlockLayer::create(*(unsigned int *)(v6 + 64), 0);
(*(void (__fastcall **)(_BYTE *, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 100);
RewardUnlockLayer::showCollectReward((__int64)v7, v6);
}
}
}