//
// sub_1006F1F40 from 0x1006f1f40 to 0x1006f1fec (172 bytes)
//
// 2 xrefs:
// > sub_1006F0C1C @ 0x1006f11ac
// > sub_1006F1BFC @ 0x1006f1d5c
//
// 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:41 +0000
//
__int64 __fastcall sub_1006F1F40(__int64 *a1, __int64 *a2)
{
unsigned int v3; // w0
char *v4; // x0
__int64 result; // x0
__int64 v6; // x2
__int64 v7; // x4
if ( !a1 )
return sub_10070F06C(0);
if ( (unsigned int)sub_1006B0F78(*a1) == 911 )
{
if ( a2 )
{
v3 = sub_1006B0F78(*a2);
v4 = sub_1006B0DD0(v3);
result = sub_10070E1C8(v4);
if ( result )
return result;
v6 = 151;
v7 = 520;
}
else
{
v6 = 154;
v7 = 515;
}
}
else
{
v6 = 153;
v7 = 511;
}
sub_100706FB0(4, 159, v6, "rsa_ameth.c", v7);
return 0;
}