//
// sub_91006C from 0x91006c to 0x9100e0 (116 bytes)
//
// 5 xrefs:
// > WebPDecodeRGB @ 0x9100f2
// > WebPDecodeRGBA @ 0x91010e
// > WebPDecodeARGB @ 0x91012a
// > WebPDecodeBGR @ 0x910146
// > WebPDecodeBGRA @ 0x910162
//
// 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_91006C(int a1, unsigned __int8 *a2, unsigned int a3, _DWORD *a4, _DWORD *a5)
{
int v10; // [sp+4h] [bp-1CCh] BYREF
int v11; // [sp+8h] [bp-1C8h] BYREF
int v12[19]; // [sp+Ch] [bp-1C4h] BYREF
unsigned int *v13[94]; // [sp+58h] [bp-178h] BYREF
WebPInitDecBufferInternal(&v10, 520);
memset(v13, 0, sizeof(v13));
v13[0] = (unsigned int *)&v10;
v10 = a1;
if ( !WebPGetInfo(a2, a3, &v11, v12) )
return 0;
if ( a4 )
*a4 = v11;
if ( a5 )
*a5 = v12[0];
if ( sub_90F434(a2, a3, v13) )
return 0;
else
return v12[2];
}