//
// sub_1005E3A9C from 0x1005e3a9c to 0x1005e3b20 (132 bytes)
//
// 6 xrefs:
// > sub_100535924 @ 0x100535e7c
// > sub_100535924 @ 0x100535f78
// > sub_1005368F0 @ 0x100536c70
// > sub_1005E7094 @ 0x1005e7108
// > sub_1005E86B4 @ 0x1005e86e4
// > sub_1005E8748 @ 0x1005e8844
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1005E3A9C(__int64 a1)
{
__int64 (*v1)(void); // x8
__int64 result; // x0
__int16 v3; // w2
int v4; // w4
if ( *(_QWORD *)a1 )
{
v1 = *(__int64 (**)(void))(*(_QWORD *)a1 + 72LL);
if ( v1 )
{
result = v1();
if ( (_DWORD)result != -1 )
return result;
v3 = 133;
v4 = 622;
}
else
{
v3 = 132;
v4 = 615;
}
}
else
{
v3 = 131;
v4 = 610;
}
sub_1005E0E48(6, 124, v3, (__int64)"evp_enc.c", v4);
return 0;
}