//
// TIFFRegisterCODEC from 0x6a2a40 to 0x6a2b4c (268 bytes)
//
// 1 xrefs:
// > ??> @ 0x57dac
//
// 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 __fastcall TIFFRegisterCODEC(__int16 a1, const char *a2, int a3)
{
size_t v3; // r0
int v9; // [sp+14h] [bp-8h]
v3 = strlen(a2);
v9 = TIFFmalloc(v3 + 21);
if ( v9 )
{
*(_DWORD *)(v9 + 4) = v9 + 8;
**(_DWORD **)(v9 + 4) = *(_DWORD *)(v9 + 4) + 12;
strcpy(**(char ***)(v9 + 4), a2);
*(_WORD *)(*(_DWORD *)(v9 + 4) + 4) = a1;
*(_DWORD *)(*(_DWORD *)(v9 + 4) + 8) = a3;
*(_DWORD *)v9 = dword_ACAED8;
dword_ACAED8 = v9;
return *(_DWORD *)(v9 + 4);
}
else
{
TIFFErrorExt(0, "TIFFRegisterCODEC", "No space to register compression scheme %s", a2);
return 0;
}
}