//
// sub_6DE5B8 from 0x6de5b8 to 0x6de6e0 (296 bytes)
//
// 3 xrefs:
// > TIFFInitLZW @ 0x6df32c
// > TIFFInitLZW @ 0x6df330
// > ??> @ 0x6df3fc
//
// 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_6DE5B8(int a1)
{
int v3; // [sp+Ch] [bp-8h]
v3 = *(_DWORD *)(a1 + 576);
if ( !v3 )
_assert2();
if ( !*(_DWORD *)(v3 + 152) )
(*(void (__fastcall **)(int))(a1 + 516))(a1);
*(_WORD *)(v3 + 64) = 9;
*(_WORD *)(v3 + 66) = 511;
*(_WORD *)(v3 + 68) = 258;
*(_DWORD *)(v3 + 76) = 0;
*(_DWORD *)(v3 + 72) = 0;
*(_DWORD *)(v3 + 132) = 10000;
*(_DWORD *)(v3 + 136) = 0;
*(_DWORD *)(v3 + 140) = 0;
*(_DWORD *)(v3 + 144) = 0;
*(_DWORD *)(v3 + 148) = *(_DWORD *)(a1 + 588) + *(_DWORD *)(a1 + 592) - 5;
sub_6DF070(v3);
*(_DWORD *)(v3 + 128) = 0xFFFF;
return 1;
}