// // sub_F7CB84 from 0xf7cb84 to 0xf7cca0 (284 bytes) // // 0 xrefs: // // 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 13:13:48 +0000 // unsigned __int64 __fastcall sub_F7CB84(unsigned __int8 *a1, char *a2, unsigned __int64 a3) { unsigned __int64 v3; // x8 unsigned __int8 *v6; // x21 unsigned __int64 v7; // x22 size_t v8; // x0 __int64 v9; // x8 unsigned __int8 *v10; // x9 unsigned __int8 *v11; // x8 unsigned __int8 *v12; // x10 int v13; // w11 char *v14; // x19 int v15; // t1 size_t v16; // x12 size_t v17; // x13 unsigned __int8 *v18; // x0 __int64 v19; // x14 int v20; // w15 int v21; // w16 v3 = *a1; if ( (v3 & 1) != 0 ) { v7 = *((_QWORD *)a1 + 1); v6 = *((unsigned __int8 **)a1 + 2); } else { v6 = a1 + 1; v7 = v3 >> 1; } v8 = strlen(a2); v9 = -1; if ( v7 >= a3 && v7 - a3 >= v8 ) { if ( v8 ) { v10 = &v6[a3]; v11 = &v6[v7]; v12 = &v6[v7]; if ( (__int64)(v7 - a3) >= (__int64)v8 ) { v12 = &v6[v7]; if ( &v11[1 - v8] != v10 ) { v15 = (unsigned __int8)*a2; v14 = a2 + 1; v13 = v15; v16 = v8 - (_QWORD)v6 - v7; v17 = v8 - 1; v18 = &v6[a3]; while ( 2 ) { ++v10; while ( *(v10 - 1) != v13 ) { v18 = v10++; if ( &v10[v16] == (_BYTE *)dword_0 + 2 ) goto LABEL_21; } v19 = 0; do { if ( v17 == v19 ) { v12 = v18; goto LABEL_21; } v20 = v10[v19]; v21 = (unsigned __int8)v14[v19++]; } while ( v20 == v21 ); v18 = v10; if ( &v10[v16] != (_BYTE *)dword_0 + 1 ) continue; break; } } } LABEL_21: if ( v12 == v11 ) return -1; else return v12 - v6; } else { return a3; } } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source