//
// SecretRewardsLayer::onChestType from 0x58a2b0 to 0x58a2da (42 bytes)
//
// 0 xrefs:
//
// 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 SecretRewardsLayer::onChestType(SecretRewardsLayer *a1, cocos2d::CCObject *a2)
{
int v4; // r1
v4 = a2->getTag(a2);
if ( v4 <= 5 )
SecretRewardsLayer::moveToSecondaryLayer(a1, v4 + 3);
else
SecretRewardsLayer::onSpecialItem(a1, a2);
}