//
// sub_7004AC from 0x7004ac to 0x700520 (116 bytes)
//
// 5 xrefs:
// > WebPDecodeRGB @ 0x700532
// > WebPDecodeRGBA @ 0x70054e
// > WebPDecodeARGB @ 0x70056a
// > WebPDecodeBGR @ 0x700586
// > WebPDecodeBGRA @ 0x7005a2
//
// 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
//
int __fastcall sub_7004AC(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_6FF874(a2, a3, v13) )
return 0;
else
return v12[2];
}