// // SecretRewardsLayer::showDialog03 from 0x6cbb30 to 0x6cc608 (2776 bytes) // // 1 xrefs: // > SecretRewardsLayer::onShop @ 0x6cd6c4 // // 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:56:59 +0000 // unsigned int __fastcall SecretRewardsLayer::showDialog03(SecretRewardsLayer *this) { GameStatsManager *v2; // r5 GameStatsManager *v3; // r0 GameManager *Stat; // r0 int v5; // r2 GameManager *v6; // r0 cocos2d::CCObject *v7; // r0 cocos2d::CCObject *v8; // r0 cocos2d::CCObject *v9; // r0 cocos2d::CCObject *v10; // r0 cocos2d::CCObject *v11; // r0 cocos2d::CCObject *v12; // r0 cocos2d::CCObject *v13; // r0 cocos2d::CCObject *v14; // r0 cocos2d::CCObject *v15; // r0 cocos2d::CCObject *v16; // r0 cocos2d::CCString *v17; // r0 const char *CString; // r10 size_t v19; // r0 cocos2d::CCObject *v20; // r0 cocos2d::CCObject *v21; // r0 cocos2d::CCObject *v22; // r0 GameManager *v23; // r0 GameManager *v24; // r0 cocos2d::CCString *v25; // r0 const char *v26; // r10 size_t v27; // r0 cocos2d::CCObject *v28; // r0 cocos2d::CCObject *v29; // r0 cocos2d::CCObject *v30; // r0 int v31; // r4 int v32; // r3 cocos2d::CCDirector *v33; // r6 cocos2d::CCObject *v35; // r0 cocos2d::CCObject *v36; // r0 cocos2d::CCObject *v37; // r0 cocos2d::CCObject *v38; // r0 int v39; // [sp+4h] [bp-24h] int v40; // [sp+4h] [bp-24h] int v41; // [sp+4h] [bp-24h] int v42; // [sp+4h] [bp-24h] int v43; // [sp+4h] [bp-24h] int v44; // [sp+4h] [bp-24h] int v45; // [sp+4h] [bp-24h] int v46; // [sp+4h] [bp-24h] int v47; // [sp+4h] [bp-24h] int v48; // [sp+4h] [bp-24h] int v49; // [sp+4h] [bp-24h] int v50; // [sp+4h] [bp-24h] int v51; // [sp+4h] [bp-24h] int v52; // [sp+4h] [bp-24h] int v53; // [sp+4h] [bp-24h] int v54; // [sp+Ch] [bp-1Ch] BYREF int v55; // [sp+10h] [bp-18h] int v56; // [sp+14h] [bp-14h] int v57; // [sp+18h] [bp-10h] BYREF int v58; // [sp+1Ch] [bp-Ch] int v59; // [sp+20h] [bp-8h] v2 = (GameStatsManager *)cocos2d::CCArray::create(this); v3 = (GameStatsManager *)GameStatsManager::sharedState(v2); Stat = (GameManager *)GameStatsManager::getStat(v3, "13"); if ( (int)Stat > 199 && (v6 = (GameManager *)GameManager::sharedState(Stat), GameManager::getUGV(v6, "21")) ) { v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "You found all the diamonds!?", 0x24u); LOWORD(v39) = -1; BYTE2(v39) = -1; v35 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 21, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v35); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init( &v57, "Just need to check: \n" " 1, 2, 3, 200. Yup, all there!", 0x71u); LOWORD(v51) = -1; BYTE2(v51) = -1; v36 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 22, 1065353216, 0, v51); cocos2d::CCArray::addObject(v2, v36); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "My first customer, how exciting!", 0x20u); LOWORD(v52) = -1; BYTE2(v52) = -1; v37 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 20, 1065353216, 0, v52); cocos2d::CCArray::addObject(v2, v37); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "...", 0x15u); LOWORD(v53) = -1; BYTE2(v53) = -1; v38 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 19, 1065353216, 0, v53); cocos2d::CCArray::addObject(v2, v38); std::string::~string((int)&v57); std::string::~string((int)&v54); v31 = 1; } else { switch ( *((_DWORD *)this + 101) ) { case 0: v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "Oh, a customer!", 0x15u); LOWORD(v39) = -1; BYTE2(v39) = -1; v7 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 21, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v7); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "I never had a customer before.", 0x1Eu); LOWORD(v40) = -1; BYTE2(v40) = -1; v8 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 22, 1065353216, 0, v40); cocos2d::CCArray::addObject(v2, v8); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "... Not sure what to do.", 0x30u); LOWORD(v41) = -1; BYTE2(v41) = -1; v9 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 19, 1065353216, 0, v41); cocos2d::CCArray::addObject(v2, v9); goto LABEL_7; case 1: v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "Let me check the manual.", 0x18u); LOWORD(v39) = -1; BYTE2(v39) = -1; v10 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 24, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v10); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init( &v57, "The Shopkeepers handbook: \nYou give stuff, they pay money.", 0x50u); LOWORD(v42) = -1; BYTE2(v42) = -1; v11 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 22, 1065353216, 0, v42); cocos2d::CCArray::addObject(v2, v11); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "... Sounds simple enough.", 0x31u); LOWORD(v43) = -1; BYTE2(v43) = -1; v12 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 23, 1065353216, 0, v43); cocos2d::CCArray::addObject(v2, v12); goto LABEL_7; case 2: v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "Page 2: Refund policy\nNo refunds!", 0x37u); LOWORD(v39) = -1; BYTE2(v39) = -1; v13 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 25, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v13); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init( &v57, "Page 3: Shopkeeper etiquette\n... Probably not important.", 0x5Au); LOWORD(v44) = -1; BYTE2(v44) = -1; v14 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 20, 1065353216, 0, v44); cocos2d::CCArray::addObject(v2, v14); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init( &v57, "Page 4: Self destruct mechanism\nThe page is missing...", 0x4Cu); LOWORD(v45) = -1; BYTE2(v45) = -1; v15 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 22, 1065353216, 0, v45); cocos2d::CCArray::addObject(v2, v15); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "Not sure if I should be worried about this.", 0x2Bu); LOWORD(v46) = -1; BYTE2(v46) = -1; v16 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 23, 1065353216, 0, v46); cocos2d::CCArray::addObject(v2, v16); LABEL_7: std::string::~string((int)&v57); goto LABEL_10; case 3: v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Page 394: Customer must have %i diamonds.", (const char *)&dword_C8); CString = (const char *)cocos2d::CCString::getCString(v17); v57 = 0; v58 = 0; v59 = 0; v19 = strlen(CString); std::string::__init(&v57, CString, v19); LOWORD(v39) = -1; BYTE2(v39) = -1; v20 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 24, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v20); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "What's a diamond?", 0x11u); LOWORD(v47) = -1; BYTE2(v47) = -1; v21 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 22, 1065353216, 0, v47); cocos2d::CCArray::addObject(v2, v21); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "...", 0x15u); LOWORD(v48) = -1; BYTE2(v48) = -1; v22 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 20, 1065353216, 0, v48); cocos2d::CCArray::addObject(v2, v22); std::string::~string((int)&v57); v23 = (GameManager *)std::string::~string((int)&v54); v24 = (GameManager *)GameManager::sharedState(v23); GameManager::setUGV(v24, "21", (_BYTE *)&dword_0 + 1); break; case 4: v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You must collect %i Diamonds before I can let " "you in the Shop!", (const char *)&dword_C8); v26 = (const char *)cocos2d::CCString::getCString(v25); v57 = 0; v58 = 0; v59 = 0; v27 = strlen(v26); std::string::__init(&v57, v26, v27); LOWORD(v39) = -1; BYTE2(v39) = -1; v28 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 25, 1061997773, 0, v39); cocos2d::CCArray::addObject(v2, v28); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "It says so in the handbook...", 0x2Fu); LOWORD(v49) = -1; BYTE2(v49) = -1; v29 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 23, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v29); std::string::~string((int)&v57); std::string::~string((int)&v54); v54 = 0; v55 = 0; v56 = 0; std::string::__init(&v54, "Potbor", 6u); v57 = 0; v58 = 0; v59 = 0; std::string::__init(&v57, "...", 0x15u); LOWORD(v50) = -1; BYTE2(v50) = -1; v30 = (cocos2d::CCObject *)DialogObject::create((int)&v54, (int)&v57, 20, 1065353216, 0, v50); cocos2d::CCArray::addObject(v2, v30); std::string::~string((int)&v57); LABEL_10: std::string::~string((int)&v54); break; default: break; } v31 = 0; v32 = *((_DWORD *)this + 101) + 1; if ( v32 > 4 ) *((_DWORD *)this + 101) = 0; else *((_DWORD *)this + 101) = v32; } v33 = DialogLayer::createWithObjects(v2, (cocos2d::CCArray *)((char *)&dword_0 + 2), v5); (*(void (__fastcall **)(SecretRewardsLayer *, cocos2d::CCDirector *, int))(*(_DWORD *)this + 232))(this, v33, 100); (*(void (__fastcall **)(cocos2d::CCDirector *, int))(*(_DWORD *)v33 + 36))(v33, 2); if ( v31 ) *((_DWORD *)v33 + 122) = (char *)this + 316; DialogLayer::updateChatPlacement(v33, 0); return DialogLayer::animateInRandomSide(v33); }
GD Web Decomp Icon

GD Web Decomp

Raw Source