//
// WebPINewDecoder from 0xc66e64 to 0xc66f18 (180 bytes)
//
// 5 xrefs:
// > WebPIDecode @ 0xc66f50
// > WebPIDecode @ 0xc66f78
// > WebPINewRGB @ 0xc67074
// > WebPINewYUVA @ 0xc67170
// > ??> @ 0x64e30
//
// 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
//
__int64 __fastcall WebPINewDecoder(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x20
v2 = WebPSafeCalloc(1, 872);
v3 = v2;
if ( !v2 )
return 0;
*(_DWORD *)v2 = 0;
v4 = v2 + 736;
*(_QWORD *)(v2 + 856) = 0;
*(_DWORD *)(v2 + 680) = 0;
*(_QWORD *)(v2 + 712) = 0;
*(_DWORD *)(v2 + 864) = -1;
*(_QWORD *)(v2 + 704) = 0;
*(_QWORD *)(v2 + 728) = 0;
*(_QWORD *)(v2 + 720) = 0;
WebPInitDecBufferInternal((_QWORD *)(v2 + 736), 520);
sub_C6B310(v3 + 520, 520);
sub_C711C8(v3 + 8);
if ( a1 )
v4 = a1;
*(_QWORD *)(v3 + 8) = v4;
sub_C68F90(v3 + 8, v3 + 520);
return v3;
}