//
// sub_100709564 from 0x100709564 to 0x100709690 (300 bytes)
//
// 14 xrefs:
// > sub_10064C8E4 @ 0x10064ca94
// > sub_1006EEF9C @ 0x1006ef060
// > sub_1006EF4F0 @ 0x1006ef8c0
// > sub_1006F3514 @ 0x1006f3800
// > sub_1006F3514 @ 0x1006f3820
// > sub_1006F3514 @ 0x1006f39a4
// > sub_1006F3514 @ 0x1006f39c4
// > sub_1006F3514 @ 0x1006f3b60
// > sub_1006F3FE4 @ 0x1006f4358
// > sub_1006F3FE4 @ 0x1006f44a8
// > sub_100717180 @ 0x1007171d8
// > sub_100725024 @ 0x100725078
// > sub_10072A2F4 @ 0x10072a340
// > sub_100730234 @ 0x100730358
//
// 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
//
bool __fastcall sub_100709564(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4, int *a5, __int64 a6)
{
int v12; // w3
int v13; // w4
int v14; // w5
int v15; // w6
int v16; // w7
int v17; // w20
__int64 v18; // x8
void (__fastcall *v19)(_QWORD *); // x9
_BOOL8 v20; // x19
_QWORD v22[3]; // [xsp+0h] [xbp-60h] BYREF
void *v23; // [xsp+18h] [xbp-48h]
__int64 v24; // [xsp+20h] [xbp-40h]
unsigned int (__fastcall *v25)(_QWORD *, __int64, __int64); // [xsp+28h] [xbp-38h]
v24 = 0;
v25 = nullptr;
v23 = nullptr;
memset(v22, 0, sizeof(v22));
sub_100711464(v22, 1);
if ( (unsigned int)sub_100708FB4((__int64)v22, a5, a6) )
{
if ( v25(v22, a1, a2) )
{
if ( *(int *)(v22[0] + 8LL) >= 65 )
sub_1006AE64C((char)"digest.c", 277, (int)"ctx->digest->md_size <= EVP_MAX_MD_SIZE", v12, v13, v14, v15, v16);
v17 = (*(__int64 (__fastcall **)(_QWORD *, __int64))(v22[0] + 40LL))(v22, a3);
v18 = v22[0];
if ( a4 )
*a4 = *(_DWORD *)(v22[0] + 8LL);
v19 = *(void (__fastcall **)(_QWORD *))(v18 + 56);
if ( v19 )
{
v19(v22);
sub_100711464(v22, 2);
v18 = v22[0];
}
bzero(v23, *(int *)(v18 + 104));
v20 = v17 != 0;
}
else
{
v20 = 0;
}
}
else
{
v20 = 0;
}
sub_10070930C((__int64)v22);
return v20;
}