// // AudioAssetsPopup::init from 0x760ee8 to 0x761248 (864 bytes) // // 1 xrefs: // > AudioAssetsPopup::create @ 0x761480 // // 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:59:04 +0000 // GameManager *__fastcall AudioAssetsPopup::init( int a1, SongInfoObject *a2, LevelTools *a3, unsigned __int8 *a4, unsigned __int8 *a5) { GameManager *v8; // r0 GameManager *v9; // r11 float v10; // s17 float v11; // s18 const char *v12; // r1 int v13; // r9 int v14; // r10 int v15; // r10 int v16; // r1 SongInfoObject *v17; // r0 CustomSongWidget *SongObject; // r0 cocos2d::CCNode *v19; // r0 int v20; // r5 void (__fastcall *v21)(int, _BYTE *); // r10 int v22; // r9 MusicDownloadManager *v23; // r0 int v24; // r3 int v25; // r3 int v26; // r3 int v27; // r3 CustomSongWidget *v28; // r9 MusicDownloadManager *v29; // r10 MusicDownloadManager *v30; // r10 int v31; // r0 MusicDownloadManager *v32; // r0 cocos2d::CCArray **v33; // r0 MusicDownloadManager *v34; // r0 MusicDownloadManager *v35; // r4 bool v37; // [sp+1Ch] [bp-60h] void (__fastcall *v38)(int, _BYTE *); // [sp+24h] [bp-58h] void (__fastcall *v39)(int, _BYTE *); // [sp+24h] [bp-58h] cocos2d::CCPoint *v41; // [sp+34h] [bp-48h] cocos2d::CCPoint *v42; // [sp+34h] [bp-48h] float v43[2]; // [sp+3Ch] [bp-40h] BYREF _BYTE v44[8]; // [sp+44h] [bp-38h] BYREF _BYTE v45[8]; // [sp+4Ch] [bp-30h] BYREF int v46; // [sp+54h] [bp-28h] int v47; // [sp+58h] [bp-24h] int v48[3]; // [sp+5Ch] [bp-20h] BYREF int v49; // [sp+68h] [bp-14h] BYREF int v50; // [sp+6Ch] [bp-10h] int v51; // [sp+70h] [bp-Ch] v8 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 340.0, 170.0, (_BYTE *)&dword_0 + 2, 0.0); v9 = v8; if ( v8 ) { cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v43); v49 = 0; v50 = 0; v10 = v43[0] * 0.5; v51 = 0; v11 = v43[1] * 0.5; std::string::__init(&v49, "Level Audio", 0xBu); SetupTriggerPopup::addTitle(a1, (unsigned __int8 *)&v49); std::string::~string((int)&v49); v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 80))(v13, 1061997773); v46 = 684; v47 = 1; v14 = CCMenuItemSpriteExtra::create(v13, 0, a1, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v14, 1.5); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v14); v38 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); v41 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, (float)(v10 - 170.0) + 8.0, (float)(v11 + 85.0) - 12.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v41); v38(v14, v45); memset(v48, 0, sizeof(v48)); std::string::__init(v48, "Level Audio", 0xBu); v49 = 0; v50 = 0; v51 = 0; std::string::__init( &v49, "Downloads all songs and SFX used in this level.\n" "Size is total audio vs the upload limit. Red means the level cannot be uploaded.", 0x98u); v15 = InfoAlertButton::create((char *)v48, (int)&v49, 1063675494); std::string::~string((int)&v49); std::string::~string((int)v48); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v15); v39 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92); v42 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, (float)(v10 + 170.0) - 16.0, (float)(v11 + 85.0) - 16.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v42); v39(v15, v45); if ( a2 ) { v17 = a2; LOBYTE(a2) = 1; SongObject = SongInfoObject::create(v17, v16); } else { SongObject = (CustomSongWidget *)LevelTools::getSongObject(a3, v16); } v19 = CustomSongWidget::create(SongObject, nullptr, nullptr, 0, 1, (unsigned __int8)a2 != 1, 0, 0, 0, 0, 1, v37); *(_DWORD *)(a1 + 716) = v19; (*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v19, 2); v20 = *(_DWORD *)(a1 + 716); v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v20 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v10, v11 - 6.0); v21(v20, v45); CustomSongWidget::getSongInfoIfUnloaded(*(_DWORD *)(a1 + 716)); v22 = *(_DWORD *)(a1 + 716); std::string::basic_string(v48, (int)a4); std::string::basic_string(&v49, (int)a5); CustomSongWidget::updateWithMultiAssets(v22, (unsigned __int8 *)v48, (unsigned __int8 *)&v49, 0); std::string::~string((int)&v49); v23 = (MusicDownloadManager *)std::string::~string((int)v48); v24 = *a4; v25 = (v24 & 1) != 0 ? *((_DWORD *)a4 + 1) : v24 >> 1; if ( v25 || ((v26 = *a5, (v26 & 1) != 0) ? (v27 = *((_DWORD *)a5 + 1)) : (v27 = v26 >> 1), v27) ) { v28 = *(CustomSongWidget **)(a1 + 716); v29 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v23); std::string::basic_string(v48, (int)a4); std::string::basic_string(&v49, (int)a5); v30 = (MusicDownloadManager *)MusicDownloadManager::sumLocalAudioSizeBytes( v29, (unsigned __int8 *)v48, (unsigned __int8 *)&v49); v31 = MusicDownloadManager::sharedState(v30); CustomSongWidget::setMultiAssetFilesize(v28, (int)v30, *(_DWORD *)(v31 + 304)); std::string::~string((int)&v49); v32 = (MusicDownloadManager *)std::string::~string((int)v48); v33 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(v32); v34 = (MusicDownloadManager *)MusicDownloadManager::addMusicDownloadDelegate( v33, (MusicDownloadDelegate *)(a1 + 712)); v35 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v34); std::string::basic_string(v48, (int)a4); std::string::basic_string(&v49, (int)a5); MusicDownloadManager::getAudioFilesize(v35, (int)v48, (int)&v49); std::string::~string((int)&v49); std::string::~string((int)v48); } } return v9; }