// // GJSongBrowser::customSetup from 0x100302ee0 to 0x100303224 (836 bytes) // // 1 xrefs: // > @ 0x10092a140 // // 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 11:03:06 +0000 // __int64 __fastcall GJSongBrowser::customSetup(__int64 a1) { __int64 v2; // x0 __int64 v3; // x20 float v4; // s8 float v5; // s10 void *v6; // x0 void *v7; // x0 __int64 v8; // x22 __int64 v9; // x0 float v10; // s0 unsigned __int8 *v11; // x21 void *v12; // x0 __int64 v13; // x21 __int64 v14; // x0 float v15; // s0 float *v16; // x21 void *v17; // x22 float v18; // s9 __int64 v19; // x0 float v20; // s8 __int64 v21; // x0 float v22; // s0 __int64 v23; // x0 __int64 v24; // x20 __int64 v25; // x0 float v26; // s8 __int64 v27; // x0 __int64 v28; // x0 float v29; // s0 float v30; // s8 __int64 v31; // x0 float v32; // s0 __int64 v33; // x20 __int64 v34; // x0 __int64 DownloadedSongs; // x0 __int64 v36; // x0 float v38; // [xsp+8h] [xbp-58h] BYREF __int64 v39; // [xsp+10h] [xbp-50h] BYREF __int64 v40; // [xsp+18h] [xbp-48h] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2, &v40); v3 = cocos2d::CCMenu::create(); v4 = *((float *)&v40 + 1) * 0.5; if ( *(_BYTE *)(AppDelegate::get(v3) + 37) ) v5 = 49.0; else v5 = 24.0; v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png"); v7 = CCMenuItemSpriteExtra::create((__int64)v6, 0, a1, (__int64)sub_100303224, 0); *(_QWORD *)(a1 + 648) = v7; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v3 + 456LL))(v3, v7); v8 = *(_QWORD *)(a1 + 648); v9 = cocos2d::CCDirector::sharedDirector(); v10 = sub_100207EA8(v9); sub_1000262BC(&v38, v5 + v10, v4); cocos2d::CCNode::convertToNodeSpace(v3, (__int64)&v38, &v39); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL))(v8, &v39); v11 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v11, 1); v12 = CCMenuItemSpriteExtra::create((__int64)v11, 0, a1, (__int64)sub_100303230, 0); *(_QWORD *)(a1 + 640) = v12; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v3 + 456LL))(v3, v12); v13 = *(_QWORD *)(a1 + 640); v14 = cocos2d::CCDirector::sharedDirector(); v15 = sub_100207EB0(v14); sub_1000262BC(&v38, v15 - v5, v4); cocos2d::CCNode::convertToNodeSpace(v3, (__int64)&v38, &v39); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL))(v13, &v39); v16 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteBtn_001.png"); v17 = CCMenuItemSpriteExtra::create((__int64)v16, 0, a1, (__int64)sub_10030323C, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v3 + 456LL))(v3, v17); v18 = (float)(v16[108] * 0.5) + 4.0; v19 = cocos2d::CCDirector::sharedDirector(); v20 = sub_100207EB0(v19) - v18; v21 = cocos2d::CCDirector::sharedDirector(); v22 = sub_100207EA0(v21); sub_1000262BC(&v38, v20, v18 + v22); cocos2d::CCNode::convertToNodeSpace(v3, (__int64)&v38, &v39); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v17 + 184LL))(v17, &v39); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 464LL))(*(_QWORD *)(a1 + 576), v3, 10); v23 = cocos2d::CCLabelBMFont::create_1(" ", "goldFont.fnt"); *(_QWORD *)(a1 + 656) = v23; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(*(_QWORD *)(a1 + 576), v23); v24 = *(_QWORD *)(a1 + 656); v25 = cocos2d::CCDirector::sharedDirector(); v26 = sub_100207EB0(v25) + -7.0; v28 = AppDelegate::get(v27); v29 = 0.0; if ( *(_BYTE *)(v28 + 37) ) v29 = 10.0; v30 = v26 - v29; v31 = cocos2d::CCDirector::sharedDirector(); v32 = sub_100207E98(v31); sub_1000262BC((float *)&v39, v30, v32 + -4.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL))(v24, &v39); v33 = *(_QWORD *)(a1 + 656); sub_1000262BC((float *)&v39, 1.0, 1.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v33 + 296LL))(v33, &v39); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 656) + 160LL))(*(_QWORD *)(a1 + 656), 0.6); v34 = MusicDownloadManager::sharedState(); DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v34); *(_QWORD *)(a1 + 672) = DownloadedSongs; cocos2d::CCObject::retain(DownloadedSongs); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 568) + 1168LL))(*(_QWORD *)(a1 + 568), 255); v36 = *(_QWORD *)(a1 + 568); memset(&v39, 50, 3); return (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v36 + 1216LL))(v36, &v39); }
GD Web Decomp Icon

GD Web Decomp

Raw Source