{"type": "func", "start": 5370197392, "end": 5370197574, "name": "CustomSongWidget::getSongInfoIfUnloaded", "pseudocode": "// \n// CustomSongWidget::getSongInfoIfUnloaded from 0x14016b590 to 0x14016b646 (182 bytes)\n// \n// 4 xrefs:\n// > AudioAssetsPopup::init @ 0x1400be1fc\n// > CustomSongLayer::init @ 0x1401648eb\n// > CustomSongLayer::onSearch @ 0x140164dc4\n// > <???> @ 0x1409180ec\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 11:27:29 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall CustomSongWidget::getSongInfoIfUnloaded(__int64 a1)\n{\n  __int64 v2; // rcx\n  void **v3; // rcx\n  __int64 result; // rax\n  char v5[8]; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v6; // [rsp+28h] [rbp-20h]\n  __int64 v7; // [rsp+30h] [rbp-18h]\n  __int64 v8; // [rsp+38h] [rbp-10h]\n\n  v2 = *(_QWORD *)(a1 + 336);\n  if ( v2 && *(_BYTE *)(v2 + 472) )\n  {\n    v6 = 0;\n    v7 = 7;\n    v8 = 15;\n    strcpy(v5, \"Loading\");\n    v3 = (void **)(v2 + 328);\n    if ( v3 != (void **)v5 )\n      sub_1400405A0(v3, v5, 7u);\n    sub_14003D310((__int64)v5);\n    CustomSongWidget::updateSongInfo(a1);\n    return CustomSongWidget::onGetSongInfo(a1, 0);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::getSongInfoIfUnloaded from 0x14016b590 to 0x14016b646 (182 bytes)\n; \n; 4 xrefs:\n; > AudioAssetsPopup::init @ 0x1400be1fc\n; > CustomSongLayer::init @ 0x1401648eb\n; > CustomSongLayer::onSearch @ 0x140164dc4\n; > <???> @ 0x1409180ec\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 11:27:29 +0000\n; \nmov     r11, rsp                                                       ; +0x0, 0x14016b590\npush    rbx                                                            ; +0x3, 0x14016b593\nsub     rsp, 40h                                                       ; +0x4, 0x14016b594\nmov     rbx, rcx                                                       ; +0x8, 0x14016b598\nmov     rcx, [rcx+150h]                                                ; +0xb, 0x14016b59b\ntest    rcx, rcx                                                       ; +0x12, 0x14016b5a2\njz      loc_14016B640                                                  ; +0x15, 0x14016b5a5\ncmp     byte ptr [rcx+1D8h], 0                                         ; +0x1b, 0x14016b5ab\njz      loc_14016B640                                                  ; +0x22, 0x14016b5b2\nmov     qword ptr [r11-20h], 0                                         ; +0x28, 0x14016b5b8\nmov     qword ptr [r11-18h], 7                                         ; +0x30, 0x14016b5c0\nmov     qword ptr [r11-10h], 0Fh                                       ; +0x38, 0x14016b5c8\nmov     rax, cs:qword_140744E28                                        ; +0x40, 0x14016b5d0\nmov     dword ptr [rsp+48h+var_28], eax                                ; +0x47, 0x14016b5d7\nmovzx   eax, word ptr cs:qword_140744E28+4                             ; +0x4b, 0x14016b5db\nmov     word ptr [rsp+48h+var_28+4], ax                                ; +0x52, 0x14016b5e2\nmovzx   eax, byte ptr cs:qword_140744E28+6                             ; +0x57, 0x14016b5e7\nmov     [rsp+48h+var_28+6], al                                         ; +0x5e, 0x14016b5ee\nmov     [rsp+48h+var_28+7], 0                                          ; +0x62, 0x14016b5f2\nlea     rax, [r11-28h]                                                 ; +0x67, 0x14016b5f7\nmov     [r11+8], rax                                                   ; +0x6b, 0x14016b5fb\nadd     rcx, 148h; void *                                              ; +0x6f, 0x14016b5ff\nlea     rax, [r11-28h]                                                 ; +0x76, 0x14016b606\ncmp     rcx, rax                                                       ; +0x7a, 0x14016b60a\njz      short loc_14016B61F                                            ; +0x7d, 0x14016b60d\nmov     r8d, 7; Size                                                   ; +0x7f, 0x14016b60f\nlea     rdx, [r11-28h]; Src                                            ; +0x85, 0x14016b615\ncall    sub_1400405A0                                                  ; +0x89, 0x14016b619\nnop                                                                    ; +0x8e, 0x14016b61e\nlea     rcx, [rsp+48h+var_28]                                          ; +0x8f, 0x14016b61f\ncall    sub_14003D310                                                  ; +0x94, 0x14016b624\nmov     rcx, rbx                                                       ; +0x99, 0x14016b629\ncall    CustomSongWidget__updateSongInfo                               ; +0x9c, 0x14016b62c\nxor     edx, edx                                                       ; +0xa1, 0x14016b631\nmov     rcx, rbx                                                       ; +0xa3, 0x14016b633\nadd     rsp, 40h                                                       ; +0xa6, 0x14016b636\npop     rbx                                                            ; +0xaa, 0x14016b63a\njmp     CustomSongWidget__onGetSongInfo                                ; +0xab, 0x14016b63b\nadd     rsp, 40h                                                       ; +0xb0, 0x14016b640\npop     rbx                                                            ; +0xb4, 0x14016b644\nretn                                                                   ; +0xb5, 0x14016b645", "xrefs": ["AudioAssetsPopup::init @ 0x1400be1fc", "CustomSongLayer::init @ 0x1401648eb", "CustomSongLayer::onSearch @ 0x140164dc4", "<???> @ 0x1409180ec"], "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"}