{"type": "func", "start": 5879712, "end": 5879796, "name": "AudioAssetsBrowser::trySetupAudioBrowser", "pseudocode": "// \n// AudioAssetsBrowser::trySetupAudioBrowser from 0x59b7a0 to 0x59b7f4 (84 bytes)\n// \n// 1 xrefs:\n// > AudioAssetsBrowser::musicActionFinished @ 0x59b7f4\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::trySetupAudioBrowser(AudioAssetsBrowser *a1)\n{\n  MusicDownloadManager *v2; // r0\n  MusicDownloadManager *v3; // r0\n  MusicDownloadManager *v4; // r0\n\n  if ( MusicDownloadManager::sharedState()->m_sfxObjects )\n  {\n    if ( !*((_DWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )\n    {\n      v2 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::getCustomContentURL(v2);\n    }\n    AudioAssetsBrowser::setupList(a1);\n  }\n  else if ( *((_DWORD *)MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_data - 3) )\n  {\n    v4 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::downloadSFXLibrary(v4);\n  }\n  else\n  {\n    v3 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::getCustomContentURL(v3);\n  }\n}", "assembly": "; \n; AudioAssetsBrowser::trySetupAudioBrowser from 0x59b7a0 to 0x59b7f4 (84 bytes)\n; \n; 1 xrefs:\n; > AudioAssetsBrowser::musicActionFinished @ 0x59b7f4\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            {R4,LR}                                                ; +0x0, 0x59b7a0\nMOV             R4, R0                                                 ; +0x2, 0x59b7a2\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x4, 0x59b7a4\nLDR.W           R3, [R0,#0x124]                                        ; +0x8, 0x59b7a8\nCBZ             R3, loc_59B7CE                                         ; +0xc, 0x59b7ac\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0xe, 0x59b7ae\nLDR.W           R3, [R0,#0x120]                                        ; +0x12, 0x59b7b2\nLDR.W           R3, [R3,#-0xC]                                         ; +0x16, 0x59b7b6\nCBNZ            R3, loc_59B7C4                                         ; +0x1a, 0x59b7ba\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x1c, 0x59b7bc\nBL              _ZN20MusicDownloadManager19getCustomContentURLEv; MusicDownloadManager::getCustomContentURL(void) ; +0x20, 0x59b7c0\nMOV             R0, R4; this                                           ; +0x24, 0x59b7c4\nPOP.W           {R4,LR}                                                ; +0x26, 0x59b7c6\nB.W             _ZN18AudioAssetsBrowser9setupListEv; AudioAssetsBrowser::setupList(void) ; +0x2a, 0x59b7ca\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x2e, 0x59b7ce\nLDR.W           R3, [R0,#0x120]                                        ; +0x32, 0x59b7d2\nLDR.W           R3, [R3,#-0xC]                                         ; +0x36, 0x59b7d6\nCBNZ            R3, loc_59B7E8                                         ; +0x3a, 0x59b7da\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x3c, 0x59b7dc\nPOP.W           {R4,LR}                                                ; +0x40, 0x59b7e0\nB.W             _ZN20MusicDownloadManager19getCustomContentURLEv; MusicDownloadManager::getCustomContentURL(void) ; +0x44, 0x59b7e4\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x48, 0x59b7e8\nPOP.W           {R4,LR}                                                ; +0x4c, 0x59b7ec\nB.W             _ZN20MusicDownloadManager18downloadSFXLibraryEv; MusicDownloadManager::downloadSFXLibrary(void) ; +0x50, 0x59b7f0", "xrefs": ["AudioAssetsBrowser::musicActionFinished @ 0x59b7f4"], "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"}