//
// sub_6F2090 from 0x6f2090 to 0x6f2180 (240 bytes)
//
// 6 xrefs:
// > TIFFInitThunderScan @ 0x6f21b0
// > TIFFInitThunderScan @ 0x6f21b4
// > TIFFInitThunderScan @ 0x6f21c0
// > TIFFInitThunderScan @ 0x6f21c4
// > ??> @ 0x6f21e4
// > ??> @ 0x6f21e8
//
// 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 sub_6F2090(_DWORD *a1, char *a2, int a3)
{
int v5; // [sp+4h] [bp-18h]
v5 = a3;
if ( a3 % a1[145] )
{
TIFFErrorExt(a1[157], (int)"ThunderDecodeRow", "Fractional scanlines cannot be read");
return 0;
}
else
{
while ( v5 > 0 )
{
if ( !sub_6F19E4(a1, a2, a1[14]) )
return 0;
v5 -= a1[145];
a2 += a1[145];
}
return 1;
}
}