//
// inflateGetDictionary from 0xf3b0f8 to 0xf3b184 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x8d088
//
// 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:13:04 +0000
//
__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;
}