//
// WebPINewDecoder from 0xedd024 to 0xedd0d8 (180 bytes)
//
// 5 xrefs:
// > WebPIDecode @ 0xedd110
// > WebPIDecode @ 0xedd138
// > WebPINewRGB @ 0xedd234
// > WebPINewYUVA @ 0xedd330
// > ??> @ 0x89200
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:46 +0000
//
__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_EE14D0(v3 + 520, 520);
sub_EE7388(v3 + 8);
if ( a1 )
v4 = a1;
*(_QWORD *)(v3 + 8) = v4;
sub_EDF150(v3 + 8, v3 + 520);
return v3;
}