{"type": "func", "start": 4301146336, "end": 4301146520, "name": "CustomSFXWidget::startDownload", "pseudocode": "// \n// CustomSFXWidget::startDownload from 0x1005e48e0 to 0x1005e4998 (184 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall CustomSFXWidget::startDownload(CustomSFXWidget *a1)\n{\n  MusicDownloadManager *v1; // rax\n  cocos2d::CCSprite *m_progressBarSprite; // r14\n  __m128 width_low; // xmm0\n  __m128 v4; // xmm2\n  _BYTE v5[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  a1->m_showCancel = 0;\n  v1 = MusicDownloadManager::sharedState();\n  MusicDownloadManager::downloadSFX(v1, a1->m_sfxID);\n  m_progressBarSprite = a1->m_progressBarSprite;\n  width_low = (__m128)LODWORD(a1->m_progressOutlineSprite->m_obRect.size.width);\n  width_low.f32[0] = width_low.f32[0] + -4.0;\n  v4 = width_low;\n  v4.f32[0] = fminf(width_low.f32[0] * 0.0, width_low.f32[0]);\n  sub_10028CC00((__int64)v5, 0.0, 0.0, v4, (__m128)0x41000000u);\n  ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))m_progressBarSprite->setTextureRect)(m_progressBarSprite, v5);\n  CustomSFXWidget::showLoadingArt(a1);\n  cocos2d::CCNode::unschedule(a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)CustomSFXWidget::updateDownloadProgress);\n  cocos2d::CCNode::schedule_1(\n    a1,\n    (cocos2d::SEL_SCHEDULE)(unsigned __int64)CustomSFXWidget::updateDownloadProgress,\n    0.033333335);\n}", "assembly": "; \n; CustomSFXWidget::startDownload from 0x1005e48e0 to 0x1005e4998 (184 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1005e48e0\nmov     rbp, rsp                                                       ; +0x1, 0x1005e48e1\npush    r15                                                            ; +0x4, 0x1005e48e4\npush    r14                                                            ; +0x6, 0x1005e48e6\npush    rbx                                                            ; +0x8, 0x1005e48e8\nsub     rsp, 18h                                                       ; +0x9, 0x1005e48e9\nmov     rbx, rdi                                                       ; +0xd, 0x1005e48ed\nmov     byte ptr [rdi+1C3h], 0                                         ; +0x10, 0x1005e48f0\ncall    MusicDownloadManager__sharedState                              ; +0x17, 0x1005e48f7\nmov     esi, [rbx+1C8h]                                                ; +0x1c, 0x1005e48fc\nmov     rdi, rax                                                       ; +0x22, 0x1005e4902\ncall    MusicDownloadManager__downloadSFX                              ; +0x25, 0x1005e4905\nmov     rax, [rbx+1A0h]                                                ; +0x2a, 0x1005e490a\nmov     r14, [rbx+1A8h]                                                ; +0x31, 0x1005e4911\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0x38, 0x1005e4918\naddss   xmm0, cs:dword_100815290                                       ; +0x40, 0x1005e4920\nxorps   xmm1, xmm1                                                     ; +0x48, 0x1005e4928\nmovaps  xmm2, xmm0                                                     ; +0x4b, 0x1005e492b\nmulss   xmm2, xmm1                                                     ; +0x4e, 0x1005e492e\nminss   xmm2, xmm0                                                     ; +0x52, 0x1005e4932\nlea     r15, [rbp+var_28]                                              ; +0x56, 0x1005e4936\nmovss   xmm3, cs:dword_100815034                                       ; +0x5a, 0x1005e493a\nxorps   xmm0, xmm0                                                     ; +0x62, 0x1005e4942\nmov     rdi, r15                                                       ; +0x65, 0x1005e4945\ncall    sub_10028CC00                                                  ; +0x68, 0x1005e4948\nmov     rax, [r14]                                                     ; +0x6d, 0x1005e494d\nmov     rdi, r14                                                       ; +0x70, 0x1005e4950\nmov     rsi, r15                                                       ; +0x73, 0x1005e4953\ncall    qword ptr [rax+460h]                                           ; +0x76, 0x1005e4956\nmov     rdi, rbx                                                       ; +0x7c, 0x1005e495c\ncall    CustomSFXWidget__showLoadingArt                                ; +0x7f, 0x1005e495f\nlea     r14, CustomSFXWidget__updateDownloadProgress                   ; +0x84, 0x1005e4964\nmov     rdi, rbx                                                       ; +0x8b, 0x1005e496b\nmov     rsi, r14                                                       ; +0x8e, 0x1005e496e\nxor     edx, edx                                                       ; +0x91, 0x1005e4971\ncall    cocos2d__CCNode__unschedule                                    ; +0x93, 0x1005e4973\nmovss   xmm0, cs:dword_10081646C                                       ; +0x98, 0x1005e4978\nmov     rdi, rbx                                                       ; +0xa0, 0x1005e4980\nmov     rsi, r14                                                       ; +0xa3, 0x1005e4983\nxor     edx, edx                                                       ; +0xa6, 0x1005e4986\ncall    cocos2d__CCNode__schedule_1                                    ; +0xa8, 0x1005e4988\nadd     rsp, 18h                                                       ; +0xad, 0x1005e498d\npop     rbx                                                            ; +0xb1, 0x1005e4991\npop     r14                                                            ; +0xb2, 0x1005e4992\npop     r15                                                            ; +0xb4, 0x1005e4994\npop     rbp                                                            ; +0xb6, 0x1005e4996\nretn                                                                   ; +0xb7, 0x1005e4997", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}