//
// sub_6E0BE4 from 0x6e0be4 to 0x6e0c8c (168 bytes)
//
// 3 xrefs:
// > TIFFInitPackBits @ 0x6e16b4
// > TIFFInitPackBits @ 0x6e16b8
// > ??> @ 0x6e1720
//
// 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_6E0BE4(int a1)
{
_DWORD *v2; // r4
*(_DWORD *)(a1 + 576) = TIFFmalloc(4);
if ( !*(_DWORD *)(a1 + 576) )
return 0;
v2 = *(_DWORD **)(a1 + 576);
if ( (*(_DWORD *)(a1 + 12) & 0x400) != 0 )
*v2 = TIFFTileRowSize(a1);
else
*v2 = TIFFScanlineSize(a1);
return 1;
}