//
// sub_10056E1A0 from 0x10056e1a0 to 0x10056e1f5 (85 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_10056E1A0(__int64 a1, __int64 a2)
{
__int64 *v2; // r14
_QWORD *v3; // rax
__int64 v4; // rcx
pthread_mutex_lock((pthread_mutex_t *)(a1 + 64));
v2 = *(__int64 **)(a1 + 56);
v3 = operator new(0x18u);
v3[2] = a2;
v3[1] = v2;
v4 = *v2;
*v3 = *v2;
*(_QWORD *)(v4 + 8) = v3;
*v2 = (__int64)v3;
++v2[2];
return pthread_mutex_unlock((pthread_mutex_t *)(a1 + 64));
}