//
// sub_C61BF0 from 0xc61bf0 to 0xc61c30 (64 bytes)
//
// 2 xrefs:
// > TIFFInitThunderScan @ 0xc620a0
// > TIFFInitThunderScan @ 0xc620a8
//
// 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
//
__int64 __fastcall sub_C61BF0(__int64 a1)
{
unsigned int v1; // w1
int v2; // w3
v1 = 1;
v2 = *(unsigned __int16 *)(a1 + 116);
if ( v2 != 4 )
{
TIFFErrorExt(
*(_QWORD *)(a1 + 952),
(__int64)"ThunderSetupDecode",
"Wrong bitspersample value (%d), Thunder decoder only supports 4bits per sample.",
v2);
return 0;
}
return v1;
}