{"type": "func", "start": 5370210272, "end": 5370210453, "name": "CustomSongWidget::downloadAssetFinished", "pseudocode": "// \n// CustomSongWidget::downloadAssetFinished from 0x14016e7e0 to 0x14016e895 (181 bytes)\n// \n// 3 xrefs:\n// > CustomSongWidget::downloadSongFinished @ 0x14016e1bd\n// > CustomSongWidget::downloadSFXFinished @ 0x14016e2dd\n// > <???> @ 0x1409181e8\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\nvoid __fastcall CustomSongWidget::downloadAssetFinished(_QWORD *a1, int a2, int a3)\n{\n  _DWORD *v3; // rbx\n  int v5; // eax\n  _QWORD *v6; // rcx\n  __int64 v7; // rdx\n\n  v3 = (_DWORD *)a1[73];\n  if ( v3 == (_DWORD *)a1[74] )\n    return;\n  while ( 1 )\n  {\n    if ( *v3 == a2 )\n    {\n      v5 = v3[1];\n      if ( v5 == a3 )\n        break;\n    }\n    v3 += 4;\n    if ( v3 == (_DWORD *)a1[74] )\n      return;\n  }\n  if ( v5 == 1 )\n  {\n    v6 = a1 + 69;\nLABEL_10:\n    *(_BYTE *)sub_14016EE40(v6, v3) = 1;\n    goto LABEL_11;\n  }\n  if ( v5 == 2 )\n  {\n    v6 = a1 + 71;\n    goto LABEL_10;\n  }\nLABEL_11:\n  memmove(v3, v3 + 4, a1[74] - (_QWORD)(v3 + 4));\n  a1[74] -= 16LL;\n  if ( a1[73] != a1[74] )\n    CustomSongWidget::updateMultiAssetInfo((__int64)a1, 0);\n  CustomSongWidget::processNextMultiAsset(a1, v7);\n}", "assembly": "; \n; CustomSongWidget::downloadAssetFinished from 0x14016e7e0 to 0x14016e895 (181 bytes)\n; \n; 3 xrefs:\n; > CustomSongWidget::downloadSongFinished @ 0x14016e1bd\n; > CustomSongWidget::downloadSFXFinished @ 0x14016e2dd\n; > <???> @ 0x1409181e8\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, 0x14016e7e0\npush    rdi                                                            ; +0x5, 0x14016e7e5\nsub     rsp, 20h                                                       ; +0x6, 0x14016e7e6\nmov     rbx, [rcx+248h]                                                ; +0xa, 0x14016e7ea\nmov     rdi, rcx                                                       ; +0x11, 0x14016e7f1\ncmp     rbx, [rcx+250h]                                                ; +0x14, 0x14016e7f4\njz      loc_14016E88A                                                  ; +0x1b, 0x14016e7fb\ncmp     [rbx], edx                                                     ; +0x21, 0x14016e801\njnz     short loc_14016E80D                                            ; +0x23, 0x14016e803\nmov     eax, [rbx+4]                                                   ; +0x25, 0x14016e805\ncmp     eax, r8d                                                       ; +0x28, 0x14016e808\njz      short loc_14016E825                                            ; +0x2b, 0x14016e80b\nadd     rbx, 10h                                                       ; +0x2d, 0x14016e80d\ncmp     rbx, [rcx+250h]                                                ; +0x31, 0x14016e811\njnz     short loc_14016E801                                            ; +0x38, 0x14016e818\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3a, 0x14016e81a\nadd     rsp, 20h                                                       ; +0x3f, 0x14016e81f\npop     rdi                                                            ; +0x43, 0x14016e823\nretn                                                                   ; +0x44, 0x14016e824\ncmp     eax, 1                                                         ; +0x45, 0x14016e825\njnz     short loc_14016E833                                            ; +0x48, 0x14016e828\nadd     rcx, 228h                                                      ; +0x4a, 0x14016e82a\njmp     short loc_14016E83F                                            ; +0x51, 0x14016e831\ncmp     eax, 2                                                         ; +0x53, 0x14016e833\njnz     short loc_14016E84A                                            ; +0x56, 0x14016e836\nadd     rcx, 238h                                                      ; +0x58, 0x14016e838\nmov     rdx, rbx                                                       ; +0x5f, 0x14016e83f\ncall    sub_14016EE40                                                  ; +0x62, 0x14016e842\nmov     byte ptr [rax], 1                                              ; +0x67, 0x14016e847\nmov     r8, [rdi+250h]                                                 ; +0x6a, 0x14016e84a\nlea     rdx, [rbx+10h]; Src                                            ; +0x71, 0x14016e851\nsub     r8, rdx; Size                                                  ; +0x75, 0x14016e855\nmov     rcx, rbx; void *                                               ; +0x78, 0x14016e858\ncall    memmove                                                        ; +0x7b, 0x14016e85b\nadd     qword ptr [rdi+250h], 0FFFFFFFFFFFFFFF0h                       ; +0x80, 0x14016e860\nmov     rax, [rdi+250h]                                                ; +0x88, 0x14016e868\ncmp     [rdi+248h], rax                                                ; +0x8f, 0x14016e86f\njz      short loc_14016E882                                            ; +0x96, 0x14016e876\nxor     edx, edx                                                       ; +0x98, 0x14016e878\nmov     rcx, rdi                                                       ; +0x9a, 0x14016e87a\ncall    CustomSongWidget__updateMultiAssetInfo                         ; +0x9d, 0x14016e87d\nmov     rcx, rdi                                                       ; +0xa2, 0x14016e882\ncall    CustomSongWidget__processNextMultiAsset                        ; +0xa5, 0x14016e885\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xaa, 0x14016e88a\nadd     rsp, 20h                                                       ; +0xaf, 0x14016e88f\npop     rdi                                                            ; +0xb3, 0x14016e893\nretn                                                                   ; +0xb4, 0x14016e894", "xrefs": ["CustomSongWidget::downloadSongFinished @ 0x14016e1bd", "CustomSongWidget::downloadSFXFinished @ 0x14016e2dd", "<???> @ 0x1409181e8"], "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"}