{"type": "func", "start": 7636160, "end": 7636296, "name": "CustomSongWidget::downloadAssetFailed", "pseudocode": "// \n// CustomSongWidget::downloadAssetFailed from 0x7484c0 to 0x748548 (136 bytes)\n// \n// 3 xrefs:\n// > CustomSongWidget::downloadSongFailed @ 0x7485a8\n// > CustomSongWidget::downloadSFXFailed @ 0x7485bc\n// > <???> @ 0x65250\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  GJAssetDownloadAction *m_start; // x3\n  GJAssetDownloadAction *m_finish; // x5\n  int v7; // w4\n\n  m_start = a1->m_undownloadedAssets.m_start;\n  m_finish = a1->m_undownloadedAssets.m_finish;\n  if ( m_start != m_finish )\n  {\n    while ( m_start->m_id != a2 || m_start->m_assetType != a3 )\n    {\n      m_start = (GJAssetDownloadAction *)((char *)m_start + 16);\n      if ( m_finish == m_start )\n        return;\n    }\n    v7 = m_start->m_status + 1;\n    LOBYTE(m_start[1].m_id) = 0;\n    m_start->m_status = v7;\n    std::__rotate<__gnu_cxx::__normal_iterator<GJAssetDownloadAction *,std::vector<GJAssetDownloadAction>>>(\n      (__int64)m_start,\n      &m_start[1].m_assetType,\n      m_finish);\n    CustomSongWidget::processNextMultiAsset(a1);\n  }\n}", "assembly": "; \n; CustomSongWidget::downloadAssetFailed from 0x7484c0 to 0x748548 (136 bytes)\n; \n; 3 xrefs:\n; > CustomSongWidget::downloadSongFailed @ 0x7485a8\n; > CustomSongWidget::downloadSFXFailed @ 0x7485bc\n; > <???> @ 0x65250\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x7484c0\nMOV             X29, SP                                                ; +0x4, 0x7484c4\nLDR             X3, [X0,#0x270]                                        ; +0x8, 0x7484c8\nLDR             X5, [X0,#0x278]                                        ; +0xc, 0x7484cc\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x10, 0x7484d0\nCMP             X3, X5                                                 ; +0x14, 0x7484d4\nB.NE            loc_7484EC                                             ; +0x18, 0x7484d8\nB               loc_74853C                                             ; +0x1c, 0x7484dc\nADD             X3, X3, #0x10                                          ; +0x20, 0x7484e0\nCMP             X5, X3                                                 ; +0x24, 0x7484e4\nB.EQ            loc_74853C                                             ; +0x28, 0x7484e8\nLDR             W4, [X3]                                               ; +0x2c, 0x7484ec\nCMP             W4, W1                                                 ; +0x30, 0x7484f0\nB.NE            loc_7484E0                                             ; +0x34, 0x7484f4\nLDR             W4, [X3,#4]                                            ; +0x38, 0x7484f8\nCMP             W4, W2                                                 ; +0x3c, 0x7484fc\nB.NE            loc_7484E0                                             ; +0x40, 0x748500\nLDR             W4, [X3,#8]                                            ; +0x44, 0x748504\nMOV             X19, X0                                                ; +0x48, 0x748508\nADD             X1, X3, #0x10                                          ; +0x4c, 0x74850c\nMOV             X0, X3                                                 ; +0x50, 0x748510\nADD             W4, W4, #1                                             ; +0x54, 0x748514\nSTRB            WZR, [X3,#0xC]                                         ; +0x58, 0x748518\nSTR             W4, [X3,#8]                                            ; +0x5c, 0x74851c\nMOV             X2, X5                                                 ; +0x60, 0x748520\nMOV             W3, #0                                                 ; +0x64, 0x748524\nBL              _ZSt8__rotateIN9__gnu_cxx17__normal_iteratorIP21GJAssetDownloadActionSt6vectorIS2_SaIS2_EEEEEvT_S8_S8_St26random_access_iterator_tag; std::__rotate<__gnu_cxx::__normal_iterator<GJAssetDownloadAction *,std::vector<GJAssetDownloadAction>>>(__gnu_cxx::__normal_iterator<GJAssetDownloadAction *,std::vector<GJAssetDownloadAction>>,__gnu_cxx::__normal_iterator<GJAssetDownloadAction *,std::vector<GJAssetDownloadAction>>,__gnu_cxx::__normal_iterator<GJAssetDownloadAction *,std::vector<GJAssetDownloadAction>>,std::random_access_iterator_tag) ; +0x68, 0x748528\nMOV             X0, X19; this                                          ; +0x6c, 0x74852c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x70, 0x748530\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0x748534\nB               _ZN16CustomSongWidget21processNextMultiAssetEv; CustomSongWidget::processNextMultiAsset(void) ; +0x78, 0x748538\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0x74853c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x80, 0x748540\nRET                                                                    ; +0x84, 0x748544", "xrefs": ["CustomSongWidget::downloadSongFailed @ 0x7485a8", "CustomSongWidget::downloadSFXFailed @ 0x7485bc", "<???> @ 0x65250"], "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"}