//
// SecretRewardsLayer::onChestType from 0x10070ed80 to 0x10070edbb (59 bytes)
//
// 1 xrefs:
// > SecretRewardsLayer::init @ 0x10070da6c
//
// 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:36:05 +0000
//
__int64 __fastcall SecretRewardsLayer::onChestType(__int64 a1, __int64 a2)
{
int v2; // eax
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v2 < 6 )
return SecretRewardsLayer::moveToSecondaryLayer(a1, (unsigned int)(v2 + 3));
else
return SecretRewardsLayer::onSpecialItem(a1, a2);
}