//
// sub_100534A8C from 0x100534a8c to 0x100534c30 (420 bytes)
//
// 1 xrefs:
// > sub_100526FF8 @ 0x100527270
//
// 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_100534A8C(unsigned int *a1)
{
__int64 v2; // x2
__int64 v3; // x4
__int64 v4; // x21
char *v6; // x19
void (__fastcall *v7)(__int64, _QWORD, __int64, char *, __int64, unsigned int *, _QWORD); // x8
__int64 v8; // x4
if ( (a1[166] & 3) != 1 )
{
v2 = 365;
v3 = 3912;
goto LABEL_8;
}
if ( !a1[167] )
{
if ( (sub_10053ED1C(a1) & 0x3000) != 0 || a1[11] )
{
v2 = 244;
v3 = 3924;
goto LABEL_8;
}
v6 = (char *)sub_100588710(37, "t1_lib.c", 3944);
*(_WORD *)v6 = 1;
v6[2] = 18;
v6[3] = BYTE1(a1[168]);
v6[4] = a1[168];
if ( (sub_1005E0260(v6 + 5, 16) & 0x80000000) != 0 )
{
v8 = 3954;
}
else
{
if ( (sub_1005E0260(v6 + 21, 16) & 0x80000000) == 0 )
{
v4 = sub_10052A928((__int64)a1, 24, (__int64)v6, 37);
if ( (v4 & 0x80000000) == 0 )
{
v7 = *((void (__fastcall **)(__int64, _QWORD, __int64, char *, __int64, unsigned int *, _QWORD))a1 + 19);
if ( v7 )
v7(1, *a1, 24, v6, 37, a1, *((_QWORD *)a1 + 20));
a1[167] = 1;
}
goto LABEL_19;
}
v8 = 3960;
}
sub_1005E0E48(20, 315, 68, "t1_lib.c", v8);
v4 = 0xFFFFFFFFLL;
LABEL_19:
sub_100588C44(v6);
return v4;
}
v2 = 366;
v3 = 3918;
LABEL_8:
sub_1005E0E48(20, 315, v2, "t1_lib.c", v3);
return 0xFFFFFFFFLL;
}