{"type": "func", "start": 4301393632, "end": 4301393815, "name": "CustomSongWidget::downloadSFXFailed", "pseudocode": "// \n// CustomSongWidget::downloadSFXFailed from 0x100620ee0 to 0x100620f97 (183 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100982268\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 __fastcall CustomSongWidget::downloadSFXFailed(CustomSongWidget *a1, int a2, GJSongError a3)\n{\n  std::__vector_base<GJAssetDownloadAction>::pointer begin; // rbx\n  std::__vector_base<GJAssetDownloadAction>::pointer end; // rax\n  size_t v5; // r14\n  __int128 v6; // [rsp+0h] [rbp-30h]\n\n  begin = a1->m_undownloadedAssets.__begin_;\n  end = a1->m_undownloadedAssets.__end_;\n  if ( begin != end )\n  {\n    v5 = (char *)end - (char *)begin - 19;\n    while ( begin->m_id != a2 || begin->m_assetType != User )\n    {\n      begin = (std::__vector_base<GJAssetDownloadAction>::pointer)((char *)begin + 16);\n      v5 -= 16LL;\n      if ( begin == end )\n        return;\n    }\n    ++begin->m_status;\n    LOBYTE(begin[1].m_id) = 0;\n    if ( &begin[1].m_assetType != (GJAssetType *)end )\n    {\n      *(_QWORD *)&v6 = *(_QWORD *)&begin->m_id;\n      DWORD2(v6) = begin->m_status;\n      BYTE12(v6) = begin[1].m_id;\n      memmove(begin, &begin[1].m_assetType, v5);\n      *(_QWORD *)((char *)&begin->m_id + v5 + 3) = v6;\n      *(_QWORD *)((char *)&begin->m_status + v5) = *(_QWORD *)((char *)&v6 + 5);\n    }\n    CustomSongWidget::processNextMultiAsset(a1);\n  }\n}", "assembly": "; \n; CustomSongWidget::downloadSFXFailed from 0x100620ee0 to 0x100620f97 (183 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100982268\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    rbp                                                            ; +0x0, 0x100620ee0\nmov     rbp, rsp                                                       ; +0x1, 0x100620ee1\npush    r15                                                            ; +0x4, 0x100620ee4\npush    r14                                                            ; +0x6, 0x100620ee6\npush    rbx                                                            ; +0x8, 0x100620ee8\nsub     rsp, 18h                                                       ; +0x9, 0x100620ee9\nmov     rbx, [rdi+240h]                                                ; +0xd, 0x100620eed\nmov     rax, [rdi+248h]                                                ; +0x14, 0x100620ef4\ncmp     rbx, rax                                                       ; +0x1b, 0x100620efb\njz      loc_100620F8C                                                  ; +0x1e, 0x100620efe\nmov     r14, rax                                                       ; +0x24, 0x100620f04\nsub     r14, rbx                                                       ; +0x27, 0x100620f07\nadd     r14, 0FFFFFFFFFFFFFFEDh                                        ; +0x2a, 0x100620f0a\njmp     short loc_100620F1D                                            ; +0x2e, 0x100620f0e\nadd     rbx, 10h                                                       ; +0x30, 0x100620f10\nadd     r14, 0FFFFFFFFFFFFFFF0h                                        ; +0x34, 0x100620f14\ncmp     rbx, rax                                                       ; +0x38, 0x100620f18\njz      short loc_100620F8C                                            ; +0x3b, 0x100620f1b\ncmp     [rbx], esi                                                     ; +0x3d, 0x100620f1d\njnz     short loc_100620F10                                            ; +0x3f, 0x100620f1f\ncmp     dword ptr [rbx+4], 2                                           ; +0x41, 0x100620f21\njnz     short loc_100620F10                                            ; +0x45, 0x100620f25\ninc     dword ptr [rbx+8]                                              ; +0x47, 0x100620f27\nmov     byte ptr [rbx+0Ch], 0                                          ; +0x4a, 0x100620f2a\nlea     rsi, [rbx+10h]; __src                                          ; +0x4e, 0x100620f2e\ncmp     rsi, rax                                                       ; +0x52, 0x100620f32\njz      short loc_100620F7D                                            ; +0x55, 0x100620f35\nmov     rax, [rbx]                                                     ; +0x57, 0x100620f37\nmov     [rbp+var_30], rax                                              ; +0x5a, 0x100620f3a\nmov     eax, [rbx+8]                                                   ; +0x5e, 0x100620f3e\nmov     [rbp+var_28], eax                                              ; +0x61, 0x100620f41\nmovzx   eax, byte ptr [rbx+0Ch]                                        ; +0x64, 0x100620f44\nmov     [rbp+var_24], al                                               ; +0x68, 0x100620f48\nmovzx   eax, word ptr [rbx+0Dh]                                        ; +0x6b, 0x100620f4b\nmov     [rbp+var_23], ax                                               ; +0x6f, 0x100620f4f\nmovzx   eax, byte ptr [rbx+0Fh]                                        ; +0x73, 0x100620f53\nmov     [rbp+var_21], al                                               ; +0x77, 0x100620f57\nmov     r15, rdi                                                       ; +0x7a, 0x100620f5a\nmov     rdi, rbx; __dst                                                ; +0x7d, 0x100620f5d\nmov     rdx, r14; __len                                                ; +0x80, 0x100620f60\ncall    _memmove                                                       ; +0x83, 0x100620f63\nmov     rdi, r15                                                       ; +0x88, 0x100620f68\nmov     rax, [rbp+var_30]                                              ; +0x8b, 0x100620f6b\nmov     rcx, [rbp+var_30+5]                                            ; +0x8f, 0x100620f6f\nmov     [r14+rbx+3], rax                                               ; +0x93, 0x100620f73\nmov     [r14+rbx+8], rcx                                               ; +0x98, 0x100620f78\nadd     rsp, 18h                                                       ; +0x9d, 0x100620f7d\npop     rbx                                                            ; +0xa1, 0x100620f81\npop     r14                                                            ; +0xa2, 0x100620f82\npop     r15                                                            ; +0xa4, 0x100620f84\npop     rbp                                                            ; +0xa6, 0x100620f86\njmp     CustomSongWidget__processNextMultiAsset                        ; +0xa7, 0x100620f87\nadd     rsp, 18h                                                       ; +0xac, 0x100620f8c\npop     rbx                                                            ; +0xb0, 0x100620f90\npop     r14                                                            ; +0xb1, 0x100620f91\npop     r15                                                            ; +0xb3, 0x100620f93\npop     rbp                                                            ; +0xb5, 0x100620f95\nretn                                                                   ; +0xb6, 0x100620f96", "xrefs": ["<???> @ 0x100982268"], "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"}