{"type": "func", "start": 4301386048, "end": 4301386245, "name": "CustomSongWidget::startDownload", "pseudocode": "// \n// CustomSongWidget::startDownload from 0x10061f140 to 0x10061f205 (197 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 CustomSongWidget::startDownload(CustomSongWidget *a1)\n{\n  MusicDownloadManager *v1; // rax\n  cocos2d::CCSprite *m_sliderBar; // r14\n  __m128 width_low; // xmm0\n  __m128 v4; // xmm2\n  _BYTE v5[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  a1->m_isNotDownloading = 0;\n  v1 = MusicDownloadManager::sharedState();\n  MusicDownloadManager::downloadSong(v1, a1->m_customSongID);\n  m_sliderBar = a1->m_sliderBar;\n  width_low = (__m128)LODWORD(a1->m_sliderGroove->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_sliderBar->setTextureRect)(m_sliderBar, v5);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_sliderGroove->setVisible)(a1->m_sliderGroove, 1);\n  cocos2d::CCNode::unschedule(a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)CustomSongWidget::updateDownloadProgress);\n  cocos2d::CCNode::schedule_1(\n    a1,\n    (cocos2d::SEL_SCHEDULE)(unsigned __int64)CustomSongWidget::updateDownloadProgress,\n    0.033333335);\n}", "assembly": "; \n; CustomSongWidget::startDownload from 0x10061f140 to 0x10061f205 (197 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, 0x10061f140\nmov     rbp, rsp                                                       ; +0x1, 0x10061f141\npush    r15                                                            ; +0x4, 0x10061f144\npush    r14                                                            ; +0x6, 0x10061f146\npush    rbx                                                            ; +0x8, 0x10061f148\nsub     rsp, 18h                                                       ; +0x9, 0x10061f149\nmov     rbx, rdi                                                       ; +0xd, 0x10061f14d\nmov     byte ptr [rdi+1EBh], 0                                         ; +0x10, 0x10061f150\ncall    MusicDownloadManager__sharedState                              ; +0x17, 0x10061f157\nmov     esi, [rbx+1F0h]                                                ; +0x1c, 0x10061f15c\nmov     rdi, rax                                                       ; +0x22, 0x10061f162\ncall    MusicDownloadManager__downloadSong                             ; +0x25, 0x10061f165\nmov     rax, [rbx+1C0h]                                                ; +0x2a, 0x10061f16a\nmov     r14, [rbx+1C8h]                                                ; +0x31, 0x10061f171\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0x38, 0x10061f178\naddss   xmm0, cs:dword_100815290                                       ; +0x40, 0x10061f180\nxorps   xmm1, xmm1                                                     ; +0x48, 0x10061f188\nmovaps  xmm2, xmm0                                                     ; +0x4b, 0x10061f18b\nmulss   xmm2, xmm1                                                     ; +0x4e, 0x10061f18e\nminss   xmm2, xmm0                                                     ; +0x52, 0x10061f192\nlea     r15, [rbp+var_28]                                              ; +0x56, 0x10061f196\nmovss   xmm3, cs:dword_100815034                                       ; +0x5a, 0x10061f19a\nxorps   xmm0, xmm0                                                     ; +0x62, 0x10061f1a2\nmov     rdi, r15                                                       ; +0x65, 0x10061f1a5\ncall    sub_10028CC00                                                  ; +0x68, 0x10061f1a8\nmov     rax, [r14]                                                     ; +0x6d, 0x10061f1ad\nmov     rdi, r14                                                       ; +0x70, 0x10061f1b0\nmov     rsi, r15                                                       ; +0x73, 0x10061f1b3\ncall    qword ptr [rax+460h]                                           ; +0x76, 0x10061f1b6\nmov     rdi, [rbx+1C0h]                                                ; +0x7c, 0x10061f1bc\nmov     rax, [rdi]                                                     ; +0x83, 0x10061f1c3\nmov     esi, 1                                                         ; +0x86, 0x10061f1c6\ncall    qword ptr [rax+148h]                                           ; +0x8b, 0x10061f1cb\nlea     r14, CustomSongWidget__updateDownloadProgress                  ; +0x91, 0x10061f1d1\nmov     rdi, rbx                                                       ; +0x98, 0x10061f1d8\nmov     rsi, r14                                                       ; +0x9b, 0x10061f1db\nxor     edx, edx                                                       ; +0x9e, 0x10061f1de\ncall    cocos2d__CCNode__unschedule                                    ; +0xa0, 0x10061f1e0\nmovss   xmm0, cs:dword_10081646C                                       ; +0xa5, 0x10061f1e5\nmov     rdi, rbx                                                       ; +0xad, 0x10061f1ed\nmov     rsi, r14                                                       ; +0xb0, 0x10061f1f0\nxor     edx, edx                                                       ; +0xb3, 0x10061f1f3\ncall    cocos2d__CCNode__schedule_1                                    ; +0xb5, 0x10061f1f5\nadd     rsp, 18h                                                       ; +0xba, 0x10061f1fa\npop     rbx                                                            ; +0xbe, 0x10061f1fe\npop     r14                                                            ; +0xbf, 0x10061f1ff\npop     r15                                                            ; +0xc1, 0x10061f201\npop     rbp                                                            ; +0xc3, 0x10061f203\nretn                                                                   ; +0xc4, 0x10061f204", "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"}