//
// TIFFRasterScanlineSize64 from 0xc60594 to 0xc6063c (168 bytes)
//
// 2 xrefs:
// > TIFFRasterScanlineSize @ 0xc6063c
// > ??> @ 0x36498
//
// 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
//
unsigned __int64 __fastcall TIFFRasterScanlineSize64(__int64 a1)
{
__int64 v1; // x19
unsigned __int64 v3; // x1
unsigned __int64 v5; // x0
bool v6; // zf
unsigned __int64 v7; // x0
__int64 v8; // x1
v1 = a1 + 56;
v3 = TIFFMultiply64(a1, *(unsigned __int16 *)(a1 + 116), *(unsigned int *)(a1 + 88), "TIFFRasterScanlineSize64");
if ( *(_WORD *)(v1 + 114) != 1 )
return TIFFMultiply64(a1, (v3 >> 3) + ((v3 & 7) != 0), *(unsigned __int16 *)(v1 + 74), "TIFFRasterScanlineSize64");
v5 = TIFFMultiply64(a1, v3, *(unsigned __int16 *)(v1 + 74), "TIFFRasterScanlineSize64");
v6 = (v5 & 7) == 0;
v7 = v5 >> 3;
v8 = !v6;
return v7 + v8;
}