{"type": "func", "start": 5370208656, "end": 5370208847, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x14016e190 to 0x14016e24f (191 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407448c0\n// > <???> @ 0x1409181b8\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::downloadSongFinished(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  float v4; // xmm2_4\n  float v5; // xmm1_4\n  __int64 v6; // rdx\n\n  if ( *(_BYTE *)(a1 + 209) )\n    return CustomSongWidget::downloadAssetFinished(a1 - 320, a2, 1);\n  result = *(unsigned int *)(a1 + 184);\n  if ( (_DWORD)result == (_DWORD)a2 && (_DWORD)result )\n  {\n    (**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 56) + 368LL))(\n      *(_QWORD *)(a1 + 56) + 368LL,\n      &unk_140702F7C);\n    (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 56) + 360LL))(\n      *(_QWORD *)(a1 + 56) + 360LL,\n      \"Download complete.\");\n    if ( *(_BYTE *)(a1 + 181) )\n    {\n      v4 = 0.34999999;\n      v5 = 140.0;\n    }\n    else\n    {\n      v4 = 0.40000001;\n      v5 = 230.0;\n    }\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 56), v5, v4, 0.0);\n    LOBYTE(v6) = 1;\n    return CustomSongWidget::showError(a1 - 320, v6);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x14016e190 to 0x14016e24f (191 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407448c0\n; > <???> @ 0x1409181b8\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, 0x14016e190\npush    rdi                                                            ; +0x5, 0x14016e195\nsub     rsp, 20h                                                       ; +0x6, 0x14016e196\ncmp     byte ptr [rcx+0D1h], 0                                         ; +0xa, 0x14016e19a\nmov     rdi, rcx                                                       ; +0x11, 0x14016e1a1\njz      short loc_14016E1C2                                            ; +0x14, 0x14016e1a4\nmov     r8d, 1                                                         ; +0x16, 0x14016e1a6\nadd     rcx, 0FFFFFFFFFFFFFEC0h                                        ; +0x1c, 0x14016e1ac\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x23, 0x14016e1b3\nadd     rsp, 20h                                                       ; +0x28, 0x14016e1b8\npop     rdi                                                            ; +0x2c, 0x14016e1bc\njmp     CustomSongWidget__downloadAssetFinished                        ; +0x2d, 0x14016e1bd\nmov     eax, [rcx+0B8h]                                                ; +0x32, 0x14016e1c2\ncmp     eax, edx                                                       ; +0x38, 0x14016e1c8\njnz     short loc_14016E244                                            ; +0x3a, 0x14016e1ca\ntest    eax, eax                                                       ; +0x3c, 0x14016e1cc\njz      short loc_14016E244                                            ; +0x3e, 0x14016e1ce\nmov     rcx, [rcx+38h]                                                 ; +0x40, 0x14016e1d0\nlea     rdx, unk_140702F7C                                             ; +0x44, 0x14016e1d4\nadd     rcx, 170h                                                      ; +0x4b, 0x14016e1db\nmov     rax, [rcx]                                                     ; +0x52, 0x14016e1e2\ncall    qword ptr [rax]                                                ; +0x55, 0x14016e1e5\nmov     rcx, [rdi+38h]                                                 ; +0x57, 0x14016e1e7\nlea     rdx, aDownloadComple; \"Download complete.\"                     ; +0x5b, 0x14016e1eb\nadd     rcx, 168h                                                      ; +0x62, 0x14016e1f2\nmov     rax, [rcx]                                                     ; +0x69, 0x14016e1f9\ncall    qword ptr [rax]                                                ; +0x6c, 0x14016e1fc\ncmp     byte ptr [rdi+0B5h], 0                                         ; +0x6e, 0x14016e1fe\nxorps   xmm3, xmm3                                                     ; +0x75, 0x14016e205\nmov     rcx, [rdi+38h]                                                 ; +0x78, 0x14016e208\njz      short loc_14016E220                                            ; +0x7c, 0x14016e20c\nmovss   xmm2, cs:dword_140834EC0                                       ; +0x7e, 0x14016e20e\nmovss   xmm1, cs:dword_14083583C                                       ; +0x86, 0x14016e216\njmp     short loc_14016E230                                            ; +0x8e, 0x14016e21e\nmovss   xmm2, cs:dword_140834EDC                                       ; +0x90, 0x14016e220\nmovss   xmm1, cs:dword_140835938                                       ; +0x98, 0x14016e228\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xa0, 0x14016e230\nmov     dl, 1                                                          ; +0xa6, 0x14016e236\nlea     rcx, [rdi-140h]                                                ; +0xa8, 0x14016e238\ncall    CustomSongWidget__showError                                    ; +0xaf, 0x14016e23f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x14016e244\nadd     rsp, 20h                                                       ; +0xb9, 0x14016e249\npop     rdi                                                            ; +0xbd, 0x14016e24d\nretn                                                                   ; +0xbe, 0x14016e24e", "xrefs": ["<???> @ 0x1407448c0", "<???> @ 0x1409181b8"], "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"}