// // sub_756714 from 0x756714 to 0x7567f2 (222 bytes) // // 3 xrefs: // > sub_75681C @ 0x756870 // > sub_756898 @ 0x7568d2 // > @ 0x756a34 // // 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_756714(_DWORD *a1) { _DWORD *v1; // r2 unsigned int v3; // r3 unsigned int i; // r4 unsigned int *v5; // r0 unsigned int *v6; // r2 unsigned int v7; // r3 _DWORD *v8; // r2 unsigned int v9; // r3 unsigned int j; // r4 unsigned int *v11; // r0 unsigned int *v12; // r2 unsigned int v13; // r3 char *v14; // r3 int k; // r4 void *v16; // r0 v1 = (_DWORD *)a1[1]; if ( v1 ) { v3 = a1[2]; if ( !v3 ) goto LABEL_15; for ( i = 0; i < v3; ++i ) { v5 = (unsigned int *)v1[i]; if ( v5 ) { if ( &pthread_create ) { v6 = v5 + 1; __dmb(0xFu); do v7 = __ldrex(v6); while ( __strex(v7 - 1, v6) ); __dmb(0xFu); } else { v7 = v5[1]; v5[1] = v7 - 1; } if ( v7 == 1 ) (*(void (__fastcall **)(unsigned int *))(*v5 + 4))(v5); v1 = (_DWORD *)a1[1]; v3 = a1[2]; } } if ( v1 ) LABEL_15: operator delete[](v1); } v8 = (_DWORD *)a1[3]; if ( v8 ) { v9 = a1[2]; if ( !v9 ) goto LABEL_30; for ( j = 0; j < v9; ++j ) { v11 = (unsigned int *)v8[j]; if ( v11 ) { if ( &pthread_create ) { v12 = v11 + 1; __dmb(0xFu); do v13 = __ldrex(v12); while ( __strex(v13 - 1, v12) ); __dmb(0xFu); } else { v13 = v11[1]; v11[1] = v13 - 1; } if ( v13 == 1 ) (*(void (__fastcall **)(unsigned int *))(*v11 + 4))(v11); v8 = (_DWORD *)a1[3]; v9 = a1[2]; } } if ( v8 ) LABEL_30: operator delete[](v8); } v14 = (char *)a1[4]; if ( v14 ) { for ( k = 0; k != 24; k += 4 ) { v16 = *(void **)&v14[k]; if ( v16 ) { operator delete[](v16); v14 = (char *)a1[4]; } } if ( v14 ) operator delete[](v14); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source