{"type": "func", "start": 5370208848, "end": 5370208974, "name": "CustomSongWidget::downloadSongFailed", "pseudocode": "// \n// CustomSongWidget::downloadSongFailed from 0x14016e250 to 0x14016e2ce (126 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407448c8\n// > <???> @ 0x1409181c4\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::downloadSongFailed(__int64 a1, __int64 a2, unsigned int a3)\n{\n  __int64 v3; // rbx\n  __int64 result; // rax\n\n  v3 = a1 - 320;\n  if ( *(_BYTE *)(a1 + 209) )\n    return CustomSongWidget::downloadAssetFailed(a1 - 320, a2, 1);\n  result = *(unsigned int *)(v3 + 504);\n  if ( (_DWORD)result == (_DWORD)a2 )\n  {\n    if ( (_DWORD)result )\n    {\n      CustomSongWidget::updateError(a1 - 320, a3);\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v3 + 456) + 336LL))(*(_QWORD *)(v3 + 456), 0);\n      cocos2d::CCNode::unschedule(v3, CustomSongWidget::updateDownloadProgress);\n      *(_BYTE *)(v3 + 499) = 0;\n      return CustomSongWidget::updateSongInfo(v3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::downloadSongFailed from 0x14016e250 to 0x14016e2ce (126 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407448c8\n; > <???> @ 0x1409181c4\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; \npush    rbx                                                            ; +0x0, 0x14016e250\nsub     rsp, 20h                                                       ; +0x2, 0x14016e252\ncmp     byte ptr [rcx+0D1h], 0                                         ; +0x6, 0x14016e256\nlea     rbx, [rcx-140h]                                                ; +0xd, 0x14016e25d\njz      short loc_14016E279                                            ; +0x14, 0x14016e264\nmov     r8d, 1                                                         ; +0x16, 0x14016e266\nmov     rcx, rbx                                                       ; +0x1c, 0x14016e26c\nadd     rsp, 20h                                                       ; +0x1f, 0x14016e26f\npop     rbx                                                            ; +0x23, 0x14016e273\njmp     CustomSongWidget__downloadAssetFailed                          ; +0x24, 0x14016e274\nmov     eax, [rbx+1F8h]                                                ; +0x29, 0x14016e279\ncmp     eax, edx                                                       ; +0x2f, 0x14016e27f\njnz     short loc_14016E2C8                                            ; +0x31, 0x14016e281\ntest    eax, eax                                                       ; +0x33, 0x14016e283\njz      short loc_14016E2C8                                            ; +0x35, 0x14016e285\nmov     edx, r8d                                                       ; +0x37, 0x14016e287\nmov     rcx, rbx                                                       ; +0x3a, 0x14016e28a\ncall    CustomSongWidget__updateError                                  ; +0x3d, 0x14016e28d\nmov     rcx, [rbx+1C8h]                                                ; +0x42, 0x14016e292\nxor     edx, edx                                                       ; +0x49, 0x14016e299\nmov     rax, [rcx]                                                     ; +0x4b, 0x14016e29b\ncall    qword ptr [rax+150h]                                           ; +0x4e, 0x14016e29e\nlea     rdx, CustomSongWidget__updateDownloadProgress                  ; +0x54, 0x14016e2a4\nmov     rcx, rbx                                                       ; +0x5b, 0x14016e2ab\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x5e, 0x14016e2ae\nmov     rcx, rbx                                                       ; +0x64, 0x14016e2b4\nmov     byte ptr [rbx+1F3h], 0                                         ; +0x67, 0x14016e2b7\nadd     rsp, 20h                                                       ; +0x6e, 0x14016e2be\npop     rbx                                                            ; +0x72, 0x14016e2c2\njmp     CustomSongWidget__updateSongInfo                               ; +0x73, 0x14016e2c3\nadd     rsp, 20h                                                       ; +0x78, 0x14016e2c8\npop     rbx                                                            ; +0x7c, 0x14016e2cc\nretn                                                                   ; +0x7d, 0x14016e2cd", "xrefs": ["<???> @ 0x1407448c8", "<???> @ 0x1409181c4"], "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"}