{"type": "func", "start": 5369541696, "end": 5369541823, "name": "CustomSongWidget::updateProgressBar", "pseudocode": "// \n// CustomSongWidget::updateProgressBar from 0x1400cb440 to 0x1400cb4bf (127 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::updateDownloadProgress @ 0x1400cb40b\n// > <???> @ 0x1406c8340\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 CustomSongWidget::updateProgressBar(CustomSongWidget *a1, int a2)\n{\n  cocos2d::CCSprite *m_sliderBar; // rbx\n  cocos2d::CCSprite_vtbl *v3; // rdi\n  const cocos2d::CCRect *v4; // rax\n  cocos2d::CCRect v5; // [rsp+30h] [rbp-18h] BYREF\n\n  m_sliderBar = a1->m_sliderBar;\n  v3 = m_sliderBar->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( a2 < 0 )\n    a2 = 0;\n  cocos2d::CCRect::CCRect(\n    &v5,\n    0.0,\n    0.0,\n    fminf(\n      a1->m_sliderGroove->m_obRect.size.width - 4.0,\n      (float)((float)a2 / 100.0) * (float)(a1->m_sliderGroove->m_obRect.size.width - 4.0)),\n    8.0);\n  v3->setTextureRect_0(m_sliderBar, v4);\n}", "assembly": "; \n; CustomSongWidget::updateProgressBar from 0x1400cb440 to 0x1400cb4bf (127 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::updateDownloadProgress @ 0x1400cb40b\n; > <???> @ 0x1406c8340\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     [rsp+arg_0], rbx                                               ; +0x0, 0x1400cb440\npush    rdi                                                            ; +0x5, 0x1400cb445\nsub     rsp, 40h                                                       ; +0x6, 0x1400cb446\nmov     rax, [rcx+1C0h]                                                ; +0xa, 0x1400cb44a\nxorps   xmm2, xmm2                                                     ; +0x11, 0x1400cb451\nmov     rbx, [rcx+1C8h]                                                ; +0x14, 0x1400cb454\nxorps   xmm1, xmm1                                                     ; +0x1b, 0x1400cb45b\nlea     rcx, [rsp+48h+var_18]                                          ; +0x1e, 0x1400cb45e\nmovss   xmm3, dword ptr [rax+1B0h]                                     ; +0x23, 0x1400cb463\nxor     eax, eax                                                       ; +0x2b, 0x1400cb46b\nsubss   xmm3, cs:dword_140622FF0                                       ; +0x2d, 0x1400cb46d\nmov     rdi, [rbx]                                                     ; +0x35, 0x1400cb475\ntest    edx, edx                                                       ; +0x38, 0x1400cb478\ncmovs   edx, eax                                                       ; +0x3a, 0x1400cb47a\nmovd    xmm0, edx                                                      ; +0x3d, 0x1400cb47d\ncvtdq2ps xmm0, xmm0                                                    ; +0x41, 0x1400cb481\ndivss   xmm0, cs:dword_1406232BC                                       ; +0x44, 0x1400cb484\nmulss   xmm0, xmm3                                                     ; +0x4c, 0x1400cb48c\nminss   xmm3, xmm0                                                     ; +0x50, 0x1400cb490\nmovss   xmm0, cs:dword_140623068                                       ; +0x54, 0x1400cb494\nmovss   [rsp+48h+var_28], xmm0                                         ; +0x5c, 0x1400cb49c\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x62, 0x1400cb4a2\nmov     rdx, rax                                                       ; +0x68, 0x1400cb4a8\nmov     rcx, rbx                                                       ; +0x6b, 0x1400cb4ab\ncall    qword ptr [rdi+3D0h]                                           ; +0x6e, 0x1400cb4ae\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x74, 0x1400cb4b4\nadd     rsp, 40h                                                       ; +0x79, 0x1400cb4b9\npop     rdi                                                            ; +0x7d, 0x1400cb4bd\nretn                                                                   ; +0x7e, 0x1400cb4be", "xrefs": ["CustomSongWidget::updateDownloadProgress @ 0x1400cb40b", "<???> @ 0x1406c8340"], "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"}