//
// TIFFTileSize from 0x902aec to 0x902b7c (144 bytes)
//
// 8 xrefs:
// > TIFFReadDirectory @ 0x8c2300
// > sub_8DAAA0 @ 0x8daae0
// > sub_8DAAA0 @ 0x8dab44
// > sub_8DAF70 @ 0x8dafbc
// > sub_8EBF94 @ 0x8ec0f0
// > sub_8F7138 @ 0x8f733c
// > TIFFWriteCheck @ 0x90450c
// > ??> @ 0x6b1cc
//
// 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:17 +0000
//
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;
}