//
// SecretRewardsLayer::dialogClosed from 0x10063a170 to 0x10063a294 (292 bytes)
//
// 2 xrefs:
// > sub_10063A2A0 @ 0x10063a2ac
// > ??> @ 0x100985c40
//
// 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 SecretRewardsLayer::dialogClosed(SecretRewardsLayer *a1, DialogLayer *a2)
{
GameManager *v3; // rax
cocos2d::CCDirector *v4; // r14
ShopType v5; // edi
GameManager *v6; // rax
GameManager *v7; // rax
GameManager *v8; // rax
cocos2d::CCScene *v9; // rax
cocos2d::CCTransitionMoveInT *v10; // rax
if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 2 )
{
v3 = GameManager::sharedState();
GameManager::setUGV(v3, "20", 1);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = Community;
}
else if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 1 )
{
v6 = GameManager::sharedState();
GameManager::setUGV(v6, "11", 1);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = Secret;
}
else if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 3 )
{
v7 = GameManager::sharedState();
GameManager::setUGV(v7, "34", 1);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = Diamond;
}
else
{
if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) != 4 )
return;
v8 = GameManager::sharedState();
GameManager::setUGV(v8, "35", 1);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = Mechanic;
}
v9 = GJShopLayer::scene(v5);
v10 = cocos2d::CCTransitionMoveInT::create(0.5, v9);
if ( cocos2d::CCDirector::replaceScene(v4, v10) )
((void (__fastcall *)(SecretRewardsLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
}