//
// sub_ED7DB0 from 0xed7db0 to 0xed7df0 (64 bytes)
//
// 2 xrefs:
// > TIFFInitThunderScan @ 0xed8260
// > TIFFInitThunderScan @ 0xed8268
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:43 +0000
//
__int64 __fastcall sub_ED7DB0(__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;
}