//
// _TIFFsetLongArray from 0xc302cc to 0xc30334 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x4a4d8
//
// 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 TIFFsetLongArray(void **a1, void *a2, size_t byte_count)
{
void *v4; // x0
__int64 v5; // x19
size_t v6; // x19
void *v7; // x0
void *v8; // [xsp+28h] [xbp+28h]
void *v9; // [xsp+28h] [xbp+28h]
v4 = *a1;
v5 = (unsigned int)byte_count;
if ( v4 )
{
v8 = a2;
TIFFfree(v4);
a2 = v8;
*a1 = nullptr;
}
v9 = a2;
if ( a2 )
{
v6 = 4 * v5;
v7 = TIFFmalloc(v6);
*a1 = v7;
if ( v7 )
TIFFmemcpy(v7, v9, v6);
}
}