//
// _TIFFsetString from 0xc30188 to 0xc301f8 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x82a58
//
// 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 TIFFsetString(void **a1, char *a2)
{
size_t v4; // x20
void *result; // x0
v4 = strlen(a2) + 1;
if ( *a1 )
{
TIFFfree(*a1);
*a1 = nullptr;
}
result = TIFFmalloc(v4);
*a1 = result;
if ( result )
return TIFFmemcpy(result, a2, v4);
return result;
}