//
// WebPINewRGB from 0xc67038 to 0xc670c8 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x81ca8
//
// 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 WebPINewRGB(unsigned int a1, __int64 a2, __int64 a3, int a4)
{
_BOOL4 v4; // w20
__int64 result; // x0
int v7; // [xsp+28h] [xbp+28h]
__int64 v8; // [xsp+30h] [xbp+30h]
v4 = a2 != 0;
if ( a1 > 0xA )
return 0;
if ( a2 )
{
if ( !a4 || !a3 )
return 0;
}
else
{
a4 = 0;
a3 = 0;
}
v7 = a4;
v8 = a3;
result = WebPINewDecoder(0);
if ( result )
{
*(_DWORD *)(result + 736) = a1;
*(_DWORD *)(result + 748) = v4;
*(_QWORD *)(result + 752) = a2;
*(_DWORD *)(result + 760) = v7;
*(_QWORD *)(result + 768) = v8;
return result;
}
return 0;
}