//
// sub_104A190 from 0x104a190 to 0x104a234 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x140dc10
//
// 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:16:35 +0000
//
bool __fastcall sub_104A190(int a1, _QWORD *a2, __int64 a3, _QWORD *a4)
{
int v4; // w2
_BOOL8 result; // x0
__int64 v8; // x0
v4 = a1 - 10;
result = 1;
switch ( v4 )
{
case 0:
if ( (int)PKCS7_stream(a4 + 2, *a2) > 0 )
goto LABEL_4;
result = 0;
break;
case 1:
case 3:
result = (int)PKCS7_dataFinal(*a2, a4[1]) > 0;
break;
case 2:
LABEL_4:
v8 = PKCS7_dataInit(*a2, *a4);
a4[1] = v8;
result = v8 != 0;
break;
default:
return result;
}
return result;
}