//
// TIFFReadTile from 0x6eea8c to 0x6eeb34 (168 bytes)
//
// 6 xrefs:
// > sub_6CAEE0 @ 0x6cb0e0
// > sub_6CB3B0 @ 0x6cb71c
// > sub_6CB3B0 @ 0x6cb794
// > sub_6CB3B0 @ 0x6cb80c
// > sub_6CB3B0 @ 0x6cb888
// > ??> @ 0x5845c
//
// 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 TIFFReadTile(int a1, int a2, int a3, int a4, int a5, unsigned __int16 a6)
{
int v7; // r0
if ( !sub_6EFC84(a1, 1) || !TIFFCheckTile(a1, a3, a4, a5, a6) )
return -1;
v7 = TIFFComputeTile(a1, a3, a4, a5, a6);
return TIFFReadEncodedTile(a1, v7, a2, -1);
}