{"type": "func", "start": 5372091776, "end": 5372091888, "name": "MusicBrowser::musicActionFinished", "pseudocode": "// \n// MusicBrowser::musicActionFinished from 0x140339d80 to 0x140339df0 (112 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405abb10\n// > <???> @ 0x1406d5360\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 MusicBrowser::musicActionFinished(MusicBrowser *a1, GJMusicAction a2)\n{\n  MusicDownloadManager *v3; // rax\n  MusicDownloadManager *v4; // rax\n\n  if ( a2 == DownloadOrUpdate && LOBYTE(a1->m_sTransform.b) )\n  {\n    LOBYTE(a1->m_sInverse.ty) = 1;\n    if ( MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )\n    {\n      LOBYTE(a1->m_sTransform.b) = 0;\n      v4 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::tryUpdateMusicLibrary(v4);\n    }\n    else\n    {\n      LOBYTE(a1->m_sTransform.b) = 1;\n      v3 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::getCustomContentURL(v3);\n    }\n  }\n  else\n  {\n    MusicBrowser::trySetupMusicBrowser((MusicBrowser *)((char *)a1 - 632));\n  }\n}", "assembly": "; \n; MusicBrowser::musicActionFinished from 0x140339d80 to 0x140339df0 (112 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405abb10\n; > <???> @ 0x1406d5360\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    rbx                                                            ; +0x0, 0x140339d80\nsub     rsp, 20h                                                       ; +0x2, 0x140339d82\nmov     rbx, rcx                                                       ; +0x6, 0x140339d86\ncmp     edx, 2                                                         ; +0x9, 0x140339d89\njnz     short loc_140339DDF                                            ; +0xc, 0x140339d8c\ncmp     byte ptr [rcx+90h], 0                                          ; +0xe, 0x140339d8e\njz      short loc_140339DDF                                            ; +0x15, 0x140339d95\nmov     byte ptr [rcx+0B8h], 1                                         ; +0x17, 0x140339d97\ncall    MusicDownloadManager__sharedState                              ; +0x1e, 0x140339d9e\ncmp     qword ptr [rax+180h], 0                                        ; +0x23, 0x140339da3\njnz     short loc_140339DC6                                            ; +0x2b, 0x140339dab\nmov     byte ptr [rbx+90h], 1                                          ; +0x2d, 0x140339dad\ncall    MusicDownloadManager__sharedState                              ; +0x34, 0x140339db4\nmov     rcx, rax                                                       ; +0x39, 0x140339db9\nadd     rsp, 20h                                                       ; +0x3c, 0x140339dbc\npop     rbx                                                            ; +0x40, 0x140339dc0\njmp     MusicDownloadManager__getCustomContentURL                      ; +0x41, 0x140339dc1\nmov     byte ptr [rbx+90h], 0                                          ; +0x46, 0x140339dc6\ncall    MusicDownloadManager__sharedState                              ; +0x4d, 0x140339dcd\nmov     rcx, rax                                                       ; +0x52, 0x140339dd2\nadd     rsp, 20h                                                       ; +0x55, 0x140339dd5\npop     rbx                                                            ; +0x59, 0x140339dd9\njmp     MusicDownloadManager__tryUpdateMusicLibrary                    ; +0x5a, 0x140339dda\nadd     rcx, 0FFFFFFFFFFFFFD88h                                        ; +0x5f, 0x140339ddf\nadd     rsp, 20h                                                       ; +0x66, 0x140339de6\npop     rbx                                                            ; +0x6a, 0x140339dea\njmp     MusicBrowser__trySetupMusicBrowser                             ; +0x6b, 0x140339deb", "xrefs": ["<???> @ 0x1405abb10", "<???> @ 0x1406d5360"], "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"}