// // sub_F7CE30 from 0xf7ce30 to 0xf7cf18 (232 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 // __int64 __fastcall sub_F7CE30(unsigned __int8 *a1, char *a2, unsigned __int64 a3) { unsigned __int64 v3; // x8 unsigned __int8 *v6; // x21 unsigned __int64 v7; // x22 size_t v8; // x0 unsigned __int64 v9; // x8 size_t v10; // x9 signed __int64 v11; // x8 signed __int64 v12; // x9 unsigned __int8 *v13; // x8 unsigned __int8 *v14; // x12 int v15; // t1 __int64 v16; // x14 int v17; // w15 int v18; // w16 unsigned __int8 *v19; // x9 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); if ( v7 >= a3 ) v9 = a3; else v9 = v7; v10 = v7 - v9; v11 = v9 + v8; if ( v10 <= v8 ) v12 = v7; else v12 = v11; v13 = &v6[v12]; if ( v8 && v12 >= (__int64)v8 ) { v14 = &v6[v12]; LABEL_17: while ( &v6[v8 - 1] != v14 ) { v15 = *--v14; if ( v15 == (unsigned __int8)a2[v8 - 1] ) { v16 = 0; while ( 1 - v8 != v16 ) { v17 = v14[v16 - 1]; v18 = (unsigned __int8)a2[v8 - 2 + v16--]; if ( v17 != v18 ) goto LABEL_17; } v19 = &v14[v16]; goto LABEL_19; } } } v19 = &v6[v12]; LABEL_19: if ( v19 != v13 || v8 == 0 ) return v19 - v6; else return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source