//
// SupportLayer::onGetReward from 0x42c854 to 0x42c8c6 (114 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 SupportLayer::onGetReward(SupportLayer *a1, cocos2d::CCObject *a2)
{
int *v3; // r6
GJRewardItem *v4; // r6
RewardUnlockLayer *v5; // r4
_BYTE v6[4]; // [sp+8h] [bp-Ch] BYREF
v3 = (int *)GameStatsManager::sharedState();
sub_776584((int)v6, "0023");
v4 = GameStatsManager::unlockSpecialChest(v3, (stl::StringData::Internal *)v6);
sub_774008(v6);
if ( v4 )
{
v5 = RewardUnlockLayer::create(v4->m_rewardType, nullptr);
a1->addChild_0(a1, v5, 100);
RewardUnlockLayer::showCollectReward(v5, v4);
}
}