//
// sub_1005F8FDC from 0x1005f8fdc to 0x1005f9050 (116 bytes)
//
// 1 xrefs:
// > sub_1005F8AF4 @ 0x1005f8fd4
//
// 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:52 +0000
//
__int64 __fastcall sub_1005F8FDC(_QWORD *a1, __int64 a2)
{
pthread_mutex_t *v4; // x21
_QWORD *v5; // x8
__int64 result; // x0
v4 = (pthread_mutex_t *)a1[45];
sub_1005DBDD8(v4);
v5 = *(_QWORD **)(a2 + 264);
v5[3] = a1 + 42;
v5 += 3;
v5[1] = a1[43];
v5[2] = a2;
a1[43] = v5;
*(_QWORD *)v5[1] = v5;
sub_1005DBE08(v4);
result = a1[37];
if ( result )
return sub_1005DBF3C(result);
return result;
}