//
// RewardUnlockLayer::onClose from 0x936478 to 0x9364cc (84 bytes)
//
// 4 xrefs:
// > ??> @ 0x425d0
// > RewardUnlockLayer::init @ 0x938484
// > RewardUnlockLayer::init @ 0x9384a8
// > ??> @ 0x122a180
//
// 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 RewardUnlockLayer::onClose(RewardUnlockLayer *a1, cocos2d::CCObject *a2)
{
RewardsPage *m_rewardsPage; // x0
m_rewardsPage = a1->m_rewardsPage;
if ( m_rewardsPage )
RewardsPage::unlockLayerClosed(m_rewardsPage, a1);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}