//
// sub_6C4F44 from 0x6c4f44 to 0x6c50bc (376 bytes)
//
// 3 xrefs:
// > sub_6C6AF4 @ 0x6c6d14
// > sub_6C6AF4 @ 0x6c6d18
// > ??> @ 0x6c6dd4
//
// 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_6C4F44(int a1)
{
int v1; // r3
_DWORD *v4; // [sp+8h] [bp-Ch]
float v5; // [sp+Ch] [bp-8h]
v4 = *(_DWORD **)(a1 + 576);
if ( !v4 )
_assert2();
v4[13] = 8;
v4[12] = 0;
v4[19] = 0;
if ( v4[20] )
TIFFmemset(v4[20], 0, v4[2]);
if ( (v4[7] & 1) != 0 )
{
v5 = *(float *)(a1 + 120);
if ( *(_WORD *)(a1 + 124) == 3 )
v5 = v5 * 2.54;
if ( v5 <= 150.0 )
v1 = 2;
else
v1 = 4;
v4[22] = v1;
v4[21] = v4[22] - 1;
}
else
{
v4[22] = 0;
v4[21] = v4[22];
}
v4[23] = 0;
return 1;
}