//
// sub_10056E8F0 from 0x10056e8f0 to 0x10056e9a4 (180 bytes)
//
// 1 xrefs:
// > sub_10056DE90 @ 0x10056e084
//
// 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_10056E8F0(__int64 a1, double a2, double a3)
{
_QWORD *v3; // rbx
_QWORD *v4; // rax
__int64 v5; // r15
pthread_mutex_t *v6; // r14
__int64 *v7; // r15
_QWORD *v8; // rax
__int64 v9; // rcx
v3 = operator new(0x10u);
v3[1] = 0;
*(_DWORD *)v3 = 2;
v4 = operator new(0x10u);
*(_OWORD *)v4 = 0;
*(_DWORD *)v4 = (int)(a3 / a2 * 100.0);
v4[1] = a1;
v3[1] = v4;
v5 = *(_QWORD *)(a1 + 136);
v6 = (pthread_mutex_t *)(v5 + 64);
pthread_mutex_lock((pthread_mutex_t *)(v5 + 64));
v7 = *(__int64 **)(v5 + 56);
v8 = operator new(0x18u);
v8[2] = v3;
v8[1] = v7;
v9 = *v7;
*v8 = *v7;
*(_QWORD *)(v9 + 8) = v8;
*v7 = (__int64)v8;
++v7[2];
pthread_mutex_unlock(v6);
return 0;
}