{"type": "func", "start": 4302013584, "end": 4302013768, "name": "CustomSFXWidget::startDownload", "pseudocode": "// \n// CustomSFXWidget::startDownload from 0x1006b8490 to 0x1006b8548 (184 bytes)\n// \n// 0 xrefs:\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:28 +0000\n// \n\n__int64 __fastcall CustomSFXWidget::startDownload(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // r14\n  __m128 v3; // xmm0\n  __m128 v4; // xmm2\n  _BYTE v6[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  *(_BYTE *)(a1 + 491) = 0;\n  v1 = MusicDownloadManager::sharedState();\n  MusicDownloadManager::downloadSFX(v1, *(_DWORD *)(a1 + 496));\n  v2 = *(_QWORD *)(a1 + 464);\n  v3 = (__m128)*(unsigned int *)(*(_QWORD *)(a1 + 456) + 432LL);\n  v3.f32[0] = v3.f32[0] + -4.0;\n  v4 = v3;\n  v4.f32[0] = fminf(v3.f32[0] * 0.0, v3.f32[0]);\n  sub_100278270((__int64)v6, 0.0, 0.0, v4, (__m128)0x41000000u);\n  *(double *)v3.i64 = (*(double (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 1136LL))(v2, v6);\n  CustomSFXWidget::showLoadingArt(a1, *(double *)v3.i64, 0.0);\n  cocos2d::CCNode::unschedule(a1, (__int64)CustomSFXWidget::updateDownloadProgress, 0);\n  return cocos2d::CCNode::schedule_1(a1, (__int64)CustomSFXWidget::updateDownloadProgress, 0, COERCE_DOUBLE(1023969417));\n}", "assembly": "; \n; CustomSFXWidget::startDownload from 0x1006b8490 to 0x1006b8548 (184 bytes)\n; \n; 0 xrefs:\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:28 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006b8490\nmov     rbp, rsp                                                       ; +0x1, 0x1006b8491\npush    r15                                                            ; +0x4, 0x1006b8494\npush    r14                                                            ; +0x6, 0x1006b8496\npush    rbx                                                            ; +0x8, 0x1006b8498\nsub     rsp, 18h                                                       ; +0x9, 0x1006b8499\nmov     rbx, rdi                                                       ; +0xd, 0x1006b849d\nmov     byte ptr [rdi+1EBh], 0                                         ; +0x10, 0x1006b84a0\ncall    MusicDownloadManager__sharedState                              ; +0x17, 0x1006b84a7\nmov     esi, [rbx+1F0h]                                                ; +0x1c, 0x1006b84ac\nmov     rdi, rax                                                       ; +0x22, 0x1006b84b2\ncall    MusicDownloadManager__downloadSFX                              ; +0x25, 0x1006b84b5\nmov     rax, [rbx+1C8h]                                                ; +0x2a, 0x1006b84ba\nmov     r14, [rbx+1D0h]                                                ; +0x31, 0x1006b84c1\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0x38, 0x1006b84c8\naddss   xmm0, cs:dword_100A03FD4                                       ; +0x40, 0x1006b84d0\nxorps   xmm1, xmm1                                                     ; +0x48, 0x1006b84d8\nmovaps  xmm2, xmm0                                                     ; +0x4b, 0x1006b84db\nmulss   xmm2, xmm1                                                     ; +0x4e, 0x1006b84de\nminss   xmm2, xmm0                                                     ; +0x52, 0x1006b84e2\nlea     r15, [rbp+var_28]                                              ; +0x56, 0x1006b84e6\nmovss   xmm3, cs:dword_100A03D64                                       ; +0x5a, 0x1006b84ea\nxorps   xmm0, xmm0                                                     ; +0x62, 0x1006b84f2\nmov     rdi, r15                                                       ; +0x65, 0x1006b84f5\ncall    sub_100278270                                                  ; +0x68, 0x1006b84f8\nmov     rax, [r14]                                                     ; +0x6d, 0x1006b84fd\nmov     rdi, r14                                                       ; +0x70, 0x1006b8500\nmov     rsi, r15                                                       ; +0x73, 0x1006b8503\ncall    qword ptr [rax+470h]                                           ; +0x76, 0x1006b8506\nmov     rdi, rbx                                                       ; +0x7c, 0x1006b850c\ncall    CustomSFXWidget__showLoadingArt                                ; +0x7f, 0x1006b850f\nlea     r14, CustomSFXWidget__updateDownloadProgress                   ; +0x84, 0x1006b8514\nmov     rdi, rbx                                                       ; +0x8b, 0x1006b851b\nmov     rsi, r14                                                       ; +0x8e, 0x1006b851e\nxor     edx, edx                                                       ; +0x91, 0x1006b8521\ncall    cocos2d__CCNode__unschedule                                    ; +0x93, 0x1006b8523\nmovss   xmm0, cs:dword_100A0485C                                       ; +0x98, 0x1006b8528\nmov     rdi, rbx                                                       ; +0xa0, 0x1006b8530\nmov     rsi, r14                                                       ; +0xa3, 0x1006b8533\nxor     edx, edx                                                       ; +0xa6, 0x1006b8536\ncall    cocos2d__CCNode__schedule_1                                    ; +0xa8, 0x1006b8538\nadd     rsp, 18h                                                       ; +0xad, 0x1006b853d\npop     rbx                                                            ; +0xb1, 0x1006b8541\npop     r14                                                            ; +0xb2, 0x1006b8542\npop     r15                                                            ; +0xb4, 0x1006b8544\npop     rbp                                                            ; +0xb6, 0x1006b8546\nretn                                                                   ; +0xb7, 0x1006b8547", "xrefs": [], "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"}