//
// WebPINewRGB from 0x908854 to 0x9088a6 (82 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:20 +0000
//
_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;
}