//
// WebPIDecode from 0x6f8bec to 0x6f8c2e (66 bytes)
//
// 0 xrefs:
//
// 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
//
_DWORD *__fastcall WebPIDecode(int a1, int a2, _DWORD *a3)
{
bool v3; // zf
_DWORD *result; // r0
v3 = a1 == 0;
if ( a1 )
v3 = a2 == 0;
if ( !v3 )
{
if ( a3 )
{
if ( WebPGetFeaturesInternal(a1, a2, a3) )
return nullptr;
goto LABEL_8;
}
LABEL_11:
result = WebPINewDecoder(nullptr);
if ( !result )
return nullptr;
return result;
}
if ( !a3 )
goto LABEL_11;
LABEL_8:
result = WebPINewDecoder(a3 + 10);
if ( !result )
return nullptr;
if ( a3 )
result[6] = a3 + 31;
return result;
}