//
// TIFFUnRegisterCODEC from 0xc2f118 to 0xc2f184 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xac2a8
//
// 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
//
void __fastcall TIFFUnRegisterCODEC(const char **a1)
{
__int64 *v1; // x2
__int64 *v2; // x1
v1 = (__int64 *)qword_1247860;
if ( !qword_1247860 )
{
LABEL_7:
TIFFErrorExt(0, "TIFFUnRegisterCODEC", "Cannot remove compression scheme %s; not registered", *a1);
return;
}
if ( *(const char ***)(qword_1247860 + 8) != a1 )
{
while ( 1 )
{
v2 = (__int64 *)*v1;
if ( !*v1 )
goto LABEL_7;
if ( (const char **)v2[1] == a1 )
goto LABEL_8;
v1 = (__int64 *)*v1;
}
}
v2 = (__int64 *)qword_1247860;
v1 = &qword_1247860;
LABEL_8:
*v1 = *v2;
TIFFfree(v2);
}