//
// CustomSongWidget::startDownload from 0x1400cada0 to 0x1400cae53 (179 bytes)
//
// 5 xrefs:
// > CustomSongWidget::init @ 0x1400c95c1
// > CustomSongWidget::onDownload @ 0x1400cad76
// > CustomSongWidget::loadSongInfoFinished @ 0x1400ccdc1
// > CustomSongWidget::downloadSongStarted @ 0x1400ccf15
// > ??> @ 0x1406c8304
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CustomSongWidget::startDownload(CustomSongWidget *a1)
{
cocos2d::CCSprite *m_sliderBar; // rbx
cocos2d::CCSprite_vtbl *v3; // rdi
const cocos2d::CCRect *v4; // rax
_BOOL8 v5; // rdx
cocos2d::CCRect v6; // [rsp+30h] [rbp-18h] BYREF
m_sliderBar = a1->m_sliderBar;
v3 = m_sliderBar->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCRect::CCRect(
&v6,
0.0,
0.0,
fminf(a1->m_sliderGroove->m_obRect.size.width - 4.0, (float)(a1->m_sliderGroove->m_obRect.size.width - 4.0) * 0.0),
8.0);
v3->setTextureRect_0(m_sliderBar, v4);
LOBYTE(v5) = 1;
a1->m_sliderGroove->setVisible(a1->m_sliderGroove, v5);
cocos2d::CCNode::unschedule(a1, CustomSongWidget::updateDownloadProgress);
cocos2d::CCNode::schedule(a1, CustomSongWidget::updateDownloadProgress);
}