//
// sub_1006162B0 from 0x1006162b0 to 0x100616320 (112 bytes)
//
// 4 xrefs:
// > sub_100528C80 @ 0x100528d74
// > sub_100528C80 @ 0x100528de4
// > sub_100535924 @ 0x100535a80
// > sub_100535924 @ 0x100535b0c
//
// 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 *__fastcall sub_1006162B0(__int64 a1)
{
_QWORD *v2; // x0
void *v3; // x19
unsigned int (__fastcall *v4)(_QWORD *); // x8
v2 = sub_100588710(56, (__int64)"comp_lib.c", 11);
v3 = v2;
if ( !v2 )
return nullptr;
v2[5] = 0;
v2[6] = 0;
v2[3] = 0;
v2[4] = 0;
v2[1] = 0;
v2[2] = 0;
*v2 = 0;
*v2 = a1;
v4 = *(unsigned int (__fastcall **)(_QWORD *))(a1 + 16);
if ( v4 && !v4(v2) )
{
sub_100588C44(v3);
return nullptr;
}
return v3;
}