//
// WebPValidateConfig from 0xf13b10 to 0xf13c60 (336 bytes)
//
// 8 xrefs:
// > WebPConfigInitInternal @ 0xf13cfc
// > WebPConfigInitInternal @ 0xf13d28
// > WebPConfigInitInternal @ 0xf13d44
// > WebPConfigInitInternal @ 0xf13d68
// > WebPConfigInitInternal @ 0xf13d84
// > WebPConfigInitInternal @ 0xf13d98
// > WebPEncode @ 0xf2b710
// > ??> @ 0xc94d8
//
// 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 13:12:30 +0000
//
__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;
}