//
// WebPIDecode from 0xc66f18 to 0xc66f8c (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x303c0
//
// 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 WebPIDecode(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // x0
if ( a1 && a2 )
{
if ( a3 )
{
if ( (unsigned int)WebPGetFeaturesInternal() )
return 0;
goto LABEL_7;
}
LABEL_11:
result = WebPINewDecoder(0);
if ( !result )
return 0;
return result;
}
if ( !a3 )
goto LABEL_11;
LABEL_7:
result = WebPINewDecoder(a3 + 40);
if ( !result )
return 0;
if ( a3 )
*(_QWORD *)(result + 48) = a3 + 160;
return result;
}