//
// sub_1006FDF8C from 0x1006fdf8c to 0x1006fe0a4 (280 bytes)
//
// 1 xrefs:
// > sub_1006A9638 @ 0x1006ac07c
//
// 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:46 +0000
//
__int64 __fastcall sub_1006FDF8C(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 (__fastcall *v8)(__int64, __int64, __int64, __int64); // x8
__int64 result; // x0
__int64 v10; // x2
__int64 v11; // x4
if ( a1 )
{
sub_1006AE2F8(9, 30, (__int64)"eng_pkey.c", 109);
if ( *(_DWORD *)(a1 + 176) )
{
sub_1006AE2F8(10, 30, (__int64)"eng_pkey.c", 115);
v8 = *(__int64 (__fastcall **)(__int64, __int64, __int64, __int64))(a1 + 136);
if ( v8 )
{
result = v8(a1, a2, a3, a4);
if ( result )
return result;
v10 = 128;
v11 = 124;
}
else
{
v10 = 125;
v11 = 118;
}
}
else
{
sub_1006AE2F8(10, 30, (__int64)"eng_pkey.c", 111);
v10 = 117;
v11 = 112;
}
}
else
{
v10 = 67;
v11 = 106;
}
sub_100706FB0(38, 150, v10, "eng_pkey.c", v11);
return 0;
}