//
// TIFFUnRegisterCODEC from 0xea52d8 to 0xea5344 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xe1928
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:09 +0000
//
void __fastcall TIFFUnRegisterCODEC(const char **a1)
{
__int64 *v1; // x2
__int64 *v2; // x1
v1 = (__int64 *)qword_1562840;
if ( !qword_1562840 )
{
LABEL_7:
TIFFErrorExt(0, "TIFFUnRegisterCODEC", "Cannot remove compression scheme %s; not registered", *a1);
return;
}
if ( *(const char ***)(qword_1562840 + 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_1562840;
v1 = &qword_1562840;
LABEL_8:
*v1 = *v2;
TIFFfree(v2);
}