//
// SecretRewardsLayer::dialogClosed from 0xa614a0 to 0xa615e0 (320 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SecretRewardsLayer::dialogClosed @ 0xa615e4
// > ??> @ 0xa5d98
// > ??> @ 0x11ed180
//
// 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 SecretRewardsLayer::dialogClosed(SecretRewardsLayer *a1, DialogLayer *a2)
{
GameManager *v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
GameManager *v7; // x0
if ( a2->getTag(a2) == 2 )
{
v5 = GameManager::sharedState();
GameManager::setUGV(v5, "20", 1);
SecretRewardsLayer::showShop(a1, 2);
}
else if ( a2->getTag(a2) == 1 )
{
v6 = GameManager::sharedState();
GameManager::setUGV(v6, "11", 1);
SecretRewardsLayer::showShop(a1, 1);
}
else if ( a2->getTag(a2) == 3 )
{
v7 = GameManager::sharedState();
GameManager::setUGV(v7, "34", 1);
SecretRewardsLayer::showShop(a1, 4);
}
else if ( a2->getTag(a2) == 4 )
{
v4 = GameManager::sharedState();
GameManager::setUGV(v4, "35", 1);
SecretRewardsLayer::showShop(a1, 3);
}
}