{"type": "func", "start": 7640504, "end": 7640732, "name": "CustomSongWidget::loadSongInfoFailed", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFailed from 0x7495b8 to 0x74969c (228 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x7496a0\n// > <???> @ 0x4e840\n// > <???> @ 0x1161908\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::loadSongInfoFailed(CustomSongWidget *a1, int a2, GJSongError a3)\n{\n  std::_Rb_tree_node_base *p_M_header; // x4\n  std::set<int> *p_m_nextSongIDs; // x20\n  std::_Rb_tree_node_base::_Base_ptr M_parent; // x0\n  std::_Rb_tree_node_base *v8; // x3\n  _QWORD *v9; // x0\n  _QWORD *v10; // x1\n  int v11; // [xsp+3Ch] [xbp+3Ch] BYREF\n\n  p_M_header = &a1->m_nextSongIDs._M_t._M_impl._M_header;\n  p_m_nextSongIDs = &a1->m_nextSongIDs;\n  M_parent = a1->m_nextSongIDs._M_t._M_impl._M_header._M_parent;\n  v11 = a2;\n  if ( !M_parent )\n    goto LABEL_15;\n  v8 = p_M_header;\n  do\n  {\n    while ( (int)M_parent[1]._M_color >= a2 )\n    {\n      v8 = M_parent;\n      M_parent = M_parent->_M_left;\n      if ( !M_parent )\n        goto LABEL_5;\n    }\n    M_parent = M_parent->_M_right;\n  }\n  while ( M_parent );\nLABEL_5:\n  if ( p_M_header == v8 || (int)v8[1]._M_color > a2 )\n  {\nLABEL_15:\n    if ( CustomSongWidget::verifySongID(a1, a2) )\n    {\n      CustomSongWidget::updateError(a1, a3);\n      CustomSongWidget::downloadFailed(a1);\n    }\n  }\n  else\n  {\n    v9 = (_QWORD *)std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::equal_range(\n                     (__int64)p_m_nextSongIDs,\n                     &v11);\n    std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::_M_erase_aux(\n      p_m_nextSongIDs,\n      v9,\n      v10);\n    a1->downloadSongFailed(a1, v11, a3);\n  }\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFailed from 0x7495b8 to 0x74969c (228 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x7496a0\n; > <???> @ 0x4e840\n; > <???> @ 0x1161908\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_40]!                                ; +0x0, 0x7495b8\nADD             X4, X0, #0x298                                         ; +0x4, 0x7495bc\nMOV             X29, SP                                                ; +0x8, 0x7495c0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x7495c4\nMOV             X19, X0                                                ; +0x10, 0x7495c8\nADD             X20, X0, #0x290                                        ; +0x14, 0x7495cc\nLDR             X0, [X0,#0x2A0]                                        ; +0x18, 0x7495d0\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x1c, 0x7495d4\nMOV             W21, W2                                                ; +0x20, 0x7495d8\nSTR             W1, [X29,#0x40+var_4]                                  ; +0x24, 0x7495dc\nCBZ             X0, loc_749668                                         ; +0x28, 0x7495e0\nMOV             X3, X4                                                 ; +0x2c, 0x7495e4\nLDR             W2, [X0,#0x20]                                         ; +0x30, 0x7495e8\nCMP             W2, W1                                                 ; +0x34, 0x7495ec\nB.LT            loc_74965C                                             ; +0x38, 0x7495f0\nMOV             X3, X0                                                 ; +0x3c, 0x7495f4\nLDR             X0, [X0,#0x10]                                         ; +0x40, 0x7495f8\nCBNZ            X0, loc_7495E8                                         ; +0x44, 0x7495fc\nCMP             X4, X3                                                 ; +0x48, 0x749600\nB.EQ            loc_749668                                             ; +0x4c, 0x749604\nLDR             W0, [X3,#0x20]                                         ; +0x50, 0x749608\nCMP             W0, W1                                                 ; +0x54, 0x74960c\nB.GT            loc_749668                                             ; +0x58, 0x749610\nMOV             X0, X20                                                ; +0x5c, 0x749614\nADD             X1, X29, #0x40+var_4                                   ; +0x60, 0x749618\nBL              _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE11equal_rangeERKi; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::equal_range(int const&) ; +0x64, 0x74961c\nMOV             X3, X0                                                 ; +0x68, 0x749620\nMOV             X2, X1                                                 ; +0x6c, 0x749624\nMOV             X0, X20                                                ; +0x70, 0x749628\nMOV             X1, X3                                                 ; +0x74, 0x74962c\nBL              _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE12_M_erase_auxESt23_Rb_tree_const_iteratorIiES7_; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::_M_erase_aux(std::_Rb_tree_const_iterator<int>,std::_Rb_tree_const_iterator<int>) ; +0x78, 0x749630\nLDR             X3, [X19]                                              ; +0x7c, 0x749634\nMOV             X0, X19                                                ; +0x80, 0x749638\nLDR             W1, [X29,#0x40+var_4]                                  ; +0x84, 0x74963c\nMOV             W2, W21                                                ; +0x88, 0x749640\nLDR             X3, [X3,#0x390]                                        ; +0x8c, 0x749644\nBLR             X3                                                     ; +0x90, 0x749648\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0x74964c\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x98, 0x749650\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x9c, 0x749654\nRET                                                                    ; +0xa0, 0x749658\nLDR             X0, [X0,#0x18]                                         ; +0xa4, 0x74965c\nCBNZ            X0, loc_7495E8                                         ; +0xa8, 0x749660\nB               loc_749600                                             ; +0xac, 0x749664\nMOV             X0, X19; this                                          ; +0xb0, 0x749668\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0xb4, 0x74966c\nUXTB            W0, W0                                                 ; +0xb8, 0x749670\nCBZ             W0, loc_74964C                                         ; +0xbc, 0x749674\nMOV             W1, W21                                                ; +0xc0, 0x749678\nMOV             X0, X19                                                ; +0xc4, 0x74967c\nBL              _ZN16CustomSongWidget11updateErrorE11GJSongError; CustomSongWidget::updateError(GJSongError) ; +0xc8, 0x749680\nMOV             X0, X19; this                                          ; +0xcc, 0x749684\nBL              _ZN16CustomSongWidget14downloadFailedEv; CustomSongWidget::downloadFailed(void) ; +0xd0, 0x749688\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xd4, 0x74968c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd8, 0x749690\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xdc, 0x749694\nRET                                                                    ; +0xe0, 0x749698", "xrefs": ["`non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x7496a0", "<???> @ 0x4e840", "<???> @ 0x1161908"], "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"}