{"type": "func", "start": 5136184, "end": 5136268, "name": "CustomSongWidget::loadSongInfoFailed", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFailed from 0x4e5f38 to 0x4e5f8c (84 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x4e5f90\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:05 +0000\n// \n\nint __fastcall CustomSongWidget::loadSongInfoFailed(CustomSongWidget *this, int a2, int a3)\n{\n  _DWORD *v4; // r3\n  int v6; // r2\n  int result; // r0\n  _DWORD v8[2]; // [sp+4h] [bp-8h] BYREF\n\n  v8[0] = a2;\n  v8[1] = a3;\n  v4 = *((_DWORD **)this + 109);\n  v8[0] = a2;\n  while ( v4 )\n  {\n    v6 = v4[4];\n    if ( a2 >= v6 )\n    {\n      if ( v6 >= a2 )\n      {\n        std::__tree<int>::__erase_unique<int>((int **)this + 108, v8);\n        return (*(int (__fastcall **)(CustomSongWidget *, _DWORD, int))(*(_DWORD *)this + 464))(this, v8[0], a3);\n      }\n      v4 = (_DWORD *)v4[1];\n    }\n    else\n    {\n      v4 = (_DWORD *)*v4;\n    }\n  }\n  result = CustomSongWidget::verifySongID(this, a2);\n  if ( result )\n  {\n    CustomSongWidget::updateError((int)this, a3);\n    return CustomSongWidget::downloadFailed(this);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFailed from 0x4e5f38 to 0x4e5f8c (84 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x4e5f90\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:05 +0000\n; \nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x0, 0x4e5f38\nMOV             R4, R0                                                 ; +0x2, 0x4e5f3a\nLDR.W           R3, [R0,#0x1B4]                                        ; +0x4, 0x4e5f3c\nMOV             R5, R2                                                 ; +0x8, 0x4e5f40\nSTR             R1, [SP,#0xC+var_8]                                    ; +0xa, 0x4e5f42\nCBZ             R3, loc_4E5F72                                         ; +0xc, 0x4e5f44\nLDR             R2, [R3,#0x10]                                         ; +0xe, 0x4e5f46\nCMP             R1, R2                                                 ; +0x10, 0x4e5f48\nBGE             loc_4E5F50                                             ; +0x12, 0x4e5f4a\nLDR             R3, [R3]                                               ; +0x14, 0x4e5f4c\nB               loc_4E5F44                                             ; +0x16, 0x4e5f4e\nCMP             R2, R1                                                 ; +0x18, 0x4e5f50\nBGE             loc_4E5F58                                             ; +0x1a, 0x4e5f52\nLDR             R3, [R3,#4]                                            ; +0x1c, 0x4e5f54\nB               loc_4E5F44                                             ; +0x1e, 0x4e5f56\nADD             R1, SP, #0xC+var_8                                     ; +0x20, 0x4e5f58\nADD.W           R0, R4, #0x1B0                                         ; +0x22, 0x4e5f5a\nBL              _ZNSt6__ndk16__treeIiNS_4lessIiEENS_9allocatorIiEEE14__erase_uniqueIiEEjRKT_; std::__tree<int>::__erase_unique<int>(int const&) ; +0x26, 0x4e5f5e\nLDR             R3, [R4]                                               ; +0x2a, 0x4e5f62\nMOV             R0, R4                                                 ; +0x2c, 0x4e5f64\nLDR             R1, [SP,#0xC+var_8]                                    ; +0x2e, 0x4e5f66\nMOV             R2, R5                                                 ; +0x30, 0x4e5f68\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x32, 0x4e5f6a\nBLX             R3                                                     ; +0x36, 0x4e5f6e\nB               loc_4E5F88                                             ; +0x38, 0x4e5f70\nMOV             R0, R4; this                                           ; +0x3a, 0x4e5f72\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x3c, 0x4e5f74\nCBZ             R0, loc_4E5F88                                         ; +0x40, 0x4e5f78\nMOV             R0, R4                                                 ; +0x42, 0x4e5f7a\nMOV             R1, R5                                                 ; +0x44, 0x4e5f7c\nBL              _ZN16CustomSongWidget11updateErrorE11GJSongError; CustomSongWidget::updateError(GJSongError) ; +0x46, 0x4e5f7e\nMOV             R0, R4; this                                           ; +0x4a, 0x4e5f82\nBL              _ZN16CustomSongWidget14downloadFailedEv; CustomSongWidget::downloadFailed(void) ; +0x4c, 0x4e5f84\nADD             SP, SP, #0xC                                           ; +0x50, 0x4e5f88\nPOP             {R4,R5,PC}                                             ; +0x52, 0x4e5f8a", "xrefs": ["`non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x4e5f90"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}