//
// WebPINewRGB from 0x6f8c94 to 0x6f8ce6 (82 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 WebPINewRGB(unsigned int a1, int a2, int a3, int a4)
{
int v4; // r5
bool v7; // zf
int v8; // r8
int v9; // r9
_DWORD *result; // r0
v4 = a2;
if ( a2 )
v4 = 1;
if ( a1 > 0xA )
return nullptr;
if ( v4 )
{
v7 = a3 == 0;
if ( a3 )
v7 = a4 == 0;
v8 = a3;
v9 = a4;
if ( !v7 )
goto LABEL_8;
return nullptr;
}
v9 = 0;
v8 = 0;
LABEL_8:
result = WebPINewDecoder(nullptr);
if ( result )
{
result[131] = a1;
result[134] = v4;
result[135] = a2;
result[136] = v9;
result[137] = v8;
}
return result;
}