// // sub_978F5E from 0x978f5e to 0x978fbc (94 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:06:00 +0000 // int __fastcall sub_978F5E(unsigned __int8 *a1, unsigned __int8 *a2, unsigned int a3) { unsigned int v3; // r3 unsigned int v4; // r6 unsigned __int8 *v5; // r8 unsigned __int64 v6; // kr08_8 unsigned int v7; // r0 unsigned __int8 *v8; // r5 v3 = *a1; if ( (v3 & 1) != 0 ) { v5 = *((unsigned __int8 **)a1 + 2); v4 = *((_DWORD *)a1 + 1); } else { v4 = v3 >> 1; v5 = a1 + 1; } v6 = *(_QWORD *)(a2 + 4); v7 = *a2; if ( v4 > a3 ) v4 = a3 + 1; if ( (v7 & 1) == 0 ) v6 = __PAIR64__((unsigned int)(a2 + 1), v7 >> 1); while ( v4 ) { v8 = &v5[v4]; if ( (_DWORD)v6 ) { --v4; if ( memchr((const void *)HIDWORD(v6), *(v8 - 1), v6) ) continue; } return v8 - 1 - v5; } return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source