{"type": "func", "start": 5373425728, "end": 5373425888, "name": "SFXBrowser::musicActionFinished", "pseudocode": "// \n// SFXBrowser::musicActionFinished from 0x14047f840 to 0x14047f8e0 (160 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140604c00\n// > <???> @ 0x1406db99c\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 SFXBrowser::musicActionFinished(SFXBrowser *a1, GJMusicAction a2)\n{\n  MusicDownloadManager *v3; // rax\n  MusicDownloadManager *v4; // rax\n  MusicDownloadManager *v5; // rax\n\n  if ( a2 == DownloadOrUpdate && LOBYTE(a1->m_sTransform.tx) )\n  {\n    LOBYTE(a1->m_sInverse.d) = 1;\n    if ( !MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )\n    {\n      LOBYTE(a1->m_sTransform.tx) = 1;\nLABEL_5:\n      v3 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::getCustomContentURL(v3);\n      return;\n    }\n    LOBYTE(a1->m_sTransform.tx) = 0;\n    v4 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::tryUpdateSFXLibrary(v4);\n  }\n  else if ( MusicDownloadManager::sharedState()->m_sfxObjects )\n  {\n    SFXBrowser::setupSFXBrowser((SFXBrowser *)((char *)a1 - 632));\n  }\n  else\n  {\n    if ( !MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )\n      goto LABEL_5;\n    v5 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::downloadSFXLibrary(v5);\n  }\n}", "assembly": "; \n; SFXBrowser::musicActionFinished from 0x14047f840 to 0x14047f8e0 (160 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140604c00\n; > <???> @ 0x1406db99c\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, 0x14047f840\nsub     rsp, 20h                                                       ; +0x2, 0x14047f842\nmov     rbx, rcx                                                       ; +0x6, 0x14047f846\ncmp     edx, 2                                                         ; +0x9, 0x14047f849\njnz     short loc_14047F89F                                            ; +0xc, 0x14047f84c\ncmp     byte ptr [rcx+9Ch], 0                                          ; +0xe, 0x14047f84e\njz      short loc_14047F89F                                            ; +0x15, 0x14047f855\nmov     byte ptr [rcx+0B0h], 1                                         ; +0x17, 0x14047f857\ncall    MusicDownloadManager__sharedState                              ; +0x1e, 0x14047f85e\ncmp     qword ptr [rax+180h], 0                                        ; +0x23, 0x14047f863\njnz     short loc_14047F886                                            ; +0x2b, 0x14047f86b\nmov     byte ptr [rbx+9Ch], 1                                          ; +0x2d, 0x14047f86d\ncall    MusicDownloadManager__sharedState                              ; +0x34, 0x14047f874\nmov     rcx, rax                                                       ; +0x39, 0x14047f879\nadd     rsp, 20h                                                       ; +0x3c, 0x14047f87c\npop     rbx                                                            ; +0x40, 0x14047f880\njmp     MusicDownloadManager__getCustomContentURL                      ; +0x41, 0x14047f881\nmov     byte ptr [rbx+9Ch], 0                                          ; +0x46, 0x14047f886\ncall    MusicDownloadManager__sharedState                              ; +0x4d, 0x14047f88d\nmov     rcx, rax                                                       ; +0x52, 0x14047f892\nadd     rsp, 20h                                                       ; +0x55, 0x14047f895\npop     rbx                                                            ; +0x59, 0x14047f899\njmp     MusicDownloadManager__tryUpdateSFXLibrary                      ; +0x5a, 0x14047f89a\ncall    MusicDownloadManager__sharedState                              ; +0x5f, 0x14047f89f\ncmp     qword ptr [rax+190h], 0                                        ; +0x64, 0x14047f8a4\njz      short loc_14047F8BF                                            ; +0x6c, 0x14047f8ac\nlea     rcx, [rbx-278h]                                                ; +0x6e, 0x14047f8ae\nadd     rsp, 20h                                                       ; +0x75, 0x14047f8b5\npop     rbx                                                            ; +0x79, 0x14047f8b9\njmp     SFXBrowser__setupSFXBrowser                                    ; +0x7a, 0x14047f8ba\ncall    MusicDownloadManager__sharedState                              ; +0x7f, 0x14047f8bf\ncmp     qword ptr [rax+180h], 0                                        ; +0x84, 0x14047f8c4\njz      short loc_14047F874                                            ; +0x8c, 0x14047f8cc\ncall    MusicDownloadManager__sharedState                              ; +0x8e, 0x14047f8ce\nmov     rcx, rax                                                       ; +0x93, 0x14047f8d3\nadd     rsp, 20h                                                       ; +0x96, 0x14047f8d6\npop     rbx                                                            ; +0x9a, 0x14047f8da\njmp     MusicDownloadManager__downloadSFXLibrary                       ; +0x9b, 0x14047f8db", "xrefs": ["<???> @ 0x140604c00", "<???> @ 0x1406db99c"], "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"}