{"type": "func", "start": 11072380, "end": 11072836, "name": "AudioAssetsBrowser::setupList", "pseudocode": "// \n// AudioAssetsBrowser::setupList from 0xa8f37c to 0xa8f544 (456 bytes)\n// \n// 3 xrefs:\n// > AudioAssetsBrowser::trySetupAudioBrowser @ 0xa8f58c\n// > AudioAssetsBrowser::init @ 0xa8fab4\n// > <???> @ 0xb5b18\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid AudioAssetsBrowser::setupList(AudioAssetsBrowser *a1)\n{\n  cocos2d::CCArray *m_songInfoObjects; // x0\n  cocos2d::CCArray *m_songList; // x0\n  cocos2d::CCDirector *v4; // x0\n  cocos2d::CCTouchDispatcher *v5; // x0\n  __int64 v6; // x0\n  int *m_finish; // x21\n  int *m_start; // x19\n  cocos2d::CCArray *i; // x22\n  MusicDownloadManager *v10; // x0\n  SongInfoObject *SongInfoObject; // x1\n  cocos2d::CCDirector *v12; // x0\n  CustomListView *v13; // x0\n  GJCommentListLayer *v14; // x0\n  cocos2d::CCLayer *m_mainLayer; // x3\n  GJCommentListLayer *v16; // x21\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19\n  int v18; // [xsp+58h] [xbp+58h]\n  float v19; // [xsp+68h] [xbp+68h]\n  float v20; // [xsp+6Ch] [xbp+6Ch]\n  cocos2d::CCPoint v21; // [xsp+70h] [xbp+70h] BYREF\n\n  m_songInfoObjects = a1->m_songInfoObjects;\n  if ( m_songInfoObjects )\n    cocos2d::CCObject::release(m_songInfoObjects);\n  m_songList = (cocos2d::CCArray *)a1->m_songList;\n  if ( m_songList )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v5 = v4->getTouchDispatcher(v4);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1->m_songList);\n    m_songList = (cocos2d::CCArray *)((__int64 (__fastcall *)(GJCommentListLayer *))a1->m_songList->removeMeAndCleanup)(a1->m_songList);\n    a1->m_songList = nullptr;\n  }\n  v6 = cocos2d::CCArray::create(m_songList);\n  m_finish = a1->m_songsIds.m_finish;\n  m_start = a1->m_songsIds.m_start;\n  for ( i = (cocos2d::CCArray *)v6; m_finish != m_start; ++m_start )\n  {\n    v18 = *m_start;\n    v10 = MusicDownloadManager::sharedState();\n    SongInfoObject = MusicDownloadManager::getSongInfoObject(v10, v18);\n    if ( SongInfoObject )\n      cocos2d::CCArray::addObject(i, SongInfoObject);\n  }\n  a1->m_songInfoObjects = i;\n  cocos2d::CCObject::retain(i);\n  v12 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v12);\n  v13 = CustomListView::create(i, (BoomListType)((_DWORD)a1 + 632), 220.0, 340.0);\n  v14 = GJCommentListLayer::create(v13, &byte_F288A0, (cocos2d::ccColor4B)-13487566, 340.0, 220.0, 1);\n  m_mainLayer = a1->m_mainLayer;\n  a1->m_songList = v14;\n  m_mainLayer->addChild_0(m_mainLayer, v14, 10);\n  v16 = a1->m_songList;\n  setPosition = v16->setPosition;\n  cocos2d::CCPoint::CCPoint(&v21, (float)(v19 - 340.0) * 0.5, (float)((float)(v20 - 220.0) * 0.5) + -10.0);\n  setPosition(v16, &v21);\n  AudioAssetsBrowser::updatePageLabel(a1);\n}", "assembly": "; \n; AudioAssetsBrowser::setupList from 0xa8f37c to 0xa8f544 (456 bytes)\n; \n; 3 xrefs:\n; > AudioAssetsBrowser::trySetupAudioBrowser @ 0xa8f58c\n; > AudioAssetsBrowser::init @ 0xa8fab4\n; > <???> @ 0xb5b18\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xa8f37c\nMOV             X29, SP                                                ; +0x4, 0xa8f380\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x8, 0xa8f384\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa8f388\nSTP             D8, D9, [SP,#0x80+var_48]                              ; +0x10, 0xa8f38c\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x14, 0xa8f390\nMOV             X20, X0                                                ; +0x18, 0xa8f394\nLDR             X0, [X0,#0x288]; this                                  ; +0x1c, 0xa8f398\nLDR             X1, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xa8f39c\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x24, 0xa8f3a0\nLDR             X1, [X1]                                               ; +0x28, 0xa8f3a4\nSTR             X1, [X29,#0x80+var_8]                                  ; +0x2c, 0xa8f3a8\nCBZ             X0, loc_A8F3B4                                         ; +0x30, 0xa8f3ac\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x34, 0xa8f3b0\nLDR             X0, [X20,#0x290]; this                                 ; +0x38, 0xa8f3b4\nCBZ             X0, loc_A8F3EC                                         ; +0x3c, 0xa8f3b8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x40, 0xa8f3bc\nLDR             X1, [X0]                                               ; +0x44, 0xa8f3c0\nLDR             X1, [X1,#0xA0]                                         ; +0x48, 0xa8f3c4\nBLR             X1                                                     ; +0x4c, 0xa8f3c8\nLDR             X1, [X20,#0x290]; cocos2d::CCObject *                  ; +0x50, 0xa8f3cc\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x54, 0xa8f3d0\nLDR             X1, [X20,#0x290]                                       ; +0x58, 0xa8f3d4\nMOV             X0, X1                                                 ; +0x5c, 0xa8f3d8\nLDR             X1, [X1]                                               ; +0x60, 0xa8f3dc\nLDR             X1, [X1,#0x208]                                        ; +0x64, 0xa8f3e0\nBLR             X1                                                     ; +0x68, 0xa8f3e4\nSTR             XZR, [X20,#0x290]                                      ; +0x6c, 0xa8f3e8\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x70, 0xa8f3ec\nLDR             X21, [X20,#0x2A8]                                      ; +0x74, 0xa8f3f0\nLDR             X19, [X20,#0x2A0]                                      ; +0x78, 0xa8f3f4\nMOV             X22, X0                                                ; +0x7c, 0xa8f3f8\nCMP             X21, X19                                               ; +0x80, 0xa8f3fc\nB.EQ            loc_A8F434                                             ; +0x84, 0xa8f400\nLDR             W1, [X19]                                              ; +0x88, 0xa8f404\nSTR             X1, [X29,#0x80+var_28]                                 ; +0x8c, 0xa8f408\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x90, 0xa8f40c\nLDR             X1, [X29,#0x80+var_28]; int                            ; +0x94, 0xa8f410\nBL              _ZN20MusicDownloadManager17getSongInfoObjectEi; MusicDownloadManager::getSongInfoObject(int) ; +0x98, 0xa8f414\nMOV             X1, X0; cocos2d::CCObject *                            ; +0x9c, 0xa8f418\nCBZ             X0, loc_A8F428                                         ; +0xa0, 0xa8f41c\nMOV             X0, X22; this                                          ; +0xa4, 0xa8f420\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xa8, 0xa8f424\nADD             X19, X19, #4                                           ; +0xac, 0xa8f428\nCMP             X21, X19                                               ; +0xb0, 0xa8f42c\nB.NE            loc_A8F404                                             ; +0xb4, 0xa8f430\nMOV             X0, X22; this                                          ; +0xb8, 0xa8f434\nSTR             X22, [X20,#0x288]                                      ; +0xbc, 0xa8f438\nADD             X19, X29, #0x80+var_10                                 ; +0xc0, 0xa8f43c\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0xc4, 0xa8f440\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xc8, 0xa8f444\nADD             X8, X29, #0x80+var_18                                  ; +0xcc, 0xa8f448\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0xd0, 0xa8f44c\nLDR             S9, =0x435C0000                                        ; +0xd4, 0xa8f450\nADD             X1, X20, #0x278                                        ; +0xd8, 0xa8f454\nLDR             S8, =0x43AA0000                                        ; +0xdc, 0xa8f458\nMOV             W2, #0                                                 ; +0xe0, 0xa8f45c\nFMOV            S0, S9                                                 ; +0xe4, 0xa8f460\nMOV             W3, #0x19                                              ; +0xe8, 0xa8f464\nFMOV            S1, S8                                                 ; +0xec, 0xa8f468\nMOV             X0, X22                                                ; +0xf0, 0xa8f46c\nFMOV            S2, WZR                                                ; +0xf4, 0xa8f470\nBL              _ZN14CustomListView6createEPN7cocos2d7CCArrayEP21TableViewCellDelegateffi12BoomListTypef; CustomListView::create(cocos2d::CCArray *,TableViewCellDelegate *,float,float,int,BoomListType,float) ; +0xf8, 0xa8f474\nMOV             W1, #0x32 ; '2'                                        ; +0xfc, 0xa8f478\nMOV             W2, #0                                                 ; +0x100, 0xa8f47c\nBFXIL           W2, W1, #0, #8                                         ; +0x104, 0xa8f480\nMOV             W3, #1                                                 ; +0x108, 0xa8f484\nFMOV            S0, S8                                                 ; +0x10c, 0xa8f488\nBFI             W2, W1, #8, #8                                         ; +0x110, 0xa8f48c\nFMOV            S1, S9                                                 ; +0x114, 0xa8f490\nBFI             W2, W1, #0x10, #8                                      ; +0x118, 0xa8f494\nADRP            X1, #byte_F288A0@PAGE                                  ; +0x11c, 0xa8f498\nORR             W2, W2, #0xFF000000                                    ; +0x120, 0xa8f49c\nADD             X1, X1, #byte_F288A0@PAGEOFF                           ; +0x124, 0xa8f4a0\nBL              _ZN18GJCommentListLayer6createEP12BoomListViewPKcN7cocos2d10_ccColor4BEffb; GJCommentListLayer::create(BoomListView *,char const*,cocos2d::_ccColor4B,float,float,bool) ; +0x128, 0xa8f4a4\nMOV             X1, X0                                                 ; +0x12c, 0xa8f4a8\nLDR             X3, [X20,#0x240]                                       ; +0x130, 0xa8f4ac\nMOV             W2, #0xA                                               ; +0x134, 0xa8f4b0\nSTR             X0, [X20,#0x290]                                       ; +0x138, 0xa8f4b4\nMOV             X0, X3                                                 ; +0x13c, 0xa8f4b8\nLDR             X3, [X3]                                               ; +0x140, 0xa8f4bc\nLDR             X3, [X3,#0x1C0]                                        ; +0x144, 0xa8f4c0\nBLR             X3                                                     ; +0x148, 0xa8f4c4\nLDR             X21, [X20,#0x290]                                      ; +0x14c, 0xa8f4c8\nLDR             S1, [X29,#0x80+var_14]                                 ; +0x150, 0xa8f4cc\nMOV             X0, X19; this                                          ; +0x154, 0xa8f4d0\nFMOV            S3, #-10.0                                             ; +0x158, 0xa8f4d4\nSTR             X19, [X29,#0x80+var_28]                                ; +0x15c, 0xa8f4d8\nFSUB            S1, S1, S9                                             ; +0x160, 0xa8f4dc\nLDR             X2, [X21]                                              ; +0x164, 0xa8f4e0\nFMOV            S0, #0.5                                               ; +0x168, 0xa8f4e4\nLDR             S2, [X29,#0x80+var_18]                                 ; +0x16c, 0xa8f4e8\nLDR             X19, [X2,#0xB8]                                        ; +0x170, 0xa8f4ec\nFSUB            S2, S2, S8                                             ; +0x174, 0xa8f4f0\nFMADD           S1, S1, S0, S3; float                                  ; +0x178, 0xa8f4f4\nFMUL            S0, S2, S0; float                                      ; +0x17c, 0xa8f4f8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x180, 0xa8f4fc\nLDR             X1, [X29,#0x80+var_28]                                 ; +0x184, 0xa8f500\nMOV             X0, X21                                                ; +0x188, 0xa8f504\nBLR             X19                                                    ; +0x18c, 0xa8f508\nMOV             X0, X20; this                                          ; +0x190, 0xa8f50c\nBL              _ZN18AudioAssetsBrowser15updatePageLabelEv; AudioAssetsBrowser::updatePageLabel(void) ; +0x194, 0xa8f510\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x198, 0xa8f514\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x19c, 0xa8f518\nLDR             X0, [X23]                                              ; +0x1a0, 0xa8f51c\nCMP             X1, X0                                                 ; +0x1a4, 0xa8f520\nB.NE            loc_A8F540                                             ; +0x1a8, 0xa8f524\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x1ac, 0xa8f528\nLDP             D8, D9, [SP,#0x80+var_48]                              ; +0x1b0, 0xa8f52c\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x1b4, 0xa8f530\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x1b8, 0xa8f534\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x1bc, 0xa8f538\nRET                                                                    ; +0x1c0, 0xa8f53c\nBL              .__stack_chk_fail                                      ; +0x1c4, 0xa8f540", "xrefs": ["AudioAssetsBrowser::trySetupAudioBrowser @ 0xa8f58c", "AudioAssetsBrowser::init @ 0xa8fab4", "<???> @ 0xb5b18"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}