//
// sub_1007268B0 from 0x1007268b0 to 0x1007269dc (300 bytes)
//
// 2 xrefs:
// > sub_100725BF8 @ 0x100726750
// > sub_100725BF8 @ 0x1007267dc
//
// 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:13:08 +0000
//
__int64 __fastcall sub_1007268B0(_DWORD *a1, unsigned int *a2)
{
int v4; // w22
__int64 v5; // x0
_BYTE *v6; // x0
__int64 v7; // x21
__int16 v8; // w2
int v9; // w4
bool v11; // vf
int v12; // w22
__int64 v13; // x0
_BYTE *v14; // x23
int v15; // w8
if ( a1 && !(unsigned int)sub_10070F700((__int64)a1) )
return 1;
if ( (int)sub_100704BB4(a2) >= 1 )
{
v4 = 0;
while ( 1 )
{
v5 = sub_100704BC8((__int64)a2, v4);
v6 = sub_100725258(v5);
v7 = (__int64)v6;
if ( !v6 )
{
v8 = 108;
v9 = 1964;
goto LABEL_10;
}
if ( !(unsigned int)sub_10070F700((__int64)v6) )
break;
sub_10070FBF4(v7);
if ( ++v4 >= (int)sub_100704BB4(a2) )
goto LABEL_8;
}
v11 = __OFSUB__(v4, 1);
v12 = v4 - 1;
if ( v12 < 0 == v11 )
{
do
{
v13 = sub_100704BC8((__int64)a2, v12);
v14 = sub_100725258(v13);
sub_10070F650(v14, v7);
sub_10070FBF4((__int64)v14);
v15 = v12-- + 1;
}
while ( v15 > 1 );
}
if ( a1 )
sub_10070F650(a1, v7);
sub_10070FBF4(v7);
return 1;
}
LABEL_8:
v8 = 107;
v9 = 1976;
LABEL_10:
sub_100706FB0(11, 110, v8, (__int64)"x509_vfy.c", v9);
return 0;
}