//
// TIFFWriteRawTile from 0x90400c to 0x9040f8 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x6ba0c
//
// 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:18 +0000
//
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_904958(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;
}
}