{"type": "func", "start": 4065124, "end": 4065208, "name": "CustomSongWidget::loadSongInfoFailed", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFailed from 0x3e0764 to 0x3e07b8 (84 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x3e07bc\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::set<int> *p_m_nextSongIDs; // r7\n  int v6[2]; // [sp+4h] [bp-8h] BYREF\n\n  v6[1] = a3;\n  p_m_nextSongIDs = &a1->m_nextSongIDs;\n  v6[0] = a2;\n  if ( &a1->m_nextSongIDs._M_t._M_impl._M_header == (std::_Rb_tree_node_base *)std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::find(\n                                                                                 (int)&a1->m_nextSongIDs,\n                                                                                 v6) )\n  {\n    if ( CustomSongWidget::verifySongID(a1, v6[0]) )\n    {\n      CustomSongWidget::updateError(a1, a3);\n      CustomSongWidget::downloadFailed(a1);\n    }\n  }\n  else\n  {\n    std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::erase(p_m_nextSongIDs, v6);\n    a1->downloadSongFailed(a1, v6[0], a3);\n  }\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFailed from 0x3e0764 to 0x3e07b8 (84 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x3e07bc\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            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x3e0764\nADD.W           R7, R0, #0x1B8                                         ; +0x2, 0x3e0766\nADD             R5, SP, #0xC+var_4                                     ; +0x6, 0x3e076a\nMOV             R4, R0                                                 ; +0x8, 0x3e076c\nMOV             R0, R7                                                 ; +0xa, 0x3e076e\nMOV             R6, R2                                                 ; +0xc, 0x3e0770\nSTR.W           R1, [R5,#-4]!                                          ; +0xe, 0x3e0772\nMOV             R1, R5                                                 ; +0x12, 0x3e0776\nBL              _ZNKSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE4findERKi; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::find(int const&) ; +0x14, 0x3e0778\nADD.W           R3, R4, #0x1BC                                         ; +0x18, 0x3e077c\nCMP             R3, R0                                                 ; +0x1c, 0x3e0780\nBEQ             loc_3E079C                                             ; +0x1e, 0x3e0782\nMOV             R1, R5                                                 ; +0x20, 0x3e0784\nMOV             R0, R7                                                 ; +0x22, 0x3e0786\nBL              _ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE5eraseERKi; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::erase(int const&) ; +0x24, 0x3e0788\nLDR             R3, [R4]                                               ; +0x28, 0x3e078c\nMOV             R0, R4                                                 ; +0x2a, 0x3e078e\nLDR             R1, [SP,#0xC+var_8]                                    ; +0x2c, 0x3e0790\nMOV             R2, R6                                                 ; +0x2e, 0x3e0792\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x30, 0x3e0794\nBLX             R3                                                     ; +0x34, 0x3e0798\nB               loc_3E07B4                                             ; +0x36, 0x3e079a\nMOV             R0, R4; this                                           ; +0x38, 0x3e079c\nLDR             R1, [SP,#0xC+var_8]; int                               ; +0x3a, 0x3e079e\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x3c, 0x3e07a0\nCBZ             R0, loc_3E07B4                                         ; +0x40, 0x3e07a4\nMOV             R0, R4                                                 ; +0x42, 0x3e07a6\nMOV             R1, R6                                                 ; +0x44, 0x3e07a8\nBL              _ZN16CustomSongWidget11updateErrorE11GJSongError; CustomSongWidget::updateError(GJSongError) ; +0x46, 0x3e07aa\nMOV             R0, R4; this                                           ; +0x4a, 0x3e07ae\nBL              _ZN16CustomSongWidget14downloadFailedEv; CustomSongWidget::downloadFailed(void) ; +0x4c, 0x3e07b0\nADD             SP, SP, #0xC                                           ; +0x50, 0x3e07b4\nPOP             {R4-R7,PC}                                             ; +0x52, 0x3e07b6", "xrefs": ["`non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x3e07bc"], "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"}