{"type": "func", "start": 5369550176, "end": 5369550383, "name": "CustomSongWidget::downloadAssetFailed", "pseudocode": "// \n// CustomSongWidget::downloadAssetFailed from 0x1400cd560 to 0x1400cd62f (207 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::downloadSongFailed @ 0x1400cd004\n// > CustomSongWidget::downloadSFXFailed @ 0x1400cd08d\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 CustomSongWidget::downloadAssetFailed(CustomSongWidget *a1, int a2, GJAssetType a3, GJSongError a4)\n{\n  std::_Vector_val<std::_Simple_types<GJAssetDownloadAction>>::pointer Mylast; // rax\n  std::_Vector_val<std::_Simple_types<GJAssetDownloadAction>>::pointer Myfirst; // r9\n  GJAssetType *p_m_assetType; // rdx\n  std::_Vector_val<std::_Simple_types<GJAssetDownloadAction>>::pointer v8; // rax\n  _OWORD *p_m_id; // r8\n  GJAssetType *v10; // rcx\n  __int128 v11; // xmm1\n  _OWORD *v12; // rcx\n  __int128 v13; // xmm1\n  __int128 v14; // xmm1\n\n  Mylast = a1->m_undownloadedAssets._Mypair._Myval2._Mylast;\n  Myfirst = a1->m_undownloadedAssets._Mypair._Myval2._Myfirst;\n  if ( Myfirst != Mylast )\n  {\n    while ( Myfirst->m_id != a2 || Myfirst->m_assetType != a3 )\n    {\n      Myfirst = (std::_Vector_val<std::_Simple_types<GJAssetDownloadAction>>::pointer)((char *)Myfirst + 16);\n      if ( Myfirst == Mylast )\n        return;\n    }\n    ++Myfirst->m_status;\n    p_m_assetType = &Myfirst[1].m_assetType;\n    LOBYTE(Myfirst[1].m_id) = 0;\n    v8 = a1->m_undownloadedAssets._Mypair._Myval2._Mylast;\n    if ( &Myfirst[1].m_assetType != (GJAssetType *)v8 )\n    {\n      p_m_id = &Myfirst->m_id;\n      v10 = &Myfirst[1].m_assetType;\n      do\n      {\n        v10 -= 4;\n        if ( p_m_id == (_OWORD *)v10 )\n          break;\n        v11 = *p_m_id;\n        *p_m_id++ = *(_OWORD *)v10;\n        *(_OWORD *)v10 = v11;\n      }\n      while ( p_m_id != (_OWORD *)v10 );\n      v12 = &v8->m_id;\n      do\n      {\n        if ( p_m_assetType == (GJAssetType *)--v12 )\n          break;\n        v13 = *(_OWORD *)p_m_assetType;\n        *(_OWORD *)p_m_assetType = *v12;\n        p_m_assetType += 4;\n        *v12 = v13;\n      }\n      while ( p_m_assetType != (GJAssetType *)v12 );\n      for ( ; Myfirst != v8; *(_OWORD *)&v8->m_id = v14 )\n      {\n        v8 = (std::_Vector_val<std::_Simple_types<GJAssetDownloadAction>>::pointer)((char *)v8 - 16);\n        if ( Myfirst == v8 )\n          break;\n        v14 = *(_OWORD *)&Myfirst->m_id;\n        *(_OWORD *)&Myfirst->m_id = *(_OWORD *)&v8->m_id;\n        Myfirst = (std::_Vector_val<std::_Simple_types<GJAssetDownloadAction>>::pointer)((char *)Myfirst + 16);\n      }\n    }\n    CustomSongWidget::processNextMultiAsset(a1);\n  }\n}", "assembly": "; \n; CustomSongWidget::downloadAssetFailed from 0x1400cd560 to 0x1400cd62f (207 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::downloadSongFailed @ 0x1400cd004\n; > CustomSongWidget::downloadSFXFailed @ 0x1400cd08d\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\nmov     rax, [rcx+238h]                                                ; +0x0, 0x1400cd560\nmov     r10, rcx                                                       ; +0x7, 0x1400cd567\nmov     r9, [rcx+230h]                                                 ; +0xa, 0x1400cd56a\ncmp     r9, rax                                                        ; +0x11, 0x1400cd571\njz      locret_1400CD62E                                               ; +0x14, 0x1400cd574\nnop     word ptr [rax+rax+00h]                                         ; +0x1a, 0x1400cd57a\ncmp     [r9], edx                                                      ; +0x20, 0x1400cd580\njnz     short loc_1400CD58B                                            ; +0x23, 0x1400cd583\ncmp     [r9+4], r8d                                                    ; +0x25, 0x1400cd585\njz      short loc_1400CD595                                            ; +0x29, 0x1400cd589\nadd     r9, 10h                                                        ; +0x2b, 0x1400cd58b\ncmp     r9, rax                                                        ; +0x2f, 0x1400cd58f\njnz     short loc_1400CD580                                            ; +0x32, 0x1400cd592\nretn                                                                   ; +0x34, 0x1400cd594\ninc     dword ptr [r9+8]                                               ; +0x35, 0x1400cd595\nlea     rdx, [r9+10h]                                                  ; +0x39, 0x1400cd599\nmov     byte ptr [r9+0Ch], 0                                           ; +0x3d, 0x1400cd59d\nmov     rax, [rcx+238h]                                                ; +0x42, 0x1400cd5a2\ncmp     r9, rdx                                                        ; +0x49, 0x1400cd5a9\njz      short loc_1400CD626                                            ; +0x4c, 0x1400cd5ac\ncmp     rdx, rax                                                       ; +0x4e, 0x1400cd5ae\njz      short loc_1400CD626                                            ; +0x51, 0x1400cd5b1\nmov     r8, r9                                                         ; +0x53, 0x1400cd5b3\nmov     rcx, rdx                                                       ; +0x56, 0x1400cd5b6\nnop     dword ptr [rax+00000000h]                                      ; +0x59, 0x1400cd5b9\nsub     rcx, 10h                                                       ; +0x60, 0x1400cd5c0\ncmp     r8, rcx                                                        ; +0x64, 0x1400cd5c4\njz      short loc_1400CD5E0                                            ; +0x67, 0x1400cd5c7\nmovups  xmm1, xmmword ptr [r8]                                         ; +0x69, 0x1400cd5c9\nmovups  xmm0, xmmword ptr [rcx]                                        ; +0x6d, 0x1400cd5cd\nmovups  xmmword ptr [r8], xmm0                                         ; +0x70, 0x1400cd5d0\nadd     r8, 10h                                                        ; +0x74, 0x1400cd5d4\nmovups  xmmword ptr [rcx], xmm1                                        ; +0x78, 0x1400cd5d8\ncmp     r8, rcx                                                        ; +0x7b, 0x1400cd5db\njnz     short loc_1400CD5C0                                            ; +0x7e, 0x1400cd5de\nmov     rcx, rax                                                       ; +0x80, 0x1400cd5e0\nsub     rcx, 10h                                                       ; +0x83, 0x1400cd5e3\ncmp     rdx, rcx                                                       ; +0x87, 0x1400cd5e7\njz      short loc_1400CD601                                            ; +0x8a, 0x1400cd5ea\nmovups  xmm1, xmmword ptr [rdx]                                        ; +0x8c, 0x1400cd5ec\nmovups  xmm0, xmmword ptr [rcx]                                        ; +0x8f, 0x1400cd5ef\nmovups  xmmword ptr [rdx], xmm0                                        ; +0x92, 0x1400cd5f2\nadd     rdx, 10h                                                       ; +0x95, 0x1400cd5f5\nmovups  xmmword ptr [rcx], xmm1                                        ; +0x99, 0x1400cd5f9\ncmp     rdx, rcx                                                       ; +0x9c, 0x1400cd5fc\njnz     short loc_1400CD5E3                                            ; +0x9f, 0x1400cd5ff\ncmp     r9, rax                                                        ; +0xa1, 0x1400cd601\njz      short loc_1400CD626                                            ; +0xa4, 0x1400cd604\nsub     rax, 10h                                                       ; +0xa6, 0x1400cd606\ncmp     r9, rax                                                        ; +0xaa, 0x1400cd60a\njz      short loc_1400CD626                                            ; +0xad, 0x1400cd60d\nmovups  xmm1, xmmword ptr [r9]                                         ; +0xaf, 0x1400cd60f\nmovups  xmm0, xmmword ptr [rax]                                        ; +0xb3, 0x1400cd613\nmovups  xmmword ptr [r9], xmm0                                         ; +0xb6, 0x1400cd616\nadd     r9, 10h                                                        ; +0xba, 0x1400cd61a\nmovups  xmmword ptr [rax], xmm1                                        ; +0xbe, 0x1400cd61e\ncmp     r9, rax                                                        ; +0xc1, 0x1400cd621\njnz     short loc_1400CD606                                            ; +0xc4, 0x1400cd624\nmov     rcx, r10                                                       ; +0xc6, 0x1400cd626\njmp     CustomSongWidget__processNextMultiAsset                        ; +0xc9, 0x1400cd629\nretn                                                                   ; +0xce, 0x1400cd62e", "xrefs": ["CustomSongWidget::downloadSongFailed @ 0x1400cd004", "CustomSongWidget::downloadSFXFailed @ 0x1400cd08d"], "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"}