// // FollowRewardPage::init from 0x963adc to 0x964e0c (4912 bytes) // // 3 xrefs: // > FollowRewardPage::create @ 0x964f20 // > @ 0xb1b28 // > @ 0x11bcca0 // // 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 // bool FollowRewardPage::init(FollowRewardPage *a1) { cocos2d::CCDirector *v3; // x0 int v4; // w21 cocos2d::CCNode *v5; // x20 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x23 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCSprite *v8; // x20 void (__fastcall *v9)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 void (__fastcall *v10)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCLabelBMFont *v11; // x20 unsigned int v12; // w23 void (__fastcall *v13)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCLabelBMFont *v14; // x21 cocos2d::CCLabelBMFont *v15; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v17)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20 __int64 v18; // x24 cocos2d::CCSprite *v19; // x0 CCMenuItemSpriteExtra *v20; // x20 cocos2d::CCMenu *v21; // x20 void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCArray *v23; // x0 cocos2d::CCArray *v24; // x0 GameStatsManager *v25; // x21 char *v26; // x0 GameStatsManager *v27; // x20 __int64 RewardForSpecialChest; // x20 char *v29; // x0 double v30; // d0 GameManager *v31; // x0 float v32; // s0 float v33; // s1 GJChestSprite *v34; // x21 CCMenuItemSpriteExtra *v35; // x20 void *v36; // x0 void (__fastcall *v37)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x28 void (__fastcall *v38)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 float width; // s8 __int64 v40; // x0 CCMenuItemSpriteExtra_vtbl *v41; // x2 void (__fastcall *v42)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCLabelBMFont *v43; // x25 void (__fastcall *v44)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 __int64 v45; // x1 void *v46; // x0 char *v47; // x0 GameStatsManager *v48; // x21 char *v49; // x0 GameStatsManager *v50; // x20 char *v51; // x0 double v52; // d0 GameManager *v53; // x0 GameStatsManager *v54; // x21 char *v55; // x0 GameStatsManager *v56; // x20 char *v57; // x0 double v58; // d0 GameManager *v59; // x0 GameStatsManager *v60; // x21 char *v61; // x0 GameStatsManager *v62; // x20 char *v63; // x0 double v64; // d0 GameManager *v65; // x0 GameStatsManager *v66; // x21 char *v67; // x0 GameStatsManager *v68; // x20 char *v69; // x0 double v70; // d0 GameManager *v71; // x0 unsigned int *v72; // x1 int v73; // w2 cocos2d::CCSprite *v74; // x20 void (__fastcall *v75)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 GJChestSprite_vtbl *v76; // x2 GameStatsManager *v77; // x21 char *v78; // x0 GameStatsManager *v79; // x20 void *v80; // x0 double v81; // d0 GameManager *v82; // x0 float v83; // s0 void (__fastcall *v84)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 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 int v108; // w2 unsigned int *v109; // x1 int v110; // w2 unsigned int *v111; // x1 int v112; // w2 char v113; // [xsp+AFh] [xbp+AFh] _BOOL4 UGV; // [xsp+B8h] [xbp+B8h] int isSpecialChestUnlocked; // [xsp+BCh] [xbp+BCh] float v116; // [xsp+D8h] [xbp+D8h] float v117; // [xsp+DCh] [xbp+DCh] cocos2d::CCPoint v118; // [xsp+E0h] [xbp+E0h] BYREF const char *v119; // [xsp+E8h] [xbp+E8h] BYREF __int64 v120; // [xsp+F0h] [xbp+F0h] BYREF cocos2d::CCPoint v121; // [xsp+F8h] [xbp+F8h] BYREF char *v122; // [xsp+100h] [xbp+100h] BYREF std::string v123; // [xsp+108h] [xbp+108h] BYREF char *v124; // [xsp+110h] [xbp+110h] BYREF std::string v125; // [xsp+118h] [xbp+118h] BYREF char *v126; // [xsp+120h] [xbp+120h] BYREF std::string v127; // [xsp+128h] [xbp+128h] BYREF char *v128; // [xsp+130h] [xbp+130h] BYREF std::string v129; // [xsp+138h] [xbp+138h] BYREF char *v130; // [xsp+140h] [xbp+140h] BYREF std::string v131; // [xsp+148h] [xbp+148h] BYREF char *v132; // [xsp+150h] [xbp+150h] BYREF cocos2d::CCPoint v133; // [xsp+158h] [xbp+158h] BYREF cocos2d::CCPoint v134; // [xsp+160h] [xbp+160h] BYREF cocos2d::CCRect v135; // [xsp+168h] [xbp+168h] BYREF cocos2d::CCPoint v136; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v137; // 0:x2.16 cocos2d::SEL_MenuHandler v138; // 0:x2.16 cocos2d::CCRect v139; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v113 = FLAlertLayer::init(a1, 0x96u); if ( v113 ) { v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v3); v4 = 1; cocos2d::CCRect::CCRect(&v135, 0.0, 0.0, 80.0, 80.0); v5 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v135, v139); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v5->__vftable[1].~CCNode_0)(v5, 0xFFFFFFFFLL); setContentSize = v5->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 420.0, 280.0); setContentSize(v5, (const cocos2d::CCSize *)&v135); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, -1); setPosition = v5->setPosition; cocos2d::CCPoint::CCPoint(&v135.origin, v116 * 0.5, v117 * 0.5); setPosition(v5, &v135.origin); while ( 1 ) { while ( 1 ) { v8 = cocos2d::CCSprite::createWithSpriteFrameName("dailyLevelCorner_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v8, 8); if ( v4 != 3 ) break; cocos2d::CCSprite::setFlipX(v8, 1); cocos2d::CCSprite::setFlipY(v8, 1); v83 = 185.0; LABEL_46: ++v4; v84 = v8->setPosition; cocos2d::CCPoint::CCPoint(&v135.origin, v83 + (float)(v116 * 0.5), (float)(v117 * 0.5) + 115.0); v84(v8, &v135.origin); } if ( v4 == 4 ) break; if ( v4 == 2 ) { cocos2d::CCSprite::setFlipY(v8, 1); v83 = -185.0; goto LABEL_46; } v9 = v8->setPosition; cocos2d::CCPoint::CCPoint(&v135.origin, (float)(v116 * 0.5) + -185.0, (float)(v117 * 0.5) + -115.0); v9(v8, &v135.origin); ++v4; } cocos2d::CCSprite::setFlipX(v8, 1); v10 = v8->setPosition; cocos2d::CCPoint::CCPoint(&v135.origin, (float)(v116 * 0.5) + 185.0, (float)(v117 * 0.5) + -115.0); v10(v8, &v135.origin); v11 = cocos2d::CCLabelBMFont::create(); v12 = 1; v11->setScale(v11, 0.8); a1->m_mainLayer->addChild(a1->m_mainLayer, v11); v13 = v11->setPosition; cocos2d::CCPoint::CCPoint(&v135.origin, v116 * 0.5, (float)((float)(v117 * 0.5) + 140.0) - 22.0); v13(v11, &v135.origin); v14 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v14); v14->setScale(v14, 0.5); v15 = v11; getPosition = v11->getPosition; v17 = v14->setPosition; v18 = (__int64)getPosition(v15); cocos2d::CCPoint::CCPoint(&v134, 0.0, -26.0); cocos2d::CCPoint::operator+(&v135, v18, &v134); v17(v14, &v135.origin); v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v137.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v137.adj = (size_t)FollowRewardPage::onClose; v20 = CCMenuItemSpriteExtra::create(v19, nullptr, v137); CCMenuItemSpriteExtra::setSizeMult(v20, 1.6); v21 = (cocos2d::CCMenu *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v20, nullptr); a1->m_buttonMenu = v21; v22 = v21->setPosition; cocos2d::CCPoint::CCPoint( &v135.origin, (float)((float)(v116 * 0.5) + -210.0) + 10.0, (float)((float)(v117 * 0.5) + 140.0) - 10.0); v22(v21, &v135.origin); v23 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, a1->m_buttonMenu, 10); v24 = (cocos2d::CCArray *)cocos2d::CCArray::create(v23); a1->m_chests = v24; cocos2d::CCObject::retain(v24); cocos2d::CCPoint::CCPoint(&v118, v116 * 0.5, (float)(v117 * 0.5) + -30.0); while ( 1 ) { sub_D153B8((int)&v119, &byte_F288A0); sub_D153B8((int)&v120, &byte_F288A0); cocos2d::CCPoint::CCPoint(&v121, &stru_12438B0); switch ( v12 ) { case 2u: v60 = GameStatsManager::sharedState(); sub_D153B8((int)&v124, "0008"); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v60, &v124); v61 = v124 - 24; if ( v124 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v97 = (unsigned int *)(v124 - 8); do v98 = __ldaxr(v97); while ( __stlxr(v98 - 1, v97) ); } else { v98 = *((_DWORD *)v124 - 2); *((_DWORD *)v124 - 2) = v98 - 1; } if ( v98 <= 0 ) operator delete(v61); } v62 = GameStatsManager::sharedState(); sub_D153B8((int)&v125, "0008"); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest((__int64)v62, &v125); v63 = (char *)v125.m_data.m_data - 24; if ( (__int64 *)v125.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v107 = (unsigned int *)((char *)v125.m_data.m_data - 8); do v108 = __ldaxr(v107); while ( __stlxr(v108 - 1, v107) ); } else { v108 = *((_DWORD *)v125.m_data.m_data - 2); *((_DWORD *)v125.m_data.m_data - 2) = v108 - 1; } if ( v108 <= 0 ) operator delete(v63); } *(_QWORD *)&v64 = sub_D1798C(&v119, "gj_twIcon_001.png", 17).n128_u64[0]; sub_D1798C(&v120, "Twitter", 7, v64); v65 = GameManager::sharedState(); UGV = GameManager::getUGV(v65, "24"); cocos2d::CCPoint::CCPoint(&v135.origin, 0.0, 48.0); break; case 3u: v54 = GameStatsManager::sharedState(); sub_D153B8((int)&v126, "0009"); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v54, &v126); v55 = v126 - 24; if ( v126 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v91 = (unsigned int *)(v126 - 8); do v92 = __ldaxr(v91); while ( __stlxr(v92 - 1, v91) ); } else { v92 = *((_DWORD *)v126 - 2); *((_DWORD *)v126 - 2) = v92 - 1; } if ( v92 <= 0 ) operator delete(v55); } v56 = GameStatsManager::sharedState(); sub_D153B8((int)&v127, "0009"); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest((__int64)v56, &v127); v57 = (char *)v127.m_data.m_data - 24; if ( (__int64 *)v127.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v111 = (unsigned int *)((char *)v127.m_data.m_data - 8); do v112 = __ldaxr(v111); while ( __stlxr(v112 - 1, v111) ); } else { v112 = *((_DWORD *)v127.m_data.m_data - 2); *((_DWORD *)v127.m_data.m_data - 2) = v112 - 1; } if ( v112 <= 0 ) operator delete(v57); } *(_QWORD *)&v58 = sub_D1798C(&v119, "gj_fbIcon_001.png", 17).n128_u64[0]; sub_D1798C(&v120, "Facebook", 8, v58); v59 = GameManager::sharedState(); UGV = GameManager::getUGV(v59, "23"); cocos2d::CCPoint::CCPoint(&v135.origin, 90.0, 48.0); break; case 4u: v48 = GameStatsManager::sharedState(); sub_D153B8((int)&v128, "0010"); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v48, &v128); v49 = v128 - 24; if ( v128 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v89 = (unsigned int *)(v128 - 8); do v90 = __ldaxr(v89); while ( __stlxr(v90 - 1, v89) ); } else { v90 = *((_DWORD *)v128 - 2); *((_DWORD *)v128 - 2) = v90 - 1; } if ( v90 <= 0 ) operator delete(v49); } v50 = GameStatsManager::sharedState(); sub_D153B8((int)&v129, "0010"); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest((__int64)v50, &v129); v51 = (char *)v129.m_data.m_data - 24; if ( (__int64 *)v129.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v103 = (unsigned int *)((char *)v129.m_data.m_data - 8); do v104 = __ldaxr(v103); while ( __stlxr(v104 - 1, v103) ); } else { v104 = *((_DWORD *)v129.m_data.m_data - 2); *((_DWORD *)v129.m_data.m_data - 2) = v104 - 1; } if ( v104 <= 0 ) operator delete(v51); } *(_QWORD *)&v52 = sub_D1798C(&v119, "gj_twitchIcon_001.png", 21).n128_u64[0]; sub_D1798C(&v120, "Twitch", 6, v52); v53 = GameManager::sharedState(); UGV = GameManager::getUGV(v53, "26"); cocos2d::CCPoint::CCPoint(&v135.origin, -90.0, -48.0); break; case 5u: v66 = GameStatsManager::sharedState(); sub_D153B8((int)&v130, "0011"); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v66, &v130); v67 = v130 - 24; if ( v130 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v95 = (unsigned int *)(v130 - 8); do v96 = __ldaxr(v95); while ( __stlxr(v96 - 1, v95) ); } else { v96 = *((_DWORD *)v130 - 2); *((_DWORD *)v130 - 2) = v96 - 1; } if ( v96 <= 0 ) operator delete(v67); } v68 = GameStatsManager::sharedState(); sub_D153B8((int)&v131, "0011"); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest((__int64)v68, &v131); v69 = (char *)v131.m_data.m_data - 24; if ( (__int64 *)v131.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v101 = (unsigned int *)((char *)v131.m_data.m_data - 8); do v102 = __ldaxr(v101); while ( __stlxr(v102 - 1, v101) ); } else { v102 = *((_DWORD *)v131.m_data.m_data - 2); *((_DWORD *)v131.m_data.m_data - 2) = v102 - 1; } if ( v102 <= 0 ) operator delete(v69); } *(_QWORD *)&v70 = sub_D1798C(&v119, "gj_discordIcon_001.png", 22).n128_u64[0]; sub_D1798C(&v120, "Discord", 7, v70); v71 = GameManager::sharedState(); UGV = GameManager::getUGV(v71, "27"); cocos2d::CCPoint::CCPoint(&v135.origin, 0.0, -48.0); break; case 6u: v77 = GameStatsManager::sharedState(); sub_D153B8((int)&v132, "0024"); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v77, &v132); v78 = v132 - 24; if ( v132 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v99 = (unsigned int *)(v132 - 8); do v100 = __ldaxr(v99); while ( __stlxr(v100 - 1, v99) ); } else { v100 = *((_DWORD *)v132 - 2); *((_DWORD *)v132 - 2) = v100 - 1; } if ( v100 <= 0 ) operator delete(v78); } v79 = GameStatsManager::sharedState(); sub_D153B8((int)&v134, "0024"); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest((__int64)v79, (const std::string *)&v134); v80 = (void *)(*(_QWORD *)&v134 - 24LL); if ( (__int64 *)(*(_QWORD *)&v134 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v105 = (unsigned int *)(*(_QWORD *)&v134 - 8LL); do v106 = __ldaxr(v105); while ( __stlxr(v106 - 1, v105) ); } else { v106 = *(_DWORD *)(*(_QWORD *)&v134 - 8LL); *(_DWORD *)(*(_QWORD *)&v134 - 8LL) = v106 - 1; } if ( v106 <= 0 ) operator delete(v80); } *(_QWORD *)&v81 = sub_D1798C(&v119, "gj_rdIcon_001.png", 17).n128_u64[0]; sub_D1798C(&v120, "Reddit", 6, v81); v82 = GameManager::sharedState(); UGV = GameManager::getUGV(v82, "32"); cocos2d::CCPoint::CCPoint(&v135.origin, 90.0, -48.0); break; default: v25 = GameStatsManager::sharedState(); sub_D153B8((int)&v122, "0007"); isSpecialChestUnlocked = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v25, &v122); v26 = v122 - 24; if ( v122 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v93 = (unsigned int *)(v122 - 8); do v94 = __ldaxr(v93); while ( __stlxr(v94 - 1, v93) ); } else { v94 = *((_DWORD *)v122 - 2); *((_DWORD *)v122 - 2) = v94 - 1; } if ( v94 <= 0 ) operator delete(v26); } v27 = GameStatsManager::sharedState(); sub_D153B8((int)&v123, "0007"); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest((__int64)v27, &v123); v29 = (char *)v123.m_data.m_data - 24; if ( (__int64 *)v123.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v109 = (unsigned int *)((char *)v123.m_data.m_data - 8); do v110 = __ldaxr(v109); while ( __stlxr(v110 - 1, v109) ); } else { v110 = *((_DWORD *)v123.m_data.m_data - 2); *((_DWORD *)v123.m_data.m_data - 2) = v110 - 1; } if ( v110 <= 0 ) operator delete(v29); } *(_QWORD *)&v30 = sub_D1798C(&v119, "gj_ytIcon_001.png", 17).n128_u64[0]; sub_D1798C(&v120, "YouTube", 7, v30); v31 = GameManager::sharedState(); UGV = GameManager::getUGV(v31, "22"); cocos2d::CCPoint::CCPoint(&v135.origin, -90.0, 48.0); break; } cocos2d::CCPoint::operator=(&v121, v32, v33); v34 = GJChestSprite::create(*(_DWORD *)(RewardForSpecialChest + 64)); GJChestSprite::switchToState(v34, Closed, 0); cocos2d::CCArray::addObject(a1->m_chests, v34); v34->setScale(v34, 0.5); v138.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v138.adj = (size_t)FollowRewardPage::onSpecialItem; v35 = CCMenuItemSpriteExtra::create(v34, nullptr, v138); sub_D153B8((int)&v135, "chestClick.ogg"); sub_D18EA8(&v35->m_selectSound, &v135); v36 = (void *)(*(_QWORD *)&v135.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v135.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v87 = (unsigned int *)(*(_QWORD *)&v135.origin - 8LL); do v88 = __ldaxr(v87); while ( __stlxr(v88 - 1, v87) ); } else { v88 = *(_DWORD *)(*(_QWORD *)&v135.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v135.origin - 8LL) = v88 - 1; } if ( v88 <= 0 ) operator delete(v36); } v37 = v35->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 50.0, 40.0); v37(v35, (const cocos2d::CCSize *)&v135); v38 = v34->setPosition; width = v35->getContentSize(v35)->width; v40 = (__int64)v35->getContentSize(v35); cocos2d::CCPoint::CCPoint(&v135.origin, width * 0.5, *(float *)(v40 + 4) * 0.5); v38(v34, &v135.origin); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v35); v41 = v35->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v35->m_animationEnabled = 0; v35->m_colorEnabled = 1; v41->setTag(v35, v12); v34->setTag(v34, v12); cocos2d::CCPoint::operator+(&v133, &v118, &v121); v42 = v35->setPosition; v136 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v133); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v42)(v35, &v135, v136.x, v136.y); v43 = cocos2d::CCLabelBMFont::create(); v43->setScale(v43, 0.5); a1->m_mainLayer->addChild(a1->m_mainLayer, v43); v44 = v43->setPosition; cocos2d::CCPoint::CCPoint(&v134, 0.0, 42.0); cocos2d::CCPoint::operator+(&v135, &v133, &v134); v44(v43, &v135.origin); if ( !isSpecialChestUnlocked ) break; FollowRewardPage::switchToOpenedState(a1, v35); v45 = v120; v46 = (void *)(v120 - 24); if ( (__int64 *)(v120 - 24) != &qword_124B6B0 ) goto LABEL_37; LABEL_20: v47 = (char *)(v119 - 24); if ( v119 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v85 = (unsigned int *)(v119 - 8); do v86 = __ldaxr(v85); while ( __stlxr(v86 - 1, v85) ); } else { v86 = *((_DWORD *)v119 - 2); *((_DWORD *)v119 - 2) = v86 - 1; } if ( v86 <= 0 ) operator delete(v47); } if ( ++v12 == 7 ) { GameManager::sharedState()->m_gameRateDelegate2 = &a1->GameRateDelegate; return v113; } } if ( !UGV ) { v74 = cocos2d::CCSprite::createWithSpriteFrameName(v119); v74->setScale(v74, 1.2); v74->setTag(v74, v12 + 10); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v74, 11); v75 = v74->setPosition; cocos2d::CCPoint::CCPoint(&v134, 0.0, 2.0); cocos2d::CCPoint::operator+(&v135, &v133, &v134); v75(v74, &v135.origin); v76 = v34->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v34->m_dark = 1; v76->setColor(v34, (const cocos2d::ccColor3B *)&off_EFA9B8); } v45 = v120; v46 = (void *)(v120 - 24); if ( (__int64 *)(v120 - 24) == &qword_124B6B0 ) goto LABEL_20; LABEL_37: if ( &pthread_create ) { v72 = (unsigned int *)(v45 - 8); do v73 = __ldaxr(v72); while ( __stlxr(v73 - 1, v72) ); } else { v73 = *(_DWORD *)(v45 - 8); *(_DWORD *)(v45 - 8) = v73 - 1; } if ( v73 <= 0 ) operator delete(v46); goto LABEL_20; } return v113; }
GD Web Decomp Icon

GD Web Decomp

Raw Source