//
// SecretRewardsLayer::dialogClosed from 0xb9a8c8 to 0xb9aa08 (320 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SecretRewardsLayer::dialogClosed @ 0xb9aa0c
// > ??> @ 0xd9d08
// > ??> @ 0x14d92e0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:02:43 +0000
//
GameManager *__fastcall SecretRewardsLayer::dialogClosed(SecretRewardsLayer *this, DialogLayer *a2)
{
GameManager *v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
GameManager *result; // x0
GameManager *v8; // x0
GameManager *v9; // x0
GameManager *v10; // x0
GameManager *v11; // x0
v4 = (GameManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v4 == 2 )
{
v9 = (GameManager *)GameManager::sharedState(v4);
GameManager::setUGV(v9, "20", 1u);
return (GameManager *)SecretRewardsLayer::showShop(this, 2u);
}
else
{
v5 = (GameManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v5 == 1 )
{
v10 = (GameManager *)GameManager::sharedState(v5);
GameManager::setUGV(v10, "11", 1u);
return (GameManager *)SecretRewardsLayer::showShop(this, 1u);
}
else
{
v6 = (GameManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v6 == 3 )
{
v11 = (GameManager *)GameManager::sharedState(v6);
GameManager::setUGV(v11, "34", 1u);
return (GameManager *)SecretRewardsLayer::showShop(this, 4u);
}
else
{
result = (GameManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 4 )
{
v8 = (GameManager *)GameManager::sharedState(result);
GameManager::setUGV(v8, "35", 1u);
return (GameManager *)SecretRewardsLayer::showShop(this, 3u);
}
}
}
}
return result;
}