// // sub_76ABF8 from 0x76abf8 to 0x76ad52 (346 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 // _DWORD *__fastcall sub_76ABF8(_DWORD *a1, int a2, _DWORD *a3, int a4, _DWORD *a5, int a6, int a7, _DWORD *a8, int a9) { void *v11; // r8 int v12; // r8 int v13; // r0 _DWORD *v14; // r3 int v15; // r1 char *v16; // r2 bool v17; // zf _DWORD *v19; // r3 int *v20; // r3 int v21; // r0 unsigned int *v22; // r3 int v23; // r1 _DWORD v24[2]; // [sp+18h] [bp-1Ch] BYREF _DWORD *v25; // [sp+20h] [bp-14h] int v26; // [sp+24h] [bp-10h] char *v27; // [sp+28h] [bp-Ch] BYREF int v28; // [sp+2Ch] [bp-8h] BYREF v27 = (char *)&unk_ACDDA8; v25 = a3; v26 = a4; sub_7740F8(&v27, 32); sub_76A1F8(v24, a2, v25, v26, a5, a6, a7, a8, (int *)&v27); v11 = v27; v25 = (_DWORD *)v24[0]; v26 = v24[1]; v28 = sub_7566B8(); std::__convert_to_v(v11, a9, a8, &v28); if ( v25 ) { if ( v26 != -1 || ((v20 = (int *)v25[2], (unsigned int)v20 >= v25[3]) ? (v21 = (*(int (**)(void))(*v25 + 36))()) : (v21 = *v20), v21 == -1 ? (v25 = nullptr) : (_DWORD *)(v26 = v21), v21 != -1) ) { v12 = 0; if ( !a5 ) goto LABEL_6; v13 = a6; if ( a6 == -1 ) goto LABEL_9; goto LABEL_5; } } v12 = 1; if ( a5 ) { v13 = a6; if ( a6 == -1 ) { LABEL_9: v19 = (_DWORD *)a5[2]; if ( (unsigned int)v19 < a5[3] ) { if ( (*v19 == -1) != v12 ) goto LABEL_6; goto LABEL_11; } v13 = (*(int (__fastcall **)(_DWORD *))(*a5 + 36))(a5); } LABEL_5: if ( (v13 == -1) != v12 ) goto LABEL_6; } LABEL_11: *a8 |= 2u; LABEL_6: v14 = v27; v15 = v26; v16 = v27 - 12; v17 = v27 - 12 == (char *)&dword_ACDD9C; *a1 = v25; a1[1] = v15; if ( !v17 ) { if ( &pthread_create ) { v22 = v14 - 1; __dmb(0xFu); do v23 = __ldrex(v22); while ( __strex(v23 - 1, v22) ); __dmb(0xFu); } else { v23 = *(v14 - 1); *(v14 - 1) = v23 - 1; } if ( v23 <= 0 ) operator delete(v16); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source