//
// sub_100615E2C from 0x100615e2c to 0x100616028 (508 bytes)
//
// 1 xrefs:
// > sub_100616028 @ 0x100616060
//
// 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_100615E2C(__int64 a1, char *a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 v10; // x8
int *v11; // x0
unsigned int *v12; // x9
__int64 v13; // x24
__int64 v14; // x25
__int64 v15; // x26
unsigned int v17; // w0
char *v18; // x0
__int64 v19; // x0
__int64 v20; // x27
__int64 v21; // x28
_BYTE v22[64]; // [xsp+18h] [xbp-1B8h] BYREF
__int64 v23[36]; // [xsp+58h] [xbp-178h] BYREF
if ( (unsigned int)sub_10058AE10(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 24LL)) != 21 )
{
sub_1005E0E48(35, 107, 121, (__int64)"p12_mutl.c", 79);
return 0;
}
v10 = *(_QWORD *)(a1 + 8);
v12 = *(unsigned int **)(v10 + 8);
v11 = *(int **)(v10 + 16);
v13 = *((_QWORD *)v12 + 1);
v14 = *v12;
if ( v11 )
{
v15 = sub_1005F000C(v11);
v10 = *(_QWORD *)(a1 + 8);
}
else
{
v15 = 1;
}
v17 = sub_10058AE10(***(_QWORD ***)v10);
v18 = sub_10058AC68(v17);
v19 = sub_1005E8060((__int64)v18);
v20 = v19;
if ( !v19 )
{
sub_1005E0E48(35, 107, 118, (__int64)"p12_mutl.c", 90);
return 0;
}
v21 = sub_1005EB2A8(v19);
if ( (v21 & 0x80000000) != 0 )
return 0;
if ( !(unsigned int)sub_100615298(a2, a3, v13, v14, 3, v15, v21, (__int64)v22, v20) )
{
sub_1005E0E48(35, 107, 107, (__int64)"p12_mutl.c", 98);
return 0;
}
sub_100592BBC(v23);
if ( (unsigned int)sub_10059295C(v23, v22, v21, v20, 0)
&& (unsigned int)sub_100592BF4(
v23,
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 32LL) + 8LL),
**(int **)(*(_QWORD *)(a1 + 16) + 32LL))
&& sub_100592C0C(v23, a4, a5) )
{
sub_100592D58((char *)v23);
return 1;
}
else
{
sub_100592D58((char *)v23);
return 0;
}
}