// // sub_AAB1E0 from 0xaab1e0 to 0xaab2ac (204 bytes) // // 1 xrefs: // > @ 0x111c100 // // 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 // __int64 __fastcall sub_AAB1E0(__int64 result) { unsigned int *v1; // x19 unsigned int v2; // w1 unsigned int *v3; // x1 v1 = *(unsigned int **)(result + 16); *(_QWORD *)result = algn_11FAE30; if ( v1 ) { if ( &pthread_create ) { result = (__int64)(v1 + 2); do v2 = __ldaxr((unsigned int *)result); while ( __stlxr(v2 - 1, (unsigned int *)result) ); if ( v2 != 1 ) return result; (*(void (__fastcall **)(unsigned int *))(*(_QWORD *)v1 + 16LL))(v1); v3 = v1 + 3; do result = __ldaxr(v3); while ( __stlxr(result - 1, v3) ); } else { result = v1[2]; v1[2] = result - 1; if ( (_DWORD)result != 1 ) return result; (*(void (__fastcall **)(unsigned int *))(*(_QWORD *)v1 + 16LL))(v1); result = v1[3]; v1[3] = result - 1; } if ( (_DWORD)result == 1 ) return (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v1 + 24LL))(v1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source