// // GJShopLayer::showReactMessage from 0x92c350 to 0x92db8c (6204 bytes) // // 2 xrefs: // > GJShopLayer::ccTouchBegan @ 0x92fa98 // > @ 0x84cd8 // // 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 GJShopLayer::showReactMessage(GJShopLayer *a1) { cocos2d::CCArray *v2; // x0 cocos2d::CCArray *v3; // x22 GameManager *v4; // x0 int v5; // w26 int v6; // w27 DialogLayer *v7; // x22 GJShopLayer_vtbl *v8; // x3 int m_zolgurothDialogIndex; // w0 __int64 v10; // x1 void *v11; // x0 GameStatsManager *v12; // x27 int isSpecialChestUnlocked; // w26 char *v14; // x0 cocos2d::CCObject *v15; // x0 void *v16; // x0 void *v17; // x0 cocos2d::CCObject *v18; // x0 void *v19; // x0 void *v20; // x0 cocos2d::CCObject *v21; // x0 void *v22; // x0 void *v23; // x0 cocos2d::CCString *v24; // x0 char *v25; // x0 cocos2d::CCObject *v26; // x0 void *v27; // x0 void *v28; // x0 cocos2d::CCObject *v29; // x0 void *v30; // x0 void *v31; // x0 DialogLayer *v32; // x0 DialogLayer_vtbl *v33; // x2 DialogLayer *v34; // x22 unsigned int *v35; // x1 int v36; // w2 cocos2d::CCObject *v37; // x0 void *v38; // x0 void *v39; // x0 cocos2d::CCObject *v40; // x0 void *v41; // x0 void *v42; // x0 char *v43; // x0 cocos2d::CCString *v44; // x0 char *CString; // x0 cocos2d::CCObject *v46; // x0 void *v47; // x0 void *v48; // x0 cocos2d::CCObject *v49; // x0 void *v50; // x0 void *v51; // x0 char *v52; // x0 char *v53; // x1 char *v54; // x0 unsigned int *v55; // x1 int v56; // w2 FMODAudioEngine *v57; // x27 void *v58; // x0 cocos2d::CCObject *v59; // x0 void *v60; // x0 void *v61; // x0 cocos2d::CCObject *v62; // x0 void *v63; // x0 void *v64; // x0 cocos2d::CCObject *v65; // x0 void *v66; // x0 DialogObject *v67; // x0 char *v68; // x0 char *v69; // x0 unsigned int *v70; // x1 int v71; // w2 DialogLayer_vtbl *v72; // x1 GameManager *v73; // x0 unsigned int *v74; // x1 unsigned int *v75; // x1 int v76; // w2 unsigned int *v77; // x1 int v78; // w2 unsigned int *v79; // x1 int v80; // w2 unsigned int *v81; // x1 int v82; // w2 unsigned int *v83; // x1 int v84; // w2 unsigned int *v85; // x1 int v86; // w2 unsigned int *v87; // x1 int v88; // w2 unsigned int *v89; // x1 int v90; // w2 unsigned int *v91; // x1 int v92; // w2 unsigned int *v93; // x1 int v94; // w2 unsigned int *v95; // x1 int v96; // w2 unsigned int *v97; // x1 int v98; // w2 unsigned int *v99; // x1 int v100; // w2 unsigned int *v101; // x1 int v102; // w2 unsigned int *v103; // x1 int v104; // w2 unsigned int *v105; // x1 int v106; // w2 unsigned int *v107; // x1 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 __int64 v132; // [xsp+88h] [xbp+88h] BYREF char *v133; // [xsp+90h] [xbp+90h] BYREF __int64 v134; // [xsp+98h] [xbp+98h] BYREF __int64 v135; // [xsp+A0h] [xbp+A0h] BYREF __int64 v136; // [xsp+A8h] [xbp+A8h] BYREF __int64 v137; // [xsp+B0h] [xbp+B0h] BYREF __int64 v138; // [xsp+B8h] [xbp+B8h] BYREF __int64 v139; // [xsp+C0h] [xbp+C0h] BYREF __int64 v140; // [xsp+C8h] [xbp+C8h] BYREF __int64 v141; // [xsp+D0h] [xbp+D0h] BYREF __int64 v142; // [xsp+D8h] [xbp+D8h] BYREF __int64 v143; // [xsp+E0h] [xbp+E0h] BYREF __int64 v144; // [xsp+E8h] [xbp+E8h] BYREF __int64 v145; // [xsp+F0h] [xbp+F0h] BYREF __int64 v146; // [xsp+F8h] [xbp+F8h] BYREF __int64 v147; // [xsp+100h] [xbp+100h] BYREF __int64 v148; // [xsp+108h] [xbp+108h] BYREF char *v149; // [xsp+110h] [xbp+110h] BYREF __int64 v150; // [xsp+118h] [xbp+118h] BYREF __int64 v151; // [xsp+120h] [xbp+120h] BYREF __int64 v152; // [xsp+128h] [xbp+128h] BYREF __int64 v153; // [xsp+130h] [xbp+130h] BYREF __int64 v154; // [xsp+138h] [xbp+138h] BYREF char *v155; // [xsp+140h] [xbp+140h] BYREF __int64 v156; // [xsp+148h] [xbp+148h] BYREF __int64 v157; // [xsp+150h] [xbp+150h] BYREF __int64 v158; // [xsp+158h] [xbp+158h] BYREF __int64 v159; // [xsp+160h] [xbp+160h] BYREF char *v160; // [xsp+168h] [xbp+168h] BYREF char *v161; // [xsp+170h] [xbp+170h] BYREF v2 = (cocos2d::CCArray *)sub_D153B8((int)&v132, "zzz"); v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); v4 = GameManager::sharedState(); if ( !GameManager::getUGV(v4, "31") ) { switch ( a1->m_zolgurothDialogIndex ) { case 0: sub_D1798C(&v132, "What do you want?", 17); goto LABEL_29; case 1: sub_D1798C(&v132, "Can you stop?", 13); goto LABEL_3; case 2: sub_D1798C(&v132, "Stop with the poking!", 37); goto LABEL_63; case 3: sub_D1798C(&v132, "You are getting on my nerves.", 37); v5 = 2; v6 = 31; goto LABEL_4; case 4: sub_D1798C(&v132, "I'm warning you!", 24); LABEL_63: v5 = 2; v6 = 30; goto LABEL_4; case 5: v57 = FMODAudioEngine::sharedEngine(); sub_D153B8((int)&v144, "dangerLoop.mp3"); FMODAudioEngine::playMusic(v57, (__int64)&v144, 1u, 0, 0.0); v58 = (void *)(v144 - 24); if ( (__int64 *)(v144 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v116 = (unsigned int *)(v144 - 8); do v117 = __ldaxr(v116); while ( __stlxr(v117 - 1, v116) ); } else { v117 = *(_DWORD *)(v144 - 8); *(_DWORD *)(v144 - 8) = v117 - 1; } if ( v117 <= 0 ) operator delete(v58); } sub_D153B8((int)&v145, "The Shopkeeper"); sub_D153B8((int)&v146, "Some things are better left alone."); v59 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v145, (__int64)&v146, 32, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v59); v60 = (void *)(v146 - 24); if ( (__int64 *)(v146 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v122 = (unsigned int *)(v146 - 8); do v123 = __ldaxr(v122); while ( __stlxr(v123 - 1, v122) ); } else { v123 = *(_DWORD *)(v146 - 8); *(_DWORD *)(v146 - 8) = v123 - 1; } if ( v123 <= 0 ) operator delete(v60); } v61 = (void *)(v145 - 24); if ( (__int64 *)(v145 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v114 = (unsigned int *)(v145 - 8); do v115 = __ldaxr(v114); while ( __stlxr(v115 - 1, v114) ); } else { v115 = *(_DWORD *)(v145 - 8); *(_DWORD *)(v145 - 8) = v115 - 1; } if ( v115 <= 0 ) operator delete(v61); } sub_D153B8((int)&v147, "The Shopkeeper"); sub_D153B8((int)&v148, "Oh no... Not again."); v62 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v147, (__int64)&v148, 34, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v62); v63 = (void *)(v148 - 24); if ( (__int64 *)(v148 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v118 = (unsigned int *)(v148 - 8); do v119 = __ldaxr(v118); while ( __stlxr(v119 - 1, v118) ); } else { v119 = *(_DWORD *)(v148 - 8); *(_DWORD *)(v148 - 8) = v119 - 1; } if ( v119 <= 0 ) operator delete(v63); } v64 = (void *)(v147 - 24); if ( (__int64 *)(v147 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v110 = (unsigned int *)(v147 - 8); do v111 = __ldaxr(v110); while ( __stlxr(v111 - 1, v110) ); } else { v111 = *(_DWORD *)(v147 - 8); *(_DWORD *)(v147 - 8) = v111 - 1; } if ( v111 <= 0 ) operator delete(v64); } sub_D153B8((int)&v149, "The Shopkeeper"); sub_D153B8((int)&v150, "Just... just STOP tapping and it will be fine!"); v65 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v149, (__int64)&v150, 36, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v65); v66 = (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(v66); } v53 = v149; v54 = v149 - 24; if ( v149 - 24 == (char *)&qword_124B6B0 ) goto LABEL_58; if ( !&pthread_create ) goto LABEL_236; v107 = (unsigned int *)(v149 - 8); do v56 = __ldaxr(v107); while ( __stlxr(v56 - 1, v107) ); break; case 6: sub_D1798C(&v132, "It's best if you stop doing that.", 33); v5 = 2; v6 = 34; goto LABEL_4; case 7: sub_D1798C(&v132, "...", 29); v5 = 2; v6 = 35; goto LABEL_4; case 8: sub_D1798C(&v132, "I feel, strange...", 50); v5 = 4; v6 = 32; goto LABEL_4; case 9: sub_D153B8((int)&v151, "Zolguroth"); sub_D153B8((int)&v152, "You dare touch a god?"); v37 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v151, (__int64)&v152, 33, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v37); v38 = (void *)(v152 - 24); if ( (__int64 *)(v152 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v130 = (unsigned int *)(v152 - 8); do v131 = __ldaxr(v130); while ( __stlxr(v131 - 1, v130) ); } else { v131 = *(_DWORD *)(v152 - 8); *(_DWORD *)(v152 - 8) = v131 - 1; } if ( v131 <= 0 ) operator delete(v38); } v39 = (void *)(v151 - 24); if ( (__int64 *)(v151 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v126 = (unsigned int *)(v151 - 8); do v127 = __ldaxr(v126); while ( __stlxr(v127 - 1, v126) ); } else { v127 = *(_DWORD *)(v151 - 8); *(_DWORD *)(v151 - 8) = v127 - 1; } if ( v127 <= 0 ) operator delete(v39); } sub_D153B8((int)&v153, "Zolguroth"); sub_D153B8((int)&v154, "You will regret your actions here today."); v40 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v153, (__int64)&v154, 33, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v40); v41 = (void *)(v154 - 24); if ( (__int64 *)(v154 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v120 = (unsigned int *)(v154 - 8); do v121 = __ldaxr(v120); while ( __stlxr(v121 - 1, v120) ); } else { v121 = *(_DWORD *)(v154 - 8); *(_DWORD *)(v154 - 8) = v121 - 1; } if ( v121 <= 0 ) operator delete(v41); } v42 = (void *)(v153 - 24); if ( (__int64 *)(v153 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v77 = (unsigned int *)(v153 - 8); do v78 = __ldaxr(v77); while ( __stlxr(v78 - 1, v77) ); } else { v78 = *(_DWORD *)(v153 - 8); *(_DWORD *)(v153 - 8) = v78 - 1; } if ( v78 <= 0 ) operator delete(v42); } GameManager::sharedState(); sub_D18D28(&v155); sub_D153B8((int)&v160, v155); v43 = v155 - 24; if ( v155 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v112 = (unsigned int *)(v155 - 8); do v113 = __ldaxr(v112); while ( __stlxr(v113 - 1, v112) ); } else { v113 = *((_DWORD *)v155 - 2); *((_DWORD *)v155 - 2) = v113 - 1; } if ( v113 <= 0 ) operator delete(v43); } if ( !*((_QWORD *)v160 - 3) ) sub_D1798C(&v160, "...", 3); v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"I have big things planned\nfor you %s.", v160); CString = (char *)cocos2d::CCString::getCString(v44); sub_D153B8((int)&v161, CString); sub_D153B8((int)&v156, "Zolguroth"); sub_D153B8((int)&v157, v161); v46 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v156, (__int64)&v157, 33, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v46); v47 = (void *)(v157 - 24); if ( (__int64 *)(v157 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v105 = (unsigned int *)(v157 - 8); do v106 = __ldaxr(v105); while ( __stlxr(v106 - 1, v105) ); } else { v106 = *(_DWORD *)(v157 - 8); *(_DWORD *)(v157 - 8) = v106 - 1; } if ( v106 <= 0 ) operator delete(v47); } v48 = (void *)(v156 - 24); if ( (__int64 *)(v156 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v103 = (unsigned int *)(v156 - 8); do v104 = __ldaxr(v103); while ( __stlxr(v104 - 1, v103) ); } else { v104 = *(_DWORD *)(v156 - 8); *(_DWORD *)(v156 - 8) = v104 - 1; } if ( v104 <= 0 ) operator delete(v48); } sub_D153B8((int)&v158, "Zolguroth"); sub_D153B8((int)&v159, "Now... BEGONE!"); v49 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v158, (__int64)&v159, 33, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v49); v50 = (void *)(v159 - 24); if ( (__int64 *)(v159 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v101 = (unsigned int *)(v159 - 8); do v102 = __ldaxr(v101); while ( __stlxr(v102 - 1, v101) ); } else { v102 = *(_DWORD *)(v159 - 8); *(_DWORD *)(v159 - 8) = v102 - 1; } if ( v102 <= 0 ) operator delete(v50); } v51 = (void *)(v158 - 24); if ( (__int64 *)(v158 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v128 = (unsigned int *)(v158 - 8); do v129 = __ldaxr(v128); while ( __stlxr(v129 - 1, v128) ); } else { v129 = *(_DWORD *)(v158 - 8); *(_DWORD *)(v158 - 8) = v129 - 1; } if ( v129 <= 0 ) operator delete(v51); } v52 = v161 - 24; if ( v161 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v124 = (unsigned int *)(v161 - 8); do v125 = __ldaxr(v124); while ( __stlxr(v125 - 1, v124) ); } else { v125 = *((_DWORD *)v161 - 2); *((_DWORD *)v161 - 2) = v125 - 1; } if ( v125 <= 0 ) operator delete(v52); } v53 = v160; v54 = v160 - 24; if ( v160 - 24 == (char *)&qword_124B6B0 ) goto LABEL_58; if ( &pthread_create ) { v55 = (unsigned int *)(v160 - 8); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { LABEL_236: v56 = *((_DWORD *)v53 - 2); *((_DWORD *)v53 - 2) = v56 - 1; } break; default: LABEL_3: v5 = 2; v6 = 6; goto LABEL_4; } if ( v56 <= 0 ) operator delete(v54); LABEL_58: v5 = 4; v6 = 6; LABEL_4: if ( (unsigned int)cocos2d::CCArray::count(v3) ) { v7 = DialogLayer::createWithObjects(v3, v5); } else { sub_D153B8((int)&v160, "The Shopkeeper"); sub_D18D28(&v161); v67 = (DialogObject *)DialogObject::create(1.0, (__int64)&v160, (__int64)&v161, v6, 0, (int)&unk_FFFFFF); v7 = DialogLayer::create(v67, v5); v68 = v161 - 24; if ( v161 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v79 = (unsigned int *)(v161 - 8); do v80 = __ldaxr(v79); while ( __stlxr(v80 - 1, v79) ); } else { v80 = *((_DWORD *)v161 - 2); *((_DWORD *)v161 - 2) = v80 - 1; } if ( v80 <= 0 ) operator delete(v68); } v69 = v160 - 24; if ( v160 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v70 = (unsigned int *)(v160 - 8); do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = *((_DWORD *)v160 - 2); *((_DWORD *)v160 - 2) = v71 - 1; } if ( v71 <= 0 ) operator delete(v69); } } v8 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7->m_skippable = 1; v8->addChild_0(a1, v7, 100); DialogLayer::updateChatPlacement(v7, Center); DialogLayer::animateInRandomSide(v7); m_zolgurothDialogIndex = a1->m_zolgurothDialogIndex; if ( m_zolgurothDialogIndex > 8 ) { v72 = v7->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7->m_delegate = &a1->DialogDelegate; v7->m_noRemove = 1; v72->setTag(v7, 1); v73 = GameManager::sharedState(); GameManager::setUGV(v73, "31", 1); m_zolgurothDialogIndex = a1->m_zolgurothDialogIndex; } a1->m_zolgurothDialogIndex = m_zolgurothDialogIndex + 1; v10 = v132; v11 = (void *)(v132 - 24); if ( (__int64 *)(v132 - 24) == &qword_124B6B0 ) return; if ( &pthread_create ) { v74 = (unsigned int *)(v132 - 8); do v36 = __ldaxr(v74); while ( __stlxr(v36 - 1, v74) ); goto LABEL_75; } LABEL_93: v36 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v36 - 1; LABEL_75: if ( v36 <= 0 ) operator delete(v11); return; } a1->m_zolgurothDialogIndex = 0; v12 = GameStatsManager::sharedState(); sub_D153B8((int)&v133, "0022"); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v12, &v133); v14 = v133 - 24; if ( v133 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v75 = (unsigned int *)(v133 - 8); do v76 = __ldaxr(v75); while ( __stlxr(v76 - 1, v75) ); } else { v76 = *((_DWORD *)v133 - 2); *((_DWORD *)v133 - 2) = v76 - 1; } if ( v76 <= 0 ) { operator delete(v14); if ( !isSpecialChestUnlocked ) goto LABEL_13; LABEL_28: sub_D1798C(&v132, "Can I help you?", 15); LABEL_29: v5 = 2; v6 = 29; goto LABEL_4; } } if ( isSpecialChestUnlocked ) goto LABEL_28; LABEL_13: sub_D153B8((int)&v134, "The Shopkeeper"); sub_D153B8((int)&v135, "Hey, Welcome back!"); v15 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v134, (__int64)&v135, 5, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v15); v16 = (void *)(v135 - 24); if ( (__int64 *)(v135 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v89 = (unsigned int *)(v135 - 8); do v90 = __ldaxr(v89); while ( __stlxr(v90 - 1, v89) ); } else { v90 = *(_DWORD *)(v135 - 8); *(_DWORD *)(v135 - 8) = v90 - 1; } if ( v90 <= 0 ) operator delete(v16); } v17 = (void *)(v134 - 24); if ( (__int64 *)(v134 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v99 = (unsigned int *)(v134 - 8); do v100 = __ldaxr(v99); while ( __stlxr(v100 - 1, v99) ); } else { v100 = *(_DWORD *)(v134 - 8); *(_DWORD *)(v134 - 8) = v100 - 1; } if ( v100 <= 0 ) operator delete(v17); } sub_D153B8((int)&v136, "The Shopkeeper"); sub_D153B8((int)&v137, "Sorry, I think I fell asleep earlier. Did I miss something?"); v18 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v136, (__int64)&v137, 29, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v18); v19 = (void *)(v137 - 24); if ( (__int64 *)(v137 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v93 = (unsigned int *)(v137 - 8); do v94 = __ldaxr(v93); while ( __stlxr(v94 - 1, v93) ); } else { v94 = *(_DWORD *)(v137 - 8); *(_DWORD *)(v137 - 8) = v94 - 1; } if ( v94 <= 0 ) operator delete(v19); } v20 = (void *)(v136 - 24); if ( (__int64 *)(v136 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v97 = (unsigned int *)(v136 - 8); do v98 = __ldaxr(v97); while ( __stlxr(v98 - 1, v97) ); } else { v98 = *(_DWORD *)(v136 - 8); *(_DWORD *)(v136 - 8) = v98 - 1; } if ( v98 <= 0 ) operator delete(v20); } sub_D153B8((int)&v138, "The Shopkeeper"); sub_D153B8((int)&v139, "Oh yea! Someone left this package here for you."); v21 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v138, (__int64)&v139, 5, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v21); v22 = (void *)(v139 - 24); if ( (__int64 *)(v139 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v85 = (unsigned int *)(v139 - 8); do v86 = __ldaxr(v85); while ( __stlxr(v86 - 1, v85) ); } else { v86 = *(_DWORD *)(v139 - 8); *(_DWORD *)(v139 - 8) = v86 - 1; } if ( v86 <= 0 ) operator delete(v22); } v23 = (void *)(v138 - 24); if ( (__int64 *)(v138 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v95 = (unsigned int *)(v138 - 8); do v96 = __ldaxr(v95); while ( __stlxr(v96 - 1, v95) ); } else { v96 = *(_DWORD *)(v138 - 8); *(_DWORD *)(v138 - 8) = v96 - 1; } if ( v96 <= 0 ) operator delete(v23); } sub_D153B8((int)&v140, "The Shopkeeper"); v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Who is %s?", "Zolguroth"); v25 = (char *)cocos2d::CCString::getCString(v24); sub_D153B8((int)&v141, v25); v26 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v140, (__int64)&v141, 29, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v26); v27 = (void *)(v141 - 24); if ( (__int64 *)(v141 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v87 = (unsigned int *)(v141 - 8); do v88 = __ldaxr(v87); while ( __stlxr(v88 - 1, v87) ); } else { v88 = *(_DWORD *)(v141 - 8); *(_DWORD *)(v141 - 8) = v88 - 1; } if ( v88 <= 0 ) operator delete(v27); } v28 = (void *)(v140 - 24); if ( (__int64 *)(v140 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v91 = (unsigned int *)(v140 - 8); do v92 = __ldaxr(v91); while ( __stlxr(v92 - 1, v91) ); } else { v92 = *(_DWORD *)(v140 - 8); *(_DWORD *)(v140 - 8) = v92 - 1; } if ( v92 <= 0 ) operator delete(v28); } sub_D153B8((int)&v142, "The Shopkeeper"); sub_D153B8((int)&v143, "I really need to get that thing checked..."); v29 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v142, (__int64)&v143, 34, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v3, v29); v30 = (void *)(v143 - 24); if ( (__int64 *)(v143 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v83 = (unsigned int *)(v143 - 8); do v84 = __ldaxr(v83); while ( __stlxr(v84 - 1, v83) ); } else { v84 = *(_DWORD *)(v143 - 8); *(_DWORD *)(v143 - 8) = v84 - 1; } if ( v84 <= 0 ) operator delete(v30); } v31 = (void *)(v142 - 24); if ( (__int64 *)(v142 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v81 = (unsigned int *)(v142 - 8); do v82 = __ldaxr(v81); while ( __stlxr(v82 - 1, v81) ); } else { v82 = *(_DWORD *)(v142 - 8); *(_DWORD *)(v142 - 8) = v82 - 1; } if ( v82 <= 0 ) operator delete(v31); } v32 = DialogLayer::createWithObjects(v3, (int)&dword_0 + 2); v33 = v32->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v32->m_delegate = &a1->DialogDelegate; v32->m_skippable = 1; v34 = v32; v33->setTag(v32, 2); a1->addChild_0(a1, v34, 100); DialogLayer::updateChatPlacement(v34, Center); DialogLayer::animateInRandomSide(v34); v10 = v132; v11 = (void *)(v132 - 24); if ( (__int64 *)(v132 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)(v132 - 8); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); goto LABEL_75; } goto LABEL_93; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source