//
// SecretRewardsLayer::onChestType from 0xba1dd8 to 0xba1e2c (84 bytes)
//
// 3 xrefs:
// > ??> @ 0x101548
// > SecretRewardsLayer::init @ 0xb9fa8c
// > ??> @ 0x1547dc0
//
// 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 13:02:47 +0000
//
__int64 __fastcall SecretRewardsLayer::onChestType(SecretRewardsLayer *this, cocos2d::CCObject *a2)
{
int v3; // w2
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 <= 5 )
return SecretRewardsLayer::moveToSecondaryLayer(this, v3 + 3);
else
return SecretRewardsLayer::onSpecialItem(this, a2);
}