//
// inflateGetDictionary from 0xcc4f38 to 0xcc4fc4 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x68070
//
// 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 inflateGetDictionary(__int64 a1, void *a2, _DWORD *a3)
{
__int64 v3; // x19
int v5; // w2
char *v6; // x0
__int64 result; // x0
if ( !a1 )
return 4294967294LL;
v3 = *(_QWORD *)(a1 + 56);
if ( !v3 )
return 4294967294LL;
v5 = *(_DWORD *)(v3 + 56);
if ( a2 && v5 )
{
v6 = (char *)memcpy(
a2,
(const void *)(*(_QWORD *)(v3 + 64) + *(unsigned int *)(v3 + 60)),
(unsigned int)(v5 - *(_DWORD *)(v3 + 60)));
memcpy(
&v6[*(unsigned int *)(v3 + 56) - (unsigned __int64)*(unsigned int *)(v3 + 60)],
*(const void **)(v3 + 64),
*(unsigned int *)(v3 + 60));
}
if ( !a3 )
return 0;
result = 0;
*a3 = *(_DWORD *)(v3 + 56);
return result;
}