//
// SecretLayer3::onChest02 from 0x4eb350 to 0x4eb3e4 (148 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 SecretLayer3::onChest02(SecretLayer3 *a1, cocos2d::CCObject *a2)
{
_BOOL4 m_lockInput; // r6
int *v5; // r6
GJRewardItem *v6; // r6
RewardUnlockLayer *v7; // r4
_BYTE v8[4]; // [sp+8h] [bp-Ch] BYREF
m_lockInput = a1->m_lockInput;
if ( !a1->m_lockInput )
{
a2->__vftable[13].copyWithZone(a2, (cocos2d::CCZone *)m_lockInput);
((void (__fastcall *)(cocos2d::CCObject *, _BOOL4))a2->__vftable[4].~CCObject)(a2, m_lockInput);
v5 = (int *)GameStatsManager::sharedState();
sub_776584((int)v8, "0002");
v6 = GameStatsManager::unlockSpecialChest(v5, (stl::StringData::Internal *)v8);
sub_774008(v8);
if ( v6 )
{
v7 = RewardUnlockLayer::create(v6->m_rewardType, nullptr);
a1->addChild_0(a1, v7, 100);
RewardUnlockLayer::showCollectReward(v7, v6);
}
}
}