//
// WebPValidateConfig from 0xc9d950 to 0xc9daa0 (336 bytes)
//
// 8 xrefs:
// > WebPConfigInitInternal @ 0xc9db3c
// > WebPConfigInitInternal @ 0xc9db68
// > WebPConfigInitInternal @ 0xc9db84
// > WebPConfigInitInternal @ 0xc9dba8
// > WebPConfigInitInternal @ 0xc9dbc4
// > WebPConfigInitInternal @ 0xc9dbd8
// > WebPEncode @ 0xcb5550
// > ??> @ 0x98748
//
// 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
//
__int64 __fastcall WebPValidateConfig(__int64 a1)
{
float v1; // s0
unsigned int v2; // w1
if ( !a1 )
return 0;
v1 = *(float *)(a1 + 4);
v2 = 0;
if ( v1 >= 0.0
&& v1 <= 100.0
&& (*(_DWORD *)(a1 + 16) & 0x80000000) == 0
&& *(float *)(a1 + 20) >= 0.0
&& *(_DWORD *)(a1 + 8) <= 6u
&& (unsigned int)(*(_DWORD *)(a1 + 24) - 1) <= 3
&& *(_DWORD *)(a1 + 28) <= 0x64u
&& *(_DWORD *)(a1 + 32) <= 0x64u
&& *(_DWORD *)(a1 + 36) <= 7u
&& *(_DWORD *)(a1 + 40) <= 1u
&& *(_DWORD *)(a1 + 44) <= 1u
&& (unsigned int)(*(_DWORD *)(a1 + 60) - 1) <= 9
&& *(_DWORD *)(a1 + 64) <= 1u
&& *(_DWORD *)(a1 + 68) <= 7u
&& *(_DWORD *)(a1 + 72) <= 3u
&& *(_DWORD *)(a1 + 76) <= 0x64u
&& (*(_DWORD *)(a1 + 48) & 0x80000000) == 0
&& (*(_DWORD *)(a1 + 52) & 0x80000000) == 0
&& *(_DWORD *)(a1 + 56) <= 0x64u
&& *(_DWORD *)a1 <= 1u
&& *(_DWORD *)(a1 + 92) <= 0x64u
&& *(_DWORD *)(a1 + 12) <= 3u
&& *(_DWORD *)(a1 + 80) <= 1u
&& *(_DWORD *)(a1 + 84) <= 1u
&& *(_DWORD *)(a1 + 88) <= 1u )
{
return *(_DWORD *)(a1 + 96) <= 1u;
}
return v2;
}