//
// sub_100713494 from 0x100713494 to 0x100713658 (452 bytes)
//
// 2 xrefs:
// > sub_10071348C @ 0x100713490
// > sub_100713658 @ 0x10071365c
//
// 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:58 +0000
//
bool __fastcall sub_100713494(__int64 a1, _QWORD *a2, int *a3, __int64 a4, __int64 a5, int a6)
{
__int64 *v12; // x0
__int64 v13; // x8
char *v14; // x0
int (*v15)(void); // x8
__int64 v16; // x8
int v17; // w9
_BOOL8 result; // x0
int (*v19)(void); // x8
int v20; // w8
unsigned int v21; // [xsp+Ch] [xbp-34h]
v12 = *(__int64 **)(a1 + 32);
if ( !v12 )
{
v12 = (__int64 *)sub_100712544(a5, a4);
*(_QWORD *)(a1 + 32) = v12;
if ( !v12 )
return 0;
}
v13 = *v12;
if ( !a3 && (*(_DWORD *)(v13 + 4) & 4) == 0 )
{
if ( (int)sub_10070FC88(a5) < 1 || (v14 = sub_1006B0DD0(v21), (a3 = (int *)sub_10070E1C8((__int64)v14)) == nullptr) )
{
sub_100706FB0(6, 161, 158, (__int64)"m_sigver.c", 85);
return 0;
}
v12 = *(__int64 **)(a1 + 32);
v13 = *v12;
}
if ( a6 )
{
v15 = *(int (**)(void))(v13 + 128);
if ( !v15 )
{
if ( (int)sub_100712C94(v12) < 1 )
return 0;
goto LABEL_22;
}
if ( v15() < 1 )
return 0;
v16 = *(_QWORD *)(a1 + 32);
v17 = 128;
goto LABEL_16;
}
v19 = *(int (**)(void))(v13 + 112);
if ( v19 )
{
if ( v19() < 1 )
return 0;
v16 = *(_QWORD *)(a1 + 32);
v17 = 64;
LABEL_16:
*(_DWORD *)(v16 + 32) = v17;
goto LABEL_22;
}
if ( (int)sub_100712AF0(v12) < 1 )
return 0;
LABEL_22:
v20 = sub_100712964(*(__int64 **)(a1 + 32), -1, 248);
result = 0;
if ( v20 >= 1 )
{
if ( a2 )
*a2 = *(_QWORD *)(a1 + 32);
return (*(_BYTE *)(**(_QWORD **)(a1 + 32) + 4LL) & 4) != 0 || (unsigned int)sub_100708FB4(a1, a3, a4) != 0;
}
return result;
}