//
// LoadingLayer::updateProgress from 0x5c4490 to 0x5c452c (156 bytes)
//
// 3 xrefs:
// > LoadingLayer::loadAssets @ 0x5c4600
// > LoadingLayer::init @ 0x5c5838
// > ??> @ 0x42768
//
// 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 LoadingLayer::updateProgress(LoadingLayer *a1, int a2)
{
float m_sliderGrooveXPos; // s1
float v3; // s2
cocos2d::CCSprite *m_sliderBar; // x20
void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x21
cocos2d::CCRect v6; // [xsp+48h] [xbp+48h] BYREF
m_sliderGrooveXPos = a1->m_sliderGrooveXPos;
v3 = m_sliderGrooveXPos * (float)((float)a2 / 100.0);
if ( m_sliderGrooveXPos <= v3 )
v3 = a1->m_sliderGrooveXPos;
m_sliderBar = a1->m_sliderBar;
setTextureRect = m_sliderBar->setTextureRect;
cocos2d::CCRect::CCRect(&v6, 0.0, 0.0, v3, a1->m_sliderGrooveHeight);
setTextureRect(m_sliderBar, &v6);
}