{"type": "func", "start": 4301391632, "end": 4301391823, "name": "CustomSongWidget::updateError", "pseudocode": "// \n// CustomSongWidget::updateError from 0x100620710 to 0x1006207cf (191 bytes)\n// \n// 0 xrefs:\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 __fastcall CustomSongWidget::updateError(CustomSongWidget *a1, GJSongError a2)\n{\n  cocos2d::CCLabelBMFont *m_errorLabel; // rdi\n  cocos2d::CCLabelBMFont *v4; // rdi\n  void (__cdecl *setString)(cocos2d::CCLabelBMFont *__hidden, const char *); // rax\n  cocos2d::CCLabelBMFont *v6; // rdi\n  float v7; // xmm0_4\n  float v8; // xmm1_4\n  __int16 v9; // [rsp+Ch] [rbp-14h] BYREF\n  char v10; // [rsp+Eh] [rbp-12h]\n\n  m_errorLabel = a1->m_errorLabel;\n  v10 = 25;\n  v9 = 13055;\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v9);\n  v4 = a1->m_errorLabel;\n  setString = v4->setString;\n  if ( (unsigned int)(a2 - 1) > 2 )\n  {\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))setString)(v4, \"Download failed. Please try later.\");\n    v6 = a1->m_errorLabel;\n    if ( !a1->m_isMusicLibrary )\n      goto LABEL_3;\nLABEL_5:\n    v7 = 140.0;\n    v8 = 0.34999999;\n    goto LABEL_6;\n  }\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))setString)(v4, off_100982350[a2 - 1]);\n  v6 = a1->m_errorLabel;\n  if ( a1->m_isMusicLibrary )\n    goto LABEL_5;\nLABEL_3:\n  v7 = 230.0;\n  v8 = 0.40000001;\nLABEL_6:\n  cocos2d::CCLabelBMFont::limitLabelWidth(v6, v7, v8, 0.0);\n  CustomSongWidget::showError(a1, 0);\n}", "assembly": "; \n; CustomSongWidget::updateError from 0x100620710 to 0x1006207cf (191 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x100620710\nmov     rbp, rsp                                                       ; +0x1, 0x100620711\npush    r14                                                            ; +0x4, 0x100620714\npush    rbx                                                            ; +0x6, 0x100620716\nsub     rsp, 10h                                                       ; +0x7, 0x100620717\nmov     r14d, esi                                                      ; +0xb, 0x10062071b\nmov     rbx, rdi                                                       ; +0xe, 0x10062071e\nmov     rdi, [rdi+178h]                                                ; +0x11, 0x100620721\nmov     [rbp+var_12], 19h                                              ; +0x18, 0x100620728\nmov     [rbp+var_14], 32FFh                                            ; +0x1c, 0x10062072c\nmov     rax, [rdi]                                                     ; +0x22, 0x100620732\nlea     rsi, [rbp+var_14]                                              ; +0x25, 0x100620735\ncall    qword ptr [rax+420h]                                           ; +0x29, 0x100620739\nmov     rdi, [rbx+178h]                                                ; +0x2f, 0x10062073f\nmov     rax, [rdi]                                                     ; +0x36, 0x100620746\nmov     rax, [rax+390h]                                                ; +0x39, 0x100620749\ndec     r14d                                                           ; +0x40, 0x100620750\ncmp     r14d, 2                                                        ; +0x43, 0x100620753\nja      short loc_10062078B                                            ; +0x47, 0x100620757\nmov     ecx, r14d                                                      ; +0x49, 0x100620759\nlea     rdx, off_100982350; \"Failed to fetch song info.\"               ; +0x4c, 0x10062075c\nmov     rsi, [rdx+rcx*8]                                               ; +0x53, 0x100620763\ncall    rax                                                            ; +0x57, 0x100620767\nmov     rdi, [rbx+178h]                                                ; +0x59, 0x100620769\ncmp     byte ptr [rbx+1EDh], 1                                         ; +0x60, 0x100620770\njz      short loc_1006207A4                                            ; +0x67, 0x100620777\nmovss   xmm0, cs:dword_100817F18                                       ; +0x69, 0x100620779\nmovss   xmm1, cs:dword_100815004                                       ; +0x71, 0x100620781\njmp     short loc_1006207B4                                            ; +0x79, 0x100620789\nlea     rsi, aDownloadFailed_0; \"Download failed. Please try later.\"   ; +0x7b, 0x10062078b\ncall    rax                                                            ; +0x82, 0x100620792\nmov     rdi, [rbx+178h]                                                ; +0x84, 0x100620794\ncmp     byte ptr [rbx+1EDh], 1                                         ; +0x8b, 0x10062079b\njnz     short loc_100620779                                            ; +0x92, 0x1006207a2\nmovss   xmm0, cs:dword_100815734                                       ; +0x94, 0x1006207a4\nmovss   xmm1, cs:dword_100816000                                       ; +0x9c, 0x1006207ac\nxorps   xmm2, xmm2                                                     ; +0xa4, 0x1006207b4\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0xa7, 0x1006207b7\nmov     rdi, rbx                                                       ; +0xac, 0x1006207bc\nxor     esi, esi                                                       ; +0xaf, 0x1006207bf\ncall    CustomSongWidget__showError                                    ; +0xb1, 0x1006207c1\nadd     rsp, 10h                                                       ; +0xb6, 0x1006207c6\npop     rbx                                                            ; +0xba, 0x1006207ca\npop     r14                                                            ; +0xbb, 0x1006207cb\npop     rbp                                                            ; +0xbd, 0x1006207cd\nretn                                                                   ; +0xbe, 0x1006207ce", "xrefs": [], "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"}