// // sub_778948 from 0x778948 to 0x7789a8 (96 bytes) // // 1 xrefs: // > sub_757EFC @ 0x757f02 // // 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 // _DWORD *__fastcall sub_778948(_DWORD *a1, int *a2) { int v2; // r3 int v4; // r2 void *v5; // r0 _DWORD *v7; // r3 unsigned int *v8; // r2 unsigned int v9; // r1 _BYTE v10[4]; // [sp+4h] [bp-4h] BYREF v2 = *a2; v4 = *(_DWORD *)(*a2 - 4); v5 = (void *)(*a2 - 12); if ( v4 < 0 ) { v7 = sub_7788F4((int)v5, (int)v10, 0); *a1 = v7; return a1; } else { if ( v5 != &unk_ACDDAC ) { if ( &pthread_create ) { v8 = (unsigned int *)(v2 - 4); __dmb(0xFu); do v9 = __ldrex(v8); while ( __strex(v9 + 1, v8) ); __dmb(0xFu); } else { *(_DWORD *)(v2 - 4) = v4 + 1; } } *a1 = v2; return a1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source