//
// sub_775E48 from 0x775e48 to 0x775eac (100 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_775E48(int **a1, char **a2, _BYTE **a3)
{
char *v3; // r3
int v5; // r2
int *v7; // r0
unsigned int *v9; // r2
unsigned int v10; // r1
_BYTE v11[8]; // [sp+4h] [bp-8h] BYREF
v3 = *a2;
v5 = *((_DWORD *)*a2 - 1);
v7 = (int *)(*a2 - 12);
if ( v5 < 0 )
{
v3 = sub_775B70((int)v7, (int)v11, 0);
}
else if ( v7 != &dword_ACDD9C )
{
if ( &pthread_create )
{
v9 = (unsigned int *)(v3 - 4);
__dmb(0xFu);
do
v10 = __ldrex(v9);
while ( __strex(v10 + 1, v9) );
__dmb(0xFu);
}
else
{
*((_DWORD *)v3 - 1) = v5 + 1;
}
}
*a1 = (int *)v3;
sub_77441C(a1, a3);
return a1;
}