//
// sub_C6B400 from 0xc6b400 to 0xc6b46c (108 bytes)
//
// 2 xrefs:
// > WebPIDelete @ 0xc66fbc
// > sub_C706DC @ 0xc70b58
//
// 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
//
void __fastcall sub_C6B400(__int64 a1)
{
__int64 v2; // x0
if ( a1 )
{
v2 = WebPGetWorkerInterface(a1);
(*(void (__fastcall **)(__int64))(v2 + 40))(a1 + 152);
sub_C643F4(*(_QWORD **)(a1 + 2960));
*(_QWORD *)(a1 + 2960) = 0;
WebPSafeFree(*(void **)(a1 + 2888));
*(_QWORD *)(a1 + 2888) = 0;
*(_QWORD *)(a1 + 2896) = 0;
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0;
*(_DWORD *)(a1 + 4) = 0;
WebPSafeFree((void *)a1);
}
}