//
// TIFFTileSize from 0x6f2f2c to 0x6f2fbc (144 bytes)
//
// 8 xrefs:
// > TIFFReadDirectory @ 0x6b2740
// > sub_6CAEE0 @ 0x6caf20
// > sub_6CAEE0 @ 0x6caf84
// > sub_6CB3B0 @ 0x6cb3fc
// > sub_6DC3D4 @ 0x6dc530
// > sub_6E7578 @ 0x6e777c
// > TIFFWriteCheck @ 0x6f494c
// > ??> @ 0x581ac
//
// 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 TIFFTileSize(_DWORD *a1)
{
unsigned __int64 v1; // kr00_8
int v4; // [sp+14h] [bp-8h]
v1 = TIFFTileSize64(a1);
v4 = v1;
if ( HIDWORD(v1) != (int)v1 >> 31 )
{
TIFFErrorExt(a1[157], (int)"TIFFTileSize", "Integer overflow");
return 0;
}
return v4;
}