{"type": "func", "start": 7216132, "end": 7216228, "name": "AudioAssetsBrowser::trySetupAudioBrowser", "pseudocode": "// \n// AudioAssetsBrowser::trySetupAudioBrowser from 0x6e1c04 to 0x6e1c64 (96 bytes)\n// \n// 1 xrefs:\n// > AudioAssetsBrowser::musicActionFinished @ 0x6e1c64\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:21 +0000\n// \n\nvoid __fastcall AudioAssetsBrowser::trySetupAudioBrowser(AudioAssetsBrowser *this)\n{\n  MusicDownloadManager *v2; // r0\n  int v3; // r0\n  int v4; // r3\n  int v5; // r3\n  MusicDownloadManager *v6; // r0\n  int v7; // r0\n  int v8; // r3\n  int v9; // r3\n  MusicDownloadManager *v10; // r0\n  int v11; // r0\n\n  v2 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);\n  if ( *((_DWORD *)v2 + 77) )\n  {\n    v3 = MusicDownloadManager::sharedState(v2);\n    v4 = *(unsigned __int8 *)(v3 + 288);\n    if ( (v4 & 1) != 0 )\n      v5 = *(_DWORD *)(v3 + 292);\n    else\n      v5 = v4 >> 1;\n    if ( !v5 )\n    {\n      v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v3);\n      MusicDownloadManager::getCustomContentURL(v6);\n    }\n    AudioAssetsBrowser::setupList(this);\n  }\n  else\n  {\n    v7 = MusicDownloadManager::sharedState(v2);\n    v8 = *(unsigned __int8 *)(v7 + 288);\n    if ( (v8 & 1) != 0 )\n      v9 = *(_DWORD *)(v7 + 292);\n    else\n      v9 = v8 >> 1;\n    if ( v9 )\n    {\n      v11 = MusicDownloadManager::sharedState((MusicDownloadManager *)v7);\n      MusicDownloadManager::downloadSFXLibrary(v11);\n    }\n    else\n    {\n      v10 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v7);\n      MusicDownloadManager::getCustomContentURL(v10);\n    }\n  }\n}", "assembly": "; \n; AudioAssetsBrowser::trySetupAudioBrowser from 0x6e1c04 to 0x6e1c64 (96 bytes)\n; \n; 1 xrefs:\n; > AudioAssetsBrowser::musicActionFinished @ 0x6e1c64\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:21 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x6e1c04\nMOV             R4, R0                                                 ; +0x2, 0x6e1c06\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x4, 0x6e1c08\nLDR.W           R3, [R0,#0x134]                                        ; +0x8, 0x6e1c0c\nCBZ             R3, loc_6E1C38                                         ; +0xc, 0x6e1c10\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0xe, 0x6e1c12\nLDRB.W          R3, [R0,#0x120]                                        ; +0x12, 0x6e1c16\nLSLS            R1, R3, #0x1F                                          ; +0x16, 0x6e1c1a\nITE PL                                                                 ; +0x18, 0x6e1c1c\nASRPL           R3, R3, #1                                             ; +0x1a, 0x6e1c1e\nLDRMI.W         R3, [R0,#0x124]                                        ; +0x1c, 0x6e1c20\nCBNZ            R3, loc_6E1C2E                                         ; +0x20, 0x6e1c24\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x22, 0x6e1c26\nBL              _ZN20MusicDownloadManager19getCustomContentURLEv; MusicDownloadManager::getCustomContentURL(void) ; +0x26, 0x6e1c2a\nMOV             R0, R4; this                                           ; +0x2a, 0x6e1c2e\nPOP.W           {R4,LR}                                                ; +0x2c, 0x6e1c30\nB.W             _ZN18AudioAssetsBrowser9setupListEv; AudioAssetsBrowser::setupList(void) ; +0x30, 0x6e1c34\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x34, 0x6e1c38\nLDRB.W          R3, [R0,#0x120]                                        ; +0x38, 0x6e1c3c\nLSLS            R2, R3, #0x1F                                          ; +0x3c, 0x6e1c40\nITE PL                                                                 ; +0x3e, 0x6e1c42\nASRPL           R3, R3, #1                                             ; +0x40, 0x6e1c44\nLDRMI.W         R3, [R0,#0x124]                                        ; +0x42, 0x6e1c46\nCBNZ            R3, loc_6E1C58                                         ; +0x46, 0x6e1c4a\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x48, 0x6e1c4c\nPOP.W           {R4,LR}                                                ; +0x4c, 0x6e1c50\nB.W             _ZN20MusicDownloadManager19getCustomContentURLEv; MusicDownloadManager::getCustomContentURL(void) ; +0x50, 0x6e1c54\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x54, 0x6e1c58\nPOP.W           {R4,LR}                                                ; +0x58, 0x6e1c5c\nB.W             _ZN20MusicDownloadManager18downloadSFXLibraryEv; MusicDownloadManager::downloadSFXLibrary(void) ; +0x5c, 0x6e1c60", "xrefs": ["AudioAssetsBrowser::musicActionFinished @ 0x6e1c64"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}