// // SongInfoLayer::init from 0x53b204 to 0x53bf34 (3376 bytes) // // 1 xrefs: // > SongInfoLayer::create @ 0x53c118 // // 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:52:15 +0000 // GameManager *__fastcall SongInfoLayer::init( int a1, int a2, unsigned __int8 *a3, const char **a4, _DWORD *a5, int a6, unsigned __int8 *a7, int a8) { unsigned __int8 *v10; // r0 int v11; // r5 void (__fastcall *v12)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r9 void (__fastcall *v13)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r9 const char *v14; // r2 cocos2d::CCLabelBMFont *v15; // r0 float v16; // s18 cocos2d::CCLabelBMFont *v17; // r4 void (__fastcall *v18)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r5 const char *v19; // r2 cocos2d::CCLabelBMFont *v20; // r0 cocos2d::CCLabelBMFont *v21; // r5 void (__fastcall *v22)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r4 const char *v23; // r1 int v24; // r0 cocos2d::CCMenu *v25; // r4 int v26; // r0 float v27; // s14 float v28; // s13 int v29; // r5 void (__fastcall *v30)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r4 const char *v31; // r1 int v32; // r4 int v33; // r5 const cocos2d::CCPoint *v34; // r6 const char *v35; // r1 int v36; // r5 int v37; // r5 const cocos2d::CCPoint *v38; // r7 void (__fastcall *v39)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r6 const char *v40; // r2 int v41; // r3 void (__fastcall *v43)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r5 float v44; // s19 const char *v45; // r3 const char *v46; // r2 int v47; // r6 void (__fastcall *v48)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r5 void (__fastcall *v49)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r3 cocos2d::CCArray *v50; // r0 const char *v51; // r1 int v52; // r3 float v53; // s19 bool v54; // cc const char **v55; // r3 bool v56; // nf cocos2d::CCString *v57; // r0 cocos2d::CCLabelBMFont *v58; // r0 const char *v59; // r2 cocos2d::CCLabelBMFont *v60; // r4 void (__fastcall *v61)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r6 void (__fastcall *v62)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r3 float v63; // s18 cocos2d::CCSprite *v64; // r0 int v65; // r5 void (__fastcall *v66)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r7 cocos2d::CCArray *v67; // r5 GameManager *v68; // r0 _BOOL4 v69; // r7 cocos2d::CCNodeRGBA *ToggleButton; // r7 GameManager *v71; // r0 _BOOL4 v72; // r8 int v73; // r6 cocos2d::CCNodeRGBA *v74; // r8 GameStatsManager *v75; // r0 GameStatsManager *v76; // r0 int v77; // r9 int v78; // r0 int v79; // r4 const char *v80; // r1 cocos2d::CCString *v81; // r0 cocos2d::CCLabelBMFont *v82; // r0 const char *v83; // r2 int v84; // r5 int v85; // r5 const cocos2d::CCPoint *v86; // r9 void (__fastcall *v87)(int, _BYTE *); // r8 cocos2d::CCLabelBMFont *v89; // r4 void (__fastcall *v90)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // r3 char *v91; // r0 int v92; // r3 char *v93; // r3 char *v94; // r2 int v95; // r6 char *v96; // r3 unsigned int v97; // r1 char *v98; // r3 int v99; // r2 unsigned __int8 *v100; // r9 int v101; // r5 unsigned __int8 *v102; // r5 unsigned __int8 *v103; // r3 unsigned __int8 *v104; // r7 void *v105; // r0 unsigned int v106; // r2 char *v107; // r5 int v108; // r1 char *v109; // r7 int v110; // t1 int v111; // r1 int v112; // r3 _DWORD *v113; // r0 unsigned int i; // r5 unsigned __int8 *v115; // r0 int v116; // r2 const void *v117; // r1 size_t v118; // r2 int v119; // r6 unsigned int v120; // r1 cocos2d::CCSprite *v121; // r1 float v122; // s19 cocos2d::CCString *v123; // r0 const char *CString; // r6 size_t v125; // r0 const cocos2d::CCPoint *v127; // [sp+34h] [bp-128h] const cocos2d::CCPoint *v128; // [sp+34h] [bp-128h] int v130; // [sp+38h] [bp-124h] GameManager *v131; // [sp+44h] [bp-118h] void (__fastcall *v132)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)); // [sp+4Ch] [bp-110h] unsigned __int8 *v133; // [sp+50h] [bp-10Ch] float v134; // [sp+58h] [bp-104h] BYREF float v135; // [sp+5Ch] [bp-100h] _BYTE v136[8]; // [sp+60h] [bp-FCh] BYREF _BYTE v137[8]; // [sp+68h] [bp-F4h] BYREF _BYTE v138[8]; // [sp+70h] [bp-ECh] BYREF _BYTE v139[8]; // [sp+78h] [bp-E4h] BYREF int (__fastcall *v140)(SongInfoLayer *, cocos2d::CCObject *); // [sp+80h] [bp-DCh] int v141; // [sp+84h] [bp-D8h] int (__fastcall *v142)(FindBPMLayer **, cocos2d::CCObject *); // [sp+88h] [bp-D4h] int v143; // [sp+8Ch] [bp-D0h] int (__fastcall *v144)(SongInfoLayer *, cocos2d::CCObject *); // [sp+90h] [bp-CCh] int v145; // [sp+94h] [bp-C8h] char **(__fastcall *v146)(SongInfoLayer *, cocos2d::CCObject *); // [sp+98h] [bp-C4h] int v147; // [sp+9Ch] [bp-C0h] GameManager *(__fastcall *v148)(SongInfoLayer *, cocos2d::CCObject *); // [sp+A0h] [bp-BCh] BYREF int v149; // [sp+A4h] [bp-B8h] int v150; // [sp+A8h] [bp-B4h] BYREF int v151; // [sp+ACh] [bp-B0h] char *v152; // [sp+B0h] [bp-ACh] int (__fastcall *v153)(SongInfoLayer *, cocos2d::CCObject *); // [sp+B4h] [bp-A8h] BYREF int *v154; // [sp+B8h] [bp-A4h] int *v155; // [sp+BCh] [bp-A0h] int v156; // [sp+C4h] [bp-98h] BYREF int v157; // [sp+C8h] [bp-94h] cocos2d::CCSprite *v158; // [sp+CCh] [bp-90h] _UNKNOWN **v159; // [sp+D0h] [bp-8Ch] BYREF char v160[4]; // [sp+D4h] [bp-88h] BYREF char *v161; // [sp+D8h] [bp-84h] char *v162; // [sp+DCh] [bp-80h] char *v163; // [sp+E0h] [bp-7Ch] char *v164; // [sp+E4h] [bp-78h] char *v165; // [sp+E8h] [bp-74h] char *v166; // [sp+ECh] [bp-70h] int v167; // [sp+F0h] [bp-6Ch] BYREF int v168; // [sp+F4h] [bp-68h] char *v169; // [sp+F8h] [bp-64h] char *v170; // [sp+FCh] [bp-60h] int v171; // [sp+100h] [bp-5Ch] _DWORD v172[20]; // [sp+104h] [bp-58h] BYREF v131 = FLAlertLayer::init((FLAlertLayer *)a1, 150); if ( v131 ) { std::string::operator=((unsigned __int8 *)(a1 + 520), (unsigned __int8 *)a2); v10 = std::string::operator=((unsigned __int8 *)(a1 + 532), a3); *(_DWORD *)(a1 + 544) = a6; cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v10); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v134); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v153, 0.0, 0.0, 80.0, 80.0); v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", &v153); (*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 456))(v11, 255); v12 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v11 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v153, 420.0, 280.0); v12(v11, &v153); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v11, -1); v13 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v134 * 0.5, v135 * 0.5); v13(v11, &v153); if ( (*(_BYTE *)a2 & 1) != 0 ) v15 = *(cocos2d::CCLabelBMFont **)(a2 + 8); else v15 = (cocos2d::CCLabelBMFont *)(a2 + 1); v16 = (float)(v135 * 0.5) + 140.0; v17 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v15, "bigFont.fnt", v14); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v17, 20); v18 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v134 * 0.5, v16 - 16.0); v18(v17, &v153); cocos2d::CCLabelBMFont::limitLabelWidth(v17, 240.0, 0.6, 0.2); if ( (*a3 & 1) != 0 ) v20 = *((cocos2d::CCLabelBMFont **)a3 + 2); else v20 = (cocos2d::CCLabelBMFont *)(a3 + 1); v21 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v20, "goldFont.fnt", v19); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v21, 20); v22 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v134 * 0.5, v16 - 37.0); v22(v21, &v153); cocos2d::CCLabelBMFont::limitLabelWidth(v21, 300.0, 0.55, 0.2); *(_DWORD *)(a1 + 500) = -1; v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v23); v141 = 0; v140 = SongInfoLayer::onClose; v25 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v24, 0, a1, (int)SongInfoLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult((int)v25, 1.6); v26 = cocos2d::CCMenu::create(v25, nullptr); v27 = v135; v28 = (float)(v134 * 0.5) - 210.0; *(_DWORD *)(a1 + 444) = v26; v29 = v26; v30 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v28 + 10.0, (float)((float)(v27 * 0.5) + 140.0) - 10.0); v30(v29, &v153); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 444), 10); v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_BPMOnBtn_001.png", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1060655596); v143 = 0; v142 = SongInfoLayer::onBPM; v33 = CCMenuItemSpriteExtra::create(v32, 0, a1, (int)SongInfoLayer::onBPM, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v33); v34 = *(const cocos2d::CCPoint **)(a1 + 444); v132 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v148, (float)((float)(v134 * 0.5) + 210.0) - 23.0, (float)((float)(v135 * 0.5) - 140.0) + 23.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v153, v34); v132(v33, &v153); if ( *(int *)(a1 + 544) > 0 ) { v36 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"statInfoIcon_001.png", v35); (*(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 80))(v36, 1061997773); v145 = 0; v144 = SongInfoLayer::onSongUsage; v37 = CCMenuItemSpriteExtra::create(v36, 0, a1, (int)SongInfoLayer::onSongUsage, 0); CCMenuItemSpriteExtra::setSizeMult(v37, 1.2); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v37); v38 = *(const cocos2d::CCPoint **)(a1 + 444); v39 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v37 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v148, (float)((float)(v134 * 0.5) + 210.0) - 18.0, (float)((float)(v135 * 0.5) + 140.0) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v153, v38); v39(v37, &v153); } v40 = *(const char **)(a1 + 544); if ( (int)v40 > 10000000 ) { v41 = *a7; if ( (v41 & 1) != 0 ? *((_DWORD *)a7 + 1) : v41 >> 1 ) { v89 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v40); v90 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v89 + 536); LOWORD(v153) = -14156; BYTE2(v153) = -21; v90(v89, &v153); v157 = 0; v156 = (int)&unk_C99344; v172[0] = &unk_C99358; std::ios_base::init((std::ios_base *)v172, &v159); v172[19] = -1; v172[18] = 0; v156 = (int)&off_C993D4; v158 = (cocos2d::CCSprite *)&off_C993E8; v172[0] = &off_C993FC; v159 = &off_C99178; std::locale::locale((std::locale *)v160); v161 = nullptr; v162 = nullptr; v163 = nullptr; v164 = nullptr; v165 = nullptr; v166 = nullptr; v167 = 0; v168 = 0; v169 = nullptr; v170 = nullptr; v159 = &off_C992D8; v171 = 24; std::string::operator=((unsigned __int8 *)&v167, a7); v170 = nullptr; if ( (v171 & 8) != 0 ) { if ( (v167 & 1) != 0 ) { v91 = v169; v92 = v168; } else { v92 = (int)(unsigned __int8)v167 >> 1; v91 = (char *)&v167 + 1; } v93 = &v91[v92]; v170 = v93; if ( (v167 & 1) != 0 ) v94 = v169; else v94 = (char *)&v167 + 1; v161 = v94; v162 = v94; v163 = v93; } if ( (v171 & 0x10) != 0 ) { if ( (v167 & 1) != 0 ) { v95 = v168; v96 = v169; } else { v95 = (int)(unsigned __int8)v167 >> 1; v96 = (char *)&v167 + 1; } v170 = &v96[v95]; v97 = (v167 & 1) != 0 ? (v167 & 0xFFFFFFFE) - 1 : 10; std::string::resize((unsigned __int8 *)&v167, v97, 0); if ( (v167 & 1) != 0 ) { v98 = v169; v99 = v168; } else { v99 = (int)(unsigned __int8)v167 >> 1; v98 = (char *)&v167 + 1; } v166 = &v98[v99]; v165 = v98; v164 = v98; if ( v171 << 30 ) v165 = &v98[v95]; } v150 = 0; v151 = 0; v152 = nullptr; v153 = nullptr; v154 = nullptr; v155 = nullptr; while ( 1 ) { v113 = std::getline,std::allocator>(&v156, (int)&v150, 44); if ( (*(_DWORD *)((char *)v113 + *(_DWORD *)(*v113 - 12) + 16) & 5) != 0 ) break; if ( (v150 & 1) != 0 ) { v100 = (unsigned __int8 *)v152; v101 = v151; } else { v101 = (int)(unsigned __int8)v150 >> 1; v100 = (unsigned __int8 *)&v150 + 1; } if ( v101 ) { v102 = &v100[v101]; v103 = v100; while ( 1 ) { v104 = v103; if ( v103 == v102 ) break; v133 = v103 + 1; v105 = memchr(&unk_BA55B5, *v103, 6u); v103 = v133; if ( !v105 ) { v106 = v104 - v100; goto LABEL_73; } } } v106 = -1; LABEL_73: std::string::erase((unsigned __int8 *)&v150, 0, v106); if ( (v150 & 1) != 0 ) { v107 = v152; v108 = v151; } else { v108 = (int)(unsigned __int8)v150 >> 1; v107 = (char *)&v150 + 1; } v109 = &v107[v108]; while ( v109 != v107 ) { v110 = (unsigned __int8)*--v109; if ( !memchr(&unk_BA55B5, v110, 6u) ) { v111 = v109 - v107; goto LABEL_79; } } v111 = -1; LABEL_79: std::string::erase((unsigned __int8 *)&v150, v111 + 1, 0xFFFFFFFF); if ( (v150 & 1) != 0 ) v112 = v151; else v112 = (int)(unsigned __int8)v150 >> 1; if ( v112 ) { if ( v154 == v155 ) { std::vector::__push_back_slow_path((int *)&v153, (int)&v150); } else { if ( v154 ) std::string::basic_string(v154, (int)&v150); v154 += 3; } } } std::string::~string((int)&v150); std::basic_stringstream,std::allocator>::~basic_stringstream(&v156); for ( i = -1431655765 * (((char *)v154 - (char *)v153) >> 2); i; --i ) { v119 = 0; v156 = 0; v157 = 0; v158 = nullptr; while ( 1 ) { v115 = (unsigned __int8 *)v153 + 12 * v119; v116 = *v115; if ( (v116 & 1) != 0 ) { v117 = *((const void **)v115 + 2); v118 = *((_DWORD *)v115 + 1); } else { v117 = v115 + 1; v118 = v116 >> 1; } std::string::append(&v156, v117, v118); if ( ++v119 == i ) break; if ( v119 ) std::string::append(&v156, ", ", 2u); } v120 = -1431655765 * (((char *)v154 - (char *)v153) >> 2); if ( i < v120 ) { v123 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)", +%i", (const char *)(v120 - i)); CString = (const char *)cocos2d::CCString::getCString(v123); v125 = strlen(CString); std::string::append(&v156, CString, v125); } if ( (v156 & 1) != 0 ) v121 = v158; else v121 = (cocos2d::CCSprite *)((char *)&v156 + 1); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, cocos2d::CCSprite *))(*(_DWORD *)v89 + 464))(v89, v121); cocos2d::CCLabelBMFont::limitLabelWidth(v89, 340.0, 0.4, 0.3); v122 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v89 + 164))(v89); if ( (float)(v122 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v89 + 84))(v89))) <= 340.0 ) { std::string::~string((int)&v156); break; } std::string::~string((int)&v156); } std::__vector_base::~__vector_base((int)&v153); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v89, 10); v43 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v89 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v134 * 0.5, v16 - 56.0); v43(v89, &v153); } } v44 = 17.0; v45 = a4[1]; v46 = *a4; if ( (unsigned int)(v45 - *a4) > 0x7F ) v44 = 0.0; if ( v46 != v45 ) { v47 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Song Links", "bigFont.fnt", v46); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v47, 20); v48 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v47 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v134 * 0.5, (float)(v16 - 75.0) - v44); v48(v47, &v153); (*(void (__fastcall **)(int, int))(*(_DWORD *)v47 + 80))(v47, 1053609165); v49 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v47 + 536); LOWORD(v153) = -17153; BYTE2(v153) = 83; v49(v47, &v153); } v50 = SongInfoLayer::addLinkRows(a1, a4, (float)(v16 - 102.0) - v44, 2); v52 = a5[1]; if ( *a5 != v52 ) { v53 = 17.0; v54 = (unsigned int)(v52 - *a5) > 0x7F; v55 = (const char **)*a3; if ( v54 ) v53 = 0.0; v56 = ((unsigned __int8)v55 & 1) != 0; if ( ((unsigned __int8)v55 & 1) != 0 ) v55 = (const char **)a3; else v51 = (const char *)a3; if ( v56 ) v57 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"More By %s", v55[2]); else v57 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"More By %s", v51 + 1); v58 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v57); v60 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v58, "bigFont.fnt", v59); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v60, 20); v61 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v60 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v134 * 0.5, (float)(v16 - 165.0) - v53); v61(v60, &v153); cocos2d::CCLabelBMFont::limitLabelWidth(v60, 300.0, 0.4, 0.3); v62 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v60 + 536); LOWORD(v153) = -17153; BYTE2(v153) = 83; v62(v60, &v153); v50 = SongInfoLayer::addLinkRows(a1, a5, (float)(v16 - 192.0) - v53, 2); } if ( a8 > 0 ) { v156 = 0; v157 = 0; v158 = nullptr; std::string::__init(&v156, "ncs_med_001.png", 0xFu); if ( a8 == 2 ) { std::string::assign(&v156, "chompo_med_001.png"); v63 = -66.0; } else { v63 = -62.0; } if ( (v156 & 1) != 0 ) v64 = v158; else v64 = (cocos2d::CCSprite *)((char *)&v156 + 1); v65 = cocos2d::CCSprite::createWithSpriteFrameName(v64, (const char *)((unsigned __int8)v156 << 31)); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v65, 11); v66 = *(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v65 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v153, (float)((float)(v134 * 0.5) + 210.0) + v63, (float)((float)(v135 * 0.5) + 140.0) - 18.0); v66(v65, &v153); v50 = (cocos2d::CCArray *)std::string::~string((int)&v156); } if ( *(int *)(a1 + 544) > 0 ) { v67 = (cocos2d::CCArray *)cocos2d::CCArray::create(v50); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v137, (float)((float)(v134 * 0.5) - 210.0) + 20.0, (float)((float)(v135 * 0.5) - 140.0) + 20.0); v156 = 0; v157 = 0; v158 = nullptr; v68 = (GameManager *)std::string::__init(&v156, "Menu", 4u); v147 = 0; v146 = SongInfoLayer::onMenuMusic; v69 = *(_DWORD *)(GameManager::sharedState(v68) + 908) == *(_DWORD *)(a1 + 544); v127 = *(const cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, (const cocos2d::CCPoint *)v137); v130 = *(_DWORD *)(a1 + 460); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v148, 5.0, 1.0); ToggleButton = GameToolbox::createToggleButton( (int)&v156, (int)v146, v147, v69, v127, (int)&v153, a1, v130, 0.7, 0.3, 80.0, (int)&v148, "bigFont.fnt", 0, 0, v67); std::string::~string((int)&v156); v156 = 0; v157 = 0; v158 = nullptr; v71 = (GameManager *)std::string::__init(&v156, "Practice", 8u); v149 = 0; v148 = SongInfoLayer::onPracticeMusic; v72 = *(_DWORD *)(GameManager::sharedState(v71) + 912) == *(_DWORD *)(a1 + 544); v128 = *(const cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 68.0, 0.0); cocos2d::CCPoint::operator+(v139, v137, v138); v73 = *(_DWORD *)(a1 + 460); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, 5.0, 1.0); v74 = GameToolbox::createToggleButton( (int)&v156, (int)v148, v149, v72, v128, (int)v139, a1, v73, 0.7, 0.3, 80.0, (int)&v153, "bigFont.fnt", 0, 0, v67); v75 = (GameStatsManager *)std::string::~string((int)&v156); v76 = (GameStatsManager *)GameStatsManager::sharedState(v75); if ( !GameStatsManager::isItemUnlocked(v76, 12, 16) ) { v77 = cocos2d::CCArray::objectAtIndex(v67, 1u); v78 = cocos2d::CCArray::objectAtIndex(v67, 3u); *((_BYTE *)ToggleButton + 309) = 1; *((_BYTE *)v74 + 309) = 1; LOWORD(v153) = -26986; BYTE2(v153) = -106; v79 = v78; CCMenuItemToggler::setSpriteColor((int)ToggleButton, (int)&v153); CCMenuItemToggler::setSpriteColor((int)v74, (int)&v153); (*(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v77 + 536))( v77, &v153); (*(void (__fastcall **)(int, int (__fastcall **)(SongInfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v79 + 536))( v79, &v153); } } v80 = *(const char **)(a1 + 544); if ( (int)v80 > 0 ) { v81 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"SongID: %i", v80); v82 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v81); v84 = cocos2d::CCLabelBMFont::create(v82, "bigFont.fnt", v83); (*(void (__fastcall **)(int, int))(*(_DWORD *)v84 + 80))(v84, 1053609165); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v136, (float)(v134 * 0.5) + 78.0, (float)((float)(v135 * 0.5) - 140.0) + 20.0); v154 = nullptr; v153 = SongInfoLayer::onCopySongID; v85 = CCMenuItemSpriteExtra::create(v84, 0, a1, (int)SongInfoLayer::onCopySongID, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v85); v86 = *(const cocos2d::CCPoint **)(a1 + 444); v87 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v85 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 0.0, 0.0); cocos2d::CCPoint::operator+(v138, v136, v137); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v139, v86); v87(v85, v139); } } return v131; }
GD Web Decomp Icon

GD Web Decomp

Raw Source