//
// TIFFGetConfiguredCODECs from 0x6a2c0c to 0x6a2e40 (564 bytes)
//
// 1 xrefs:
// > ??> @ 0x57dcc
//
// 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
//
int TIFFGetConfiguredCODECs()
{
int v2; // [sp+4h] [bp-20h]
_DWORD *i; // [sp+8h] [bp-1Ch]
char **j; // [sp+Ch] [bp-18h]
int v5; // [sp+10h] [bp-14h]
int v6; // [sp+14h] [bp-10h]
int v7; // [sp+14h] [bp-10h]
int v8; // [sp+14h] [bp-10h]
v2 = 1;
v5 = 0;
for ( i = (_DWORD *)dword_ACAED8; i; i = (_DWORD *)*i )
{
v6 = TIFFrealloc(v5, 12 * v2);
if ( !v6 )
goto LABEL_13;
v5 = v6;
TIFFmemcpy(v6 + 12 * (v2++ - 1), i, 12);
}
for ( j = &TIFFBuiltinCODECS; *j; j += 3 )
{
if ( TIFFIsCODECConfigured(*((_WORD *)j + 2)) )
{
v7 = TIFFrealloc(v5, 12 * v2);
if ( !v7 )
goto LABEL_13;
v5 = v7;
TIFFmemcpy(v7 + 12 * (v2++ - 1), j, 12);
}
}
v8 = TIFFrealloc(v5, 12 * v2);
if ( !v8 )
{
LABEL_13:
TIFFfree(v5);
return 0;
}
TIFFmemset(v8 + 12 * (v2 - 1), 0, 12);
return v8;
}