//
// sub_6A30EC from 0x6a30ec to 0x6a31a0 (180 bytes)
//
// 2 xrefs:
// > sub_6A344C @ 0x6a3b68
// > sub_6A344C @ 0x6a3be8
//
// 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
//
int __fastcall sub_6A30EC(int *a1, __int64 a2, int a3)
{
int result; // r0
if ( *a1 )
TIFFfree(*a1);
result = TIFFmalloc(8 * a3);
*a1 = result;
if ( *a1 )
{
while ( a3-- != 0 )
*(_QWORD *)(*a1 + 8 * a3) = a2;
}
return result;
}