//
// TIFFWriteRawTile from 0x6f444c to 0x6f4538 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x5899c
//
// 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 TIFFWriteRawTile(_DWORD *a1, unsigned int a2, int a3, int a4)
{
if ( (a1[3] & 0x40) == 0 && !TIFFWriteCheck(a1, 1, "TIFFWriteRawTile") )
return -1;
if ( a1[42] > a2 )
{
if ( sub_6F4D98(a1, a2, a3, a4) )
return a4;
else
return -1;
}
else
{
TIFFErrorExt(a1[157], (int)"TIFFWriteRawTile", "Tile %lu out of range, max %lu", a2, a1[42]);
return -1;
}
}