//
// sub_EB96D8 from 0xeb96d8 to 0xeb978c (180 bytes)
//
// 6 xrefs:
// > TIFFInitCCITTFax3 @ 0xebedc4
// > TIFFInitCCITTFax3 @ 0xebedcc
// > TIFFInitCCITTFax4 @ 0xebef9c
// > TIFFInitCCITTFax4 @ 0xebefa4
// > TIFFInitCCITTRLE @ 0xebf178
// > TIFFInitCCITTRLEW @ 0xebf308
//
// 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:28 +0000
//
__int64 __fastcall sub_EB96D8(__int64 a1)
{
__int64 v1; // x19
void *v3; // x0
float v4; // s0
int v5; // w0
int v6; // w0
v1 = *(_QWORD *)(a1 + 848);
v3 = *(void **)(v1 + 128);
*(_DWORD *)(v1 + 76) = 8;
*(_DWORD *)(v1 + 72) = 0;
*(_DWORD *)(v1 + 120) = 0;
if ( v3 )
TIFFmemset(v3, 0, *(_QWORD *)(v1 + 8));
if ( (*(_DWORD *)(v1 + 32) & 1) != 0 )
{
v4 = *(float *)(a1 + 164);
if ( *(_WORD *)(a1 + 168) == 3 )
v4 = v4 * 2.54;
*(_DWORD *)(v1 + 144) = 0;
if ( v4 <= 150.0 )
v5 = 1;
else
v5 = 3;
*(_DWORD *)(v1 + 136) = v5;
if ( v4 <= 150.0 )
v6 = 2;
else
v6 = 4;
*(_DWORD *)(v1 + 140) = v6;
return 1;
}
else
{
*(_DWORD *)(v1 + 140) = 0;
*(_DWORD *)(v1 + 136) = 0;
*(_DWORD *)(v1 + 144) = 0;
return 1;
}
}