{"type": "func", "start": 4296157568, "end": 4296157732, "name": "CustomSongWidget::loadSongInfoFailed", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFailed from 0x100122980 to 0x100122a24 (164 bytes)\n// \n// 2 xrefs:\n// > sub_100122AEC @ 0x100122af0\n// > <???> @ 0x1008d5a18\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:59:16 +0000\n// \n\n__int64 __fastcall CustomSongWidget::loadSongInfoFailed(__int64 result, signed int a2, __int64 a3)\n{\n  __int64 v4; // x20\n  __int64 *i; // x8\n  signed int v6; // w9\n  int v7; // w8\n  unsigned int v9; // [xsp+Ch] [xbp-14h] BYREF\n\n  v4 = result;\n  v9 = a2;\n  for ( i = *(__int64 **)(result + 640); i; i = (__int64 *)*i )\n  {\n    v6 = *((_DWORD *)i + 7);\n    if ( v6 <= a2 )\n    {\n      if ( v6 >= a2 )\n      {\n        sub_10005484C((_QWORD *)(result + 632), (int *)&v9);\n        return (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v4 + 928LL))(v4, v9, a3);\n      }\n      ++i;\n    }\n  }\n  v7 = *(_DWORD *)(result + 504);\n  if ( v7 == a2 && v7 != 0 )\n  {\n    sub_100122A24(result, a3);\n    return sub_100121D84(v4);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFailed from 0x100122980 to 0x100122a24 (164 bytes)\n; \n; 2 xrefs:\n; > sub_100122AEC @ 0x100122af0\n; > <???> @ 0x1008d5a18\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:59:16 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100122980\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100122984\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100122988\nADD             X29, SP, #0x20                                         ; +0xc, 0x10012298c\nMOV             X19, X2                                                ; +0x10, 0x100122990\nMOV             X20, X0                                                ; +0x14, 0x100122994\nSTR             W1, [SP,#0x20+var_14]                                  ; +0x18, 0x100122998\nLDR             X8, [X0,#0x280]                                        ; +0x1c, 0x10012299c\nCBZ             X8, loc_1001229C0                                      ; +0x20, 0x1001229a0\nLDR             W9, [X8,#0x1C]                                         ; +0x24, 0x1001229a4\nCMP             W9, W1                                                 ; +0x28, 0x1001229a8\nB.GT            loc_1001229B8                                          ; +0x2c, 0x1001229ac\nB.GE            loc_1001229F0                                          ; +0x30, 0x1001229b0\nADD             X8, X8, #8                                             ; +0x34, 0x1001229b4\nLDR             X8, [X8]                                               ; +0x38, 0x1001229b8\nCBNZ            X8, loc_1001229A4                                      ; +0x3c, 0x1001229bc\nLDR             W8, [X20,#0x1F8]                                       ; +0x40, 0x1001229c0\nCMP             W8, W1                                                 ; +0x44, 0x1001229c4\nCCMP            W8, #0, #4, EQ                                         ; +0x48, 0x1001229c8\nB.EQ            loc_100122A14                                          ; +0x4c, 0x1001229cc\nMOV             X0, X20                                                ; +0x50, 0x1001229d0\nMOV             X1, X19                                                ; +0x54, 0x1001229d4\nBL              sub_100122A24                                          ; +0x58, 0x1001229d8\nMOV             X0, X20                                                ; +0x5c, 0x1001229dc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x1001229e0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x1001229e4\nADD             SP, SP, #0x30 ; '0'                                    ; +0x68, 0x1001229e8\nB               sub_100121D84                                          ; +0x6c, 0x1001229ec\nADD             X0, X20, #0x278                                        ; +0x70, 0x1001229f0\nADD             X1, SP, #0x20+var_14                                   ; +0x74, 0x1001229f4\nBL              sub_10005484C                                          ; +0x78, 0x1001229f8\nLDR             W1, [SP,#0x20+var_14]                                  ; +0x7c, 0x1001229fc\nLDR             X8, [X20]                                              ; +0x80, 0x100122a00\nLDR             X8, [X8,#0x3A0]                                        ; +0x84, 0x100122a04\nMOV             X0, X20                                                ; +0x88, 0x100122a08\nMOV             X2, X19                                                ; +0x8c, 0x100122a0c\nBLR             X8                                                     ; +0x90, 0x100122a10\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x100122a14\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x100122a18\nADD             SP, SP, #0x30 ; '0'                                    ; +0x9c, 0x100122a1c\nRET                                                                    ; +0xa0, 0x100122a20", "xrefs": ["sub_100122AEC @ 0x100122af0", "<???> @ 0x1008d5a18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}