{"type": "func", "start": 4303047584, "end": 4303048019, "name": "AudioAssetsBrowser::setupList", "pseudocode": "// \n// AudioAssetsBrowser::setupList from 0x1007b4ba0 to 0x1007b4d53 (435 bytes)\n// \n// 2 xrefs:\n// > AudioAssetsBrowser::init @ 0x1007b4436\n// > AudioAssetsBrowser::trySetupAudioBrowser @ 0x1007b4dd5\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 __fastcall AudioAssetsBrowser::setupList(AudioAssetsBrowser *a1)\n{\n  cocos2d::CCArray *m_songInfoObjects; // rdi\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  cocos2d::CCArray *v5; // r14\n  std::__vector_base<int>::pointer begin; // r12\n  std::__vector_base<int>::pointer end; // r13\n  int v8; // r15d\n  MusicDownloadManager *v9; // rax\n  SongInfoObject *SongInfoObject; // rax\n  CustomListView *v11; // rax\n  GJCommentListLayer *v12; // rax\n  GJCommentListLayer *m_songList; // rbx\n  float v14; // [rsp+8h] [rbp-38h] BYREF\n  float v15[12]; // [rsp+10h] [rbp-30h] BYREF\n\n  m_songInfoObjects = a1->m_songInfoObjects;\n  if ( m_songInfoObjects )\n    cocos2d::CCObject::release(m_songInfoObjects);\n  if ( a1->m_songList )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_songList);\n    ((void (__fastcall *)(GJCommentListLayer *))a1->m_songList->removeMeAndCleanup)(a1->m_songList);\n    a1->m_songList = nullptr;\n  }\n  v5 = (cocos2d::CCArray *)sub_10071F9E0();\n  begin = a1->m_songsIds.__begin_;\n  end = a1->m_songsIds.__end_;\n  while ( begin != end )\n  {\n    v8 = *begin;\n    v9 = MusicDownloadManager::sharedState();\n    SongInfoObject = MusicDownloadManager::getSongInfoObject(v9, v8);\n    if ( SongInfoObject )\n      sub_10071FCD0((__int64)v5, SongInfoObject);\n    ++begin;\n  }\n  a1->m_songInfoObjects = v5;\n  cocos2d::CCObject::retain(v5);\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v15);\n  v11 = CustomListView::create(v5, &a1->TableViewCellDelegate, 220.0, 340.0, 0, CustomMusic, 0.0);\n  v12 = GJCommentListLayer::create(v11, \"\", (cocos2d::ccColor4B)-13487566, 340.0, 220.0, 1);\n  a1->m_songList = v12;\n  ((void (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *, __int64))a1->m_mainLayer->addChild_0)(\n    a1->m_mainLayer,\n    v12,\n    10);\n  m_songList = a1->m_songList;\n  sub_10028CBE0(&v14, (float)(v15[0] + -340.0) * 0.5, (float)((float)(v15[1] + -220.0) * 0.5) + -10.0);\n  ((void (__fastcall *)(GJCommentListLayer *, float *))m_songList->setPosition)(m_songList, &v14);\n}", "assembly": "; \n; AudioAssetsBrowser::setupList from 0x1007b4ba0 to 0x1007b4d53 (435 bytes)\n; \n; 2 xrefs:\n; > AudioAssetsBrowser::init @ 0x1007b4436\n; > AudioAssetsBrowser::trySetupAudioBrowser @ 0x1007b4dd5\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\npush    rbp                                                            ; +0x0, 0x1007b4ba0\nmov     rbp, rsp                                                       ; +0x1, 0x1007b4ba1\npush    r15                                                            ; +0x4, 0x1007b4ba4\npush    r14                                                            ; +0x6, 0x1007b4ba6\npush    r13                                                            ; +0x8, 0x1007b4ba8\npush    r12                                                            ; +0xa, 0x1007b4baa\npush    rbx                                                            ; +0xc, 0x1007b4bac\nsub     rsp, 18h                                                       ; +0xd, 0x1007b4bad\nmov     rbx, rdi                                                       ; +0x11, 0x1007b4bb1\nmov     rdi, [rdi+288h]                                                ; +0x14, 0x1007b4bb4\ntest    rdi, rdi                                                       ; +0x1b, 0x1007b4bbb\njz      short loc_1007B4BC5                                            ; +0x1e, 0x1007b4bbe\ncall    cocos2d__CCObject__release                                     ; +0x20, 0x1007b4bc0\ncmp     qword ptr [rbx+290h], 0                                        ; +0x25, 0x1007b4bc5\njz      short loc_1007B4C0A                                            ; +0x2d, 0x1007b4bcd\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x2f, 0x1007b4bcf\nmov     rcx, [rax]                                                     ; +0x34, 0x1007b4bd4\nmov     rdi, rax                                                       ; +0x37, 0x1007b4bd7\ncall    qword ptr [rcx+0A0h]                                           ; +0x3a, 0x1007b4bda\nmov     rsi, [rbx+290h]                                                ; +0x40, 0x1007b4be0\nmov     rdi, rax                                                       ; +0x47, 0x1007b4be7\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x4a, 0x1007b4bea\nmov     rdi, [rbx+290h]                                                ; +0x4f, 0x1007b4bef\nmov     rax, [rdi]                                                     ; +0x56, 0x1007b4bf6\ncall    qword ptr [rax+208h]                                           ; +0x59, 0x1007b4bf9\nmov     qword ptr [rbx+290h], 0                                        ; +0x5f, 0x1007b4bff\ncall    sub_10071F9E0                                                  ; +0x6a, 0x1007b4c0a\nmov     r14, rax                                                       ; +0x6f, 0x1007b4c0f\nmov     r12, [rbx+2A0h]                                                ; +0x72, 0x1007b4c12\nmov     r13, [rbx+2A8h]                                                ; +0x79, 0x1007b4c19\njmp     short loc_1007B4C34                                            ; +0x80, 0x1007b4c20\nalign 10h                                                              ; +0x82, 0x1007b4c22\nadd     r12, 4                                                         ; +0x90, 0x1007b4c30\ncmp     r12, r13                                                       ; +0x94, 0x1007b4c34\njz      short loc_1007B4C5F                                            ; +0x97, 0x1007b4c37\nmov     r15d, [r12]                                                    ; +0x99, 0x1007b4c39\ncall    MusicDownloadManager__sharedState                              ; +0x9d, 0x1007b4c3d\nmov     rdi, rax                                                       ; +0xa2, 0x1007b4c42\nmov     esi, r15d                                                      ; +0xa5, 0x1007b4c45\ncall    MusicDownloadManager__getSongInfoObject                        ; +0xa8, 0x1007b4c48\ntest    rax, rax                                                       ; +0xad, 0x1007b4c4d\njz      short loc_1007B4C30                                            ; +0xb0, 0x1007b4c50\nmov     rdi, r14                                                       ; +0xb2, 0x1007b4c52\nmov     rsi, rax                                                       ; +0xb5, 0x1007b4c55\ncall    sub_10071FCD0                                                  ; +0xb8, 0x1007b4c58\njmp     short loc_1007B4C30                                            ; +0xbd, 0x1007b4c5d\nmov     [rbx+288h], r14                                                ; +0xbf, 0x1007b4c5f\nmov     rdi, r14                                                       ; +0xc6, 0x1007b4c66\ncall    cocos2d__CCObject__retain                                      ; +0xc9, 0x1007b4c69\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xce, 0x1007b4c6e\nlea     rdi, [rbp+var_30]                                              ; +0xd3, 0x1007b4c73\nmov     rsi, rax                                                       ; +0xd7, 0x1007b4c77\ncall    cocos2d__CCDirector__getWinSize                                ; +0xda, 0x1007b4c7a\nlea     rsi, [rbx+278h]                                                ; +0xdf, 0x1007b4c7f\nmovss   xmm0, cs:dword_100815BB0                                       ; +0xe6, 0x1007b4c86\nmovss   xmm1, cs:dword_1008152B0                                       ; +0xee, 0x1007b4c8e\nxorps   xmm2, xmm2                                                     ; +0xf6, 0x1007b4c96\nmov     rdi, r14                                                       ; +0xf9, 0x1007b4c99\nxor     edx, edx                                                       ; +0xfc, 0x1007b4c9c\nmov     ecx, 19h                                                       ; +0xfe, 0x1007b4c9e\ncall    CustomListView__create                                         ; +0x103, 0x1007b4ca3\nlea     rsi, __src; \"\"                                                 ; +0x108, 0x1007b4ca8\nmov     rdi, rax                                                       ; +0x10f, 0x1007b4caf\nmov     edx, 0FF323232h                                                ; +0x112, 0x1007b4cb2\nmovss   xmm0, cs:dword_1008152B0                                       ; +0x117, 0x1007b4cb7\nmovss   xmm1, cs:dword_100815BB0                                       ; +0x11f, 0x1007b4cbf\nmov     ecx, 1                                                         ; +0x127, 0x1007b4cc7\ncall    GJCommentListLayer__create                                     ; +0x12c, 0x1007b4ccc\nmov     [rbx+290h], rax                                                ; +0x131, 0x1007b4cd1\nmov     rdi, [rbx+240h]                                                ; +0x138, 0x1007b4cd8\nmov     rcx, [rdi]                                                     ; +0x13f, 0x1007b4cdf\nmov     rsi, rax                                                       ; +0x142, 0x1007b4ce2\nmov     edx, 0Ah                                                       ; +0x145, 0x1007b4ce5\ncall    qword ptr [rcx+1C0h]                                           ; +0x14a, 0x1007b4cea\nmovss   xmm0, [rbp+var_30]                                             ; +0x150, 0x1007b4cf0\nmovss   xmm1, [rbp+var_2C]                                             ; +0x155, 0x1007b4cf5\naddss   xmm0, cs:dword_100817E08                                       ; +0x15a, 0x1007b4cfa\nmovss   xmm2, cs:dword_100814FA8                                       ; +0x162, 0x1007b4d02\nmulss   xmm0, xmm2                                                     ; +0x16a, 0x1007b4d0a\naddss   xmm1, cs:dword_100817A3C                                       ; +0x16e, 0x1007b4d0e\nmulss   xmm1, xmm2                                                     ; +0x176, 0x1007b4d16\nmov     rbx, [rbx+290h]                                                ; +0x17a, 0x1007b4d1a\naddss   xmm1, cs:dword_100815064                                       ; +0x181, 0x1007b4d21\nlea     r14, [rbp+var_38]                                              ; +0x189, 0x1007b4d29\nmov     rdi, r14                                                       ; +0x18d, 0x1007b4d2d\ncall    sub_10028CBE0                                                  ; +0x190, 0x1007b4d30\nmov     rax, [rbx]                                                     ; +0x195, 0x1007b4d35\nmov     rdi, rbx                                                       ; +0x198, 0x1007b4d38\nmov     rsi, r14                                                       ; +0x19b, 0x1007b4d3b\ncall    qword ptr [rax+0B8h]                                           ; +0x19e, 0x1007b4d3e\nadd     rsp, 18h                                                       ; +0x1a4, 0x1007b4d44\npop     rbx                                                            ; +0x1a8, 0x1007b4d48\npop     r12                                                            ; +0x1a9, 0x1007b4d49\npop     r13                                                            ; +0x1ab, 0x1007b4d4b\npop     r14                                                            ; +0x1ad, 0x1007b4d4d\npop     r15                                                            ; +0x1af, 0x1007b4d4f\npop     rbp                                                            ; +0x1b1, 0x1007b4d51\nretn                                                                   ; +0x1b2, 0x1007b4d52", "xrefs": ["AudioAssetsBrowser::init @ 0x1007b4436", "AudioAssetsBrowser::trySetupAudioBrowser @ 0x1007b4dd5"], "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"}