//
// sub_6F196C from 0x6f196c to 0x6f19dc (112 bytes)
//
// 3 xrefs:
// > TIFFInitThunderScan @ 0x6f21a0
// > TIFFInitThunderScan @ 0x6f21a4
// > ??> @ 0x6f21e0
//
// 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_6F196C(int a1)
{
if ( *(_WORD *)(a1 + 84) == 4 )
return 1;
TIFFErrorExt(
*(_DWORD *)(a1 + 628),
(int)"ThunderSetupDecode",
"Wrong bitspersample value (%d), Thunder decoder only supports 4bits per sample.",
*(unsigned __int16 *)(a1 + 84));
return 0;
}