//
// TIFFFindCODEC from 0x8b29ec to 0x8b2ab4 (200 bytes)
//
// 7 xrefs:
// > sub_8B10CC @ 0x8b10e8
// > TIFFIsCODECConfigured @ 0x8b1210
// > sub_8B23C0 @ 0x8b23e0
// > sub_8B255C @ 0x8b257c
// > TIFFSetCompressionScheme @ 0x8b29a0
// > TIFFPrintDirectory @ 0x8fb84c
// > ??> @ 0x6ac6c
//
// 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:03:54 +0000
//
char **__fastcall TIFFFindCODEC(__int16 a1)
{
char **j; // [sp+8h] [bp-Ch]
_DWORD *i; // [sp+Ch] [bp-8h]
for ( i = (_DWORD *)dword_D31670; i; i = (_DWORD *)*i )
{
if ( a1 == *(_WORD *)(i[1] + 4) )
return (char **)i[1];
}
for ( j = &TIFFBuiltinCODECS; *j; j += 3 )
{
if ( a1 == *((_WORD *)j + 2) )
return j;
}
return nullptr;
}