// // sub_C98D8 from 0xc98d8 to 0xc99c4 (236 bytes) // // 2 xrefs: // > sub_538A0 @ 0x53964 // > sub_7755C @ 0x77854 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:14:47 +0000 // __int64 __fastcall sub_C98D8(__int64 a1, __int64 a2, char a3, char a4) { unsigned int *v4; // x22 __int16 v5; // w8 __int64 result; // x0 __int64 v10; // x8 unsigned int v11; // w8 int v12; // w22 int i; // w21 __int64 v14; // [xsp+8h] [xbp-28h] BYREF v4 = (unsigned int *)(a1 + 100); v5 = atomic_load((unsigned int *)(a1 + 100)); if ( (v5 & 0x100) != 0 || (a4 & 1) == 0 ) { if ( (a3 & 1) != 0 ) { v12 = *(__int16 *)(a1 + 424); for ( i = 0; i < v12; ++i ) { v14 = 0; sub_C7B34(); MEMORY[0x10102464C457F](0, a2); } } (**(void (__fastcall ***)(__int64, __int64))a1)(a1, a2); return 0; } else { result = sub_CD294(*(_QWORD *)(a1 + 168), &v14, 32); if ( !(_DWORD)result ) { *(_BYTE *)v14 = 12; v10 = v14; *(_QWORD *)(v14 + 8) = a1; *(_QWORD *)(v10 + 16) = a2; *(_BYTE *)(v10 + 24) = a3 & 1; *(_QWORD *)(a1 + 440) = a2; do v11 = __ldaxr(v4); while ( __stlxr(v11 | 0x800, v4) ); return sub_CD42C(); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source