//
// MapPackCell::onClaimReward from 0x1400b28a0 to 0x1400b2945 (165 bytes)
//
// 3 xrefs:
// > MapPackCell::loadFromMapPack @ 0x1400b2037
// > ??> @ 0x1406c7a70
// > ??> @ 0x1406c7a7c
//
// 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
//
// Hidden C++ exception states: #wind=1
void MapPackCell::onClaimReward(MapPackCell *a1, cocos2d::CCObject *a2)
{
GameStatsManager *v3; // rcx
_BOOL8 v4; // rdx
_BOOL8 v5; // rdx
void *v6; // [rsp+30h] [rbp+8h]
v3 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v6 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v3 = (GameStatsManager *)qword_1406C2EE8;
}
GameStatsManager::completedMapPack(v3, a1->m_mapPack);
a1->m_rewardButton->setVisible(a1->m_rewardButton, 0);
a1->m_rewardButton->setEnabled(a1->m_rewardButton, 0);
LOBYTE(v4) = 1;
a1->m_viewButton->setVisible(a1->m_viewButton, v4);
LOBYTE(v5) = 1;
a1->m_viewButton->setEnabled(a1->m_viewButton, v5);
MapPackCell::playCompleteEffect(a1);
}