//
// SecretRewardsLayer::onChestType from 0x1002e9a18 to 0x1002e9a6c (84 bytes)
//
// 1 xrefs:
// > SecretRewardsLayer::init @ 0x1002e8a7c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SecretRewardsLayer::onChestType(SecretRewardsLayer *a1, cocos2d::CCObject *a2)
{
int v4; // w0
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v4 < 6 )
SecretRewardsLayer::moveToSecondaryLayer(a1, v4 + 3);
else
SecretRewardsLayer::onSpecialItem(a1, a2);
}