//
// GJShopLayer::showReactMessage from 0x611e94 to 0x6127e4 (2384 bytes)
//
// 1 xrefs:
// > GJShopLayer::ccTouchBegan @ 0x6129c0
//
// 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:54:52 +0000
//
int __fastcall GJShopLayer::showReactMessage(GJShopLayer *this)
{
const char *v1; // r10
cocos2d::CCArray *v3; // r0
GameManager *v4; // r5
GameManager *v5; // r0
GameStatsManager *UGV; // r0
int v7; // r9
int isSpecialChestUnlocked; // r8
cocos2d::CCObject *v9; // r0
cocos2d::CCObject *v10; // r0
cocos2d::CCObject *v11; // r0
cocos2d::CCString *v12; // r0
const char *v13; // r11
size_t v14; // r0
cocos2d::CCObject *v15; // r0
cocos2d::CCObject *v16; // r0
int v17; // r2
cocos2d::CCLayerColor *v18; // r0
cocos2d::CCDirector *v19; // r5
char *v20; // r1
cocos2d::CCArray *v21; // r7
int v22; // r8
char *v23; // r1
FMODAudioEngine *v24; // r9
cocos2d::CCObject *v25; // r0
cocos2d::CCObject *v26; // r0
cocos2d::CCObject *v27; // r0
int *v28; // r0
cocos2d::CCObject *v29; // r0
cocos2d::CCObject *v30; // r0
GameManager *v31; // r0
int v32; // r0
size_t v33; // r0
int v34; // r2
cocos2d::CCString *v35; // r0
const char *CString; // r11
size_t v37; // r0
char *v38; // r1
size_t v39; // r0
cocos2d::CCObject *v40; // r0
cocos2d::CCObject *v41; // r0
int v42; // r2
cocos2d::CCLayerColor *v43; // r5
DialogLayer *v44; // r0
int v45; // r2
int v46; // r3
int v47; // r3
GameManager *v48; // r0
GameManager *v49; // r0
int v51; // [sp+4h] [bp-188h]
int v52; // [sp+4h] [bp-188h]
int v53; // [sp+4h] [bp-188h]
int v54; // [sp+4h] [bp-188h]
int v55; // [sp+4h] [bp-188h]
int v56; // [sp+4h] [bp-188h]
int v57; // [sp+4h] [bp-188h]
int v58; // [sp+4h] [bp-188h]
int v59; // [sp+4h] [bp-188h]
int v60; // [sp+4h] [bp-188h]
char *v61; // [sp+14h] [bp-178h]
int v62[3]; // [sp+1Ch] [bp-170h] BYREF
int v63[3]; // [sp+28h] [bp-164h] BYREF
int v64[3]; // [sp+34h] [bp-158h] BYREF
int v65[3]; // [sp+40h] [bp-14Ch] BYREF
int v66[3]; // [sp+4Ch] [bp-140h] BYREF
int v67[3]; // [sp+58h] [bp-134h] BYREF
int v68[3]; // [sp+64h] [bp-128h] BYREF
int v69[3]; // [sp+70h] [bp-11Ch] BYREF
int v70[3]; // [sp+7Ch] [bp-110h] BYREF
int v71[3]; // [sp+88h] [bp-104h] BYREF
int v72[3]; // [sp+94h] [bp-F8h] BYREF
int v73[3]; // [sp+A0h] [bp-ECh] BYREF
int v74[3]; // [sp+ACh] [bp-E0h] BYREF
int v75[3]; // [sp+B8h] [bp-D4h] BYREF
int v76[3]; // [sp+C4h] [bp-C8h] BYREF
int v77[3]; // [sp+D0h] [bp-BCh] BYREF
int v78[3]; // [sp+DCh] [bp-B0h] BYREF
int v79[3]; // [sp+E8h] [bp-A4h] BYREF
int v80[3]; // [sp+F4h] [bp-98h] BYREF
int v81[3]; // [sp+100h] [bp-8Ch] BYREF
int v82[3]; // [sp+10Ch] [bp-80h] BYREF
int v83[3]; // [sp+118h] [bp-74h] BYREF
int v84[3]; // [sp+124h] [bp-68h] BYREF
int v85[3]; // [sp+130h] [bp-5Ch] BYREF
int v86[3]; // [sp+13Ch] [bp-50h] BYREF
int v87[3]; // [sp+148h] [bp-44h] BYREF
int v88[3]; // [sp+154h] [bp-38h] BYREF
int v89[3]; // [sp+160h] [bp-2Ch] BYREF
int v90; // [sp+16Ch] [bp-20h] BYREF
int v91; // [sp+170h] [bp-1Ch]
char *v92; // [sp+174h] [bp-18h]
int v93[2]; // [sp+178h] [bp-14h] BYREF
char *v94; // [sp+180h] [bp-Ch]
memset(v62, 0, sizeof(v62));
v3 = (cocos2d::CCArray *)std::string::__init(v62, "zzz", 3u);
v4 = (GameManager *)cocos2d::CCArray::create(v3);
v5 = (GameManager *)GameManager::sharedState(v4);
UGV = (GameStatsManager *)GameManager::getUGV(v5, "31");
if ( !UGV )
{
switch ( *((_DWORD *)this + 93) )
{
case 0:
v20 = "What do you want?";
goto LABEL_5;
case 1:
std::string::assign(v62, "Can you stop?");
goto LABEL_35;
case 2:
v23 = "Stop with the poking!";
goto LABEL_10;
case 3:
std::string::assign(v62, "You are getting on my nerves.");
v21 = (cocos2d::CCArray *)(&dword_0 + 2);
v22 = 31;
goto LABEL_36;
case 4:
v23 = "I'm warning you!";
LABEL_10:
std::string::assign(v62, v23);
v21 = (cocos2d::CCArray *)(&dword_0 + 2);
v22 = 30;
goto LABEL_36;
case 5:
v24 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(nullptr);
memset(v74, 0, sizeof(v74));
std::string::__init(v74, "dangerLoop.mp3", 0xEu);
FMODAudioEngine::playMusic(v24, (int)v74, 1, 0.0, 0);
std::string::~string((int)v74);
memset(v75, 0, sizeof(v75));
std::string::__init(v75, "The Shopkeeper", 0xEu);
memset(v76, 0, sizeof(v76));
std::string::__init(v76, "Some things are better left alone.", 0x2Au);
LOWORD(v51) = -1;
BYTE2(v51) = -1;
v25 = (cocos2d::CCObject *)DialogObject::create((int)v75, (int)v76, 32, 1065353216, 0, v51);
cocos2d::CCArray::addObject(v4, v25);
std::string::~string((int)v76);
std::string::~string((int)v75);
memset(v77, 0, sizeof(v77));
std::string::__init(v77, "The Shopkeeper", 0xEu);
memset(v78, 0, sizeof(v78));
std::string::__init(v78, "Oh no... Not again.", 0x13u);
LOWORD(v56) = -1;
BYTE2(v56) = -1;
v26 = (cocos2d::CCObject *)DialogObject::create((int)v77, (int)v78, 34, 1065353216, 0, v56);
cocos2d::CCArray::addObject(v4, v26);
std::string::~string((int)v78);
std::string::~string((int)v77);
memset(v79, 0, sizeof(v79));
std::string::__init(v79, "The Shopkeeper", 0xEu);
memset(v80, 0, sizeof(v80));
std::string::__init(v80, "Just... just STOP tapping and it will be fine!", 0x36u);
LOWORD(v57) = -1;
BYTE2(v57) = -1;
v27 = (cocos2d::CCObject *)DialogObject::create((int)v79, (int)v80, 36, 1065353216, 0, v57);
cocos2d::CCArray::addObject(v4, v27);
std::string::~string((int)v80);
v28 = v79;
goto LABEL_33;
case 6:
std::string::assign(v62, "It's best if you stop doing that.");
v21 = (cocos2d::CCArray *)(&dword_0 + 2);
v22 = 34;
goto LABEL_36;
case 7:
std::string::assign(v62, "...");
v21 = (cocos2d::CCArray *)(&dword_0 + 2);
v22 = 35;
goto LABEL_36;
case 8:
std::string::assign(v62, "I feel, strange...");
v21 = (cocos2d::CCArray *)byte_4;
v22 = 32;
goto LABEL_36;
case 9:
memset(v81, 0, sizeof(v81));
std::string::__init(v81, "Zolguroth", 9u);
memset(v82, 0, sizeof(v82));
std::string::__init(v82, "You dare touch a god?", 0x1Du);
LOWORD(v51) = -1;
BYTE2(v51) = -1;
v29 = (cocos2d::CCObject *)DialogObject::create((int)v81, (int)v82, 33, 1065353216, 0, v51);
cocos2d::CCArray::addObject(v4, v29);
std::string::~string((int)v82);
std::string::~string((int)v81);
memset(v83, 0, sizeof(v83));
std::string::__init(v83, "Zolguroth", 9u);
memset(v84, 0, sizeof(v84));
std::string::__init(v84, "You will regret your actions here today.", 0x30u);
LOWORD(v58) = -1;
BYTE2(v58) = -1;
v30 = (cocos2d::CCObject *)DialogObject::create((int)v83, (int)v84, 33, 1065353216, 0, v58);
cocos2d::CCArray::addObject(v4, v30);
std::string::~string((int)v84);
v31 = (GameManager *)std::string::~string((int)v83);
v32 = GameManager::sharedState(v31);
std::string::basic_string(v85, v32 + 448);
if ( (v85[0] & 1) == 0 )
v1 = (char *)v85 + 1;
v90 = 0;
if ( (v85[0] & 1) != 0 )
v1 = (const char *)v85[2];
v91 = 0;
v92 = nullptr;
v33 = strlen(v1);
std::string::__init(&v90, v1, v33);
std::string::~string((int)v85);
if ( (v90 & 1) != 0 )
{
if ( v91 )
{
LABEL_23:
v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"I have big things planned\n"
"for you %s.",
v92,
v34);
goto LABEL_28;
}
}
else if ( (unsigned __int8)v90 >> 1 )
{
goto LABEL_25;
}
std::string::assign(&v90, "...");
v34 = (unsigned __int8)v90 << 31;
if ( (v90 & 1) != 0 )
goto LABEL_23;
LABEL_25:
v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"I have big things planned\nfor you %s.",
(const char *)&v90 + 1,
v34);
LABEL_28:
CString = (const char *)cocos2d::CCString::getCString(v35);
v93[0] = 0;
v93[1] = 0;
v94 = nullptr;
v37 = strlen(CString);
std::string::__init(v93, CString, v37);
memset(v86, 0, sizeof(v86));
std::string::__init(v86, "Zolguroth", 9u);
if ( (v93[0] & 1) == 0 )
v38 = (char *)v93 + 1;
v87[0] = 0;
if ( (v93[0] & 1) != 0 )
v38 = v94;
v87[1] = 0;
v87[2] = 0;
v61 = v38;
v39 = strlen(v38);
std::string::__init(v87, v61, v39);
LOWORD(v59) = -1;
BYTE2(v59) = -1;
v40 = (cocos2d::CCObject *)DialogObject::create((int)v86, (int)v87, 33, 1065353216, 0, v59);
cocos2d::CCArray::addObject(v4, v40);
std::string::~string((int)v87);
std::string::~string((int)v86);
memset(v88, 0, sizeof(v88));
std::string::__init(v88, "Zolguroth", 9u);
memset(v89, 0, sizeof(v89));
std::string::__init(v89, "Now... BEGONE!", 0x44u);
LOWORD(v60) = -1;
BYTE2(v60) = -1;
v41 = (cocos2d::CCObject *)DialogObject::create((int)v88, (int)v89, 33, 1065353216, 0, v60);
cocos2d::CCArray::addObject(v4, v41);
std::string::~string((int)v89);
std::string::~string((int)v88);
std::string::~string((int)v93);
v28 = &v90;
LABEL_33:
std::string::~string((int)v28);
v21 = (cocos2d::CCArray *)byte_4;
LABEL_34:
v22 = 6;
goto LABEL_36;
default:
LABEL_35:
v21 = (cocos2d::CCArray *)(&dword_0 + 2);
goto LABEL_34;
}
}
*((_DWORD *)this + 93) = 0;
v7 = GameStatsManager::sharedState(UGV);
memset(v63, 0, sizeof(v63));
std::string::__init(v63, "0022", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v7, (int)v63);
std::string::~string((int)v63);
if ( !isSpecialChestUnlocked )
{
memset(v64, 0, sizeof(v64));
std::string::__init(v64, "The Shopkeeper", 0xEu);
memset(v65, 0, sizeof(v65));
std::string::__init(v65, "Hey, Welcome back!", 0x12u);
LOWORD(v51) = -1;
BYTE2(v51) = -1;
v9 = (cocos2d::CCObject *)DialogObject::create((int)v64, (int)v65, 5, 1065353216, 0, v51);
cocos2d::CCArray::addObject(v4, v9);
std::string::~string((int)v65);
std::string::~string((int)v64);
memset(v66, 0, sizeof(v66));
std::string::__init(v66, "The Shopkeeper", 0xEu);
memset(v67, 0, sizeof(v67));
std::string::__init(v67, "Sorry, I think I fell asleep earlier. Did I miss something?", 0x41u);
LOWORD(v52) = -1;
BYTE2(v52) = -1;
v10 = (cocos2d::CCObject *)DialogObject::create((int)v66, (int)v67, 29, 1065353216, 0, v52);
cocos2d::CCArray::addObject(v4, v10);
std::string::~string((int)v67);
std::string::~string((int)v66);
memset(v68, 0, sizeof(v68));
std::string::__init(v68, "The Shopkeeper", 0xEu);
memset(v69, 0, sizeof(v69));
std::string::__init(v69, "Oh yea! Someone left this package here for you.", 0x3Fu);
LOWORD(v53) = -1;
BYTE2(v53) = -1;
v11 = (cocos2d::CCObject *)DialogObject::create((int)v68, (int)v69, 5, 1065353216, 0, v53);
cocos2d::CCArray::addObject(v4, v11);
std::string::~string((int)v69);
std::string::~string((int)v68);
memset(v70, 0, sizeof(v70));
std::string::__init(v70, "The Shopkeeper", 0xEu);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Who is %s?",
"Zolguroth");
v13 = (const char *)cocos2d::CCString::getCString(v12);
memset(v71, 0, sizeof(v71));
v14 = strlen(v13);
std::string::__init(v71, v13, v14);
LOWORD(v54) = -1;
BYTE2(v54) = -1;
v15 = (cocos2d::CCObject *)DialogObject::create((int)v70, (int)v71, 29, 1065353216, 0, v54);
cocos2d::CCArray::addObject(v4, v15);
std::string::~string((int)v71);
std::string::~string((int)v70);
memset(v72, 0, sizeof(v72));
std::string::__init(v72, "The Shopkeeper", 0xEu);
memset(v73, 0, sizeof(v73));
std::string::__init(v73, "I really need to get that thing checked...", 0x3Eu);
LOWORD(v55) = -1;
BYTE2(v55) = -1;
v16 = (cocos2d::CCObject *)DialogObject::create((int)v72, (int)v73, 34, 1065353216, 0, v55);
cocos2d::CCArray::addObject(v4, v16);
std::string::~string((int)v73);
std::string::~string((int)v72);
v18 = DialogLayer::createWithObjects(v4, (cocos2d::CCArray *)((char *)&dword_0 + 2), v17);
*((_BYTE *)v18 + 485) = 1;
*((_DWORD *)v18 + 122) = (char *)this + 320;
v19 = v18;
(*(void (__fastcall **)(cocos2d::CCLayerColor *, int))(*(_DWORD *)v18 + 36))(v18, 2);
(*(void (__fastcall **)(GJShopLayer *, cocos2d::CCDirector *, int))(*(_DWORD *)this + 232))(this, v19, 100);
DialogLayer::updateChatPlacement(v19, 0);
DialogLayer::animateInRandomSide(v19);
return std::string::~string((int)v62);
}
v20 = "Can I help you?";
LABEL_5:
std::string::assign(v62, v20);
v21 = (cocos2d::CCArray *)(&dword_0 + 2);
v22 = 29;
LABEL_36:
if ( cocos2d::CCArray::count(v4) )
{
v43 = DialogLayer::createWithObjects(v4, v21, v42);
}
else
{
v90 = 0;
v91 = 0;
v92 = nullptr;
std::string::__init(&v90, "The Shopkeeper", 0xEu);
std::string::basic_string(v93, (int)v62);
LOWORD(v51) = -1;
BYTE2(v51) = -1;
v44 = (DialogLayer *)DialogObject::create((int)&v90, (int)v93, v22, 1065353216, 0, v51);
v43 = DialogLayer::create(v44, v21, v45, v46);
std::string::~string((int)v93);
std::string::~string((int)&v90);
}
*((_BYTE *)v43 + 485) = 1;
(*(void (__fastcall **)(GJShopLayer *, cocos2d::CCLayerColor *, int))(*(_DWORD *)this + 232))(this, v43, 100);
DialogLayer::updateChatPlacement(v43, 0);
DialogLayer::animateInRandomSide(v43);
if ( *((int *)this + 93) > 8 )
{
*((_DWORD *)v43 + 122) = (char *)this + 320;
v47 = *(_DWORD *)v43;
*((_BYTE *)v43 + 500) = 1;
v48 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCLayerColor *))(v47 + 36))(v43);
v49 = (GameManager *)GameManager::sharedState(v48);
GameManager::setUGV(v49, "31", (_BYTE *)&dword_0 + 1);
}
++*((_DWORD *)this + 93);
return std::string::~string((int)v62);
}