//
// VideoOptionsLayer::updateTextureQuality from 0x140378050 to 0x1403780f6 (166 bytes)
//
// 4 xrefs:
// > VideoOptionsLayer::init @ 0x140377d18
// > VideoOptionsLayer::onTextureQualityPrev @ 0x140378038
// > VideoOptionsLayer::onTextureQualityNext @ 0x140378048
// > ??> @ 0x1406d5c18
//
// 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 VideoOptionsLayer::updateTextureQuality(VideoOptionsLayer *a1, int a2)
{
const char *v3; // rdx
int v4; // edx
int v5; // edx
if ( a2 > 3 )
{
a1->m_textureQuality = 0;
LABEL_3:
v3 = "Auto";
goto LABEL_4;
}
if ( a2 < 0 )
{
a1->m_textureQuality = 3;
v3 = "High";
goto LABEL_4;
}
a1->m_textureQuality = a2;
if ( !a2 )
goto LABEL_3;
v4 = a2 - 1;
if ( v4 )
{
v5 = v4 - 1;
if ( v5 )
{
if ( v5 != 1 )
goto LABEL_5;
v3 = "High";
}
else
{
v3 = (const char *)&dword_14055A68C;
}
}
else
{
v3 = "Low";
}
LABEL_4:
a1->m_qualityLabel->setString(&a1->m_qualityLabel->cocos2d::CCLabelProtocol, v3);
LABEL_5:
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_qualityLabel, 100.0, 0.75, 0.0);
}