//
// sub_10070A51C from 0x10070a51c to 0x10070a5d8 (188 bytes)
//
// 1 xrefs:
// > sub_100739AC4 @ 0x100739ddc
//
// 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:12:53 +0000
//
__int64 __fastcall sub_10070A51C(unsigned int *a1, __int64 a2)
{
__int64 v2; // x9
__int64 result; // x0
__int64 (*v4)(void); // x9
__int16 v5; // w2
int v6; // w4
v2 = *(_QWORD *)a1;
if ( (*(_BYTE *)(*(_QWORD *)a1 + 17LL) & 2) == 0 )
return (int)sub_100706330(a2, a1[26]) > 0;
if ( !v2 )
{
v5 = 131;
v6 = 610;
LABEL_10:
sub_100706FB0(6, 124, v5, (__int64)"evp_enc.c", v6);
return 0;
}
v4 = *(__int64 (**)(void))(v2 + 72);
if ( !v4 )
{
v5 = 132;
v6 = 615;
goto LABEL_10;
}
result = v4();
if ( (_DWORD)result == -1 )
{
v5 = 133;
v6 = 622;
goto LABEL_10;
}
return result;
}