//
// inflateGetDictionary from 0x73dccc to 0x73dd1a (78 bytes)
//
// 0 xrefs:
//
// 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 inflateGetDictionary(int a1, void *a2, _DWORD *a3)
{
int v3; // r4
int v5; // r2
bool v6; // zf
char *v7; // r0
if ( !a1 )
return -2;
v3 = *(_DWORD *)(a1 + 28);
if ( !v3 )
return -2;
v5 = *(_DWORD *)(v3 + 44);
v6 = a2 == nullptr;
if ( a2 )
v6 = v5 == 0;
if ( !v6 )
{
v7 = (char *)memcpy(a2, (const void *)(*(_DWORD *)(v3 + 48) + *(_DWORD *)(v3 + 52)), v5 - *(_DWORD *)(v3 + 48));
memcpy(&v7[*(_DWORD *)(v3 + 44) - *(_DWORD *)(v3 + 48)], *(const void **)(v3 + 52), *(_DWORD *)(v3 + 48));
}
if ( a3 )
*a3 = *(_DWORD *)(v3 + 44);
return 0;
}