//
// TIFFSetClientInfo from 0xc42b54 to 0xc42bf0 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x98c88
//
// 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 TIFFSetClientInfo(__int64 a1, __int64 *a2, char *a3)
{
__int64 **v3; // x19
char *result; // x0
_QWORD *v8; // x19
size_t v9; // x0
char *v10; // x0
v3 = *(__int64 ***)(a1 + 1056);
if ( v3 )
{
while ( 1 )
{
result = (char *)strcmp((const char *)v3[2], a3);
if ( !(_DWORD)result )
break;
v3 = (__int64 **)*v3;
if ( !v3 )
goto LABEL_6;
}
v3[1] = a2;
}
else
{
LABEL_6:
v8 = TIFFmalloc(0x18u);
*v8 = *(_QWORD *)(a1 + 1056);
v9 = strlen(a3);
v10 = (char *)TIFFmalloc(v9 + 1);
v8[2] = v10;
result = strcpy(v10, a3);
v8[1] = a2;
*(_QWORD *)(a1 + 1056) = v8;
}
return result;
}