//
// AudioAssetsBrowser::setupList from 0x1400995f0 to 0x140099803 (531 bytes)
//
// 3 xrefs:
// > AudioAssetsBrowser::init @ 0x1400994eb
// > AudioAssetsBrowser::musicActionFinished @ 0x14009958c
// > ??> @ 0x140912dac
//
// 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:26:04 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall AudioAssetsBrowser::setupList(__int64 a1)
{
cocos2d::CCObject *v2; // rcx
__int64 v3; // rax
struct cocos2d::CCObject *v4; // rbx
cocos2d::CCTouchDispatcher *v5; // rax
cocos2d::CCArray *v6; // r14
unsigned int *v7; // rbx
unsigned int *i; // rbp
unsigned int v9; // edi
__int64 v10; // rcx
struct cocos2d::CCObject *SongInfoObject; // rax
__int64 v12; // rcx
__int64 v13; // rax
int v14; // r8d
int v15; // r9d
int v16; // eax
int v17; // edx
int v18; // r9d
__int64 v19; // rax
__int64 v20; // rdi
__int64 v21; // rbx
__int64 v22; // rax
void *v24; // [rsp+70h] [rbp+8h] BYREF
float v25; // [rsp+78h] [rbp+10h] BYREF
float v26; // [rsp+7Ch] [rbp+14h]
v2 = *(cocos2d::CCObject **)(a1 + 680);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( *(_QWORD *)(a1 + 688) )
{
v3 = cocos2d::CCDirector::sharedDirector(v2);
v4 = *(struct cocos2d::CCObject **)(a1 + 688);
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, v4);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 528LL))(*(_QWORD *)(a1 + 688));
*(_QWORD *)(a1 + 688) = 0;
}
v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
v7 = *(unsigned int **)(a1 + 704);
for ( i = *(unsigned int **)(a1 + 712); v7 != i; ++v7 )
{
v9 = *v7;
v10 = qword_14090C070;
if ( !qword_14090C070 )
{
v24 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v24);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v10 = qword_14090C070;
}
SongInfoObject = (struct cocos2d::CCObject *)MusicDownloadManager::getSongInfoObject(v10, v9);
if ( SongInfoObject )
cocos2d::CCArray::addObject(v6, SongInfoObject);
}
*(_QWORD *)(a1 + 680) = v6;
cocos2d::CCObject::retain(v6);
v13 = cocos2d::CCDirector::sharedDirector(v12);
cocos2d::CCDirector::getWinSize(v13, &v25);
v16 = CustomListView::create((_DWORD)v6, (int)a1 + 664, v14, v15);
LODWORD(v24) = -13487566;
v19 = GJCommentListLayer::create(v16, v17, -13487566, v18, 1130102784, 1);
*(_QWORD *)(a1 + 688) = v19;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v19, 10);
v20 = **(_QWORD **)(a1 + 688);
v21 = *(_QWORD *)(a1 + 688);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v24,
(float)(v25 - 340.0) * 0.5,
(float)((float)(v26 - 220.0) * 0.5) - 10.0);
return (*(__int64 (__fastcall **)(__int64, __int64))(v20 + 184))(v21, v22);
}