// // SongInfoLayer::init from 0x140634c10 to 0x140635b6b (3931 bytes) // // 2 xrefs: // > SongInfoLayer::create @ 0x140634b8f // > @ 0x140930bfc // // This function is hookable on this platform (idp: pc, 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 11:35:30 +0000 // // Hidden C++ exception states: #wind=11 char __fastcall SongInfoLayer::init( __int64 a1, void **a2, void **a3, _QWORD *a4, _QWORD *a5, int a6, __int64 a7, int a8) { _QWORD *v8; // r15 void **v10; // r14 void *v13; // rdx void **v14; // rcx void *v15; // rdx __int64 v16; // rax __int64 v17; // rax __int64 *v18; // rdi __int64 v19; // rdx __int64 v20; // rbx __int64 v21; // rax __int64 v22; // rbx __int64 v23; // rax float v24; // xmm7_4 const char *v25; // rcx struct cocos2d::CCLabelBMFont *v26; // rdi __int64 v27; // rbx __int64 v28; // rax const char *v29; // rcx struct cocos2d::CCLabelBMFont *v30; // rdi __int64 v31; // rbx __int64 v32; // rax int v33; // eax cocos2d::CCObject *v34; // rax struct cocos2d::CCMenu *v35; // rdi __int64 v36; // rbx __int64 v37; // rax struct cocos2d::CCSprite *v38; // rax cocos2d::CCObject *v39; // rsi __int64 v40; // rdi __int64 v41; // rbx __int64 v42; // rax __int64 v43; // rax struct cocos2d::CCSprite *v44; // rax int v45; // ebx cocos2d::CCObject *v46; // rsi __int64 v47; // rdi __int64 v48; // rbx __int64 v49; // rax __int64 v50; // rax size_t *v51; // rbx struct cocos2d::CCLabelBMFont *v52; // rdi __int64 v53; // rbx __int64 v54; // rax float v55; // xmm8_4 float v56; // xmm9_4 struct cocos2d::CCLabelBMFont *v57; // rdi __int64 v58; // rbx __int64 v59; // rax void *v60; // rsi __int64 v61; // rcx const char *v62; // rdx cocos2d::CCString *v63; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v65; // rdi __int64 v66; // rbx __int64 v67; // rax __int64 v68; // rcx float v69; // xmm7_4 unsigned __int64 v70; // rdi char *v71; // rax void **v72; // rcx struct cocos2d::CCSprite *v73; // rdi __int64 v74; // rbx __int64 v75; // rax void *v76; // rcx __int64 v77; // rsi int v78; // esi int v79; // edi __int64 v80; // r14 __int64 v81; // r15 float *v82; // rax float *v83; // rbx __int64 v84; // rax cocos2d::CCMenuItem *ToggleButton; // r15 __int64 v86; // r14 int v87; // r14d int v88; // esi __int64 v89; // rax __int64 v90; // rbx __int64 v91; // rdi unsigned __int8 v92; // r8 cocos2d::CCArray *v93; // rsi float *v94; // rax __int64 v95; // rcx cocos2d::CCMenuItem *v96; // r14 struct cocos2d::CCObject *v97; // rbx struct cocos2d::CCObject *v98; // rdi __int64 v99; // rax __int64 v100; // rax __int64 v101; // rax __int64 v102; // rax int v103; // edx cocos2d::CCString *v104; // rax const char *v105; // rax struct cocos2d::CCLabelBMFont *v106; // rax int v107; // ebx cocos2d::CCObject *v108; // rdi __int64 v109; // rax __int64 v110; // rbx __int64 v111; // rax __int16 v112; // [rsp+88h] [rbp-80h] BYREF char v113; // [rsp+8Ah] [rbp-7Eh] float v114; // [rsp+90h] [rbp-78h] BYREF float v115; // [rsp+94h] [rbp-74h] __int128 *v116; // [rsp+98h] [rbp-70h] BYREF __int16 v117; // [rsp+A0h] [rbp-68h] cocos2d::CCArray *v118; // [rsp+A8h] [rbp-60h] BYREF _QWORD *v119; // [rsp+B0h] [rbp-58h] BYREF char v120[8]; // [rsp+B8h] [rbp-50h] BYREF void **v121; // [rsp+C0h] [rbp-48h] void *v122; // [rsp+C8h] [rbp-40h] size_t *v123; // [rsp+D0h] [rbp-38h] __int128 *v124; // [rsp+D8h] [rbp-30h] void *v125; // [rsp+E0h] [rbp-28h] char v126[8]; // [rsp+E8h] [rbp-20h] BYREF __int128 v127; // [rsp+F0h] [rbp-18h] BYREF __int64 v128; // [rsp+100h] [rbp-8h] __int64 v129; // [rsp+108h] [rbp+0h] __int128 v130; // [rsp+110h] [rbp+8h] BYREF __int64 v131; // [rsp+120h] [rbp+18h] __int64 v132; // [rsp+128h] [rbp+20h] _QWORD *v133; // [rsp+130h] [rbp+28h] _QWORD *v134; // [rsp+138h] [rbp+30h] char v135[8]; // [rsp+140h] [rbp+38h] BYREF char v136[8]; // [rsp+148h] [rbp+40h] BYREF void **v137; // [rsp+150h] [rbp+48h] void **v138; // [rsp+158h] [rbp+50h] __int64 v139; // [rsp+160h] [rbp+58h] void *Block[2]; // [rsp+168h] [rbp+60h] BYREF __int64 v141; // [rsp+178h] [rbp+70h] unsigned __int64 v142; // [rsp+180h] [rbp+78h] v8 = a4; v119 = a4; v10 = a2; v121 = a2; v137 = a2; v138 = a3; v133 = a4; v122 = a5; v134 = a5; v123 = (size_t *)a7; v139 = a7; if ( FLAlertLayer::init_1(a1, 150) ) { if ( (void **)(a1 + 664) != v10 ) { v13 = v10; if ( (unsigned __int64)v10[3] > 0xF ) v13 = *v10; sub_1400405A0((void **)(a1 + 664), v13, (size_t)v10[2]); } v14 = (void **)(a1 + 696); if ( (void **)(a1 + 696) != a3 ) { v15 = a3; if ( (unsigned __int64)a3[3] > 0xF ) v15 = *a3; sub_1400405A0(v14, v15, (size_t)a3[2]); } *(_DWORD *)(a1 + 728) = a6; v16 = cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize(v16, &v114); cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, 0.0, 0.0, 80.0, 80.0); v18 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v17); LOBYTE(v19) = -1; (*(void (__fastcall **)(__int64 *, __int64))(v18[40] + 40))(v18 + 40, v19); v20 = *v18; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v116, 420.0, 280.0); (*(void (__fastcall **)(__int64 *, __int64))(v20 + 312))(v18, v21); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v18, 0xFFFFFFFFLL); v22 = *v18; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v114 * 0.5, v115 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v18, v23); v24 = (float)(v115 * 0.5) + 140.0; v25 = (const char *)v10; if ( (unsigned __int64)v10[3] > 0xF ) v25 = (const char *)*v10; v26 = cocos2d::CCLabelBMFont::create(v25, &qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v26, 20); v27 = *(_QWORD *)v26; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v114 * 0.5, v24 - 16.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v27 + 184))(v26, v28); cocos2d::CCLabelBMFont::limitLabelWidth(v26, 240.0, 0.60000002, 0.2); v29 = (const char *)a3; if ( (unsigned __int64)a3[3] > 0xF ) v29 = (const char *)*a3; v30 = cocos2d::CCLabelBMFont::create(v29, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v30, 20); v31 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v114 * 0.5, v24 - 37.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v31 + 184))(v30, v32); cocos2d::CCLabelBMFont::limitLabelWidth(v30, 300.0, 0.55000001, 0.2); *(_DWORD *)(a1 + 640) = -1; v33 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v34 = CCMenuItemSpriteExtra::create(v33, 0, a1, (__int64)PagedListPopup::onClose); *((_DWORD *)v34 + 93) = 1070386381; v35 = cocos2d::CCMenu::create(v34, 0); *(_QWORD *)(a1 + 552) = v35; v36 = *(_QWORD *)v35; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v116, (float)((float)(v114 * 0.5) - 210.0) + 10.0, (float)((float)(v115 * 0.5) + 140.0) - 10.0); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v36 + 184))(v35, v37); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); v38 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_BPMOnBtn_001.png"); LODWORD(v36) = (_DWORD)v38; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v38 + 160LL))(v38); v39 = CCMenuItemSpriteExtra::create(v36, 0, a1, (__int64)SongInfoLayer::onBPM); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v39); v40 = *(_QWORD *)v39; v41 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v116, (float)((float)(v114 * 0.5) + 210.0) - 23.0, (float)((float)(v115 * 0.5) - 140.0) + 23.0); cocos2d::CCNode::convertToNodeSpace(v41, &v118, v42); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v40 + 184))(v39, v43); if ( *(int *)(a1 + 728) > 0 ) { v44 = cocos2d::CCSprite::createWithSpriteFrameName("statInfoIcon_001.png"); v45 = (int)v44; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v44 + 160LL))(v44); v46 = CCMenuItemSpriteExtra::create(v45, 0, a1, (__int64)SongInfoLayer::onSongUsage); *((_DWORD *)v46 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v46); v47 = *(_QWORD *)v46; v48 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v116, (float)((float)(v114 * 0.5) + 210.0) - 18.0, (float)((float)(v115 * 0.5) + 140.0) - 18.0); cocos2d::CCNode::convertToNodeSpace(v48, &v118, v49); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v47 + 184))(v46, v50); } if ( *(int *)(a1 + 728) > 10000000 ) { v51 = v123; if ( v123[2] ) { v52 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, &qword_140704F78); v112 = -14156; v113 = -21; (**((void (__fastcall ***)(__int64, __int16 *))v52 + 46))((__int64)v52 + 368, &v112); sub_140633E00(v52, v51, 340.0, 0.40000001, 0.30000001); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v52, 10); v53 = *(_QWORD *)v52; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v114 * 0.5, v24 - 56.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v53 + 184))(v52, v54); } } v55 = 17.0; if ( (unsigned __int64)((v8[1] - *v8) / 72LL) > 3 ) v56 = 0.0; else v56 = 17.0; if ( *v8 != v8[1] ) { v57 = cocos2d::CCLabelBMFont::create("Song Links", &qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v57, 20); v58 = *(_QWORD *)v57; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v114 * 0.5, (float)(v24 - 75.0) - v56); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v58 + 184))(v57, v59); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v57 + 160LL))(v57); v112 = -17153; v113 = 83; (**((void (__fastcall ***)(__int64, __int16 *))v57 + 46))((__int64)v57 + 368, &v112); } SongInfoLayer::addLinkRows(a1, v8); v60 = v122; v61 = *((_QWORD *)v122 + 1); if ( *(_QWORD *)v122 != v61 ) { if ( (unsigned __int64)((v61 - *(_QWORD *)v122) / 72) > 3 ) v55 = 0.0; v62 = (const char *)a3; if ( (unsigned __int64)a3[3] > 0xF ) v62 = (const char *)*a3; v63 = cocos2d::CCString::createWithFormat("More By %s", v62); CString = cocos2d::CCString::getCString(v63); v65 = cocos2d::CCLabelBMFont::create(CString, &qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v65, 20); v66 = *(_QWORD *)v65; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v114 * 0.5, (float)(v24 - 165.0) - v55); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v66 + 184))(v65, v67); cocos2d::CCLabelBMFont::limitLabelWidth(v65, 300.0, 0.40000001, 0.30000001); v112 = -17153; v113 = 83; (**((void (__fastcall ***)(__int64, __int16 *))v65 + 46))((__int64)v65 + 368, &v112); SongInfoLayer::addLinkRows(a1, v60); } v68 = (unsigned int)a8; if ( a8 > 0 ) { v69 = -62.0; v141 = 15; v70 = 15; v142 = 15; strcpy((char *)Block, "ncs_med_001.png"); if ( a8 == 2 ) { v69 = -66.0; v71 = (char *)sub_14003D460(0x20u); v141 = 18; v142 = 31; strcpy(v71, "chompo_med_001.png"); Block[0] = v71; v70 = v142; } v72 = Block; if ( v70 > 0xF ) v72 = (void **)Block[0]; v73 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v72); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v73, 11); v74 = *(_QWORD *)v73; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v116, (float)((float)(v114 * 0.5) + 210.0) + v69, (float)((float)(v115 * 0.5) + 140.0) - 18.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v74 + 184))(v73, v75); if ( v142 > 0xF ) { v76 = Block[0]; if ( v142 + 1 >= 0x1000 ) { v76 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v76 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v76); } } if ( *(int *)(a1 + 728) > 0 ) { v118 = (cocos2d::CCArray *)cocos2d::CCArray::create(v68); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v120, (float)((float)(v114 * 0.5) - 210.0) + 20.0, (float)((float)(v115 * 0.5) - 140.0) + 20.0); v116 = &v127; v77 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v124 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v124); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v77 = qword_14090BFD0; } v78 = *(_DWORD *)(v77 + 1164); v79 = *(_DWORD *)(a1 + 728); v127 = 0; v128 = 4; v129 = 15; strcpy((char *)&v127, "Menu"); v80 = *(_QWORD *)(a1 + 584); v81 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135, 5.0, 1.0); v83 = v82; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, (const struct cocos2d::CCPoint *)v120); ToggleButton = GameToolbox::createToggleButton( (const char *)&v127, (__int64)SongInfoLayer::onMenuMusic, v78 == v79, v81, v84, a1, v80, 0.69999999, 0.30000001, 80.0, v83, (const char *)&qword_140704F78, 0, 0, v118); v124 = &v130; v86 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v125 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v125); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v86 = qword_14090BFD0; } v87 = *(_DWORD *)(v86 + 1168); v88 = *(_DWORD *)(a1 + 728); v131 = 8; v132 = 15; v130 = 0x6563697463617250uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 68.0, 0.0); cocos2d::CCPoint::operator+(v120, &v116, v89); v90 = *(_QWORD *)(a1 + 584); v91 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 5.0, 1.0); v92 = v87 == v88; v93 = v118; v96 = GameToolbox::createToggleButton( (const char *)&v130, (__int64)SongInfoLayer::onPracticeMusic, v92, v91, (__int64)&v116, a1, v90, 0.69999999, 0.30000001, 80.0, v94, (const char *)&qword_140704F78, 0, 0, v118); if ( !qword_14090BFE0 ) { v125 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v125); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); } if ( !(unsigned __int8)GameStatsManager::isItemUnlocked(v95, 0xCu, 0x10u) ) { v97 = cocos2d::CCArray::objectAtIndex(v93, 1u); v98 = cocos2d::CCArray::objectAtIndex(v93, 3u); *((_BYTE *)ToggleButton + 393) = 1; *((_BYTE *)v96 + 393) = 1; v117 = -26986; v112 = -26986; v113 = -106; v99 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)ToggleButton + 47) + 952LL))(*((_QWORD *)ToggleButton + 47)); (**(void (__fastcall ***)(__int64, __int16 *))(v99 + 320))(v99 + 320, &v112); v100 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)ToggleButton + 48) + 952LL))(*((_QWORD *)ToggleButton + 48)); (**(void (__fastcall ***)(__int64, __int16 *))(v100 + 320))(v100 + 320, &v112); v101 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v96 + 47) + 952LL))(*((_QWORD *)v96 + 47)); (**(void (__fastcall ***)(__int64, __int16 *))(v101 + 320))(v101 + 320, &v112); v102 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v96 + 48) + 952LL))(*((_QWORD *)v96 + 48)); (**(void (__fastcall ***)(__int64, __int16 *))(v102 + 320))(v102 + 320, &v112); (**((void (__fastcall ***)(__int64, __int16 *))v97 + 46))((__int64)v97 + 368, &v112); (**((void (__fastcall ***)(__int64, __int16 *))v98 + 46))((__int64)v98 + 368, &v112); } v8 = v119; v10 = v121; } v103 = *(_DWORD *)(a1 + 728); if ( v103 > 0 ) { v104 = cocos2d::CCString::createWithFormat("SongID: %i", v103); v105 = cocos2d::CCString::getCString(v104); v106 = cocos2d::CCLabelBMFont::create(v105, &qword_140704F78); v107 = (int)v106; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v106 + 160LL))(v106); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v116, (float)(v114 * 0.5) + 78.0, (float)((float)(v115 * 0.5) - 140.0) + 20.0); v108 = CCMenuItemSpriteExtra::create(v107, 0, a1, (__int64)SongInfoLayer::onCopySongID); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v108); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 0.0, 0.0); cocos2d::CCPoint::operator+(&v116, &v119, v109); v110 = *(_QWORD *)v108; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v126, &v119); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v110 + 184))(v108, v111); } sub_14003D310((__int64)v10); sub_14003D310((__int64)a3); sub_1401226A0(v8); sub_1401226A0(v122); sub_14003D310((__int64)v123); return 1; } else { sub_14003D310((__int64)v10); sub_14003D310((__int64)a3); sub_1401226A0(v8); sub_1401226A0(a5); sub_14003D310(a7); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source