//
// SecretRewardsLayer::showLockedChest from 0x6cd864 to 0x6cd9c0 (348 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:00 +0000
//
int __fastcall SecretRewardsLayer::showLockedChest(SecretRewardsLayer *this)
{
char *v2; // r1
int v3; // r9
DialogLayer *v4; // r0
int v5; // r2
int v6; // r3
DialogLayer *v7; // r9
int v8; // r5
int v10; // [sp+4h] [bp-30h]
int v11[3]; // [sp+8h] [bp-2Ch] BYREF
int v12[3]; // [sp+14h] [bp-20h] BYREF
int v13[3]; // [sp+20h] [bp-14h] BYREF
memset(v11, 0, sizeof(v11));
std::string::__init(v11, "zzz", 3u);
switch ( *((_DWORD *)this + 106) )
{
case 0:
v2 = "The chest is not ready.";
goto LABEL_3;
case 1:
v2 = "It's still not ready...";
goto LABEL_3;
case 2:
v2 = "Seriously, stop.";
goto LABEL_3;
case 3:
std::string::assign(v11, "Wow it magically opened!");
v3 = 17;
goto LABEL_15;
case 4:
v2 = "I was wrong.";
goto LABEL_3;
case 5:
v2 = "S T O P";
goto LABEL_3;
case 6:
v2 = "El cofre esta cerrado.";
goto LABEL_3;
case 7:
v2 = "This is getting ridiculous.";
goto LABEL_3;
case 8:
v2 = "I really can't help you.";
goto LABEL_3;
case 9:
v2 = "Don't make me do it...";
goto LABEL_3;
case 0xA:
v2 = "Roses are red. Violets are blue. This is not. 2.2";
LABEL_3:
std::string::assign(v11, v2);
break;
default:
break;
}
v3 = 2;
LABEL_15:
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "The Keymaster", 0xDu);
std::string::basic_string(v13, (int)v11);
LOWORD(v10) = -1;
BYTE2(v10) = -1;
v4 = (DialogLayer *)DialogObject::create((int)v12, (int)v13, v3, 1065353216, 0, v10);
v7 = DialogLayer::create(v4, (DialogObject *)((char *)&dword_0 + 2), v5, v6);
std::string::~string((int)v13);
std::string::~string((int)v12);
DialogLayer::addToMainScene(v7);
DialogLayer::updateChatPlacement(v7, 0);
DialogLayer::animateInRandomSide(v7);
v8 = *((_DWORD *)this + 106) + 1;
if ( v8 > 10 )
*((_DWORD *)this + 106) = 0;
else
*((_DWORD *)this + 106) = v8;
return std::string::~string((int)v11);
}