//
// sub_8EE178 from 0x8ee178 to 0x8ee2a0 (296 bytes)
//
// 3 xrefs:
// > TIFFInitLZW @ 0x8eeeec
// > TIFFInitLZW @ 0x8eeef0
// > ??> @ 0x8eefbc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:12 +0000
//
int __fastcall sub_8EE178(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_8EEC30(v3);
*(_DWORD *)(v3 + 128) = 0xFFFF;
return 1;
}