{"type": "func", "start": 5373425040, "end": 5373425126, "name": "SFXBrowser::onUpdateLibrary", "pseudocode": "// \n// SFXBrowser::onUpdateLibrary from 0x14047f590 to 0x14047f5e6 (86 bytes)\n// \n// 2 xrefs:\n// > SFXBrowser::init @ 0x14047ef02\n// > <???> @ 0x1406db978\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::onUpdateLibrary(SFXBrowser *a1, cocos2d::CCObject *a2)\n{\n  MusicDownloadManager *v3; // rax\n  MusicDownloadManager *v4; // rax\n\n  a1->m_autoUpdating = a2 == nullptr;\n  if ( MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )\n  {\n    a1->m_gettingURL = 0;\n    v4 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::tryUpdateSFXLibrary(v4);\n  }\n  else\n  {\n    a1->m_gettingURL = 1;\n    v3 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::getCustomContentURL(v3);\n  }\n}", "assembly": "; \n; SFXBrowser::onUpdateLibrary from 0x14047f590 to 0x14047f5e6 (86 bytes)\n; \n; 2 xrefs:\n; > SFXBrowser::init @ 0x14047ef02\n; > <???> @ 0x1406db978\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, 0x14047f590\nsub     rsp, 20h                                                       ; +0x2, 0x14047f592\ntest    rdx, rdx                                                       ; +0x6, 0x14047f596\nmov     rbx, rcx                                                       ; +0x9, 0x14047f599\nsetz    al                                                             ; +0xc, 0x14047f59c\nmov     [rcx+328h], al                                                 ; +0xf, 0x14047f59f\ncall    MusicDownloadManager__sharedState                              ; +0x15, 0x14047f5a5\ncmp     qword ptr [rax+180h], 0                                        ; +0x1a, 0x14047f5aa\njnz     short loc_14047F5CD                                            ; +0x22, 0x14047f5b2\nmov     byte ptr [rbx+314h], 1                                         ; +0x24, 0x14047f5b4\ncall    MusicDownloadManager__sharedState                              ; +0x2b, 0x14047f5bb\nmov     rcx, rax                                                       ; +0x30, 0x14047f5c0\nadd     rsp, 20h                                                       ; +0x33, 0x14047f5c3\npop     rbx                                                            ; +0x37, 0x14047f5c7\njmp     MusicDownloadManager__getCustomContentURL                      ; +0x38, 0x14047f5c8\nmov     byte ptr [rbx+314h], 0                                         ; +0x3d, 0x14047f5cd\ncall    MusicDownloadManager__sharedState                              ; +0x44, 0x14047f5d4\nmov     rcx, rax                                                       ; +0x49, 0x14047f5d9\nadd     rsp, 20h                                                       ; +0x4c, 0x14047f5dc\npop     rbx                                                            ; +0x50, 0x14047f5e0\njmp     MusicDownloadManager__tryUpdateSFXLibrary                      ; +0x51, 0x14047f5e1", "xrefs": ["SFXBrowser::init @ 0x14047ef02", "<???> @ 0x1406db978"], "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"}