// // SecretRewardsLayer::showDialog03 from 0xa664cc to 0xa67b4c (5760 bytes) // // 2 xrefs: // > SecretRewardsLayer::onShop @ 0xa69ee8 // > @ 0x5bcc8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SecretRewardsLayer::showDialog03(SecretRewardsLayer *a1) { cocos2d::CCArray *v2; // x23 GameStatsManager *v3; // x0 int m_potborDialogIndex; // w19 int v5; // w19 DialogLayer *v6; // x19 GameManager *v7; // x0 cocos2d::CCObject *v8; // x0 void *v9; // x0 void *v10; // x0 cocos2d::CCObject *v11; // x0 void *v12; // x0 void *v13; // x0 cocos2d::CCObject *v14; // x0 void *v15; // x0 void *v16; // x0 cocos2d::CCObject *v17; // x0 void *v18; // x0 void *v19; // x0 cocos2d::CCString *v20; // x0 char *CString; // x0 cocos2d::CCObject *v22; // x0 void *v23; // x0 void *v24; // x0 cocos2d::CCObject *v25; // x0 void *v26; // x0 void *v27; // x0 cocos2d::CCObject *v28; // x0 void *v29; // x0 void *v30; // x0 GameManager *v31; // x0 cocos2d::CCObject *v32; // x0 void *v33; // x0 void *v34; // x0 cocos2d::CCObject *v35; // x0 void *v36; // x0 void *v37; // x0 cocos2d::CCObject *v38; // x0 void *v39; // x0 void *v40; // x0 cocos2d::CCObject *v41; // x0 void *v42; // x0 __int64 v43; // x1 void *v44; // x0 cocos2d::CCObject *v45; // x0 void *v46; // x0 void *v47; // x0 cocos2d::CCObject *v48; // x0 void *v49; // x0 void *v50; // x0 cocos2d::CCObject *v51; // x0 void *v52; // x0 unsigned int *v53; // x1 int v54; // w2 cocos2d::CCObject *v55; // x0 void *v56; // x0 void *v57; // x0 cocos2d::CCObject *v58; // x0 void *v59; // x0 void *v60; // x0 cocos2d::CCObject *v61; // x0 void *v62; // x0 unsigned int *v63; // x1 cocos2d::CCString *v64; // x0 char *v65; // x0 cocos2d::CCObject *v66; // x0 void *v67; // x0 void *v68; // x0 cocos2d::CCObject *v69; // x0 void *v70; // x0 void *v71; // x0 cocos2d::CCObject *v72; // x0 void *v73; // x0 unsigned int *v74; // x1 unsigned int *v75; // x1 unsigned int *v76; // x1 int v77; // w2 unsigned int *v78; // x1 int v79; // w2 unsigned int *v80; // x1 int v81; // w2 unsigned int *v82; // x1 int v83; // w2 unsigned int *v84; // x1 int v85; // w2 unsigned int *v86; // x1 int v87; // w2 unsigned int *v88; // x1 int v89; // w2 unsigned int *v90; // x1 int v91; // w2 unsigned int *v92; // x1 int v93; // w2 unsigned int *v94; // x1 int v95; // w2 unsigned int *v96; // x1 int v97; // w2 unsigned int *v98; // x1 int v99; // w2 unsigned int *v100; // x1 int v101; // w2 unsigned int *v102; // x1 int v103; // w2 unsigned int *v104; // x1 int v105; // w2 unsigned int *v106; // x1 int v107; // w2 unsigned int *v108; // x1 int v109; // w2 unsigned int *v110; // x1 int v111; // w2 unsigned int *v112; // x1 int v113; // w2 unsigned int *v114; // x1 int v115; // w2 unsigned int *v116; // x1 int v117; // w2 unsigned int *v118; // x1 int v119; // w2 unsigned int *v120; // x1 int v121; // w2 unsigned int *v122; // x1 int v123; // w2 unsigned int *v124; // x1 int v125; // w2 unsigned int *v126; // x1 int v127; // w2 unsigned int *v128; // x1 int v129; // w2 unsigned int *v130; // x1 int v131; // w2 unsigned int *v132; // x1 int v133; // w2 unsigned int *v134; // x1 int v135; // w2 unsigned int *v136; // x1 int v137; // w2 unsigned int *v138; // x1 int v139; // w2 unsigned int *v140; // x1 int v141; // w2 unsigned int *v142; // x1 int v143; // w2 unsigned int *v144; // x1 int v145; // w2 unsigned int *v146; // x1 int v147; // w2 _QWORD v148[2]; // [xsp+0h] [xbp+0h] BYREF __int64 v149; // [xsp+78h] [xbp+78h] BYREF __int64 v150; // [xsp+80h] [xbp+80h] BYREF v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v3 = GameStatsManager::sharedState(); if ( GameStatsManager::getStat(v3, "13") > 199 && (v7 = GameManager::sharedState(), GameManager::getUGV(v7, "21")) ) { sub_D153B8((int)&v149, "Potbor"); sub_D153B8((unsigned int)v148 + 128, "You found all the diamonds!?"); v8 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 21, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v8); v9 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v76 = (unsigned int *)(v150 - 8); do v77 = __ldaxr(v76); while ( __stlxr(v77 - 1, v76) ); } else { v77 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v77 - 1; } if ( v77 <= 0 ) operator delete(v9); } v10 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v78 = (unsigned int *)(v149 - 8); do v79 = __ldaxr(v78); while ( __stlxr(v79 - 1, v78) ); } else { v79 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v79 - 1; } if ( v79 <= 0 ) operator delete(v10); } sub_D153B8((unsigned int)v148 + 120, "Potbor"); sub_D153B8( (unsigned int)v148 + 128, "Just need to check: \n" " 1, 2, 3, 200. Yup, all there!"); v11 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 22, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v11); v12 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v80 = (unsigned int *)(v150 - 8); do v81 = __ldaxr(v80); while ( __stlxr(v81 - 1, v80) ); } else { v81 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v81 - 1; } if ( v81 <= 0 ) operator delete(v12); } v13 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v84 = (unsigned int *)(v149 - 8); do v85 = __ldaxr(v84); while ( __stlxr(v85 - 1, v84) ); } else { v85 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v85 - 1; } if ( v85 <= 0 ) operator delete(v13); } sub_D153B8((unsigned int)v148 + 120, "Potbor"); sub_D153B8((unsigned int)v148 + 128, "My first customer, how exciting!"); v14 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 20, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v14); v15 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v82 = (unsigned int *)(v150 - 8); do v83 = __ldaxr(v82); while ( __stlxr(v83 - 1, v82) ); } else { v83 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v83 - 1; } if ( v83 <= 0 ) operator delete(v15); } v16 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v88 = (unsigned int *)(v149 - 8); do v89 = __ldaxr(v88); while ( __stlxr(v89 - 1, v88) ); } else { v89 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v89 - 1; } if ( v89 <= 0 ) operator delete(v16); } sub_D153B8((unsigned int)v148 + 120, "Potbor"); sub_D153B8((unsigned int)v148 + 128, "..."); v17 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 19, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v17); v18 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v86 = (unsigned int *)(v150 - 8); do v87 = __ldaxr(v86); while ( __stlxr(v87 - 1, v86) ); } else { v87 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v87 - 1; } if ( v87 <= 0 ) operator delete(v18); } v19 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v90 = (unsigned int *)(v149 - 8); do v91 = __ldaxr(v90); while ( __stlxr(v91 - 1, v90) ); } else { v91 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v91 - 1; } if ( v91 <= 0 ) operator delete(v19); } v6 = DialogLayer::createWithObjects(v2, (int)&dword_0 + 2); a1->addChild_0(a1, v6, 100); v6->setTag(v6, 2); v6->m_delegate = &a1->DialogDelegate; } else { m_potborDialogIndex = a1->m_potborDialogIndex; switch ( m_potborDialogIndex ) { case 0: sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "Oh, a customer!"); v55 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 21, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v55); v56 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v108 = (unsigned int *)(v150 - 8); do v109 = __ldaxr(v108); while ( __stlxr(v109 - 1, v108) ); } else { v109 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v109 - 1; } if ( v109 <= 0 ) operator delete(v56); } v57 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v94 = (unsigned int *)(v149 - 8); do v95 = __ldaxr(v94); while ( __stlxr(v95 - 1, v94) ); } else { v95 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v95 - 1; } if ( v95 <= 0 ) operator delete(v57); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "I never had a customer before."); v58 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 22, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v58); v59 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v92 = (unsigned int *)(v150 - 8); do v93 = __ldaxr(v92); while ( __stlxr(v93 - 1, v92) ); } else { v93 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v93 - 1; } if ( v93 <= 0 ) operator delete(v59); } v60 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v142 = (unsigned int *)(v149 - 8); do v143 = __ldaxr(v142); while ( __stlxr(v143 - 1, v142) ); } else { v143 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v143 - 1; } if ( v143 <= 0 ) operator delete(v60); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "... Not sure what to do."); v61 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 19, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v61); v62 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v118 = (unsigned int *)(v150 - 8); do v119 = __ldaxr(v118); while ( __stlxr(v119 - 1, v118) ); } else { v119 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v119 - 1; } if ( v119 <= 0 ) operator delete(v62); } v43 = v149; v44 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) == &qword_124B6B0 ) goto LABEL_33; if ( !&pthread_create ) goto LABEL_109; v63 = (unsigned int *)(v149 - 8); do v54 = __ldaxr(v63); while ( __stlxr(v54 - 1, v63) ); break; case 1: sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "Let me check the manual."); v45 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 24, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v45); v46 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v106 = (unsigned int *)(v150 - 8); do v107 = __ldaxr(v106); while ( __stlxr(v107 - 1, v106) ); } else { v107 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v107 - 1; } if ( v107 <= 0 ) operator delete(v46); } v47 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v102 = (unsigned int *)(v149 - 8); do v103 = __ldaxr(v102); while ( __stlxr(v103 - 1, v102) ); } else { v103 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v103 - 1; } if ( v103 <= 0 ) operator delete(v47); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "The Shopkeepers handbook: \nYou give stuff, they pay money."); v48 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 22, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v48); v49 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v98 = (unsigned int *)(v150 - 8); do v99 = __ldaxr(v98); while ( __stlxr(v99 - 1, v98) ); } else { v99 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v99 - 1; } if ( v99 <= 0 ) operator delete(v49); } v50 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v100 = (unsigned int *)(v149 - 8); do v101 = __ldaxr(v100); while ( __stlxr(v101 - 1, v100) ); } else { v101 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v101 - 1; } if ( v101 <= 0 ) operator delete(v50); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "... Sounds simple enough."); v51 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 23, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v51); v52 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v96 = (unsigned int *)(v150 - 8); do v97 = __ldaxr(v96); while ( __stlxr(v97 - 1, v96) ); } else { v97 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v97 - 1; } if ( v97 <= 0 ) operator delete(v52); } v43 = v149; v44 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) == &qword_124B6B0 ) goto LABEL_33; if ( !&pthread_create ) goto LABEL_109; v53 = (unsigned int *)(v149 - 8); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); break; case 2: sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "Page 2: Refund policy\nNo refunds!"); v32 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 25, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v32); v33 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v104 = (unsigned int *)(v150 - 8); do v105 = __ldaxr(v104); while ( __stlxr(v105 - 1, v104) ); } else { v105 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v105 - 1; } if ( v105 <= 0 ) operator delete(v33); } v34 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v144 = (unsigned int *)(v149 - 8); do v145 = __ldaxr(v144); while ( __stlxr(v145 - 1, v144) ); } else { v145 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v145 - 1; } if ( v145 <= 0 ) operator delete(v34); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8( (int)&v150, "Page 3: Shopkeeper etiquette\n... Probably not important."); v35 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 20, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v35); v36 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v130 = (unsigned int *)(v150 - 8); do v131 = __ldaxr(v130); while ( __stlxr(v131 - 1, v130) ); } else { v131 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v131 - 1; } if ( v131 <= 0 ) operator delete(v36); } v37 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v140 = (unsigned int *)(v149 - 8); do v141 = __ldaxr(v140); while ( __stlxr(v141 - 1, v140) ); } else { v141 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v141 - 1; } if ( v141 <= 0 ) operator delete(v37); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "Page 4: Self destruct mechanism\nThe page is missing..."); v38 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 22, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v38); v39 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v114 = (unsigned int *)(v150 - 8); do v115 = __ldaxr(v114); while ( __stlxr(v115 - 1, v114) ); } else { v115 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v115 - 1; } if ( v115 <= 0 ) operator delete(v39); } v40 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v136 = (unsigned int *)(v149 - 8); do v137 = __ldaxr(v136); while ( __stlxr(v137 - 1, v136) ); } else { v137 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v137 - 1; } if ( v137 <= 0 ) operator delete(v40); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "Not sure if I should be worried about this."); v41 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 23, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v41); v42 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v122 = (unsigned int *)(v150 - 8); do v123 = __ldaxr(v122); while ( __stlxr(v123 - 1, v122) ); } else { v123 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v123 - 1; } if ( v123 <= 0 ) operator delete(v42); } v43 = v149; v44 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) == &qword_124B6B0 ) goto LABEL_33; if ( !&pthread_create ) goto LABEL_109; v75 = (unsigned int *)(v149 - 8); do v54 = __ldaxr(v75); while ( __stlxr(v54 - 1, v75) ); break; case 3: sub_D153B8((int)&v149, "Potbor"); v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Page 394: Customer must have %i diamonds.", (const char *)&qword_C8); CString = (char *)cocos2d::CCString::getCString(v20); sub_D153B8((int)&v150, CString); v22 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 24, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v22); v23 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v120 = (unsigned int *)(v150 - 8); do v121 = __ldaxr(v120); while ( __stlxr(v121 - 1, v120) ); } else { v121 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v121 - 1; } if ( v121 <= 0 ) operator delete(v23); } v24 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v128 = (unsigned int *)(v149 - 8); do v129 = __ldaxr(v128); while ( __stlxr(v129 - 1, v128) ); } else { v129 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v129 - 1; } if ( v129 <= 0 ) operator delete(v24); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "What's a diamond?"); v25 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 22, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v25); v26 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v112 = (unsigned int *)(v150 - 8); do v113 = __ldaxr(v112); while ( __stlxr(v113 - 1, v112) ); } else { v113 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v113 - 1; } if ( v113 <= 0 ) operator delete(v26); } v27 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v132 = (unsigned int *)(v149 - 8); do v133 = __ldaxr(v132); while ( __stlxr(v133 - 1, v132) ); } else { v133 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v133 - 1; } if ( v133 <= 0 ) operator delete(v27); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "..."); v28 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 20, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v28); v29 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v116 = (unsigned int *)(v150 - 8); do v117 = __ldaxr(v116); while ( __stlxr(v117 - 1, v116) ); } else { v117 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v117 - 1; } if ( v117 <= 0 ) operator delete(v29); } v30 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v124 = (unsigned int *)(v149 - 8); do v125 = __ldaxr(v124); while ( __stlxr(v125 - 1, v124) ); } else { v125 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v125 - 1; } if ( v125 <= 0 ) operator delete(v30); } v31 = GameManager::sharedState(); GameManager::setUGV(v31, "21", 1); m_potborDialogIndex = a1->m_potborDialogIndex; goto LABEL_3; case 4: sub_D153B8((int)&v149, "Potbor"); v64 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You must collect %i Diamonds before I can let " "you in the Shop!", (const char *)&qword_C8); v65 = (char *)cocos2d::CCString::getCString(v64); sub_D153B8((int)&v150, v65); v66 = (cocos2d::CCObject *)DialogObject::create(0.8, (__int64)&v149, (__int64)&v150, 25, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v66); v67 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v134 = (unsigned int *)(v150 - 8); do v135 = __ldaxr(v134); while ( __stlxr(v135 - 1, v134) ); } else { v135 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v135 - 1; } if ( v135 <= 0 ) operator delete(v67); } v68 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v146 = (unsigned int *)(v149 - 8); do v147 = __ldaxr(v146); while ( __stlxr(v147 - 1, v146) ); } else { v147 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v147 - 1; } if ( v147 <= 0 ) operator delete(v68); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "It says so in the handbook..."); v69 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 23, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v69); v70 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v126 = (unsigned int *)(v150 - 8); do v127 = __ldaxr(v126); while ( __stlxr(v127 - 1, v126) ); } else { v127 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v127 - 1; } if ( v127 <= 0 ) operator delete(v70); } v71 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v138 = (unsigned int *)(v149 - 8); do v139 = __ldaxr(v138); while ( __stlxr(v139 - 1, v138) ); } else { v139 = *(_DWORD *)(v149 - 8); *(_DWORD *)(v149 - 8) = v139 - 1; } if ( v139 <= 0 ) operator delete(v71); } sub_D153B8((int)&v149, "Potbor"); sub_D153B8((int)&v150, "..."); v72 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 20, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v72); v73 = (void *)(v150 - 24); if ( (__int64 *)(v150 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v110 = (unsigned int *)(v150 - 8); do v111 = __ldaxr(v110); while ( __stlxr(v111 - 1, v110) ); } else { v111 = *(_DWORD *)(v150 - 8); *(_DWORD *)(v150 - 8) = v111 - 1; } if ( v111 <= 0 ) operator delete(v73); } v43 = v149; v44 = (void *)(v149 - 24); if ( (__int64 *)(v149 - 24) == &qword_124B6B0 ) goto LABEL_33; if ( &pthread_create ) { v74 = (unsigned int *)(v149 - 8); do v54 = __ldaxr(v74); while ( __stlxr(v54 - 1, v74) ); } else { LABEL_109: v54 = *(_DWORD *)(v43 - 8); *(_DWORD *)(v43 - 8) = v54 - 1; } break; default: goto LABEL_3; } if ( v54 > 0 ) { LABEL_33: m_potborDialogIndex = a1->m_potborDialogIndex; } else { operator delete(v44); m_potborDialogIndex = a1->m_potborDialogIndex; } LABEL_3: v5 = m_potborDialogIndex + 1; if ( v5 >= 5 ) v5 = 0; a1->m_potborDialogIndex = v5; v6 = DialogLayer::createWithObjects(v2, (int)&dword_0 + 2); a1->addChild_0(a1, v6, 100); v6->setTag(v6, 2); } DialogLayer::updateChatPlacement(v6, Center); DialogLayer::animateInRandomSide(v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source