//
// sub_10061BC84 from 0x10061bc84 to 0x10061be54 (464 bytes)
//
// 1 xrefs:
// > sub_10061BA8C @ 0x10061bb10
//
// 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 sub_10061BC84()
{
int v0; // w0
__int16 v1; // w2
int v2; // w4
char *v3; // x1
__int64 *v4; // x0
void *v5; // x19
void *v6; // x20
void *v7; // x21
void *v8; // x22
void *v9; // x23
void *v10; // x24
void *v11; // x0
__int64 v12; // x8
if ( qword_100885200 )
{
v0 = dword_1008851F4;
if ( !dword_1008851F4 )
{
v0 = sub_1005E197C();
dword_1008851F4 = v0;
}
v1 = 100;
v2 = 460;
}
else
{
if ( qword_100885240 )
v3 = (char *)qword_100885240;
else
v3 = "aep";
v4 = sub_1005D5FB0(nullptr, v3, 0, 0);
qword_100885200 = (__int64)v4;
if ( v4 )
{
v5 = (void *)sub_1005D61E0((__int64)v4, (__int64)"AEP_ModExp");
if ( v5 )
{
v6 = (void *)sub_1005D61E0(qword_100885200, (__int64)"AEP_ModExpCrt");
if ( v6 )
{
v7 = (void *)sub_1005D61E0(qword_100885200, (__int64)"AEP_Finalize");
if ( v7 )
{
v8 = (void *)sub_1005D61E0(qword_100885200, (__int64)"AEP_Initialize");
if ( v8 )
{
v9 = (void *)sub_1005D61E0(qword_100885200, (__int64)"AEP_OpenConnection");
if ( v9 )
{
v10 = (void *)sub_1005D61E0(qword_100885200, (__int64)"AEP_SetBNCallBacks");
if ( v10 )
{
v11 = (void *)sub_1005D61E0(qword_100885200, (__int64)"AEP_CloseConnection");
if ( v11 )
{
off_100885238 = v5;
off_100885208 = v6;
off_100885210 = v7;
off_100885218 = v8;
off_100885220 = v10;
off_100885228 = v9;
v12 = 1;
goto LABEL_26;
}
}
}
}
}
}
}
v0 = dword_1008851F4;
if ( !dword_1008851F4 )
{
v0 = sub_1005E197C();
dword_1008851F4 = v0;
}
v1 = 111;
v2 = 482;
}
else
{
v0 = dword_1008851F4;
if ( !dword_1008851F4 )
{
v0 = sub_1005E197C();
dword_1008851F4 = v0;
}
v1 = 111;
v2 = 468;
}
}
sub_1005E0E48(v0, 103, v1, (__int64)"e_aep.c", v2);
if ( qword_100885200 )
sub_1005D5EB4((__int64 *)qword_100885200);
v11 = nullptr;
v12 = 0;
qword_100885200 = 0;
off_100885228 = nullptr;
off_100885238 = nullptr;
off_100885208 = nullptr;
off_100885210 = nullptr;
off_100885218 = nullptr;
off_100885220 = nullptr;
LABEL_26:
off_100885230 = v11;
return v12;
}