{"type": "func", "start": 4301391856, "end": 4301392051, "name": "CustomSongWidget::downloadSongStarted", "pseudocode": "// \n// CustomSongWidget::downloadSongStarted from 0x1006207f0 to 0x1006208b3 (195 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100982248\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::downloadSongStarted(CustomSongWidget *a1, int a2)\n{\n  cocos2d::CCSprite *m_sliderBar; // r14\n  __m128 width_low; // xmm0\n  __m128 v4; // xmm2\n  _BYTE v5[48]; // [rsp-30h] [rbp-30h] BYREF\n\n  if ( a1->m_customSongID == a2 && a1->m_customSongID != 0 )\n  {\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  }\n}", "assembly": "; \n; CustomSongWidget::downloadSongStarted from 0x1006207f0 to 0x1006208b3 (195 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100982248\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\nmov     eax, [rdi+1F0h]                                                ; +0x0, 0x1006207f0\ncmp     eax, esi                                                       ; +0x6, 0x1006207f6\nsetnz   cl                                                             ; +0x8, 0x1006207f8\ntest    eax, eax                                                       ; +0xb, 0x1006207fb\nsetz    al                                                             ; +0xd, 0x1006207fd\nor      al, cl                                                         ; +0x10, 0x100620800\njnz     locret_1006208B2                                               ; +0x12, 0x100620802\npush    rbp                                                            ; +0x18, 0x100620808\nmov     rbp, rsp                                                       ; +0x19, 0x100620809\npush    r15                                                            ; +0x1c, 0x10062080c\npush    r14                                                            ; +0x1e, 0x10062080e\npush    rbx                                                            ; +0x20, 0x100620810\nsub     rsp, 18h                                                       ; +0x21, 0x100620811\nmov     rax, [rdi+1C0h]                                                ; +0x25, 0x100620815\nmov     r14, [rdi+1C8h]                                                ; +0x2c, 0x10062081c\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0x33, 0x100620823\naddss   xmm0, cs:dword_100815290                                       ; +0x3b, 0x10062082b\nxorps   xmm1, xmm1                                                     ; +0x43, 0x100620833\nmovaps  xmm2, xmm0                                                     ; +0x46, 0x100620836\nmulss   xmm2, xmm1                                                     ; +0x49, 0x100620839\nminss   xmm2, xmm0                                                     ; +0x4d, 0x10062083d\nlea     r15, [rbp-28h]                                                 ; +0x51, 0x100620841\nmovss   xmm3, cs:dword_100815034                                       ; +0x55, 0x100620845\nxorps   xmm0, xmm0                                                     ; +0x5d, 0x10062084d\nmov     rbx, rdi                                                       ; +0x60, 0x100620850\nmov     rdi, r15                                                       ; +0x63, 0x100620853\ncall    sub_10028CC00                                                  ; +0x66, 0x100620856\nmov     rax, [r14]                                                     ; +0x6b, 0x10062085b\nmov     rdi, r14                                                       ; +0x6e, 0x10062085e\nmov     rsi, r15                                                       ; +0x71, 0x100620861\ncall    qword ptr [rax+460h]                                           ; +0x74, 0x100620864\nmov     rdi, [rbx+1C0h]                                                ; +0x7a, 0x10062086a\nmov     rax, [rdi]                                                     ; +0x81, 0x100620871\nmov     esi, 1                                                         ; +0x84, 0x100620874\ncall    qword ptr [rax+148h]                                           ; +0x89, 0x100620879\nlea     r14, CustomSongWidget__updateDownloadProgress                  ; +0x8f, 0x10062087f\nmov     rdi, rbx                                                       ; +0x96, 0x100620886\nmov     rsi, r14                                                       ; +0x99, 0x100620889\nxor     edx, edx                                                       ; +0x9c, 0x10062088c\ncall    cocos2d__CCNode__unschedule                                    ; +0x9e, 0x10062088e\nmovss   xmm0, cs:dword_10081646C                                       ; +0xa3, 0x100620893\nmov     rdi, rbx                                                       ; +0xab, 0x10062089b\nmov     rsi, r14                                                       ; +0xae, 0x10062089e\nxor     edx, edx                                                       ; +0xb1, 0x1006208a1\ncall    cocos2d__CCNode__schedule_1                                    ; +0xb3, 0x1006208a3\nadd     rsp, 18h                                                       ; +0xb8, 0x1006208a8\npop     rbx                                                            ; +0xbc, 0x1006208ac\npop     r14                                                            ; +0xbd, 0x1006208ad\npop     r15                                                            ; +0xbf, 0x1006208af\npop     rbp                                                            ; +0xc1, 0x1006208b1\nretn                                                                   ; +0xc2, 0x1006208b2", "xrefs": ["<???> @ 0x100982248"], "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"}