//
// sub_1005E0120 from 0x1005e0120 to 0x1005e01c8 (168 bytes)
//
// 17 xrefs:
// > sub_10051CF68 @ 0x10051cfa4
// > sub_100521AE0 @ 0x100521b1c
// > sub_10052E2FC @ 0x10052e334
// > sub_10052EC84 @ 0x10052ecd0
// > sub_100537D24 @ 0x100537d60
// > sub_100538A48 @ 0x100538a84
// > sub_100586300 @ 0x1005863b8
// > sub_1005ADD44 @ 0x1005ade20
// > sub_1005CD140 @ 0x1005cd270
// > sub_1005DFDAC @ 0x1005dfe00
// > sub_1005DFDAC @ 0x1005dfebc
// > sub_1005DFDAC @ 0x1005dfee0
// > sub_1005E06BC @ 0x1005e096c
// > sub_1005E06BC @ 0x1005e0994
// > sub_1005E06BC @ 0x1005e09b0
// > sub_1005E06BC @ 0x1005e09cc
// > sub_1005FE014 @ 0x1005fe21c
//
// 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_1005E0120(__int64 a1, __int64 a2, __n128 a3)
{
__int64 result; // x0
__int64 v7; // x0
__int64 v8; // x21
__int64 (__fastcall *v9)(__int64, __int64, __n128); // x2
result = qword_100883218;
if ( qword_100883218 )
goto LABEL_7;
v7 = sub_1005D8890();
v8 = v7;
if ( !v7 )
{
LABEL_6:
result = (__int64)sub_1005DF950();
qword_100883218 = result;
if ( !result )
return result;
goto LABEL_7;
}
result = sub_1005D88A0(v7);
qword_100883218 = result;
if ( !result )
{
sub_1005D70C4(v8);
goto LABEL_6;
}
qword_100883210 = v8;
LABEL_7:
v9 = *(__int64 (__fastcall **)(__int64, __int64, __n128))(result + 24);
if ( v9 )
return v9(a1, a2, a3);
return result;
}