//
// TIFFFindCODEC from 0x6a296c to 0x6a2a34 (200 bytes)
//
// 7 xrefs:
// > sub_6A104C @ 0x6a1068
// > TIFFIsCODECConfigured @ 0x6a1190
// > sub_6A2340 @ 0x6a2360
// > sub_6A24DC @ 0x6a24fc
// > TIFFSetCompressionScheme @ 0x6a2920
// > TIFFPrintDirectory @ 0x6ebc8c
// > ??> @ 0x57c5c
//
// 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
//
char **__fastcall TIFFFindCODEC(__int16 a1)
{
char **j; // [sp+8h] [bp-Ch]
_DWORD *i; // [sp+Ch] [bp-8h]
for ( i = (_DWORD *)dword_ACAED8; 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;
}