// // SongInfoLayer::init from 0x9044e0 to 0x905808 (4904 bytes) // // 2 xrefs: // > SongInfoLayer::create @ 0x905abc // > @ 0xf5950 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:57:09 +0000 // __int64 __fastcall SongInfoLayer::init( __int64 a1, __int64 a2, __int64 a3, _QWORD *a4, _QWORD *a5, int a6, char *a7, int a8) { __int64 *v12; // x0 __int64 *v13; // x0 cocos2d::CCDirector *v14; // x0 __int64 v15; // x24 void (__fastcall *v16)(__int64, char **); // x25 void (__fastcall *v17)(__int64, char **); // x25 const char *v18; // x2 cocos2d::CCLabelBMFont *v19; // x0 float v20; // s10 cocos2d::CCLabelBMFont *v21; // x19 void (__fastcall *v22)(cocos2d::CCLabelBMFont *, char **); // x24 cocos2d::CCLabelBMFont *v23; // x0 cocos2d::CCLabelBMFont *v24; // x19 void (__fastcall *v25)(cocos2d::CCLabelBMFont *, char **); // x24 __int64 v26; // x0 cocos2d::CCMenu *v27; // x19 __int64 v28; // x19 void (__fastcall *v29)(__int64, char **); // x24 const char *v30; // x1 __int64 v31; // x19 __int64 v32; // x19 cocos2d::CCNode *v33; // x25 void (__fastcall *v34)(__int64, char **); // x24 const char *v35; // x1 __int64 v36; // x19 __int64 v37; // x19 cocos2d::CCNode *v38; // x25 void (__fastcall *v39)(__int64, char **); // x24 const char *v40; // x2 __int64 v41; // x1 cocos2d::CCLabelBMFont *v42; // x26 void (__fastcall *v43)(cocos2d::CCLabelBMFont *, char **); // x2 unsigned __int8 v44; // w2 const void *v45; // x1 size_t v46; // x2 char v47; // w3 char *v48; // x1 char *v49; // x0 int v50; // w23 unsigned __int64 v51; // x1 unsigned __int64 v52; // x0 size_t v53; // x1 char *v54; // x1 __int64 v55; // x28 unsigned __int64 v56; // x0 char *v57; // x0 void (__fastcall *v58)(cocos2d::CCLabelBMFont *, char **); // x19 const char *v59; // x2 float v60; // s8 __int64 v61; // x19 void (__fastcall *v62)(__int64, char **); // x23 void (__fastcall *v63)(__int64, char **); // x2 __int64 v64; // x0 float v65; // s8 const char *v66; // x1 cocos2d::CCString *v67; // x0 cocos2d::CCLabelBMFont *v68; // x0 const char *v69; // x2 cocos2d::CCLabelBMFont *v70; // x19 void (__fastcall *v71)(cocos2d::CCLabelBMFont *, char **); // x23 void (__fastcall *v72)(cocos2d::CCLabelBMFont *, char **); // x2 float v73; // s8 cocos2d::CCSprite *v74; // x0 __int64 v75; // x23 void (__fastcall *v76)(__int64, char **); // x24 cocos2d::CCArray *v77; // x0 cocos2d::CCArray *v78; // x25 GameManager *v79; // x0 int v80; // w3 cocos2d::CCNode *v81; // x27 unsigned __int8 v82; // w28 __int64 v83; // x26 CCMenuItemToggler *ToggleButton; // x27 GameManager *v85; // x0 int v86; // w2 cocos2d::CCNode *v87; // x28 CCMenuItemToggler *v88; // x26 GameStatsManager *v89; // x0 __int64 v90; // x0 const char *v91; // x1 cocos2d::CCString *v92; // x0 cocos2d::CCLabelBMFont *v93; // x0 const char *v94; // x2 __int64 v95; // x19 __int64 v96; // x19 cocos2d::CCNode *v97; // x22 void (__fastcall *v98)(__int64, char **); // x21 unsigned __int8 v100; // w0 _QWORD *v101; // x0 unsigned __int8 *v102; // x27 __int64 v103; // x24 unsigned __int64 v104; // x2 unsigned __int8 *v105; // x24 unsigned __int8 *v106; // x28 char *v107; // x24 __int64 v108; // x27 char *v109; // x27 int v110; // t1 unsigned __int64 v111; // x1 __int64 v112; // x1 unsigned __int64 v113; // x0 __int64 v114; // x0 unsigned __int64 v115; // x25 __int64 v116; // x23 __int64 v117; // x24 void *v118; // x1 size_t v119; // x2 unsigned __int8 v120; // w2 size_t *v121; // x0 unsigned __int64 v122; // x1 __int64 (__fastcall **v123)(); // x1 float v124; // s8 cocos2d::CCString *v125; // x0 size_t v126; // x0 __int64 v127; // x19 __int64 v128; // x28 __int64 v129; // x19 int v130; // w1 unsigned __int8 v132; // [xsp+D7h] [xbp+A7h] void *v135; // [xsp+F0h] [xbp+C0h] char *CString; // [xsp+F0h] [xbp+C0h] unsigned __int8 v138; // [xsp+F8h] [xbp+C8h] __int64 v139; // [xsp+100h] [xbp+D0h] BYREF char v140[8]; // [xsp+108h] [xbp+D8h] BYREF char v141[8]; // [xsp+110h] [xbp+E0h] BYREF __int64 v142; // [xsp+118h] [xbp+E8h] BYREF char *v143; // [xsp+120h] [xbp+F0h] BYREF char *v144; // [xsp+128h] [xbp+F8h] char *v145; // [xsp+130h] [xbp+100h] __int64 v146; // [xsp+138h] [xbp+108h] BYREF __int64 v147; // [xsp+140h] [xbp+110h] unsigned __int8 *v148; // [xsp+148h] [xbp+118h] __int64 (__fastcall **v149)(); // [xsp+150h] [xbp+120h] BYREF __int64 v150; // [xsp+158h] [xbp+128h] __int64 (__fastcall **v151)(); // [xsp+160h] [xbp+130h] __int64 (__fastcall **v152)(); // [xsp+168h] [xbp+138h] BYREF __int64 v153; // [xsp+170h] [xbp+140h] BYREF char *v154; // [xsp+178h] [xbp+148h] char *v155; // [xsp+180h] [xbp+150h] char *v156; // [xsp+188h] [xbp+158h] char *v157; // [xsp+190h] [xbp+160h] char *v158; // [xsp+198h] [xbp+168h] char *v159; // [xsp+1A0h] [xbp+170h] __int64 v160; // [xsp+1A8h] [xbp+178h] BYREF unsigned __int64 v161; // [xsp+1B0h] [xbp+180h] void *v162; // [xsp+1B8h] [xbp+188h] char *v163; // [xsp+1C0h] [xbp+190h] int v164; // [xsp+1C8h] [xbp+198h] _QWORD v165[18]; // [xsp+1D0h] [xbp+1A0h] BYREF int v166; // [xsp+260h] [xbp+230h] v132 = FLAlertLayer::init((FLAlertLayer *)a1, 150); if ( !v132 ) return v132; v12 = (__int64 *)(a1 + 664); if ( a1 + 664 != a2 ) { if ( (*(_BYTE *)a2 & 1) != 0 ) std::string::assign(v12, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8)); else std::string::assign(v12, (const void *)(a2 + 1), *(_BYTE *)a2 >> 1); } v13 = (__int64 *)(a1 + 688); if ( a1 + 688 != a3 ) { if ( (*(_BYTE *)a3 & 1) != 0 ) v13 = std::string::assign(v13, *(const void **)(a3 + 16), *(_QWORD *)(a3 + 8)); else v13 = std::string::assign(v13, (const void *)(a3 + 1), *(_BYTE *)a3 >> 1); } *(_DWORD *)(a1 + 712) = a6; v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v13); cocos2d::CCDirector::getWinSize(&v139, v14); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v143, 0.0, 0.0, 80.0, 80.0); v15 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", &v143); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 912LL))(v15, 0xFFFFFFFFLL); v16 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v15 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v143, 420.0, 280.0); v16(v15, &v143); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v15, 0xFFFFFFFFLL); v17 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, *(float *)&v139 * 0.5, *((float *)&v139 + 1) * 0.5); v17(v15, &v143); v19 = (cocos2d::CCLabelBMFont *)(a2 + 1); v20 = (float)(*((float *)&v139 + 1) * 0.5) + 140.0; if ( (*(_BYTE *)a2 & 1) != 0 ) v19 = *(cocos2d::CCLabelBMFont **)(a2 + 16); v21 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v19, "bigFont.fnt", v18); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v21, 20); v22 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v21 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, *(float *)&v139 * 0.5, v20 - 16.0); v22(v21, &v143); cocos2d::CCLabelBMFont::limitLabelWidth(v21, 240.0, 0.6, 0.2); v23 = (cocos2d::CCLabelBMFont *)(a3 + 1); if ( (*(_BYTE *)a3 & 1) != 0 ) v23 = *(cocos2d::CCLabelBMFont **)(a3 + 16); v24 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v23, "goldFont.fnt", (const char *)&v142); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v24, 20); v25 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, *(float *)&v139 * 0.5, v20 - 37.0); v25(v24, &v143); cocos2d::CCLabelBMFont::limitLabelWidth(v24, 300.0, 0.55, 0.2); *(_DWORD *)(a1 + 640) = -1; v26 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)0xFFFFFFFFLL); v27 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v26, 0, a1, (__int64)SongInfoLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v27, 1.6); v28 = cocos2d::CCMenu::create(v27, nullptr); *(_QWORD *)(a1 + 552) = v28; v29 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v143, (float)((float)(*(float *)&v139 * 0.5) + -210.0) + 10.0, (float)((float)(*((float *)&v139 + 1) * 0.5) + 140.0) - 10.0); v29(v28, &v143); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); v31 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_BPMOnBtn_001.png", v30); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.72); v32 = CCMenuItemSpriteExtra::create(v31, 0, a1, (__int64)SongInfoLayer::onBPM, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v32); v33 = *(cocos2d::CCNode **)(a1 + 552); v34 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v32 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v142, (float)((float)(*(float *)&v139 * 0.5) + 210.0) - 23.0, (float)((float)(*((float *)&v139 + 1) * 0.5) + -140.0) + 23.0); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v143, v33, (const cocos2d::CCPoint *)&v142); v34(v32, &v143); if ( *(int *)(a1 + 712) > 0 ) { v36 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"statInfoIcon_001.png", v35); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 160LL))(v36, 0.8); v37 = CCMenuItemSpriteExtra::create(v36, 0, a1, (__int64)SongInfoLayer::onSongUsage, 0); CCMenuItemSpriteExtra::setSizeMult(v37, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v37); v38 = *(cocos2d::CCNode **)(a1 + 552); v39 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v142, (float)((float)(*(float *)&v139 * 0.5) + 210.0) - 18.0, (float)((float)(*((float *)&v139 + 1) * 0.5) + 140.0) - 18.0); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v143, v38, (const cocos2d::CCPoint *)&v142); v39(v37, &v143); if ( *(int *)(a1 + 712) > 10000000 ) { v41 = (unsigned __int8)*a7 >> 1; if ( (*a7 & 1) != 0 ) v41 = *((_QWORD *)a7 + 1); if ( v41 ) { v42 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)&byte_11B8890, "bigFont.fnt", v40); v43 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v42 + 1072LL); LOWORD(v143) = -14156; BYTE2(v143) = -21; v43(v42, &v143); v149 = (__int64 (__fastcall **)())&unk_143EFC8; v165[0] = &unk_143EFF0; v150 = 0; std::ios_base::init((std::ios_base *)v165, &v152); v166 = -1; v165[17] = 0; v149 = off_143F0E8; v165[0] = off_143F138; v152 = off_143EE50; v151 = off_143F110; std::locale::locale((std::locale *)&v153); v154 = nullptr; v155 = nullptr; v156 = nullptr; v157 = nullptr; v158 = nullptr; v159 = nullptr; v44 = *a7; v152 = off_143EEF0; v160 = 0; v161 = 0; v162 = nullptr; v163 = nullptr; v164 = 24; if ( (v44 & 1) != 0 ) { v45 = *((const void **)a7 + 2); v46 = *((_QWORD *)a7 + 1); } else { v45 = a7 + 1; v46 = v44 >> 1; } std::string::assign(&v160, v45, v46); v47 = v164; v163 = nullptr; if ( (v164 & 8) != 0 ) { if ( (v160 & 1) != 0 ) { v48 = (char *)v162; v49 = (char *)v162 + v161; } else { v48 = (char *)&v160 + 1; v49 = (char *)&v160 + ((unsigned __int8)v160 >> 1) + 1; } v163 = v49; v154 = v48; v155 = v48; v156 = v49; } if ( (v164 & 0x10) == 0 ) goto LABEL_70; if ( (v160 & 1) != 0 ) { v50 = v161; v51 = (v160 & 0xFFFFFFFFFFFFFFFELL) - 1; v52 = v161; v163 = (char *)v162 + v161; if ( v161 >= v51 ) { *((_BYTE *)v162 + v51) = 0; v161 = v51; v100 = v160; v47 = v164; v130 = v160 & 1; LABEL_131: if ( v130 ) { v52 = v161; v54 = (char *)v162; LABEL_68: v158 = v54; v157 = v54; v159 = &v54[v52]; if ( (v47 & 3) != 0 ) v158 = &v54[v50]; LABEL_70: v143 = nullptr; v144 = nullptr; v146 = 0; v147 = 0; v148 = nullptr; v145 = nullptr; while ( 1 ) { v101 = std::getline,std::allocator>(&v149, (__int64)&v146, 0x2Cu); if ( (*(_DWORD *)((_BYTE *)v101 + *(_QWORD *)(*v101 - 24LL) + 32) & 5) != 0 ) break; if ( (v146 & 1) != 0 ) { v102 = v148; v103 = v147; } else { v103 = (unsigned __int8)v146 >> 1; v102 = (unsigned __int8 *)&v146 + 1; } v104 = -1; if ( v103 ) { v105 = &v102[v103]; if ( v105 != v102 ) { v106 = v102; do { if ( !memchr(&unk_11520F0, *v106, 6u) ) { v104 = v106 - v102; goto LABEL_80; } ++v106; } while ( v105 != v106 ); v104 = -1; } } LABEL_80: std::string::erase((char *)&v146, 0, v104); if ( (v146 & 1) != 0 ) { v107 = (char *)v148; v108 = v147; } else { v108 = (unsigned __int8)v146 >> 1; v107 = (char *)&v146 + 1; } v109 = &v107[v108]; do { if ( v109 == v107 ) { v111 = 0; goto LABEL_86; } v110 = (unsigned __int8)*--v109; } while ( memchr(&unk_11520F0, v110, 6u) ); v111 = v109 - v107 + 1; LABEL_86: std::string::erase((char *)&v146, v111, 0xFFFFFFFFFFFFFFFFLL); v112 = (unsigned __int8)v146 >> 1; if ( (v146 & 1) != 0 ) v112 = v147; if ( v112 ) { v113 = (unsigned __int64)v144; if ( v144 == v145 ) { std::vector::__push_back_slow_path((__int64 *)&v143, &v146); } else { if ( v144 ) { std::string::basic_string((unsigned __int64)v144, &v146); v113 = (unsigned __int64)v144; } v144 = (char *)(v113 + 24); } } } if ( (v146 & 1) != 0 ) operator delete(v148); v149 = off_143F0E8; v165[0] = off_143F138; v151 = off_143F110; v152 = off_143EEF0; if ( (v160 & 1) != 0 ) operator delete(v162); v152 = off_143EE50; std::locale::~locale((std::locale *)&v153); v165[0] = off_143EED0; std::ios_base::~ios_base((std::ios_base *)v165); v114 = (__int64)v143; v115 = 0xAAAAAAAAAAAAAAABLL * ((v144 - v143) >> 3); if ( v115 ) { while ( 1 ) { v149 = nullptr; v116 = 0; v150 = 0; v117 = 0; v151 = nullptr; while ( 1 ) { v120 = *(_BYTE *)(v114 + v116); v121 = (size_t *)(v114 + v116); if ( (v120 & 1) != 0 ) { v118 = (void *)v121[2]; v119 = v121[1]; } else { v118 = (char *)v121 + 1; v119 = v120 >> 1; } std::string::append((__int64)&v149, v118, v119); if ( ++v117 == v115 ) break; if ( v117 ) std::string::append((__int64)&v149, ", ", 2u); v114 = (__int64)v143; v116 += 24; } v122 = 0xAAAAAAAAAAAAAAABLL * ((v144 - v143) >> 3); if ( v122 > v115 ) { v125 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)", +%i", (const char *)(unsigned int)(v122 - v115)); CString = (char *)cocos2d::CCString::getCString(v125); v126 = strlen(CString); std::string::append((__int64)&v149, CString, v126); } v123 = (__int64 (__fastcall **)())((char *)&v149 + 1); if ( ((unsigned __int8)v149 & 1) != 0 ) v123 = v151; (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 (__fastcall **)()))(*(_QWORD *)v42 + 928LL))( v42, v123); cocos2d::CCLabelBMFont::limitLabelWidth(v42, 340.0, 0.4, 0.3); v124 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 328LL))(v42); if ( (float)(v124 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 168LL))(v42)) <= 340.0 ) break; if ( ((unsigned __int8)v149 & 1) != 0 ) { operator delete(v151); if ( !--v115 ) { LABEL_119: v55 = (__int64)v143; goto LABEL_29; } } else if ( !--v115 ) { goto LABEL_119; } v114 = (__int64)v143; } if ( ((unsigned __int8)v149 & 1) != 0 ) operator delete(v151); v127 = (__int64)v143; if ( !v143 ) goto LABEL_35; v57 = v144; if ( v143 != v144 ) { do { v144 = v57 - 24; std::string::~string((__int64)(v57 - 24)); v57 = v144; } while ( (char *)v127 != v144 ); v57 = v143; } } else { v55 = (__int64)v143; LABEL_29: if ( !v55 ) goto LABEL_35; v56 = (unsigned __int64)v144; if ( v144 != (char *)v55 ) { do { v144 = (char *)(v56 - 24); std::string::~string(v56 - 24); v56 = (unsigned __int64)v144; } while ( v144 != (char *)v55 ); v55 = (__int64)v143; } v57 = (char *)v55; } operator delete(v57); LABEL_35: (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v42, 10); v58 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v42 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, *(float *)&v139 * 0.5, v20 - 56.0); v58(v42, &v143); goto LABEL_36; } LABEL_67: v52 = v100 >> 1; v54 = (char *)&v160 + 1; goto LABEL_68; } v53 = v51 - v161; if ( !v53 ) { v54 = (char *)v162; goto LABEL_68; } } else { v50 = (int)(unsigned __int8)v160 >> 1; v163 = (char *)&v160 + v50 + 1; if ( v50 > 21 ) { HIBYTE(v162) = 0; LOBYTE(v160) = 44; v100 = 44; goto LABEL_67; } v53 = 22LL - v50; } sub_9043D8(&v160, v53, 0); v100 = v160; v47 = v164; v130 = v160 & 1; goto LABEL_131; } } } LABEL_36: v59 = (const char *)a4[1]; v60 = 0.0; if ( (unsigned __int64)(0x6DB6DB6DB6DB6DB7LL * ((__int64)&v59[-*a4] >> 3)) <= 3 ) v60 = 17.0; if ( (const char *)*a4 != v59 ) { v61 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Song Links", "bigFont.fnt", v59); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v61, 20); v62 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v61 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, *(float *)&v139 * 0.5, (float)(v20 - 75.0) - v60); v62(v61, &v143); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v61 + 160LL))(v61, 0.4); v63 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v61 + 1072LL); LOWORD(v143) = -17153; BYTE2(v143) = 83; v63(v61, &v143); } SongInfoLayer::addLinkRows(a1, a4, 2, (float)(v20 - 102.0) - v60); v64 = a5[1]; if ( *a5 != v64 ) { v65 = 0.0; if ( (unsigned __int64)(0x6DB6DB6DB6DB6DB7LL * ((v64 - *a5) >> 3)) <= 3 ) v65 = 17.0; v66 = (const char *)(a3 + 1); if ( (*(_BYTE *)a3 & 1) != 0 ) v66 = *(const char **)(a3 + 16); v67 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"More By %s", v66); v68 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v67); v70 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v68, "bigFont.fnt", v69); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v70, 20); v71 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v70 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, *(float *)&v139 * 0.5, (float)(v20 - 165.0) - v65); v71(v70, &v143); cocos2d::CCLabelBMFont::limitLabelWidth(v70, 300.0, 0.4, 0.3); v72 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v70 + 1072LL); LOWORD(v143) = -17153; BYTE2(v143) = 83; v72(v70, &v143); SongInfoLayer::addLinkRows(a1, a5, 2, (float)(v20 - 192.0) - v65); } if ( a8 > 0 ) { v149 = nullptr; v150 = 0; v151 = nullptr; std::string::__init((__int64 *)&v149, "ncs_med_001.png", 0xFu); if ( a8 == 2 ) { std::string::assign((__int64 *)&v149, "chompo_med_001.png"); v73 = -66.0; } else { v73 = -62.0; } v74 = (cocos2d::CCSprite *)((char *)&v149 + 1); if ( ((unsigned __int8)v149 & 1) != 0 ) v74 = (cocos2d::CCSprite *)v151; v75 = cocos2d::CCSprite::createWithSpriteFrameName(v74, (const char *)(unsigned __int8)v149); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v75, 11); v76 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v75 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v143, (float)((float)(*(float *)&v139 * 0.5) + 210.0) + v73, (float)((float)(*((float *)&v139 + 1) * 0.5) + 140.0) - 18.0); v76(v75, &v143); if ( ((unsigned __int8)v149 & 1) != 0 ) operator delete(v151); } v77 = (cocos2d::CCArray *)*(unsigned int *)(a1 + 712); if ( (int)v77 > 0 ) { v78 = (cocos2d::CCArray *)cocos2d::CCArray::create(v77); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v140, (float)((float)(*(float *)&v139 * 0.5) + -210.0) + 20.0, (float)((float)(*((float *)&v139 + 1) * 0.5) + -140.0) + 20.0); v149 = nullptr; v150 = 0; v151 = nullptr; v79 = (GameManager *)std::string::__init((__int64 *)&v149, "Menu", 4u); v80 = *(_DWORD *)(GameManager::sharedState(v79) + 1140); v81 = *(cocos2d::CCNode **)(a1 + 552); v82 = v80 == *(_DWORD *)(a1 + 712); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, (const cocos2d::CCPoint *)v140); v83 = *(_QWORD *)(a1 + 584); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v142, 5.0, 1.0); ToggleButton = GameToolbox::createToggleButton( (__int64)&v149, (const char *)SongInfoLayer::onMenuMusic, 0, v82, v81, (const cocos2d::CCPoint *)&v143, a1, v83, 0.7, 0.3, 80.0, (float *)&v142, "bigFont.fnt", 0, 0, v78); if ( ((unsigned __int8)v149 & 1) != 0 ) operator delete(v151); v149 = nullptr; v150 = 0; v151 = nullptr; v85 = (GameManager *)std::string::__init((__int64 *)&v149, "Practice", 8u); v86 = *(_DWORD *)(GameManager::sharedState(v85) + 1144); v87 = *(cocos2d::CCNode **)(a1 + 552); v138 = v86 == *(_DWORD *)(a1 + 712); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v141, 68.0, 0.0); cocos2d::CCPoint::operator+(&v142, v140); v135 = *(void **)(a1 + 584); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, 5.0, 1.0); v88 = GameToolbox::createToggleButton( (__int64)&v149, (const char *)SongInfoLayer::onPracticeMusic, 0, v138, v87, (const cocos2d::CCPoint *)&v142, a1, (__int64)v135, 0.7, 0.3, 80.0, (float *)&v143, "bigFont.fnt", 0, 0, v78); v89 = (GameStatsManager *)(unsigned __int8)v149; if ( ((unsigned __int8)v149 & 1) != 0 ) operator delete(v151); v90 = GameStatsManager::sharedState(v89); if ( !(unsigned __int8)GameStatsManager::isItemUnlocked(v90, 0xCu, 0x10u) ) { v128 = cocos2d::CCArray::objectAtIndex(v78, 1u); v129 = cocos2d::CCArray::objectAtIndex(v78, 3u); *((_BYTE *)ToggleButton + 393) = 1; *((_BYTE *)v88 + 393) = 1; LOWORD(v143) = -26986; BYTE2(v143) = -106; CCMenuItemToggler::setSpriteColor((__int64)ToggleButton, (__int64)&v143); CCMenuItemToggler::setSpriteColor((__int64)v88, (__int64)&v143); (*(void (__fastcall **)(__int64, char **))(*(_QWORD *)v128 + 1072LL))(v128, &v143); (*(void (__fastcall **)(__int64, char **))(*(_QWORD *)v129 + 1072LL))(v129, &v143); } v91 = (const char *)*(unsigned int *)(a1 + 712); if ( (int)v91 > 0 ) { v92 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"SongID: %i", v91); v93 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v92); v95 = cocos2d::CCLabelBMFont::create(v93, "bigFont.fnt", v94); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v95 + 160LL))(v95, 0.4); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v140, (float)(*(float *)&v139 * 0.5) + 78.0, (float)((float)(*((float *)&v139 + 1) * 0.5) + -140.0) + 20.0); v96 = CCMenuItemSpriteExtra::create(v95, 0, a1, (__int64)SongInfoLayer::onCopySongID, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v96); v97 = *(cocos2d::CCNode **)(a1 + 552); v98 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v96 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v141, 0.0, 0.0); cocos2d::CCPoint::operator+(&v142, v140); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v143, v97, (const cocos2d::CCPoint *)&v142); v98(v96, &v143); } } return v132; }
GD Web Decomp Icon

GD Web Decomp

Raw Source