// // sub_D1902C from 0xd1902c to 0xd190ec (192 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 **__usercall sub_D1902C@(int **a1@, _BYTE **a2@, int **a3@) { int *v3; // x0 int v5; // w2 unsigned int *v8; // x1 unsigned int v9; // w2 char v10; // [xsp+28h] [xbp+28h] BYREF v3 = *a1; v5 = *(v3 - 2); if ( v5 < 0 ) { v3 = (int *)sub_D18BF4((__int64)(v3 - 6), (__int64)&v10, 0); } else if ( v3 - 6 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v3 - 2); do v9 = __ldaxr(v8); while ( __stlxr(v9 + 1, v8) ); } else { *(v3 - 2) = v5 + 1; } } *a3 = v3; sub_D15E14(a3, a2); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source