//
// AudioAssetsBrowser::setupList from 0xbc1ccc to 0xbc1e94 (456 bytes)
//
// 3 xrefs:
// > AudioAssetsBrowser::trySetupAudioBrowser @ 0xbc1ee4
// > AudioAssetsBrowser::init @ 0xbc2b38
// > ??> @ 0xed478
//
// 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 13:03:29 +0000
//
__int64 __fastcall AudioAssetsBrowser::setupList(AudioAssetsBrowser *this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCDirector *v3; // x0
__int64 v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
MusicDownloadManager *SongInfoObject; // x0
unsigned int *v7; // x21
unsigned int *v8; // x19
cocos2d::CCArray *i; // x22
MusicDownloadManager *v10; // x0
cocos2d::CCDirector *v11; // x0
cocos2d::CCDirector *v12; // x0
__int64 v13; // x0
cocos2d::CCLayerColor *v14; // x0
__int64 v15; // x21
void (__fastcall *v16)(__int64, _BYTE *); // x19
const char *v18; // [xsp+58h] [xbp+58h]
__int64 v19; // [xsp+68h] [xbp+68h] BYREF
_BYTE v20[8]; // [xsp+70h] [xbp+70h] BYREF
v2 = *((cocos2d::CCObject **)this + 85);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCDirector **)this + 86);
if ( v3 )
{
v4 = cocos2d::CCDirector::sharedDirector(v3);
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *((cocos2d::CCObject **)this + 86));
v3 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 536LL))(*((_QWORD *)this + 86));
*((_QWORD *)this + 86) = 0;
}
SongInfoObject = (MusicDownloadManager *)cocos2d::CCArray::create(v3);
v7 = *((unsigned int **)this + 89);
v8 = *((unsigned int **)this + 88);
for ( i = SongInfoObject; v7 != v8; ++v8 )
{
v18 = (const char *)*v8;
v10 = (MusicDownloadManager *)MusicDownloadManager::sharedState(SongInfoObject);
SongInfoObject = (MusicDownloadManager *)MusicDownloadManager::getSongInfoObject(v10, v18);
if ( SongInfoObject )
SongInfoObject = (MusicDownloadManager *)cocos2d::CCArray::addObject(i, SongInfoObject);
}
*((_QWORD *)this + 85) = i;
v11 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(i);
v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);
cocos2d::CCDirector::getWinSize(&v19, v12);
v13 = CustomListView::create(i, (int)this + 664, 0, 23, 220.0, 340.0, 0.0);
v14 = GJCommentListLayer::create(v13, (__int64)&byte_11B8890, -13487566, 1u, 340.0, 220.0);
*((_QWORD *)this + 86) = v14;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayerColor *, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v14,
10);
v15 = *((_QWORD *)this + 86);
v16 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v15 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v20,
(float)(*(float *)&v19 - 340.0) * 0.5,
(float)((float)(*((float *)&v19 + 1) - 220.0) * 0.5) + -10.0);
v16(v15, v20);
AudioAssetsBrowser::updatePageLabel(this);
return _stack_chk_guard;
}