//
// _TIFFsetLongArray from 0xea648c to 0xea64f4 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x68b60
//
// 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 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);
}
}