//
// sub_1005C2120 from 0x1005c2120 to 0x1005c2184 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x100839ef0
//
// 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_1005C2120(__int64 a1)
{
_BYTE *v2; // x0
_BYTE *v3; // x19
__int64 v4; // x0
__int64 v5; // x20
v2 = sub_1005AAD34();
v3 = v2;
if ( v2 && (v4 = sub_1005BFADC(*(_QWORD *)(a1 + 32)), v2 = (_BYTE *)sub_1005B7BE4(v4, (__int64)v3), (_DWORD)v2) )
{
v5 = sub_1005AAC20((__int64)v3);
sub_1005AACD0(v3);
return v5;
}
else
{
sub_1005E1158(v2);
return 0;
}
}