//
// TIFFSetClientInfo from 0xeb8d14 to 0xeb8db0 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0xc9b68
//
// 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:28 +0000
//
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;
}