//
// sub_100742DE0 from 0x100742de0 to 0x100742f88 (424 bytes)
//
// 1 xrefs:
// > sub_100742B9C @ 0x100742c2c
//
// 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:21 +0000
//
__int64 sub_100742DE0()
{
int v0; // w0
__int16 v1; // w2
int v2; // w4
char *v3; // x1
__int64 *v4; // x0
unsigned int (__fastcall *v5)(_QWORD, _BYTE *); // x19
void *v6; // x20
__int64 v7; // x0
_BYTE v9[4096]; // [xsp+8h] [xbp-1038h] BYREF
if ( qword_100A0F5A8 )
{
v0 = dword_100A0F5A4;
if ( !dword_100A0F5A4 )
{
v0 = sub_100707AE4();
dword_100A0F5A4 = v0;
}
v1 = 100;
v2 = 368;
}
else
{
if ( qword_100A0F5B8 )
v3 = (char *)qword_100A0F5B8;
else
v3 = "atasi";
v4 = sub_1006FC118(nullptr, v3, 0, 0);
qword_100A0F5A8 = (__int64)v4;
if ( v4 )
{
v5 = (unsigned int (__fastcall *)(_QWORD, _BYTE *))sub_1006FC348((__int64)v4, (__int64)"ASI_GetHardwareConfig");
if ( v5
&& (v6 = (void *)sub_1006FC348(qword_100A0F5A8, (__int64)"ASI_RSAPrivateKeyOpFn")) != nullptr
&& (v7 = sub_1006FC348(qword_100A0F5A8, (__int64)"ASI_GetPerformanceStatistics")) != 0 )
{
qword_100A0F5C0 = (__int64)v5;
off_100A0F5B0 = v6;
qword_100A0F5C8 = v7;
if ( !v5(0, v9) )
return 1;
v0 = dword_100A0F5A4;
if ( !dword_100A0F5A4 )
{
v0 = sub_100707AE4();
dword_100A0F5A4 = v0;
}
v1 = 107;
v2 = 404;
}
else
{
v0 = dword_100A0F5A4;
if ( !dword_100A0F5A4 )
{
v0 = sub_100707AE4();
dword_100A0F5A4 = v0;
}
v1 = 105;
v2 = 393;
}
}
else
{
v0 = dword_100A0F5A4;
if ( !dword_100A0F5A4 )
{
v0 = sub_100707AE4();
dword_100A0F5A4 = v0;
}
v1 = 105;
v2 = 383;
}
}
sub_100706FB0(v0, 102, v1, (__int64)"e_atalla.c", v2);
if ( qword_100A0F5A8 )
sub_1006FC01C((__int64 *)qword_100A0F5A8);
qword_100A0F5A8 = 0;
off_100A0F5B0 = nullptr;
return 0;
}