//
// sub_841970 from 0x841970 to 0x8419e4 (116 bytes)
//
// 2 xrefs:
// > sub_83939C @ 0x839f18
// > sub_83C8F8 @ 0x83cbb0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:21 +0000
//
int __fastcall sub_841970(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_8416D0;
a2[46] = sub_8416E4;
if ( !inflateInit_(a2 + 37, "1.2.8", 56) )
{
a2[36] = 1;
LABEL_4:
v6 = a2[23];
a2[38] = a3;
a2[37] = v6;
return sub_841790(a1, (int)a2);
}
v8 = (const char *)a2[43];
v9 = *a1;
if ( v8 )
sub_828178(v9, "Error while processing content unencoding: %s", v8);
else
sub_828178(v9, "Error while processing content unencoding: Unknown failure within decompression software.");
return 61;
}