{"type": "func", "start": 5369337328, "end": 5369337859, "name": "AudioAssetsBrowser::setupList", "pseudocode": "// \n// AudioAssetsBrowser::setupList from 0x1400995f0 to 0x140099803 (531 bytes)\n// \n// 3 xrefs:\n// > AudioAssetsBrowser::init @ 0x1400994eb\n// > AudioAssetsBrowser::musicActionFinished @ 0x14009958c\n// > <???> @ 0x140912dac\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:26:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall AudioAssetsBrowser::setupList(__int64 a1)\n{\n  cocos2d::CCObject *v2; // rcx\n  __int64 v3; // rax\n  struct cocos2d::CCObject *v4; // rbx\n  cocos2d::CCTouchDispatcher *v5; // rax\n  cocos2d::CCArray *v6; // r14\n  unsigned int *v7; // rbx\n  unsigned int *i; // rbp\n  unsigned int v9; // edi\n  __int64 v10; // rcx\n  struct cocos2d::CCObject *SongInfoObject; // rax\n  __int64 v12; // rcx\n  __int64 v13; // rax\n  int v14; // r8d\n  int v15; // r9d\n  int v16; // eax\n  int v17; // edx\n  int v18; // r9d\n  __int64 v19; // rax\n  __int64 v20; // rdi\n  __int64 v21; // rbx\n  __int64 v22; // rax\n  void *v24; // [rsp+70h] [rbp+8h] BYREF\n  float v25; // [rsp+78h] [rbp+10h] BYREF\n  float v26; // [rsp+7Ch] [rbp+14h]\n\n  v2 = *(cocos2d::CCObject **)(a1 + 680);\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  if ( *(_QWORD *)(a1 + 688) )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(v2);\n    v4 = *(struct cocos2d::CCObject **)(a1 + 688);\n    v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, v4);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 528LL))(*(_QWORD *)(a1 + 688));\n    *(_QWORD *)(a1 + 688) = 0;\n  }\n  v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);\n  v7 = *(unsigned int **)(a1 + 704);\n  for ( i = *(unsigned int **)(a1 + 712); v7 != i; ++v7 )\n  {\n    v9 = *v7;\n    v10 = qword_14090C070;\n    if ( !qword_14090C070 )\n    {\n      v24 = operator new(0x3D0u);\n      qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v24);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n      v10 = qword_14090C070;\n    }\n    SongInfoObject = (struct cocos2d::CCObject *)MusicDownloadManager::getSongInfoObject(v10, v9);\n    if ( SongInfoObject )\n      cocos2d::CCArray::addObject(v6, SongInfoObject);\n  }\n  *(_QWORD *)(a1 + 680) = v6;\n  cocos2d::CCObject::retain(v6);\n  v13 = cocos2d::CCDirector::sharedDirector(v12);\n  cocos2d::CCDirector::getWinSize(v13, &v25);\n  v16 = CustomListView::create((_DWORD)v6, (int)a1 + 664, v14, v15);\n  LODWORD(v24) = -13487566;\n  v19 = GJCommentListLayer::create(v16, v17, -13487566, v18, 1130102784, 1);\n  *(_QWORD *)(a1 + 688) = v19;\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v19, 10);\n  v20 = **(_QWORD **)(a1 + 688);\n  v21 = *(_QWORD *)(a1 + 688);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v24,\n    (float)(v25 - 340.0) * 0.5,\n    (float)((float)(v26 - 220.0) * 0.5) - 10.0);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(v20 + 184))(v21, v22);\n}", "assembly": "; \n; AudioAssetsBrowser::setupList from 0x1400995f0 to 0x140099803 (531 bytes)\n; \n; 3 xrefs:\n; > AudioAssetsBrowser::init @ 0x1400994eb\n; > AudioAssetsBrowser::musicActionFinished @ 0x14009958c\n; > <???> @ 0x140912dac\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:26:04 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400995f0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1400995f5\npush    rsi                                                            ; +0xa, 0x1400995fa\npush    rdi                                                            ; +0xb, 0x1400995fb\npush    r14                                                            ; +0xc, 0x1400995fc\nsub     rsp, 50h                                                       ; +0xe, 0x1400995fe\nmovaps  [rsp+68h+var_28], xmm6                                         ; +0x12, 0x140099602\nmov     rsi, rcx                                                       ; +0x17, 0x140099607\nmov     rcx, [rcx+2A8h]                                                ; +0x1a, 0x14009960a\ntest    rcx, rcx                                                       ; +0x21, 0x140099611\njz      short loc_14009961C                                            ; +0x24, 0x140099614\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x26, 0x140099616\ncmp     qword ptr [rsi+2B0h], 0                                        ; +0x2c, 0x14009961c\njz      short loc_14009966A                                            ; +0x34, 0x140099624\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x36, 0x140099626\nmov     rbx, [rsi+2B0h]                                                ; +0x3c, 0x14009962c\nmov     rcx, [rax]                                                     ; +0x43, 0x140099633\nmov     r8, [rcx+90h]                                                  ; +0x46, 0x140099636\nmov     rcx, rax                                                       ; +0x4d, 0x14009963d\ncall    r8                                                             ; +0x50, 0x140099640\nmov     rcx, rax                                                       ; +0x53, 0x140099643\nmov     rdx, rbx                                                       ; +0x56, 0x140099646\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x59, 0x140099649\nmov     rcx, [rsi+2B0h]                                                ; +0x5f, 0x14009964f\nmov     rax, [rcx]                                                     ; +0x66, 0x140099656\ncall    qword ptr [rax+210h]                                           ; +0x69, 0x140099659\nmov     qword ptr [rsi+2B0h], 0                                        ; +0x6f, 0x14009965f\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x7a, 0x14009966a\nmov     r14, rax                                                       ; +0x80, 0x140099670\nmov     rbx, [rsi+2C0h]                                                ; +0x83, 0x140099673\nmov     rbp, [rsi+2C8h]                                                ; +0x8a, 0x14009967a\ncmp     rbx, rbp                                                       ; +0x91, 0x140099681\njz      short loc_1400996F2                                            ; +0x94, 0x140099684\nnop     word ptr [rax+rax+00000000h]                                   ; +0x96, 0x140099686\nmov     edi, [rbx]                                                     ; +0xa0, 0x140099690\nmov     rcx, cs:qword_14090C070                                        ; +0xa2, 0x140099692\ntest    rcx, rcx                                                       ; +0xa9, 0x140099699\njnz     short loc_1400996D1                                            ; +0xac, 0x14009969c\nmov     ecx, 3D0h; Size                                                ; +0xae, 0x14009969e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb3, 0x1400996a3\nmov     [rsp+68h+arg_0], rax                                           ; +0xb8, 0x1400996a8\nmov     rcx, rax                                                       ; +0xbd, 0x1400996ad\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0xc0, 0x1400996b0\nnop                                                                    ; +0xc5, 0x1400996b5\nmov     cs:qword_14090C070, rax                                        ; +0xc6, 0x1400996b6\nmov     rcx, [rax]                                                     ; +0xcd, 0x1400996bd\nmov     r8, [rcx+48h]                                                  ; +0xd0, 0x1400996c0\nmov     rcx, rax                                                       ; +0xd4, 0x1400996c4\ncall    r8                                                             ; +0xd7, 0x1400996c7\nmov     rcx, cs:qword_14090C070                                        ; +0xda, 0x1400996ca\nmov     edx, edi                                                       ; +0xe1, 0x1400996d1\ncall    MusicDownloadManager__getSongInfoObject                        ; +0xe3, 0x1400996d3\ntest    rax, rax                                                       ; +0xe8, 0x1400996d8\njz      short loc_1400996E9                                            ; +0xeb, 0x1400996db\nmov     rdx, rax                                                       ; +0xed, 0x1400996dd\nmov     rcx, r14                                                       ; +0xf0, 0x1400996e0\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xf3, 0x1400996e3\nadd     rbx, 4                                                         ; +0xf9, 0x1400996e9\ncmp     rbx, rbp                                                       ; +0xfd, 0x1400996ed\njnz     short loc_140099690                                            ; +0x100, 0x1400996f0\nmov     [rsi+2A8h], r14                                                ; +0x102, 0x1400996f2\nmov     rcx, r14                                                       ; +0x109, 0x1400996f9\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x10c, 0x1400996fc\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x112, 0x140099702\nmov     rcx, rax                                                       ; +0x118, 0x140099708\nlea     rdx, [rsp+68h+arg_8]                                           ; +0x11b, 0x14009970b\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x120, 0x140099710\nlea     rdx, [rsi+298h]                                                ; +0x126, 0x140099716\nxorps   xmm0, xmm0                                                     ; +0x12d, 0x14009971d\nmovss   [rsp+68h+var_38], xmm0                                         ; +0x130, 0x140099720\nmov     [rsp+68h+var_40], 17h                                          ; +0x136, 0x140099726\nmovss   xmm3, cs:dword_1408359D4                                       ; +0x13e, 0x14009972e\nmovss   xmm6, cs:dword_14083591C                                       ; +0x146, 0x140099736\nmovaps  xmm2, xmm6                                                     ; +0x14e, 0x14009973e\nmov     rcx, r14                                                       ; +0x151, 0x140099741\ncall    CustomListView__create                                         ; +0x154, 0x140099744\nmov     dword ptr [rsp+68h+arg_0], 0FF323232h                          ; +0x159, 0x140099749\nmov     byte ptr [rsp+68h+var_40], 1                                   ; +0x161, 0x140099751\nmovss   [rsp+68h+var_48], xmm6                                         ; +0x166, 0x140099756\nmovss   xmm3, cs:dword_1408359D4                                       ; +0x16c, 0x14009975c\nmov     r8d, dword ptr [rsp+68h+arg_0]                                 ; +0x174, 0x140099764\nmov     rcx, rax                                                       ; +0x179, 0x140099769\ncall    GJCommentListLayer__create                                     ; +0x17c, 0x14009976c\nmov     [rsi+2B0h], rax                                                ; +0x181, 0x140099771\nmov     rcx, [rsi+248h]                                                ; +0x188, 0x140099778\nmov     rdx, [rcx]                                                     ; +0x18f, 0x14009977f\nmov     r9, [rdx+1C8h]                                                 ; +0x192, 0x140099782\nmov     r8d, 0Ah                                                       ; +0x199, 0x140099789\nmov     rdx, rax                                                       ; +0x19f, 0x14009978f\ncall    r9                                                             ; +0x1a2, 0x140099792\nmov     rax, [rsi+2B0h]                                                ; +0x1a5, 0x140099795\nmov     rdi, [rax]                                                     ; +0x1ac, 0x14009979c\nmov     rbx, rax                                                       ; +0x1af, 0x14009979f\nmovss   xmm2, [rsp+68h+arg_C]                                          ; +0x1b2, 0x1400997a2\nsubss   xmm2, xmm6                                                     ; +0x1b8, 0x1400997a8\nmulss   xmm2, cs:dword_140834F20                                       ; +0x1bc, 0x1400997ac\nsubss   xmm2, cs:flt_1408354EC                                         ; +0x1c4, 0x1400997b4\nmovss   xmm1, [rsp+68h+arg_8]                                          ; +0x1cc, 0x1400997bc\nsubss   xmm1, cs:dword_1408359D4                                       ; +0x1d2, 0x1400997c2\nmulss   xmm1, cs:dword_140834F20                                       ; +0x1da, 0x1400997ca\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x1e2, 0x1400997d2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1e7, 0x1400997d7\nmov     rdx, rax                                                       ; +0x1ed, 0x1400997dd\nmov     rcx, rbx                                                       ; +0x1f0, 0x1400997e0\ncall    qword ptr [rdi+0B8h]                                           ; +0x1f3, 0x1400997e3\nlea     r11, [rsp+68h+var_18]                                          ; +0x1f9, 0x1400997e9\nmov     rbx, [r11+30h]                                                 ; +0x1fe, 0x1400997ee\nmov     rbp, [r11+38h]                                                 ; +0x202, 0x1400997f2\nmovaps  xmm6, [rsp+68h+var_28]                                         ; +0x206, 0x1400997f6\nmov     rsp, r11                                                       ; +0x20b, 0x1400997fb\npop     r14                                                            ; +0x20e, 0x1400997fe\npop     rdi                                                            ; +0x210, 0x140099800\npop     rsi                                                            ; +0x211, 0x140099801\nretn                                                                   ; +0x212, 0x140099802", "xrefs": ["AudioAssetsBrowser::init @ 0x1400994eb", "AudioAssetsBrowser::musicActionFinished @ 0x14009958c", "<???> @ 0x140912dac"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}