//
// TIFFScanlineSize from 0x900948 to 0x9009d8 (144 bytes)
//
// 12 xrefs:
// > TIFFReadDirectory @ 0x8c2298
// > sub_8D3A50 @ 0x8d3afc
// > sub_8DB7A8 @ 0x8db8ec
// > sub_8DBC44 @ 0x8dbee0
// > sub_8E77A8 @ 0x8e77c8
// > sub_8E8900 @ 0x8e8920
// > sub_8EBF94 @ 0x8ec10c
// > sub_8F07A4 @ 0x8f0830
// > sub_8F7138 @ 0x8f7358
// > sub_8F7750 @ 0x8f7910
// > TIFFWriteCheck @ 0x90454c
// > ??> @ 0x6b1bc
//
// 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 TIFFScanlineSize(int a1)
{
unsigned __int64 v1; // kr00_8
int v4; // [sp+14h] [bp-8h]
v1 = TIFFScanlineSize64(a1);
v4 = v1;
if ( HIDWORD(v1) != (int)v1 >> 31 )
{
TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"TIFFScanlineSize", "Integer arithmetic overflow");
return 0;
}
return v4;
}