{"type": "func", "start": 4301147392, "end": 4301147551, "name": "CustomSFXWidget::updateError", "pseudocode": "// \n// CustomSFXWidget::updateError from 0x1005e4d00 to 0x1005e4d9f (159 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 CustomSFXWidget::updateError(CustomSFXWidget *a1, GJSongError a2)\n{\n  cocos2d::CCLabelBMFont *m_errorLabel; // rdi\n  const char *v4; // rsi\n  __int16 v5; // [rsp+Ch] [rbp-14h] BYREF\n  char v6; // [rsp+Eh] [rbp-12h]\n\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 1);\n  m_errorLabel = a1->m_errorLabel;\n  v6 = 25;\n  v5 = 13055;\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v5);\n  if ( (unsigned int)(a2 - 1) > 2 )\n    v4 = \"Download failed. Please try again later.\";\n  else\n    v4 = off_100977140[a2 - 1];\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(a1->m_errorLabel, v4);\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.40000001, 0.0);\n}", "assembly": "; \n; CustomSFXWidget::updateError from 0x1005e4d00 to 0x1005e4d9f (159 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, 0x1005e4d00\nmov     rbp, rsp                                                       ; +0x1, 0x1005e4d01\npush    r14                                                            ; +0x4, 0x1005e4d04\npush    rbx                                                            ; +0x6, 0x1005e4d06\nsub     rsp, 10h                                                       ; +0x7, 0x1005e4d07\nmov     r14d, esi                                                      ; +0xb, 0x1005e4d0b\nmov     rbx, rdi                                                       ; +0xe, 0x1005e4d0e\nmov     rdi, [rdi+170h]                                                ; +0x11, 0x1005e4d11\nmov     rax, [rdi]                                                     ; +0x18, 0x1005e4d18\nmov     esi, 1                                                         ; +0x1b, 0x1005e4d1b\ncall    qword ptr [rax+148h]                                           ; +0x20, 0x1005e4d20\nmov     rdi, [rbx+170h]                                                ; +0x26, 0x1005e4d26\nmov     [rbp+var_12], 19h                                              ; +0x2d, 0x1005e4d2d\nmov     [rbp+var_14], 32FFh                                            ; +0x31, 0x1005e4d31\nmov     rax, [rdi]                                                     ; +0x37, 0x1005e4d37\nlea     rsi, [rbp+var_14]                                              ; +0x3a, 0x1005e4d3a\ncall    qword ptr [rax+420h]                                           ; +0x3e, 0x1005e4d3e\nmov     rdi, [rbx+170h]                                                ; +0x44, 0x1005e4d44\nmov     rax, [rdi]                                                     ; +0x4b, 0x1005e4d4b\nmov     rax, [rax+390h]                                                ; +0x4e, 0x1005e4d4e\ndec     r14d                                                           ; +0x55, 0x1005e4d55\ncmp     r14d, 2                                                        ; +0x58, 0x1005e4d58\nja      short loc_1005E4D6E                                            ; +0x5c, 0x1005e4d5c\nmov     ecx, r14d                                                      ; +0x5e, 0x1005e4d5e\nlea     rdx, off_100977140; \"Failed to fetch SFX info.\"                ; +0x61, 0x1005e4d61\nmov     rsi, [rdx+rcx*8]                                               ; +0x68, 0x1005e4d68\njmp     short loc_1005E4D75                                            ; +0x6c, 0x1005e4d6c\nlea     rsi, aDownloadFailed; \"Download failed. Please try again later\"... ; +0x6e, 0x1005e4d6e\ncall    rax                                                            ; +0x75, 0x1005e4d75\nmov     rdi, [rbx+170h]                                                ; +0x77, 0x1005e4d77\nmovss   xmm0, cs:dword_100817F18                                       ; +0x7e, 0x1005e4d7e\nmovss   xmm1, cs:dword_100815004                                       ; +0x86, 0x1005e4d86\nxorps   xmm2, xmm2                                                     ; +0x8e, 0x1005e4d8e\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0x91, 0x1005e4d91\nadd     rsp, 10h                                                       ; +0x96, 0x1005e4d96\npop     rbx                                                            ; +0x9a, 0x1005e4d9a\npop     r14                                                            ; +0x9b, 0x1005e4d9b\npop     rbp                                                            ; +0x9d, 0x1005e4d9d\nretn                                                                   ; +0x9e, 0x1005e4d9e", "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"}