// // SecretRewardsLayer::showDialogMechanic from 0x6cc608 to 0x6ccf4e (2374 bytes) // // 1 xrefs: // > SecretRewardsLayer::onShop @ 0x6cd6dc // // 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::showDialogMechanic(SecretRewardsLayer *this) { GameStatsManager *v2; // r5 GameStatsManager *v3; // r0 GameManager *Stat; // r0 int v5; // r2 const char *v6; // r9 GameManager *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::CCString *v16; // r0 const char *CString; // r11 size_t v18; // r0 cocos2d::CCObject *v19; // r0 cocos2d::CCObject *v20; // r0 GameManager *v21; // r0 GameManager *v22; // r0 cocos2d::CCObject *v23; // r0 cocos2d::CCString *v24; // r0 const char *v25; // r9 size_t v26; // r0 cocos2d::CCObject *v27; // r0 cocos2d::CCObject *v28; // r0 cocos2d::CCObject *v29; // r0 int v30; // r4 int v31; // r3 cocos2d::CCDirector *v32; // r6 cocos2d::CCObject *v34; // r0 cocos2d::CCObject *v35; // r0 cocos2d::CCObject *v36; // r0 cocos2d::CCObject *v37; // r0 cocos2d::CCObject *v38; // r0 int v39; // [sp+4h] [bp-28h] int v40; // [sp+4h] [bp-28h] int v41; // [sp+4h] [bp-28h] int v42; // [sp+4h] [bp-28h] int v43; // [sp+4h] [bp-28h] int v44; // [sp+4h] [bp-28h] int v45; // [sp+4h] [bp-28h] int v46; // [sp+4h] [bp-28h] int v47; // [sp+4h] [bp-28h] int v48; // [sp+4h] [bp-28h] int v49; // [sp+4h] [bp-28h] int v50; // [sp+4h] [bp-28h] int v51; // [sp+4h] [bp-28h] int v52; // [sp+4h] [bp-28h] int v53; // [sp+Ch] [bp-20h] BYREF int v54; // [sp+10h] [bp-1Ch] int v55; // [sp+14h] [bp-18h] int v56; // [sp+18h] [bp-14h] BYREF int v57; // [sp+1Ch] [bp-10h] int v58; // [sp+20h] [bp-Ch] v2 = (GameStatsManager *)cocos2d::CCArray::create(this); v3 = (GameStatsManager *)GameStatsManager::sharedState(v2); Stat = (GameManager *)GameStatsManager::getStat(v3, "13"); v6 = (const char *)Stat; if ( (int)Stat >= 2000 && (v7 = (GameManager *)GameManager::sharedState(Stat), GameManager::getUGV(v7, "36")) ) { v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Now that's an impressive collection of Diamonds!", 0x38u); LOWORD(v39) = -1; BYTE2(v39) = -1; v34 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 39, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v34); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "If anyone asks I didn't let you in.", 0x23u); LOWORD(v49) = -1; BYTE2(v49) = -1; v35 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 37, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v35); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Scratch keeps trying to sneak past my security...", 0x43u); LOWORD(v50) = -1; BYTE2(v50) = -1; v36 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 50, 1065353216, 0, v50); cocos2d::CCArray::addObject(v2, v36); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "I CAN'T SEE!?", 0x29u); LOWORD(v51) = -1; BYTE2(v51) = -1; v37 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 44, 1065353216, 0, v51); cocos2d::CCArray::addObject(v2, v37); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Ah sorry, my goggles were off.\nCome in.", 0x3Du); LOWORD(v52) = -1; BYTE2(v52) = -1; v38 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 51, 1065353216, 0, v52); cocos2d::CCArray::addObject(v2, v38); std::string::~string((int)&v56); std::string::~string((int)&v53); v30 = 1; } else { switch ( *((_DWORD *)this + 103) ) { case 0: v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "I'm in the middle of a job.\nCome back later.", 0x2Cu); LOWORD(v39) = -1; BYTE2(v39) = -1; v8 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 38, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v8); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Can never get any peace and quiet in this game...", 0x39u); LOWORD(v40) = -1; BYTE2(v40) = -1; v9 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 37, 1065353216, 0, v40); cocos2d::CCArray::addObject(v2, v9); goto LABEL_10; case 1: v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "You again!? What now!?", 0x1Eu); LOWORD(v39) = -1; BYTE2(v39) = -1; v10 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 46, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v10); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "I'm busy go bother someone else.", 0x20u); LOWORD(v41) = -1; BYTE2(v41) = -1; v11 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 51, 1065353216, 0, v41); cocos2d::CCArray::addObject(v2, v11); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init( &v56, "You take one job then all of a sudden you're bugfixing the whole game.", 0x4Eu); LOWORD(v42) = -1; BYTE2(v42) = -1; v12 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 37, 1065353216, 0, v42); cocos2d::CCArray::addObject(v2, v12); goto LABEL_10; case 2: v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Hmm so if I push here... maybe...", 0x41u); LOWORD(v39) = -1; BYTE2(v39) = -1; v13 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 45, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v13); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "No, still broken...", 0x1Bu); LOWORD(v43) = -1; BYTE2(v43) = -1; v14 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 49, 1065353216, 0, v43); cocos2d::CCArray::addObject(v2, v14); goto LABEL_10; case 3: v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "I have enough work as it is, can't go around helping everyone.", 0x3Eu); LOWORD(v39) = -1; BYTE2(v39) = -1; v15 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 51, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v15); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Collect %i Diamonds so I know you're legit, then we can talk.", (const char *)&stru_7CC.st_value); CString = (const char *)cocos2d::CCString::getCString(v16); v56 = 0; v57 = 0; v58 = 0; v18 = strlen(CString); std::string::__init(&v56, CString, v18); LOWORD(v44) = -1; BYTE2(v44) = -1; v19 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 37, 1065353216, 0, v44); cocos2d::CCArray::addObject(v2, v19); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Who ordered this thing it doesn't even fit...", 0x35u); LOWORD(v45) = -1; BYTE2(v45) = -1; v20 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 49, 1065353216, 0, v45); cocos2d::CCArray::addObject(v2, v20); std::string::~string((int)&v56); v21 = (GameManager *)std::string::~string((int)&v53); v22 = (GameManager *)GameManager::sharedState(v21); GameManager::setUGV(v22, "36", (_BYTE *)&dword_0 + 1); break; case 4: v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Scanning user...", 0x2Au); LOWORD(v39) = -1; BYTE2(v39) = -1; v23 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 49, 1065353216, 0, v39); cocos2d::CCArray::addObject(v2, v23); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Scan complete.\n" "Diamonds: %i, Required: %i", v6, 2000); v25 = (const char *)cocos2d::CCString::getCString(v24); v56 = 0; v57 = 0; v58 = 0; v26 = strlen(v25); std::string::__init(&v56, v25, v26); LOWORD(v46) = -1; BYTE2(v46) = -1; v27 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 45, 1065353216, 0, v46); cocos2d::CCArray::addObject(v2, v27); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init(&v56, "Hey who are you trying to fool?!", 0x28u); LOWORD(v47) = -1; BYTE2(v47) = -1; v28 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 46, 1065353216, 0, v47); cocos2d::CCArray::addObject(v2, v28); std::string::~string((int)&v56); std::string::~string((int)&v53); v53 = 0; v54 = 0; v55 = 0; std::string::__init(&v53, "The Mechanic", 0xCu); v56 = 0; v57 = 0; v58 = 0; std::string::__init( &v56, "Come back when you have\ncollected more Diamonds...", 0x5Cu); LOWORD(v48) = -1; BYTE2(v48) = -1; v29 = (cocos2d::CCObject *)DialogObject::create((int)&v53, (int)&v56, 50, 1065353216, 0, v48); cocos2d::CCArray::addObject(v2, v29); LABEL_10: std::string::~string((int)&v56); std::string::~string((int)&v53); break; default: break; } v30 = 0; v31 = *((_DWORD *)this + 103) + 1; if ( v31 > 4 ) *((_DWORD *)this + 103) = 0; else *((_DWORD *)this + 103) = v31; } v32 = DialogLayer::createWithObjects(v2, (cocos2d::CCArray *)byte_4, v5); (*(void (__fastcall **)(SecretRewardsLayer *, cocos2d::CCDirector *, int))(*(_DWORD *)this + 232))(this, v32, 100); (*(void (__fastcall **)(cocos2d::CCDirector *, int))(*(_DWORD *)v32 + 36))(v32, 4); if ( v30 ) *((_DWORD *)v32 + 122) = (char *)this + 316; DialogLayer::updateChatPlacement(v32, 0); return DialogLayer::animateInRandomSide(v32); }
GD Web Decomp Icon

GD Web Decomp

Raw Source