{"type": "func", "start": 4303987328, "end": 4303987479, "name": "AudioAssetsBrowser::trySetupAudioBrowser", "pseudocode": "// \n// AudioAssetsBrowser::trySetupAudioBrowser from 0x10089a280 to 0x10089a317 (151 bytes)\n// \n// 2 xrefs:\n// > AudioAssetsBrowser::musicActionFinished @ 0x10089a325\n// > sub_10089A330 @ 0x10089a33c\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 12:37:08 +0000\n// \n\nvoid __fastcall AudioAssetsBrowser::trySetupAudioBrowser(__int64 a1)\n{\n  __int64 v1; // r14\n  __int64 v2; // rax\n  unsigned int v3; // ecx\n  __int64 v4; // rbx\n  __int64 v5; // rdi\n  __int64 v6; // rax\n  __int64 v7; // rbx\n\n  v1 = *(_QWORD *)(MusicDownloadManager::sharedState() + 400);\n  v2 = MusicDownloadManager::sharedState();\n  v3 = *(unsigned __int8 *)(v2 + 368);\n  if ( v1 )\n  {\n    if ( (v3 & 1) != 0 )\n    {\n      if ( !*(_QWORD *)(v2 + 376) )\n      {\nLABEL_9:\n        v6 = MusicDownloadManager::sharedState();\n        MusicDownloadManager::getCustomContentURL(v6);\n      }\n    }\n    else if ( !(v3 >> 1) )\n    {\n      goto LABEL_9;\n    }\n    AudioAssetsBrowser::setupList(a1);\n    return;\n  }\n  if ( (v3 & 1) != 0 )\n  {\n    v7 = *(_QWORD *)(v2 + 376);\n    v5 = MusicDownloadManager::sharedState();\n    if ( v7 )\n      goto LABEL_7;\n  }\n  else\n  {\n    v4 = (unsigned __int8)v3 >> 1;\n    v5 = MusicDownloadManager::sharedState();\n    if ( v4 )\n    {\nLABEL_7:\n      MusicDownloadManager::downloadSFXLibrary(v5);\n      return;\n    }\n  }\n  MusicDownloadManager::getCustomContentURL(v5);\n}", "assembly": "; \n; AudioAssetsBrowser::trySetupAudioBrowser from 0x10089a280 to 0x10089a317 (151 bytes)\n; \n; 2 xrefs:\n; > AudioAssetsBrowser::musicActionFinished @ 0x10089a325\n; > sub_10089A330 @ 0x10089a33c\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 12:37:08 +0000\n; \npush    rbp                                                            ; +0x0, 0x10089a280\nmov     rbp, rsp                                                       ; +0x1, 0x10089a281\npush    r14                                                            ; +0x4, 0x10089a284\npush    rbx                                                            ; +0x6, 0x10089a286\nmov     rbx, rdi                                                       ; +0x7, 0x10089a287\ncall    MusicDownloadManager__sharedState                              ; +0xa, 0x10089a28a\nmov     r14, [rax+190h]                                                ; +0xf, 0x10089a28f\ncall    MusicDownloadManager__sharedState                              ; +0x16, 0x10089a296\nmovzx   ecx, byte ptr [rax+170h]                                       ; +0x1b, 0x10089a29b\ntest    r14, r14                                                       ; +0x22, 0x10089a2a2\njz      short loc_10089A2B5                                            ; +0x25, 0x10089a2a5\ntest    cl, 1                                                          ; +0x27, 0x10089a2a7\njnz     short loc_10089A2D5                                            ; +0x2a, 0x10089a2aa\nshr     ecx, 1                                                         ; +0x2c, 0x10089a2ac\ntest    rcx, rcx                                                       ; +0x2e, 0x10089a2ae\njnz     short loc_10089A2EE                                            ; +0x31, 0x10089a2b1\njmp     short loc_10089A2E1                                            ; +0x33, 0x10089a2b3\ntest    cl, 1                                                          ; +0x35, 0x10089a2b5\njnz     short loc_10089A2FA                                            ; +0x38, 0x10089a2b8\nshr     cl, 1                                                          ; +0x3a, 0x10089a2ba\nmovzx   ebx, cl                                                        ; +0x3c, 0x10089a2bc\ncall    MusicDownloadManager__sharedState                              ; +0x3f, 0x10089a2bf\nmov     rdi, rax                                                       ; +0x44, 0x10089a2c4\ntest    rbx, rbx                                                       ; +0x47, 0x10089a2c7\njz      short loc_10089A30E                                            ; +0x4a, 0x10089a2ca\npop     rbx                                                            ; +0x4c, 0x10089a2cc\npop     r14                                                            ; +0x4d, 0x10089a2cd\npop     rbp                                                            ; +0x4f, 0x10089a2cf\njmp     MusicDownloadManager__downloadSFXLibrary                       ; +0x50, 0x10089a2d0\nmov     rcx, [rax+178h]                                                ; +0x55, 0x10089a2d5\ntest    rcx, rcx                                                       ; +0x5c, 0x10089a2dc\njnz     short loc_10089A2EE                                            ; +0x5f, 0x10089a2df\ncall    MusicDownloadManager__sharedState                              ; +0x61, 0x10089a2e1\nmov     rdi, rax                                                       ; +0x66, 0x10089a2e6\ncall    MusicDownloadManager__getCustomContentURL                      ; +0x69, 0x10089a2e9\nmov     rdi, rbx                                                       ; +0x6e, 0x10089a2ee\npop     rbx                                                            ; +0x71, 0x10089a2f1\npop     r14                                                            ; +0x72, 0x10089a2f2\npop     rbp                                                            ; +0x74, 0x10089a2f4\njmp     AudioAssetsBrowser__setupList                                  ; +0x75, 0x10089a2f5\nmov     rbx, [rax+178h]                                                ; +0x7a, 0x10089a2fa\ncall    MusicDownloadManager__sharedState                              ; +0x81, 0x10089a301\nmov     rdi, rax                                                       ; +0x86, 0x10089a306\ntest    rbx, rbx                                                       ; +0x89, 0x10089a309\njnz     short loc_10089A2CC                                            ; +0x8c, 0x10089a30c\npop     rbx                                                            ; +0x8e, 0x10089a30e\npop     r14                                                            ; +0x8f, 0x10089a30f\npop     rbp                                                            ; +0x91, 0x10089a311\njmp     MusicDownloadManager__getCustomContentURL                      ; +0x92, 0x10089a312", "xrefs": ["AudioAssetsBrowser::musicActionFinished @ 0x10089a325", "sub_10089A330 @ 0x10089a33c"], "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"}