//
// sub_6318F0 from 0x6318f0 to 0x631964 (116 bytes)
//
// 2 xrefs:
// > sub_62931C @ 0x629e98
// > sub_62C878 @ 0x62cb30
//
// 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 sub_6318F0(int *a1, _DWORD *a2, int a3)
{
int v6; // r3
const char *v8; // r2
int v9; // r0
if ( a2[36] )
goto LABEL_4;
memset(a2 + 37, 0, 0x38u);
a2[45] = sub_631650;
a2[46] = sub_631664;
if ( !inflateInit_(a2 + 37, "1.2.8", 56) )
{
a2[36] = 1;
LABEL_4:
v6 = a2[23];
a2[38] = a3;
a2[37] = v6;
return sub_631710(a1, (int)a2);
}
v8 = (const char *)a2[43];
v9 = *a1;
if ( v8 )
sub_6180F8(v9, "Error while processing content unencoding: %s", v8);
else
sub_6180F8(v9, "Error while processing content unencoding: Unknown failure within decompression software.");
return 61;
}