//
// sub_8FF844 from 0x8ff844 to 0x8ff914 (208 bytes)
//
// 6 xrefs:
// > TIFFReadScanline @ 0x8fd8f4
// > TIFFReadEncodedStrip @ 0x8fd9e8
// > TIFFReadRawStrip @ 0x8fdf58
// > TIFFReadTile @ 0x8fe670
// > TIFFReadEncodedTile @ 0x8fe730
// > TIFFReadRawTile @ 0x8fec04
//
// 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:16 +0000
//
int __fastcall sub_8FF844(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;
}
}