//
// LoadingLayer::updateProgress from 0x30b684 to 0x30b6ee (106 bytes)
//
// 2 xrefs:
// > LoadingLayer::loadAssets @ 0x30bb40
// > LoadingLayer::init @ 0x30c67e
//
// 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; // s14
cocos2d::CCSprite *m_sliderBar; // r6
void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // r7
float v5; // r3
cocos2d::CCRect v6; // [sp+Ch] [bp-18h] BYREF
m_sliderGrooveXPos = a1->m_sliderGrooveXPos;
m_sliderBar = a1->m_sliderBar;
setTextureRect = m_sliderBar->setTextureRect;
if ( m_sliderGrooveXPos > (float)(m_sliderGrooveXPos * (float)((float)a2 / 100.0)) )
v5 = m_sliderGrooveXPos * (float)((float)a2 / 100.0);
else
v5 = a1->m_sliderGrooveXPos;
cocos2d::CCRect::CCRect(&v6, 0.0, 0.0, v5, a1->m_sliderGrooveHeight);
setTextureRect(m_sliderBar, &v6);
}