{"type": "func", "start": 4302295296, "end": 4302295474, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x1006fd100 to 0x1006fd1b2 (178 bytes)\n// \n// 2 xrefs:\n// > sub_1006FD3D0 @ 0x1006fd3dc\n// > <???> @ 0x100b95dd0\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 12:35:56 +0000\n// \n\n__int64 __fastcall CustomSongWidget::downloadSongFinished(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rdi\n  float v5; // xmm0_4\n  __m128 v6; // xmm1\n\n  if ( *(_BYTE *)(a1 + 529) == 1 )\n    return CustomSongWidget::downloadAssetFinished(a1, a2, 1);\n  result = *(unsigned int *)(a1 + 504);\n  LOBYTE(result) = (_DWORD)result != (_DWORD)a2 || (_DWORD)result == 0;\n  if ( !(_BYTE)result )\n  {\n    (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 376) + 1072LL))(*(_QWORD *)(a1 + 376), &unk_100A11C39);\n    (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 376) + 928LL))(\n      *(_QWORD *)(a1 + 376),\n      \"Download complete.\");\n    v4 = *(_QWORD *)(a1 + 376);\n    if ( *(_BYTE *)(a1 + 501) == 1 )\n    {\n      v5 = 140.0;\n      v6 = (__m128)0x3EB33333u;\n    }\n    else\n    {\n      v5 = 230.0;\n      v6 = (__m128)0x3ECCCCCDu;\n    }\n    cocos2d::CCLabelBMFont::limitLabelWidth(v4, v5, v6, (__m128)0LL);\n    return CustomSongWidget::showError(a1, 1);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x1006fd100 to 0x1006fd1b2 (178 bytes)\n; \n; 2 xrefs:\n; > sub_1006FD3D0 @ 0x1006fd3dc\n; > <???> @ 0x100b95dd0\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 12:35:56 +0000\n; \ncmp     byte ptr [rdi+211h], 1                                         ; +0x0, 0x1006fd100\njnz     short loc_1006FD113                                            ; +0x7, 0x1006fd107\nmov     edx, 1                                                         ; +0x9, 0x1006fd109\njmp     CustomSongWidget__downloadAssetFinished                        ; +0xe, 0x1006fd10e\nmov     eax, [rdi+1F8h]                                                ; +0x13, 0x1006fd113\ncmp     eax, esi                                                       ; +0x19, 0x1006fd119\nsetnz   cl                                                             ; +0x1b, 0x1006fd11b\ntest    eax, eax                                                       ; +0x1e, 0x1006fd11e\nsetz    al                                                             ; +0x20, 0x1006fd120\nor      al, cl                                                         ; +0x23, 0x1006fd123\njnz     short locret_1006FD188                                         ; +0x25, 0x1006fd125\npush    rbp                                                            ; +0x27, 0x1006fd127\nmov     rbp, rsp                                                       ; +0x28, 0x1006fd128\npush    r14                                                            ; +0x2b, 0x1006fd12b\npush    rbx                                                            ; +0x2d, 0x1006fd12d\nmov     rax, [rdi+178h]                                                ; +0x2e, 0x1006fd12e\nmov     rcx, [rax]                                                     ; +0x35, 0x1006fd135\nlea     rsi, unk_100A11C39                                             ; +0x38, 0x1006fd138\nmov     r14, rdi                                                       ; +0x3f, 0x1006fd13f\nmov     rdi, rax                                                       ; +0x42, 0x1006fd142\ncall    qword ptr [rcx+430h]                                           ; +0x45, 0x1006fd145\nmov     rdi, [r14+178h]                                                ; +0x4b, 0x1006fd14b\nmov     rax, [rdi]                                                     ; +0x52, 0x1006fd152\nlea     rsi, aDownloadComple; \"Download complete.\"                     ; +0x55, 0x1006fd155\ncall    qword ptr [rax+3A0h]                                           ; +0x5c, 0x1006fd15c\nmov     rdi, [r14+178h]                                                ; +0x62, 0x1006fd162\nmov     rbx, r14                                                       ; +0x69, 0x1006fd169\ncmp     byte ptr [r14+1F5h], 1                                         ; +0x6c, 0x1006fd16c\njnz     short loc_1006FD189                                            ; +0x74, 0x1006fd174\nmovss   xmm0, cs:dword_100A03A78                                       ; +0x76, 0x1006fd176\nmovss   xmm1, cs:dword_100A03FDC                                       ; +0x7e, 0x1006fd17e\njmp     short loc_1006FD199                                            ; +0x86, 0x1006fd186\nretn                                                                   ; +0x88, 0x1006fd188\nmovss   xmm0, cs:dword_100A06340                                       ; +0x89, 0x1006fd189\nmovss   xmm1, cs:dword_100A040AC                                       ; +0x91, 0x1006fd191\nxorps   xmm2, xmm2                                                     ; +0x99, 0x1006fd199\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0x9c, 0x1006fd19c\nmov     rdi, rbx                                                       ; +0xa1, 0x1006fd1a1\nmov     esi, 1                                                         ; +0xa4, 0x1006fd1a4\npop     rbx                                                            ; +0xa9, 0x1006fd1a9\npop     r14                                                            ; +0xaa, 0x1006fd1aa\npop     rbp                                                            ; +0xac, 0x1006fd1ac\njmp     CustomSongWidget__showError                                    ; +0xad, 0x1006fd1ad", "xrefs": ["sub_1006FD3D0 @ 0x1006fd3dc", "<???> @ 0x100b95dd0"], "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"}