//
// sub_90F828 from 0x90f828 to 0x90f880 (88 bytes)
//
// 5 xrefs:
// > WebPDecodeRGBInto @ 0x90fb72
// > WebPDecodeRGBAInto @ 0x90fb92
// > WebPDecodeARGBInto @ 0x90fbb2
// > WebPDecodeBGRInto @ 0x90fbd2
// > WebPDecodeBGRAInto @ 0x90fbf2
//
// 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:26 +0000
//
int __fastcall sub_90F828(int a1, unsigned __int8 *a2, unsigned int a3, int a4, int a5, int a6)
{
_DWORD v11[21]; // [sp+4h] [bp-1D0h] BYREF
unsigned int *v12[95]; // [sp+58h] [bp-17Ch] BYREF
if ( !a4 )
return 0;
WebPInitDecBufferInternal(v11, 520);
memset(v12, 0, 0x178u);
v12[0] = v11;
v11[0] = a1;
v11[4] = a4;
v11[5] = a5;
v11[3] = 1;
v11[6] = a6;
if ( sub_90F434(a2, a3, v12) )
return 0;
else
return a4;
}