//
// sub_6EFC84 from 0x6efc84 to 0x6efd54 (208 bytes)
//
// 6 xrefs:
// > TIFFReadScanline @ 0x6edd34
// > TIFFReadEncodedStrip @ 0x6ede28
// > TIFFReadRawStrip @ 0x6ee398
// > TIFFReadTile @ 0x6eeab0
// > TIFFReadEncodedTile @ 0x6eeb70
// > TIFFReadRawTile @ 0x6ef044
//
// 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_6EFC84(int *a1, int a2)
{
if ( a1[2] == 1 )
{
TIFFErrorExt(a1[157], *a1, "File not open for reading");
return 0;
}
else if ( ((a1[3] & 0x400) != 0) == a2 )
{
return 1;
}
else
{
if ( a2 )
TIFFErrorExt(a1[157], *a1, "Can not read tiles from a stripped image");
else
TIFFErrorExt(a1[157], *a1, "Can not read scanlines from a tiled image");
return 0;
}
}