//
// sub_C585C4 from 0xc585c4 to 0xc58630 (108 bytes)
//
// 1 xrefs:
// > TIFFInitLZW @ 0xc58b84
//
// 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
//
__int64 __fastcall sub_C585C4(__int64 a1)
{
__int64 v2; // x20
void *v3; // x0
v2 = *(_QWORD *)(a1 + 848);
v3 = TIFFmalloc(0x23290u);
*(_QWORD *)(v2 + 280) = v3;
if ( v3 )
return 1;
TIFFErrorExt(*(_QWORD *)(a1 + 952), (__int64)"LZWSetupEncode", "No space for LZW hash table");
return 0;
}