//
// RewardUnlockLayer::onClose from 0x1001c5cec to 0x1001c5d44 (88 bytes)
//
// 2 xrefs:
// > RewardUnlockLayer::init @ 0x1001c5794
// > RewardUnlockLayer::init @ 0x1001c57cc
//
// 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 __fastcall RewardUnlockLayer::onClose(RewardUnlockLayer *a1, cocos2d::CCObject *a2)
{
RewardsPage *m_rewardsPage; // x8
m_rewardsPage = a1->m_rewardsPage;
if ( m_rewardsPage && m_rewardsPage->m_openLayer == a1 )
m_rewardsPage->m_openLayer = nullptr;
((void (__fastcall *)(RewardUnlockLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(RewardUnlockLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}