//
// sub_1006956C4 from 0x1006956c4 to 0x1006957a0 (220 bytes)
//
// 2 xrefs:
// > sub_10068BFF0 @ 0x10068c6f8
// > sub_10068FF2C @ 0x1006902b8
//
// 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 11:11:34 +0000
//
__int64 __fastcall sub_1006956C4(__int64 *a1, __int64 a2, int a3)
{
__int64 v6; // x0
if ( *(_DWORD *)(a2 + 212) )
goto LABEL_6;
memset((void *)(a2 + 216), 0, 0x70u);
*(_QWORD *)(a2 + 280) = sub_1006957A0;
*(_QWORD *)(a2 + 288) = sub_1006957B8;
if ( !inflateInit_((z_streamp)(a2 + 216), "1.2.8", 112) )
{
*(_DWORD *)(a2 + 212) = 1;
LABEL_6:
*(_QWORD *)(a2 + 216) = *(_QWORD *)(a2 + 128);
*(_DWORD *)(a2 + 224) = a3;
return sub_1006957CC(a1, a2);
}
v6 = *a1;
if ( *(_QWORD *)(a2 + 264) )
sub_10067889C(v6, "Error while processing content unencoding: %s");
else
sub_10067889C(v6, "Error while processing content unencoding: Unknown failure within decompression software.");
return 61;
}