//
// sub_1005EB47C from 0x1005eb47c to 0x1005eb514 (152 bytes)
//
// 1 xrefs:
// > sub_1005EB31C @ 0x1005eb450
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:09:45 +0000
//
__int64 __fastcall sub_1005EB47C(_QWORD *a1, __int64 a2, __int64 *a3)
{
pthread_mutex_t *v6; // x22
__int64 v7; // x9
__int64 v8; // x10
_QWORD *v9; // x8
__int64 result; // x0
v6 = (pthread_mutex_t *)a1[45];
sub_1005DBDD8(v6);
v7 = *a3;
v8 = a3[1];
*(_DWORD *)(v8 + 192) = *((_DWORD *)a3 + 4);
atomic_store(5u, (unsigned int *)(v8 + 272));
atomic_store(5u, (unsigned int *)(v7 + 272));
v9 = *(_QWORD **)(a2 + 264);
v9[3] = a1 + 42;
v9 += 3;
v9[1] = a1[43];
v9[2] = a2;
a1[43] = v9;
*(_QWORD *)v9[1] = v9;
sub_1005DBE08(v6);
result = a1[37];
if ( result )
return sub_1005DBF3C(result);
return result;
}