//
// sub_756E10 from 0x756e10 to 0x756e8a (122 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_756E10(_DWORD *a1, int a2, int **a3)
{
int *result; // r0
int **v5; // r7
unsigned int v7; // r3
int v8; // r3
unsigned int v9; // r3
_DWORD *v10; // r2
int *v11; // t1
result = *a3;
v5 = a3;
if ( *a3 )
{
do
{
v8 = *result;
if ( !*result )
{
if ( &pthread_create )
{
__dmb(0xFu);
do
v7 = __ldrex((unsigned int *)&dword_ACCF4C);
while ( __strex(v7 + 1, (unsigned int *)&dword_ACCF4C) );
v8 = v7 + 1;
__dmb(0xFu);
}
else
{
v8 = ++dword_ACCF4C;
}
*result = v8;
}
v9 = v8 - 1;
if ( *(_DWORD *)(a2 + 8) - 1 < v9 || (v10 = *(_DWORD **)(*(_DWORD *)(a2 + 4) + 4 * v9)) == nullptr )
sub_77336C("locale::_Impl::_M_replace_facet");
sub_756BA8(a1, result, v10);
v11 = v5[1];
++v5;
result = v11;
}
while ( v11 );
}
return result;
}