{"type": "func", "start": 5372091360, "end": 5372091446, "name": "MusicBrowser::onUpdateLibrary", "pseudocode": "// \n// MusicBrowser::onUpdateLibrary from 0x140339be0 to 0x140339c36 (86 bytes)\n// \n// 2 xrefs:\n// > MusicBrowser::init @ 0x140338d79\n// > <???> @ 0x1406d5348\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::onUpdateLibrary(MusicBrowser *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::tryUpdateMusicLibrary(v4);\n  }\n  else\n  {\n    a1->m_gettingURL = 1;\n    v3 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::getCustomContentURL(v3);\n  }\n}", "assembly": "; \n; MusicBrowser::onUpdateLibrary from 0x140339be0 to 0x140339c36 (86 bytes)\n; \n; 2 xrefs:\n; > MusicBrowser::init @ 0x140338d79\n; > <???> @ 0x1406d5348\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, 0x140339be0\nsub     rsp, 20h                                                       ; +0x2, 0x140339be2\ntest    rdx, rdx                                                       ; +0x6, 0x140339be6\nmov     rbx, rcx                                                       ; +0x9, 0x140339be9\nsetz    al                                                             ; +0xc, 0x140339bec\nmov     [rcx+330h], al                                                 ; +0xf, 0x140339bef\ncall    MusicDownloadManager__sharedState                              ; +0x15, 0x140339bf5\ncmp     qword ptr [rax+180h], 0                                        ; +0x1a, 0x140339bfa\njnz     short loc_140339C1D                                            ; +0x22, 0x140339c02\nmov     byte ptr [rbx+308h], 1                                         ; +0x24, 0x140339c04\ncall    MusicDownloadManager__sharedState                              ; +0x2b, 0x140339c0b\nmov     rcx, rax                                                       ; +0x30, 0x140339c10\nadd     rsp, 20h                                                       ; +0x33, 0x140339c13\npop     rbx                                                            ; +0x37, 0x140339c17\njmp     MusicDownloadManager__getCustomContentURL                      ; +0x38, 0x140339c18\nmov     byte ptr [rbx+308h], 0                                         ; +0x3d, 0x140339c1d\ncall    MusicDownloadManager__sharedState                              ; +0x44, 0x140339c24\nmov     rcx, rax                                                       ; +0x49, 0x140339c29\nadd     rsp, 20h                                                       ; +0x4c, 0x140339c2c\npop     rbx                                                            ; +0x50, 0x140339c30\njmp     MusicDownloadManager__tryUpdateMusicLibrary                    ; +0x51, 0x140339c31", "xrefs": ["MusicBrowser::init @ 0x140338d79", "<???> @ 0x1406d5348"], "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"}