//
// sub_6FFC68 from 0x6ffc68 to 0x6ffcc0 (88 bytes)
//
// 5 xrefs:
// > WebPDecodeRGBInto @ 0x6fffb2
// > WebPDecodeRGBAInto @ 0x6fffd2
// > WebPDecodeARGBInto @ 0x6ffff2
// > WebPDecodeBGRInto @ 0x700012
// > WebPDecodeBGRAInto @ 0x700032
//
// 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_6FFC68(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_6FF874(a2, a3, v12) )
return 0;
else
return a4;
}