//
// VideoOptionsLayer::updateTextureQuality from 0x8eef98 to 0x8ef0bc (292 bytes)
//
// 4 xrefs:
// > VideoOptionsLayer::onTextureQualityPrev @ 0x8ef0c8
// > VideoOptionsLayer::onTextureQualityNext @ 0x8ef0d4
// > VideoOptionsLayer::init @ 0x8f5700
// > ??> @ 0x46648
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:56:57 +0000
//
__int64 __fastcall VideoOptionsLayer::updateTextureQuality(VideoOptionsLayer *this, int a2)
{
if ( a2 > 3 )
{
*((_DWORD *)this + 176) = 0;
goto LABEL_9;
}
if ( a2 < 0 )
{
*((_DWORD *)this + 176) = 3;
LABEL_12:
(*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 87) + 928LL))(*((_QWORD *)this + 87), "High");
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 87), 100.0, 0.75, 0.0);
}
*((_DWORD *)this + 176) = a2;
if ( a2 == 2 )
{
(*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 87) + 928LL))(*((_QWORD *)this + 87), "Medium");
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 87), 100.0, 0.75, 0.0);
}
if ( a2 == 3 )
goto LABEL_12;
if ( a2 != 1 )
{
LABEL_9:
(*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 87) + 928LL))(*((_QWORD *)this + 87), "Auto");
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 87), 100.0, 0.75, 0.0);
}
(*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 87) + 928LL))(*((_QWORD *)this + 87), "Low");
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 87), 100.0, 0.75, 0.0);
}