//
// TIFFTileRowSize from 0x902590 to 0x902620 (144 bytes)
//
// 8 xrefs:
// > sub_8D3A50 @ 0x8d3adc
// > sub_8DAAA0 @ 0x8dacfc
// > sub_8DAF70 @ 0x8db4a4
// > sub_8E78A0 @ 0x8e78c0
// > sub_8E89F8 @ 0x8e8a18
// > sub_8F07A4 @ 0x8f0810
// > sub_8F7750 @ 0x8f78f8
// > ??> @ 0x6b3ec
//
// 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 TIFFTileRowSize(int a1)
{
__int64 v1; // kr00_8
int v4; // [sp+14h] [bp-8h]
v1 = TIFFTileRowSize64(a1);
v4 = v1;
if ( HIDWORD(v1) != (int)v1 >> 31 )
{
TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"TIFFTileRowSize", "Integer overflow");
return 0;
}
return v4;
}