//
// SecretRewardsLayer::onShop from 0xa69e44 to 0xa69f4c (264 bytes)
//
// 3 xrefs:
// > ??> @ 0x91c08
// > SecretRewardsLayer::init @ 0xa634c0
// > ??> @ 0x122cf98
//
// 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::onShop(SecretRewardsLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w19
GameManager *v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
GameManager *v7; // x0
v3 = a2->getTag(a2);
switch ( v3 )
{
case 1:
v6 = GameManager::sharedState();
if ( GameManager::getUGV(v6, "11") )
goto LABEL_3;
SecretRewardsLayer::showDialog01(a1);
break;
case 2:
v5 = GameManager::sharedState();
if ( GameManager::getUGV(v5, "20") )
goto LABEL_3;
SecretRewardsLayer::showDialog03(a1);
break;
case 3:
v4 = GameManager::sharedState();
if ( GameManager::getUGV(v4, "35") )
goto LABEL_3;
SecretRewardsLayer::showDialogMechanic(a1);
break;
case 4:
v7 = GameManager::sharedState();
if ( GameManager::getUGV(v7, "34") )
LABEL_3:
SecretRewardsLayer::showShop(a1, v3);
else
SecretRewardsLayer::showDialogDiamond(a1);
break;
default:
return;
}
}