//
// sub_905B2C from 0x905b2c to 0x905c28 (252 bytes)
//
// 3 xrefs:
// > TIFFInitZIP @ 0x905df8
// > TIFFInitZIP @ 0x905dfc
// > ??> @ 0x905f54
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:18 +0000
//
int __fastcall sub_905B2C(int a1, int a2, _DWORD *a3)
{
int v6; // [sp+14h] [bp-8h]
v6 = *(_DWORD *)(a1 + 576);
if ( a2 != 65557 )
return (*(int (__fastcall **)(int, int, _DWORD *))(v6 + 132))(a1, a2, a3);
*(_DWORD *)(v6 + 120) = *a3;
if ( (*(_DWORD *)(v6 + 124) & 2) == 0 || !j_deflateParams(v6 + 64, *(_DWORD *)(v6 + 120), 0) )
return 1;
TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"ZIPVSetField", "ZLib error: %s", *(const char **)(v6 + 88));
return 0;
}