//
// VideoOptionsLayer::onTextureQualityNext from 0x100881380 to 0x1008813f2 (114 bytes)
//
// 1 xrefs:
// > VideoOptionsLayer::init @ 0x100880b89
//
// This function is hookable on this platform (idp: pc, 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:36:57 +0000
//
__int64 __fastcall VideoOptionsLayer::onTextureQualityNext(__int64 a1)
{
int v1; // ecx
__int64 v2; // rdx
unsigned int v3; // eax
v1 = *(_DWORD *)(a1 + 704);
v2 = 3;
if ( v1 >= -1 )
v2 = (unsigned int)(v1 + 1);
v3 = 0;
if ( v1 < 3 )
v3 = v2;
*(_DWORD *)(a1 + 704) = v3;
if ( v3 <= 3 )
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 696) + 928LL))(
*(_QWORD *)(a1 + 696),
off_100BA66E0[v3],
v2);
return cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 696), 100.0, (__m128)0x3F400000u, (__m128)0LL);
}