//
// WebPDecodeYUV from 0x700410 to 0x7004ac (156 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
//
int __fastcall WebPDecodeYUV(
unsigned __int8 *a1,
unsigned int a2,
_DWORD *a3,
_DWORD *a4,
_DWORD *a5,
_DWORD *a6,
_DWORD *a7,
_DWORD *a8)
{
int result; // r0
int v13; // r1
int v14; // r2
int v15; // r3
_DWORD v16[21]; // [sp+0h] [bp-224h] BYREF
int v17; // [sp+54h] [bp-1D0h] BYREF
int v18; // [sp+58h] [bp-1CCh] BYREF
int v19; // [sp+5Ch] [bp-1C8h] BYREF
int v20; // [sp+64h] [bp-1C0h]
unsigned int *v21[95]; // [sp+A8h] [bp-17Ch] BYREF
WebPInitDecBufferInternal(&v17, 520);
memset(v21, 0, 0x178u);
v21[0] = (unsigned int *)&v17;
v17 = 11;
if ( !WebPGetInfo(a1, a2, &v18, &v19) )
return 0;
if ( a3 )
*a3 = v18;
if ( a4 )
*a4 = v19;
if ( sub_6FF874(a1, a2, v21) )
return 0;
sub_6F72D8(&v17, v16);
result = v20;
if ( v20 )
{
v13 = v16[6];
v14 = v16[8];
*a5 = v16[5];
v15 = v16[9];
*a6 = v13;
*a7 = v14;
*a8 = v15;
}
return result;
}