// // sub_978DD0 from 0x978dd0 to 0x978e26 (86 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_978DD0(unsigned __int8 *a1, char *a2, unsigned int a3) { unsigned int v4; // r1 unsigned int v6; // r5 unsigned __int8 *v7; // r10 size_t v8; // r6 unsigned __int8 *v9; // r4 v4 = *a1; if ( (v4 & 1) != 0 ) { v7 = *((unsigned __int8 **)a1 + 2); v6 = *((_DWORD *)a1 + 1); } else { v6 = v4 >> 1; v7 = a1 + 1; } v8 = strlen(a2); if ( v8 ) { if ( v6 > a3 ) v6 = a3 + 1; while ( v6 ) { v9 = &v7[--v6]; if ( memchr(a2, *v9, v8) ) return v9 - v7; } } return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source