//
// WebPIDecGetRGB from 0xc677c0 to 0xc67838 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x631e0
//
// 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 WebPIDecGetRGB(__int64 a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
__int64 v5; // x6
__int64 v6; // x5
if ( !a1 || !*(_QWORD *)(a1 + 512) )
return 0;
v5 = 0;
if ( *(_DWORD *)a1 > 2u )
{
v6 = *(_QWORD *)(a1 + 8);
if ( v6 )
{
if ( *(_DWORD *)v6 <= 0xAu )
{
if ( a2 )
*a2 = *(_DWORD *)(a1 + 40);
if ( a3 )
*a3 = *(_DWORD *)(v6 + 4);
if ( a4 )
*a4 = *(_DWORD *)(v6 + 8);
if ( a5 )
*a5 = *(_DWORD *)(v6 + 24);
return *(_QWORD *)(v6 + 16);
}
}
}
return v5;
}