//
// sub_75D598 from 0x75d598 to 0x75d638 (160 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
//
char *__fastcall sub_75D598(_DWORD *a1)
{
char *v1; // r4
int v2; // r5
void *v3; // r0
unsigned int *v5; // r5
int v6; // r3
v1 = (char *)a1 + *(_DWORD *)(*a1 - 12);
*(_DWORD *)v1 = &off_A2E15C;
v2 = *((_DWORD *)v1 + 12);
v3 = (void *)(v2 - 12);
*((_DWORD *)v1 + 13) = &off_A2E184;
*((_DWORD *)v1 + 2) = &off_A2E170;
*((_DWORD *)v1 + 3) = &off_AB00A0;
if ( (_UNKNOWN *)(v2 - 12) != &unk_ACDDAC )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v2 - 4);
__dmb(0xFu);
do
v6 = __ldrex(v5);
while ( __strex(v6 - 1, v5) );
__dmb(0xFu);
}
else
{
v6 = *(_DWORD *)(v2 - 4);
*(_DWORD *)(v2 - 4) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v3);
}
*((_DWORD *)v1 + 3) = &off_A2E1D8;
sub_756898((unsigned int **)v1 + 10);
*((_DWORD *)v1 + 13) = &off_A2DC80;
sub_7453C8((_DWORD *)v1 + 13);
operator delete(v1);
return v1;
}