//
// sub_10056F55C from 0x10056f55c to 0x10056f638 (220 bytes)
//
// 2 xrefs:
// > sub_100565E88 @ 0x100566590
// > sub_100569DC4 @ 0x10056a150
//
// 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 sub_10056F55C(__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_10056F638;
*(_QWORD *)(a2 + 288) = sub_10056F650;
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_10056F664(a1, a2);
}
v6 = *a1;
if ( *(_QWORD *)(a2 + 264) )
sub_100552734(v6, "Error while processing content unencoding: %s");
else
sub_100552734(v6, "Error while processing content unencoding: Unknown failure within decompression software.");
return 61;
}