// // sub_1004A1690 from 0x1004a1690 to 0x1004a16f0 (96 bytes) // // 6 xrefs: // > sub_100457824 @ 0x100457914 // > sub_100457824 @ 0x100457934 // > sub_100457824 @ 0x10045797c // > sub_100457824 @ 0x100457988 // > sub_1004661D0 @ 0x1004688d8 // > FMOD::DSP::setBypass @ 0x100485524 // // 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_1004A1690(__int64 a1, int a2) { unsigned int *v2; // x8 char v3; // w9 unsigned int v4; // w9 unsigned int v5; // w9 v2 = (unsigned int *)(a1 + 100); v3 = atomic_load((unsigned int *)(a1 + 100)); if ( ((((v3 & 1) == 0) ^ a2) & 1) == 0 ) *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 168) + 67512LL) + 48LL) = 1; if ( (a2 & 1) != 0 ) { do v4 = __ldaxr(v2); while ( __stlxr(v4 | 1, v2) ); } else { do v5 = __ldaxr(v2); while ( __stlxr(v5 & 0xFFFFFFFE, v2) ); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source