// // sub_6BEA10 from 0x6bea10 to 0x6bf876 (3686 bytes) // // 1 xrefs: // > MusicBrowser::init @ 0x6bf8be // // 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:56:49 +0000 // int __fastcall sub_6BEA10(int a1, int a2, int a3) { int v4; // r5 void (__fastcall *v5)(int, _DWORD *); // r8 int (__fastcall *v6)(int, _DWORD *); // r8 cocos2d::CCMenu *v7; // r0 int v8; // r0 const char *v9; // r2 int v10; // r0 int v11; // r5 void (__fastcall *v12)(int, _DWORD *); // r8 int v13; // r5 void (__fastcall *v14)(int, _DWORD *); // r8 const char *v15; // r1 int v16; // r0 int v17; // r8 const cocos2d::CCPoint *v18; // r10 void (__fastcall *v19)(int, _DWORD *); // r9 float v20; // s20 const char *v21; // r1 int v22; // r9 int v23; // r0 void (__fastcall *v24)(char *, _DWORD *); // r11 const char *v25; // r1 cocos2d::CCSprite *v26; // r9 int v27; // r0 _DWORD *v28; // r11 const cocos2d::CCPoint *v29; // r10 void (__fastcall *v30)(_DWORD *, _DWORD *); // r9 const char *v31; // r1 int v32; // r8 int v33; // r0 const cocos2d::CCPoint *v34; // r10 float v35; // s14 float v36; // s15 int v37; // r11 void (__fastcall *v38)(int, _DWORD *); // r9 const char *v39; // r1 int v40; // r8 int v41; // r0 _DWORD *v42; // r11 const cocos2d::CCPoint *v43; // r10 void (__fastcall *v44)(_DWORD *, _DWORD *); // r8 float v45; // s21 float v46; // s19 int v47; // r0 float v48; // s21 int v49; // r10 void (__fastcall *v50)(int, _DWORD *); // r8 int v51; // r0 void (__fastcall *v52)(int, _DWORD *); // r3 int v53; // r10 void (__fastcall *v54)(int, _DWORD *); // r8 int *v55; // r0 int v56; // r10 void (__fastcall *v57)(int, _DWORD *); // r8 const char *v58; // r1 int v59; // r6 int v60; // r0 _DWORD *v61; // r11 const cocos2d::CCPoint *v62; // r10 void (__fastcall *v63)(_DWORD *, _DWORD *); // r6 const char *v64; // r1 ButtonSprite *v65; // r0 ButtonSprite *v66; // r6 int v67; // r0 _DWORD *v68; // r11 const cocos2d::CCPoint *v69; // r10 float v70; // s17 void (__fastcall *v71)(_DWORD *, _DWORD *); // r9 const char *v72; // r1 ButtonSprite *v73; // r0 ButtonSprite *v74; // r10 int v75; // r0 int v76; // r10 int v77; // r11 GameManager *v78; // r0 float v79; // s22 float v80; // s19 const char *v81; // r1 float v82; // s22 ButtonSprite *v83; // r0 float v84; // s17 ButtonSprite *v85; // r9 int v86; // r0 _DWORD *v87; // r11 const cocos2d::CCPoint *v88; // r10 void (__fastcall *v89)(_DWORD *, _DWORD *); // r6 float v90; // s17 const char *v91; // r1 ButtonSprite *v92; // r10 ButtonSprite *v93; // r10 int v94; // r0 const cocos2d::CCPoint *v95; // r11 void (__fastcall *v96)(int, _DWORD *); // r10 GameManager *v97; // r0 const char *v98; // r1 ButtonSprite *v99; // r10 ButtonSprite *v100; // r10 int v101; // r0 int v102; // r5 const cocos2d::CCPoint *v103; // r10 void (__fastcall *v104)(int, _DWORD *); // r9 int v105; // r6 int v106; // r8 const cocos2d::CCPoint *v107; // r10 void (__fastcall *v108)(int, _DWORD *); // r9 const char *v109; // r1 ButtonSprite *v110; // r0 ButtonSprite *v111; // r0 _DWORD *v112; // r5 const cocos2d::CCPoint *v113; // r10 void (__fastcall *v114)(_DWORD *, _BYTE *); // r9 const char *v115; // r2 int v116; // r0 int v117; // r5 void (__fastcall *v118)(int, _BYTE *); // r7 int v119; // r5 void (__fastcall *v120)(int, _BYTE *); // r7 const char *v121; // r1 int v122; // r3 char *v123; // r0 int v124; // r0 int v125; // r5 void (__fastcall *v126)(int, _BYTE *); // r7 cocos2d::CCSprite *v127; // r0 int v128; // r5 void (__fastcall *v129)(int, _BYTE *); // r7 MusicDownloadManager *v130; // r0 cocos2d::CCArray **v131; // r0 MusicDownloadManager *v132; // r0 MusicDownloadManager *v133; // r0 MusicDownloadManager *v134; // r0 char *v136; // [sp+8h] [bp-94h] float v137; // [sp+14h] [bp-88h] float v138; // [sp+14h] [bp-88h] float v139; // [sp+14h] [bp-88h] float v140; // [sp+14h] [bp-88h] float v141; // [sp+14h] [bp-88h] cocos2d::CCPoint *v142; // [sp+20h] [bp-7Ch] cocos2d::CCPoint *v143; // [sp+20h] [bp-7Ch] char *v144; // [sp+24h] [bp-78h] int v145; // [sp+2Ch] [bp-70h] int v146; // [sp+30h] [bp-6Ch] float v147; // [sp+34h] [bp-68h] BYREF float v148; // [sp+38h] [bp-64h] _BYTE v149[8]; // [sp+3Ch] [bp-60h] BYREF _BYTE v150[8]; // [sp+44h] [bp-58h] BYREF _DWORD v151[2]; // [sp+4Ch] [bp-50h] BYREF _DWORD v152[2]; // [sp+54h] [bp-48h] BYREF _DWORD v153[2]; // [sp+5Ch] [bp-40h] BYREF _DWORD v154[2]; // [sp+64h] [bp-38h] BYREF _DWORD v155[2]; // [sp+6Ch] [bp-30h] BYREF _DWORD v156[2]; // [sp+74h] [bp-28h] BYREF _DWORD v157[2]; // [sp+7Ch] [bp-20h] BYREF _DWORD v158[2]; // [sp+84h] [bp-18h] BYREF _DWORD v159[2]; // [sp+8Ch] [bp-10h] BYREF _DWORD v160[2]; // [sp+94h] [bp-8h] BYREF _DWORD v161[4]; // [sp+9Ch] [bp+0h] BYREF _DWORD v162[4]; // [sp+ACh] [bp+10h] BYREF *(_DWORD *)(a1 + 540) = a3; *(_DWORD *)(a1 + 620) = a2; *(_BYTE *)(a1 + 468) = 1; cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v147); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v162, 0.0, 0.0, 80.0, 80.0); v4 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v162); (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 456))(v4, 255); v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v162, 440.0, 290.0); v5(v4, v162); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v4, -1); v6 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v147 * 0.5, v148 * 0.5); v7 = (cocos2d::CCMenu *)v6(v4, v162); v8 = cocos2d::CCMenu::create(v7); *(_DWORD *)(a1 + 444) = v8; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v8, 10); *(_DWORD *)(a1 + 500) = -1; v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "chatFont.fnt", v9); *(_DWORD *)(a1 + 552) = v10; (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 512))(v10, 200); (*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a1 + 552) + 536))(*(_DWORD *)(a1 + 552), &unk_BEFD47); (*(void (__fastcall **)(_DWORD, float))(**(_DWORD **)(a1 + 552) + 80))(*(_DWORD *)(a1 + 552), 0.5); v11 = *(_DWORD *)(a1 + 552); v12 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, 0.5, 0.5); v12(v11, v162); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 552), 10); v13 = *(_DWORD *)(a1 + 552); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v147 * 0.5, (float)((float)(v148 * 0.5) - 145.0) + 14.0); v14(v13, v162); v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v15); v161[3] = 0; v161[2] = MusicBrowser::onClose; v17 = CCMenuItemSpriteExtra::create(v16, 0, a1, (int)MusicBrowser::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v17); CCMenuItemSpriteExtra::setSizeMult(v17, 1.6); v18 = *(const cocos2d::CCPoint **)(a1 + 444); v19 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v161, (float)((float)(v147 * 0.5) - 220.0) + 10.0, (float)((float)(v148 * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v162, v18); v19(v17, v162); v20 = (float)(v148 * 0.5) - 10.0; v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v21); (*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 80))(v22, 1061997773); v161[1] = 0; v161[0] = MusicBrowser::onPage; v23 = CCMenuItemSpriteExtra::create(v22, 0, a1, (int)MusicBrowser::onPage, 0); *(_DWORD *)(a1 + 560) = v23; CCMenuItemSpriteExtra::setSizeMult(v23, 1.2); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 560)); v144 = *(char **)(a1 + 560); v24 = *(void (__fastcall **)(char *, _DWORD *))(*(_DWORD *)v144 + 92); v142 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v160, (float)((float)(v147 * 0.5) - 220.0) + 22.0, v20); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v162, v142); v24(v144, v162); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 560) + 36))(*(_DWORD *)(a1 + 560), 0); v26 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v25); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v26 + 80))(v26, 1061997773); cocos2d::CCSprite::setFlipX(v26, 1); v160[0] = MusicBrowser::onPage; v160[1] = 0; v27 = CCMenuItemSpriteExtra::create((int)v26, 0, a1, (int)MusicBrowser::onPage, 0); *(_DWORD *)(a1 + 564) = v27; CCMenuItemSpriteExtra::setSizeMult(v27, 1.5); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 564)); v28 = *(_DWORD **)(a1 + 564); v29 = *(const cocos2d::CCPoint **)(a1 + 444); v30 = *(void (__fastcall **)(_DWORD *, _DWORD *))((char *)off_5C + *v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, (float)((float)(v147 * 0.5) + 220.0) - 22.0, v20); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v162, v29); v30(v28, v162); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 564) + 36))(*(_DWORD *)(a1 + 564), 1); v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1058642330); v159[1] = 0; v159[0] = MusicBrowser::onUpdateLibrary; v33 = CCMenuItemSpriteExtra::create(v32, 0, a1, (int)MusicBrowser::onUpdateLibrary, 0); v34 = *(const cocos2d::CCPoint **)(a1 + 444); v35 = (float)(v147 * 0.5) + 220.0; v36 = v148; *(_DWORD *)(a1 + 568) = v33; v37 = v33; v38 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, v35 - 10.0, (float)((float)(v36 * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v162, v34); v38(v37, v162); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 568)); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 568) + 172))(*(_DWORD *)(a1 + 568), 0); v40 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_findBtn_001.png", v39); (*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 80))(v40, 1065353216); v158[1] = 0; v158[0] = MusicBrowser::onToggleSearch; v41 = CCMenuItemSpriteExtra::create(v40, 0, a1, (int)MusicBrowser::onToggleSearch, 0); *(_DWORD *)(a1 + 572) = v41; CCMenuItemSpriteExtra::setSizeMult(v41, 1.2); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 572)); v42 = *(_DWORD **)(a1 + 572); v43 = *(const cocos2d::CCPoint **)(a1 + 444); v44 = *(void (__fastcall **)(_DWORD *, _DWORD *))((char *)off_5C + *v42); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v157, (float)((float)(v147 * 0.5) - 220.0) + 24.0, (float)(v148 * 0.5) + 75.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v162, v43); v44(v42, v162); v45 = (float)(v148 * 0.5) + 145.0; v46 = (float)(v147 * 0.5) - 170.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v162, 0.0, 0.0, 40.0, 40.0); v47 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v162); v48 = v45 - 24.0; *(_DWORD *)(a1 + 580) = v47; v49 = v47; v50 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v47 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v162, 155.0, 22.0); v50(v49, v162); v51 = *(_DWORD *)(a1 + 580); v52 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v51 + 480); LOWORD(v162[0]) = 11292; BYTE2(v162[0]) = 117; v52(v51, v162); v53 = *(_DWORD *)(a1 + 580); v54 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v53 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v46 + 77.5, v48); v54(v53, v162); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 580) + 172))(*(_DWORD *)(a1 + 580), 0); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 580), 11); v55 = CCTextInputNode::create( (CCTextInputNode *)0x43110000, 22.0, "Search Music...", "Thonburi", (const char *)&dword_14, "bigFont.fnt", v136); LOWORD(v146) = -26986; BYTE2(v146) = -106; *(_DWORD *)(a1 + 576) = v55; CCTextInputNode::setLabelPlaceholderColor((unsigned int)v55, v146); CCTextInputNode::setLabelPlaceholderScale(*(_DWORD *)(a1 + 576), 0.45); CCTextInputNode::setMaxLabelScale(*(_DWORD *)(a1 + 576), 0.45); CCTextInputNode::setMaxLabelWidth(*(_DWORD *)(a1 + 576), 135.0); *(_DWORD *)(*(_DWORD *)(a1 + 576) + 420) = a1 + 440; *(_DWORD *)(*(_DWORD *)(a1 + 576) + 424) = 30; v56 = *(_DWORD *)(a1 + 576); v57 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v56 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v46 + 77.5, v48 + 1.0); v57(v56, v162); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 576) + 172))(*(_DWORD *)(a1 + 576), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 576) + 500))(*(_DWORD *)(a1 + 576), 0); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 576), 12); v59 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn07_001.png", v58); (*(void (__fastcall **)(int, int))(*(_DWORD *)v59 + 80))(v59, 1055286886); v162[1] = 0; v162[0] = MusicBrowser::onClearSearchText; v60 = CCMenuItemSpriteExtra::create(v59, 0, a1, (int)MusicBrowser::onClearSearchText, 0); *(_DWORD *)(a1 + 584) = v60; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v60); v61 = *(_DWORD **)(a1 + 584); v62 = *(const cocos2d::CCPoint **)(a1 + 444); v63 = *(void (__fastcall **)(_DWORD *, _DWORD *))((char *)off_5C + *v61); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v156, (float)(v46 + 155.0) + 14.0, v48); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v157, v62); v63(v61, v157); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 584) + 172))(*(_DWORD *)(a1 + 584), 0); v65 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_filterIcon_001.png", v64); v66 = ButtonSprite::create( v65, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, 1, "GJ_button_01.png", nullptr, 0.0, v137); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v157, -0.5, -1.5); ButtonSprite::updateSpriteOffset(v66, (int)v157); v157[1] = 0; v157[0] = MusicBrowser::onTagFilters; v67 = CCMenuItemSpriteExtra::create((int)v66, 0, a1, (int)MusicBrowser::onTagFilters, 0); *(_DWORD *)(a1 + 596) = v67; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v67); v68 = *(_DWORD **)(a1 + 596); v69 = *(const cocos2d::CCPoint **)(a1 + 444); v70 = 52.0; v71 = *(void (__fastcall **)(_DWORD *, _DWORD *))((char *)off_5C + *v68); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v155, (float)((float)(v147 * 0.5) + 220.0) - 24.0, (float)(v148 * 0.5) + 75.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v156, v69); v71(v68, v156); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 596) + 80))(*(_DWORD *)(a1 + 596), 1061158912); *(_DWORD *)(*(_DWORD *)(a1 + 596) + 316) = 1061158912; v73 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_musicIcon_001.png", v72); v74 = ButtonSprite::create( v73, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, 1, "GJ_button_01.png", nullptr, 0.0, v138); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v156, -1.5, -1.0); ButtonSprite::updateSpriteOffset(v74, (int)v156); v156[1] = 0; v156[0] = MusicBrowser::onArtistFilters; v75 = CCMenuItemSpriteExtra::create((int)v74, 0, a1, (int)MusicBrowser::onArtistFilters, 0); *(_DWORD *)(a1 + 600) = v75; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v75); v76 = *(_DWORD *)(a1 + 600); v143 = *(cocos2d::CCPoint **)(*(_DWORD *)v76 + 92); v77 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 596) + 96))(*(_DWORD *)(a1 + 596)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v154, 0.0, -35.0); cocos2d::CCPoint::operator+(v155, v77, v154); ((void (__fastcall *)(int, _DWORD *))v143)(v76, v155); v78 = (GameManager *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 600) + 80))( *(_DWORD *)(a1 + 600), 1061158912); v79 = (float)(v147 * 0.5) - 220.0; *(_DWORD *)(*(_DWORD *)(a1 + 600) + 316) = 1061158912; v80 = (float)(v148 * 0.5) - 145.0; v82 = v79 + 24.0; if ( *(_DWORD *)(GameManager::sharedState(v78) + 408) ) v70 = 82.0; v83 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_heartOn_001.png", v81); v84 = v80 + v70; v85 = ButtonSprite::create( v83, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.3, 1, "GJ_button_01.png", nullptr, 0.0, v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -1.0); ButtonSprite::updateSpriteOffset(v85, (int)v155); v155[1] = 0; v155[0] = MusicBrowser::onToggleView; v86 = CCMenuItemSpriteExtra::create((int)v85, 0, a1, (int)MusicBrowser::onToggleView, 0); *(_DWORD *)(a1 + 604) = v86; (*(void (__fastcall **)(int, int))(*(_DWORD *)v86 + 36))(v86, 1); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 604)); v87 = *(_DWORD **)(a1 + 604); v88 = *(const cocos2d::CCPoint **)(a1 + 444); v89 = *(void (__fastcall **)(_DWORD *, _DWORD *))((char *)off_5C + *v87); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v153, v82, v84); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v154, v88); v89(v87, v154); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 604) + 80))(*(_DWORD *)(a1 + 604), 1057803469); v90 = v84 - 30.0; *(_DWORD *)(*(_DWORD *)(a1 + 604) + 316) = 1057803469; v92 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v91); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v92 + 80))(v92, 1067869798); v93 = ButtonSprite::create( v92, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.3, 1, "GJ_button_01.png", nullptr, 0.0, v140); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v154, 0.0, -1.0); ButtonSprite::updateSpriteOffset(v93, (int)v154); v154[0] = MusicBrowser::onToggleView; v154[1] = 0; v94 = CCMenuItemSpriteExtra::create((int)v93, 0, a1, (int)MusicBrowser::onToggleView, 0); *(_DWORD *)(a1 + 608) = v94; (*(void (__fastcall **)(int, int))(*(_DWORD *)v94 + 36))(v94, 2); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 608)); v95 = *(const cocos2d::CCPoint **)(a1 + 444); v145 = *(_DWORD *)(a1 + 608); v96 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v145 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v152, v82, v90); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v153, v95); v96(v145, v153); v97 = (GameManager *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 608) + 80))( *(_DWORD *)(a1 + 608), 1057803469); *(_DWORD *)(*(_DWORD *)(a1 + 608) + 316) = 1057803469; if ( *(_DWORD *)(GameManager::sharedState(v97) + 408) ) { v99 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_hammerIcon_001.png", v98); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v99 + 80))(v99, 1067030938); v100 = ButtonSprite::create( v99, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.3, 1, "GJ_button_01.png", nullptr, 0.0, v141); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v153, 0.0, -1.0); ButtonSprite::updateSpriteOffset(v100, (int)v153); v153[0] = MusicBrowser::onToggleView; v153[1] = 0; v101 = CCMenuItemSpriteExtra::create((int)v100, 0, a1, (int)MusicBrowser::onToggleView, 0); *(_DWORD *)(a1 + 612) = v101; (*(void (__fastcall **)(int, int))(*(_DWORD *)v101 + 36))(v101, 3); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))( *(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 612)); v102 = *(_DWORD *)(a1 + 612); v103 = *(const cocos2d::CCPoint **)(a1 + 444); v104 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v102 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v151, v82, v90 - 30.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v152, v103); v104(v102, v152); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 612) + 80))(*(_DWORD *)(a1 + 612), 1057803469); *(_DWORD *)(*(_DWORD *)(a1 + 612) + 316) = 1057803469; } v105 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v98); (*(void (__fastcall **)(int, int))(*(_DWORD *)v105 + 80))(v105, 1061997773); v152[1] = 0; v152[0] = MusicBrowser::onChangelog; v106 = CCMenuItemSpriteExtra::create(v105, 0, a1, (int)MusicBrowser::onChangelog, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v106); v107 = *(const cocos2d::CCPoint **)(a1 + 444); v108 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v106 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v150, (float)((float)(v147 * 0.5) + 220.0) - 17.0, (float)((float)(v148 * 0.5) - 145.0) + 17.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v151, v107); v108(v106, v151); CCMenuItemSpriteExtra::setSizeMult(v106, 1.2); v110 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sortIcon_001.png", v109); v111 = ButtonSprite::create( v110, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, 1, "GJ_button_01.png", nullptr, 0.0, v141); v151[1] = 0; v151[0] = MusicBrowser::onSorting; v112 = (_DWORD *)CCMenuItemSpriteExtra::create((int)v111, 0, a1, (int)MusicBrowser::onSorting, 0); (*(void (__fastcall **)(_DWORD, _DWORD *))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v112); v113 = *(const cocos2d::CCPoint **)(a1 + 444); v114 = *(void (__fastcall **)(_DWORD *, _BYTE *))(*v112 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v149, (float)((float)(v147 * 0.5) + 220.0) - 24.0, (float)((float)(v148 * 0.5) - 145.0) + 50.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v150, v113); v114(v112, v150); (*(void (__fastcall **)(_DWORD *, int))(*v112 + 80))(v112, 1061158912); v112[79] = 1061158912; v116 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v115); *(_DWORD *)(a1 + 556) = v116; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v116, 10); v117 = *(_DWORD *)(a1 + 556); v118 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v117 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v150, (float)((float)(v147 * 0.5) + 220.0) - 50.0, (float)((float)(v148 * 0.5) + 145.0) - 8.0); v118(v117, v150); v119 = *(_DWORD *)(a1 + 556); v120 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v119 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v150, 1.0, 1.0); v120(v119, v150); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 556) + 80))(*(_DWORD *)(a1 + 556), 1053609165); v122 = *(_DWORD *)(a1 + 540); if ( v122 > 0 ) { if ( v122 == 1 ) v123 = "ncs_med_001.png"; else v123 = "chompo_med_001.png"; v124 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v123, v121); *(_DWORD *)(a1 + 592) = v124; (*(void (__fastcall **)(int, int))(*(_DWORD *)v124 + 80))(v124, 1063675494); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 592), 11); v125 = *(_DWORD *)(a1 + 592); v126 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v125 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v150, (float)((float)(v147 * 0.5) + 220.0) - 70.0, (float)((float)(v148 * 0.5) + 145.0) - 31.0); v126(v125, v150); } v127 = LoadingCircleSprite::create((LoadingCircleSprite *)0x3F800000, *(float *)&v121); *(_DWORD *)(a1 + 616) = v127; (*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v127); v128 = *(_DWORD *)(a1 + 616); v129 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v128 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v150, v147 * 0.5, v148 * 0.5); v129(v128, v150); v130 = (MusicDownloadManager *)MusicBrowser::setupSongControls((MusicBrowser *)a1); v131 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(v130); v132 = (MusicDownloadManager *)MusicDownloadManager::addMusicDownloadDelegate( v131, (MusicDownloadDelegate *)(a1 + 520)); v133 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v132); if ( !*((_DWORD *)v133 + 83) ) { v134 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v133); MusicDownloadManager::parseMusicLibrary(v134); } MusicBrowser::trySetupMusicBrowser((MusicBrowser *)a1); cocos2d::CCNode::scheduleUpdate((cocos2d::CCNode *)a1); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source