//
// sub_90152C from 0x90152c to 0x90159c (112 bytes)
//
// 3 xrefs:
// > TIFFInitThunderScan @ 0x901d60
// > TIFFInitThunderScan @ 0x901d64
// > ??> @ 0x901da0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:17 +0000
//
int __fastcall sub_90152C(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;
}