//
// sub_10061BA8C from 0x10061ba8c to 0x10061bc84 (504 bytes)
//
// 1 xrefs:
// > sub_1005D8498 @ 0x1005d84b0
//
// 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
//
void sub_10061BA8C()
{
int *v0; // x0
int *v1; // x19
char **v2; // x0
char **v3; // x0
const void *v4; // x0
char **v5; // x0
int v6; // w0
v0 = (int *)sub_1005D6414();
v1 = v0;
if ( v0 )
{
if ( (unsigned int)sub_1005D6708(v0, (__int64)"aep")
&& (unsigned int)sub_1005D674C((__int64)v1, (__int64)"Aep hardware engine support")
&& (unsigned int)sub_1005D8578((__int64)v1, (__int64)&off_1008682D8)
&& (unsigned int)sub_1005D8620((__int64)v1, (__int64)&off_100868278)
&& (unsigned int)sub_1005D8764((__int64)v1, (__int64)&off_100868230)
&& (unsigned int)sub_1005D679C((__int64)v1, (__int64)sub_10061BC84)
&& (unsigned int)sub_1005D6790((__int64)v1, (__int64)sub_10061BE54)
&& (unsigned int)sub_1005D67A8((__int64)v1, (__int64)sub_10061BEB8)
&& (unsigned int)sub_1005D67B4((__int64)v1, (__int64)sub_10061C03C)
&& (unsigned int)sub_1005D67CC((__int64)v1, (__int64)&unk_100843B30) )
{
v2 = sub_1005C5C8C();
qword_1008682E0 = (__int64)v2[1];
qword_1008682E8 = (__int64)v2[2];
qword_1008682F0 = (__int64)v2[3];
qword_1008682F8 = (__int64)v2[4];
v3 = sub_1005CF118();
qword_100868280 = (__int64)v3[1];
qword_100868288 = (__int64)v3[2];
qword_100868290 = (__int64)v3[3];
v4 = (const void *)sub_1005CE97C();
memcpy(&off_100868278, v4, 0x60u);
off_100868298[0] = sub_10061C118;
off_1008682A0 = sub_10061C1E8;
v5 = sub_1005D270C();
qword_100868238 = (__int64)v5[1];
qword_100868240 = (__int64)v5[2];
off_100868248 = (__int64 (__fastcall *)())v5[3];
v6 = dword_1008851F4;
if ( !dword_1008851F4 )
{
v6 = sub_1005E197C();
dword_1008851F4 = v6;
}
if ( (byte_1008851F0 & 1) == 0 )
{
byte_1008851F0 = 1;
sub_1005E0CCC(v6, &qword_100868348);
sub_1005E0CCC(dword_1008851F4, &qword_1008683D8);
}
sub_1005D68E4((__int64)v1);
sub_1005D6580(v1);
sub_1005E1158();
}
else
{
sub_1005D6580(v1);
}
}
}