//
// sub_100709C04 from 0x100709c04 to 0x100709c88 (132 bytes)
//
// 6 xrefs:
// > sub_10065BA8C @ 0x10065bfe4
// > sub_10065BA8C @ 0x10065c0e0
// > sub_10065CA58 @ 0x10065cdd8
// > sub_10070D1FC @ 0x10070d270
// > sub_10070E81C @ 0x10070e84c
// > sub_10070E8B0 @ 0x10070e9ac
//
// 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_100709C04(__int64 a1)
{
__int64 (*v1)(void); // x8
__int64 result; // x0
__int16 v3; // w2
int v4; // w4
if ( *(_QWORD *)a1 )
{
v1 = *(__int64 (**)(void))(*(_QWORD *)a1 + 72LL);
if ( v1 )
{
result = v1();
if ( (_DWORD)result != -1 )
return result;
v3 = 133;
v4 = 622;
}
else
{
v3 = 132;
v4 = 615;
}
}
else
{
v3 = 131;
v4 = 610;
}
sub_100706FB0(6, 124, v3, (__int64)"evp_enc.c", v4);
return 0;
}