// // sub_978C04 from 0x978c04 to 0x978c68 (100 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_978C04(unsigned __int8 *a1, unsigned __int8 *a2, unsigned int a3) { unsigned int v3; // r3 unsigned __int64 v4; // kr00_8 unsigned __int64 v5; // kr08_8 unsigned int v6; // r0 int result; // r0 unsigned __int8 *v8; // r1 unsigned __int8 *v9; // r4 int v10; // r2 unsigned __int8 *v11; // r5 int v12; // t1 v3 = *a1; if ( (v3 & 1) != 0 ) v4 = *(_QWORD *)(a1 + 4); else v4 = __PAIR64__((unsigned int)(a1 + 1), v3 >> 1); v5 = *(_QWORD *)(a2 + 4); v6 = *a2; if ( (v6 & 1) == 0 ) v5 = __PAIR64__((unsigned int)(a2 + 1), v6 >> 1); result = -1; if ( (unsigned int)v4 > a3 && (_DWORD)v5 ) { v8 = (unsigned __int8 *)(HIDWORD(v4) + v4); v9 = (unsigned __int8 *)(HIDWORD(v4) + a3); if ( (_DWORD)v4 != a3 ) { LABEL_9: v11 = (unsigned __int8 *)HIDWORD(v5); v10 = v5; while ( 1 ) { v12 = *v11++; if ( *v9 == v12 ) break; if ( !--v10 ) { if ( ++v9 != v8 ) goto LABEL_9; v9 = (unsigned __int8 *)(HIDWORD(v4) + v4); break; } } } result = (int)&v9[-HIDWORD(v4)]; if ( v9 == v8 ) return -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source