{"type": "func", "start": 4302287392, "end": 4302287614, "name": "CustomSongWidget::getSongInfoIfUnloaded", "pseudocode": "// \n// CustomSongWidget::getSongInfoIfUnloaded from 0x1006fb220 to 0x1006fb2fe (222 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::init @ 0x1001f8e4f\n// > CustomSongLayer::onSearch @ 0x1001f917f\n// > AudioAssetsPopup::init @ 0x1008b3a10\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:35:56 +0000\n// \n\nvoid __fastcall CustomSongWidget::getSongInfoIfUnloaded(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rdi\n  __int64 v4; // rax\n  std::string __str; // [rsp+0h] [rbp-20h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 336);\n  if ( v2 && *(_BYTE *)(v2 + 432) == 1 )\n  {\n    __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14;\n    strcpy(__str.__r_.__value_.__s.__data_, \"Loading\");\n    std::string::operator=((std::string *)(v2 + 320), &__str);\n    if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    CustomSongWidget::updateSongInfo(a1);\n    if ( *(_QWORD *)(a1 + 336) )\n    {\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 376) + 344LL))(*(_QWORD *)(a1 + 376), 0);\n      v3 = *(_QWORD *)(a1 + 480);\n      if ( v3 )\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);\n      v4 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::getSongInfo(v4, *(_DWORD *)(a1 + 504), 0);\n      (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 408) + 960LL))(*(_QWORD *)(a1 + 408), &unk_100A11C36);\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 408) + 1056LL))(*(_QWORD *)(a1 + 408), 0);\n    }\n  }\n}", "assembly": "; \n; CustomSongWidget::getSongInfoIfUnloaded from 0x1006fb220 to 0x1006fb2fe (222 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::init @ 0x1001f8e4f\n; > CustomSongLayer::onSearch @ 0x1001f917f\n; > AudioAssetsPopup::init @ 0x1008b3a10\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:35:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006fb220\nmov     rbp, rsp                                                       ; +0x1, 0x1006fb221\npush    rbx                                                            ; +0x4, 0x1006fb224\nsub     rsp, 18h                                                       ; +0x5, 0x1006fb225\nmov     rbx, rdi                                                       ; +0x9, 0x1006fb229\nmov     rdi, [rdi+150h]                                                ; +0xc, 0x1006fb22c\ntest    rdi, rdi                                                       ; +0x13, 0x1006fb233\njz      loc_1006FB2F7                                                  ; +0x16, 0x1006fb236\ncmp     byte ptr [rdi+1B0h], 1                                         ; +0x1c, 0x1006fb23c\njnz     loc_1006FB2F7                                                  ; +0x23, 0x1006fb243\nmov     byte ptr [rbp+__str.__r_.__value_], 0Eh                        ; +0x29, 0x1006fb249\nmov     dword ptr [rbp+__str.__r_.__value_+1], 64616F4Ch               ; +0x2d, 0x1006fb24d\nmov     dword ptr [rbp+__str.__r_.__value_+4], 676E6964h               ; +0x34, 0x1006fb254\nmov     byte ptr [rbp+__str.__r_.__value_+8], 0                        ; +0x3b, 0x1006fb25b\nadd     rdi, 140h; this                                                ; +0x3f, 0x1006fb25f\nlea     rsi, [rbp+__str]; __str                                        ; +0x46, 0x1006fb266\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x4a, 0x1006fb26a\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x4f, 0x1006fb26f\njz      short loc_1006FB27E                                            ; +0x53, 0x1006fb273\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x55, 0x1006fb275\ncall    __ZdlPv; operator delete(void *)                               ; +0x59, 0x1006fb279\nmov     rdi, rbx                                                       ; +0x5e, 0x1006fb27e\ncall    CustomSongWidget__updateSongInfo                               ; +0x61, 0x1006fb281\ncmp     qword ptr [rbx+150h], 0                                        ; +0x66, 0x1006fb286\njz      short loc_1006FB2F7                                            ; +0x6e, 0x1006fb28e\nmov     rdi, [rbx+178h]                                                ; +0x70, 0x1006fb290\nmov     rax, [rdi]                                                     ; +0x77, 0x1006fb297\nxor     esi, esi                                                       ; +0x7a, 0x1006fb29a\ncall    qword ptr [rax+158h]                                           ; +0x7c, 0x1006fb29c\nmov     rdi, [rbx+1E0h]                                                ; +0x82, 0x1006fb2a2\ntest    rdi, rdi                                                       ; +0x89, 0x1006fb2a9\njz      short loc_1006FB2B9                                            ; +0x8c, 0x1006fb2ac\nmov     rax, [rdi]                                                     ; +0x8e, 0x1006fb2ae\nxor     esi, esi                                                       ; +0x91, 0x1006fb2b1\ncall    qword ptr [rax+158h]                                           ; +0x93, 0x1006fb2b3\ncall    MusicDownloadManager__sharedState                              ; +0x99, 0x1006fb2b9\nmov     esi, [rbx+1F8h]                                                ; +0x9e, 0x1006fb2be\nmov     rdi, rax                                                       ; +0xa4, 0x1006fb2c4\nxor     edx, edx                                                       ; +0xa7, 0x1006fb2c7\ncall    MusicDownloadManager__getSongInfo                              ; +0xa9, 0x1006fb2c9\nmov     rdi, [rbx+198h]                                                ; +0xae, 0x1006fb2ce\nmov     rax, [rdi]                                                     ; +0xb5, 0x1006fb2d5\nlea     rsi, unk_100A11C36                                             ; +0xb8, 0x1006fb2d8\ncall    qword ptr [rax+3C0h]                                           ; +0xbf, 0x1006fb2df\nmov     rdi, [rbx+198h]                                                ; +0xc5, 0x1006fb2e5\nmov     rax, [rdi]                                                     ; +0xcc, 0x1006fb2ec\nxor     esi, esi                                                       ; +0xcf, 0x1006fb2ef\ncall    qword ptr [rax+420h]                                           ; +0xd1, 0x1006fb2f1\nadd     rsp, 18h                                                       ; +0xd7, 0x1006fb2f7\npop     rbx                                                            ; +0xdb, 0x1006fb2fb\npop     rbp                                                            ; +0xdc, 0x1006fb2fc\nretn                                                                   ; +0xdd, 0x1006fb2fd", "xrefs": ["CustomSongLayer::init @ 0x1001f8e4f", "CustomSongLayer::onSearch @ 0x1001f917f", "AudioAssetsPopup::init @ 0x1008b3a10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}