{"type": "func", "start": 5370210816, "end": 5370211014, "name": "CustomSongWidget::updateError", "pseudocode": "// \n// CustomSongWidget::updateError from 0x14016ea00 to 0x14016eac6 (198 bytes)\n// \n// 3 xrefs:\n// > CustomSongWidget::loadSongInfoFailed @ 0x14016e124\n// > CustomSongWidget::downloadSongFailed @ 0x14016e28d\n// > <???> @ 0x140918218\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:30 +0000\n// \n\n__int64 __fastcall CustomSongWidget::updateError(__int64 a1, int a2)\n{\n  void (__fastcall ***v4)(_QWORD, __int16 *); // rcx\n  int v5; // ebx\n  int v6; // ebx\n  const char *v7; // rdx\n  float v8; // xmm2_4\n  float v9; // xmm1_4\n  __int16 v11; // [rsp+38h] [rbp+10h] BYREF\n  char v12; // [rsp+3Ah] [rbp+12h]\n\n  v11 = 13055;\n  v4 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 376) + 368LL);\n  v12 = 25;\n  (**v4)(v4, &v11);\n  v5 = a2 - 1;\n  if ( v5 )\n  {\n    v6 = v5 - 1;\n    if ( v6 )\n    {\n      if ( v6 == 1 )\n        v7 = \"Download canceled.\";\n      else\n        v7 = \"Download failed. Please try later.\";\n    }\n    else\n    {\n      v7 = \"Song is not allowed for use.\";\n    }\n  }\n  else\n  {\n    v7 = \"Failed to fetch song info.\";\n  }\n  (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 376) + 360LL))(*(_QWORD *)(a1 + 376) + 360LL, v7);\n  if ( *(_BYTE *)(a1 + 501) )\n  {\n    v8 = 0.34999999;\n    v9 = 140.0;\n  }\n  else\n  {\n    v8 = 0.40000001;\n    v9 = 230.0;\n  }\n  cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 376), v9, v8, 0.0);\n  return CustomSongWidget::showError(a1, 0);\n}", "assembly": "; \n; CustomSongWidget::updateError from 0x14016ea00 to 0x14016eac6 (198 bytes)\n; \n; 3 xrefs:\n; > CustomSongWidget::loadSongInfoFailed @ 0x14016e124\n; > CustomSongWidget::downloadSongFailed @ 0x14016e28d\n; > <???> @ 0x140918218\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:30 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14016ea00\npush    rdi                                                            ; +0x5, 0x14016ea05\nsub     rsp, 20h                                                       ; +0x6, 0x14016ea06\nmov     rdi, rcx                                                       ; +0xa, 0x14016ea0a\nmov     [rsp+28h+arg_8], 32FFh                                         ; +0xd, 0x14016ea0d\nmov     rcx, [rcx+178h]                                                ; +0x14, 0x14016ea14\nmov     ebx, edx                                                       ; +0x1b, 0x14016ea1b\nadd     rcx, 170h                                                      ; +0x1d, 0x14016ea1d\nmov     [rsp+28h+arg_A], 19h                                           ; +0x24, 0x14016ea24\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x29, 0x14016ea29\nmov     rax, [rcx]                                                     ; +0x2e, 0x14016ea2e\ncall    qword ptr [rax]                                                ; +0x31, 0x14016ea31\nmov     rcx, [rdi+178h]                                                ; +0x33, 0x14016ea33\nadd     rcx, 168h                                                      ; +0x3a, 0x14016ea3a\nmov     rax, [rcx]                                                     ; +0x41, 0x14016ea41\nsub     ebx, 1                                                         ; +0x44, 0x14016ea44\njz      short loc_14016EA6E                                            ; +0x47, 0x14016ea47\nsub     ebx, 1                                                         ; +0x49, 0x14016ea49\njz      short loc_14016EA65                                            ; +0x4c, 0x14016ea4c\ncmp     ebx, 1                                                         ; +0x4e, 0x14016ea4e\njz      short loc_14016EA5C                                            ; +0x51, 0x14016ea51\nlea     rdx, aDownloadFailed_0; \"Download failed. Please try later.\"   ; +0x53, 0x14016ea53\njmp     short loc_14016EA75                                            ; +0x5a, 0x14016ea5a\nlea     rdx, aDownloadCancel; \"Download canceled.\"                     ; +0x5c, 0x14016ea5c\njmp     short loc_14016EA75                                            ; +0x63, 0x14016ea63\nlea     rdx, aSongIsNotAllow; \"Song is not allowed for use.\"           ; +0x65, 0x14016ea65\njmp     short loc_14016EA75                                            ; +0x6c, 0x14016ea6c\nlea     rdx, aFailedToFetchS_0; \"Failed to fetch song info.\"           ; +0x6e, 0x14016ea6e\ncall    qword ptr [rax]                                                ; +0x75, 0x14016ea75\ncmp     byte ptr [rdi+1F5h], 0                                         ; +0x77, 0x14016ea77\nxorps   xmm3, xmm3                                                     ; +0x7e, 0x14016ea7e\nmov     rcx, [rdi+178h]                                                ; +0x81, 0x14016ea81\njz      short loc_14016EA9C                                            ; +0x88, 0x14016ea88\nmovss   xmm2, cs:dword_140834EC0                                       ; +0x8a, 0x14016ea8a\nmovss   xmm1, cs:dword_14083583C                                       ; +0x92, 0x14016ea92\njmp     short loc_14016EAAC                                            ; +0x9a, 0x14016ea9a\nmovss   xmm2, cs:dword_140834EDC                                       ; +0x9c, 0x14016ea9c\nmovss   xmm1, cs:dword_140835938                                       ; +0xa4, 0x14016eaa4\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xac, 0x14016eaac\nxor     edx, edx                                                       ; +0xb2, 0x14016eab2\nmov     rcx, rdi                                                       ; +0xb4, 0x14016eab4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb7, 0x14016eab7\nadd     rsp, 20h                                                       ; +0xbc, 0x14016eabc\npop     rdi                                                            ; +0xc0, 0x14016eac0\njmp     CustomSongWidget__showError                                    ; +0xc1, 0x14016eac1", "xrefs": ["CustomSongWidget::loadSongInfoFailed @ 0x14016e124", "CustomSongWidget::downloadSongFailed @ 0x14016e28d", "<???> @ 0x140918218"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}